From 7a0153a139f8d980ae33829433c0dfb8f03474f2 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 20 Mar 2018 12:48:05 +0100 Subject: [PATCH] Documentation rework (#349) * Documentation rework * Apply fixes from StyleCI * Documentation fixes * Login as bot through web/cli API, allow using invite links in joinChannel, full invite links in importChatInvite and checkChatInvite, non-invite links in importChatInvite * Apply fixes from StyleCI * Logging fixes * Build docs * Add methods to modify start template, bugfix to logging and keyboard conversion * Add TL documentator * Document MTProto methods * Documenting methods... * 7% documented * Bugfixes * Update docs * Update docs * Simplify file management * Implement automatic object conversion for media, and more awesome stuff * Implement automatic object conversion for media, and more awesome stuff * Implement event update handler and file upload/download callback * Auto-detect mime type, duration, width and height of media * Update docs * Document new file functions * Fix links * Fix links * Update bot.php to use event loop * Implement webhook update handler and forking in main loop * Build docs * Better docs * Fixes to secret chats * Almost finished updating docs * Bugfixes, implemented infinite loop for loop() method, almost finished docs * Finish writing docs * Add automatic documentation builder script * Finished writing docs --- README.md | 118 +- bot.php | 100 +- build_docs_index.php | 64 + composer.json | 4 +- docs/API_docs/Lang.php | 2006 ++++ .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- .../constructors/account_webAuthorizations.md | 2 +- docs/API_docs/constructors/botInfo.md | 2 +- .../constructors/botInlineMessageMediaAuto.md | 2 +- .../constructors/botInlineMessageText.md | 2 +- docs/API_docs/constructors/cdnConfig.md | 2 +- docs/API_docs/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../constructors/channels_adminLogResults.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- docs/API_docs/constructors/chatFull.md | 2 +- docs/API_docs/constructors/chatInvite.md | 2 +- .../API_docs/constructors/chatParticipants.md | 2 +- docs/API_docs/constructors/config.md | 2 +- .../API_docs/constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- docs/API_docs/constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_topPeers.md | 2 +- .../decryptedMessageActionDeleteMessages_8.md | 2 +- .../decryptedMessageActionReadMessages_8.md | 2 +- ...ryptedMessageActionScreenshotMessages_8.md | 2 +- .../decryptedMessageMediaAudio_17.md | 8 +- .../decryptedMessageMediaAudio_8.md | 8 +- .../decryptedMessageMediaDocument_45.md | 8 +- .../decryptedMessageMediaDocument_8.md | 8 +- ...ecryptedMessageMediaExternalDocument_23.md | 2 +- .../decryptedMessageMediaPhoto_45.md | 8 +- .../decryptedMessageMediaPhoto_8.md | 8 +- .../decryptedMessageMediaVideo_17.md | 8 +- .../decryptedMessageMediaVideo_45.md | 8 +- .../decryptedMessageMediaVideo_8.md | 8 +- .../constructors/decryptedMessage_45.md | 2 +- .../constructors/decryptedMessage_73.md | 2 +- docs/API_docs/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../constructors/documentAttributeAudio_23.md | 2 +- .../constructors/documentAttributeAudio_46.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../constructors/documentAttributeVideo_23.md | 6 +- docs/API_docs/constructors/draftMessage.md | 2 +- .../constructors/help_recentMeUrls.md | 2 +- .../inputBotInlineMessageMediaAuto.md | 2 +- .../constructors/inputBotInlineMessageText.md | 2 +- .../inputBotInlineResultDocument.md | 2 +- .../constructors/inputBotInlineResultPhoto.md | 2 +- docs/API_docs/constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputGameShortName.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- docs/API_docs/constructors/inputMediaPhoto.md | 2 +- .../inputMediaUploadedDocument.md | 10 +- .../constructors/inputMediaUploadedPhoto.md | 6 +- docs/API_docs/constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../API_docs/constructors/inputSingleMedia.md | 4 +- .../constructors/inputStickerSetItem.md | 2 +- .../inputStickeredMediaDocument.md | 2 +- .../constructors/inputStickeredMediaPhoto.md | 2 +- .../API_docs/constructors/inputWebDocument.md | 2 +- docs/API_docs/constructors/invoice.md | 2 +- .../constructors/keyboardButtonRow.md | 2 +- .../constructors/langPackDifference.md | 2 +- docs/API_docs/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_archivedStickers.md | 2 +- .../constructors/messages_botResults.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- docs/API_docs/constructors/messages_chats.md | 2 +- .../constructors/messages_chatsSlice.md | 2 +- .../API_docs/constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_favedStickers.md | 2 +- .../constructors/messages_featuredStickers.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_highScores.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_peerDialogs.md | 2 +- .../constructors/messages_recentStickers.md | 2 +- .../constructors/messages_savedGifs.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- ...messages_stickerSetInstallResultArchive.md | 2 +- .../constructors/messages_stickers.md | 2 +- .../API_docs/constructors/pageBlockCollage.md | 2 +- .../constructors/pageBlockEmbedPost.md | 2 +- docs/API_docs/constructors/pageBlockList.md | 2 +- .../constructors/pageBlockSlideshow.md | 2 +- docs/API_docs/constructors/pageFull.md | 2 +- docs/API_docs/constructors/pagePart.md | 2 +- .../constructors/payments_paymentForm.md | 2 +- .../constructors/payments_paymentReceipt.md | 2 +- .../payments_validatedRequestedInfo.md | 2 +- docs/API_docs/constructors/phoneCall.md | 2 +- docs/API_docs/constructors/phone_phoneCall.md | 2 +- docs/API_docs/constructors/photo.md | 2 +- docs/API_docs/constructors/photos_photo.md | 2 +- docs/API_docs/constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyInlineMarkup.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- docs/API_docs/constructors/shippingOption.md | 2 +- docs/API_docs/constructors/stickerPack.md | 2 +- .../constructors/stickerSetMultiCovered.md | 2 +- docs/API_docs/constructors/textConcat.md | 2 +- .../constructors/topPeerCategoryPeers.md | 2 +- .../updateChannelReadMessagesContents.md | 2 +- docs/API_docs/constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePinnedDialogs.md | 2 +- docs/API_docs/constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateServiceNotification.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- docs/API_docs/constructors/updates.md | 2 +- docs/API_docs/constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../constructors/upload_fileCdnRedirect.md | 2 +- docs/API_docs/constructors/wallPaper.md | 2 +- docs/API_docs/constructors/webDocument.md | 2 +- docs/API_docs/methods/account_changePhone.md | 31 +- .../API_docs/methods/account_checkUsername.md | 27 +- docs/API_docs/methods/account_confirmPhone.md | 29 +- .../API_docs/methods/account_deleteAccount.md | 27 +- .../API_docs/methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- docs/API_docs/methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- docs/API_docs/methods/account_getPrivacy.md | 27 +- .../methods/account_getTmpPassword.md | 29 +- .../API_docs/methods/account_getWallPapers.md | 25 +- .../methods/account_getWebAuthorizations.md | 28 +- .../methods/account_registerDevice.md | 35 +- docs/API_docs/methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_resetWebAuthorization.md | 30 +- .../methods/account_resetWebAuthorizations.md | 28 +- .../methods/account_sendChangePhoneCode.md | 31 +- .../methods/account_sendConfirmPhoneCode.md | 31 +- .../API_docs/methods/account_setAccountTTL.md | 27 +- docs/API_docs/methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 33 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../API_docs/methods/account_updateProfile.md | 31 +- docs/API_docs/methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- docs/API_docs/methods/auth_bindTempAuthKey.md | 78 +- docs/API_docs/methods/auth_cancelCode.md | 29 +- docs/API_docs/methods/auth_checkPassword.md | 54 +- docs/API_docs/methods/auth_checkPhone.md | 27 +- .../API_docs/methods/auth_dropTempAuthKeys.md | 32 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- docs/API_docs/methods/auth_logOut.md | 4 +- docs/API_docs/methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- docs/API_docs/methods/auth_resendCode.md | 29 +- .../methods/auth_resetAuthorizations.md | 25 +- docs/API_docs/methods/auth_sendCode.md | 4 +- docs/API_docs/methods/auth_sendInvites.md | 31 +- docs/API_docs/methods/auth_signIn.md | 4 +- docs/API_docs/methods/auth_signUp.md | 4 +- .../methods/bots_answerWebhookJSONQuery.md | 20 +- .../methods/bots_sendCustomRequest.md | 20 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteHistory.md | 22 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- docs/API_docs/methods/channels_editAbout.md | 22 +- docs/API_docs/methods/channels_editAdmin.md | 24 +- docs/API_docs/methods/channels_editBanned.md | 24 +- docs/API_docs/methods/channels_editPhoto.md | 22 +- docs/API_docs/methods/channels_editTitle.md | 22 +- .../API_docs/methods/channels_exportInvite.md | 22 +- .../methods/channels_exportMessageLink.md | 19 +- docs/API_docs/methods/channels_getAdminLog.md | 23 +- .../channels_getAdminedPublicChannels.md | 17 +- docs/API_docs/methods/channels_getChannels.md | 24 +- .../methods/channels_getFullChannel.md | 4 +- docs/API_docs/methods/channels_getMessages.md | 26 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- docs/API_docs/methods/channels_joinChannel.md | 19 +- .../API_docs/methods/channels_leaveChannel.md | 22 +- docs/API_docs/methods/channels_readHistory.md | 19 +- .../methods/channels_readMessageContents.md | 21 +- docs/API_docs/methods/channels_reportSpam.md | 23 +- docs/API_docs/methods/channels_setStickers.md | 22 +- .../methods/channels_toggleInvites.md | 19 +- .../channels_togglePreHistoryHidden.md | 22 +- .../methods/channels_toggleSignatures.md | 19 +- .../methods/channels_updatePinnedMessage.md | 22 +- .../methods/channels_updateUsername.md | 19 +- docs/API_docs/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- docs/API_docs/methods/contacts_exportCard.md | 25 +- docs/API_docs/methods/contacts_getBlocked.md | 29 +- docs/API_docs/methods/contacts_getContacts.md | 27 +- docs/API_docs/methods/contacts_getStatuses.md | 25 +- docs/API_docs/methods/contacts_getTopPeers.md | 43 +- docs/API_docs/methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 29 +- docs/API_docs/methods/contacts_resetSaved.md | 20 +- .../methods/contacts_resetTopPeerRating.md | 19 +- .../methods/contacts_resolveUsername.md | 4 +- docs/API_docs/methods/contacts_search.md | 29 +- docs/API_docs/methods/contacts_unblock.md | 27 +- docs/API_docs/methods/help_getAppChangelog.md | 17 +- docs/API_docs/methods/help_getAppUpdate.md | 17 +- docs/API_docs/methods/help_getCdnConfig.md | 20 +- docs/API_docs/methods/help_getConfig.md | 20 +- docs/API_docs/methods/help_getInviteText.md | 17 +- docs/API_docs/methods/help_getNearestDc.md | 17 +- docs/API_docs/methods/help_getRecentMeUrls.md | 20 +- docs/API_docs/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- docs/API_docs/methods/help_saveAppLog.md | 19 +- .../methods/help_setBotUpdatesStatus.md | 20 +- docs/API_docs/methods/index.md | 4 + docs/API_docs/methods/initConnection.md | 44 +- docs/API_docs/methods/invokeAfterMsg.md | 32 +- docs/API_docs/methods/invokeAfterMsgs.md | 34 +- docs/API_docs/methods/invokeWithLayer.md | 32 +- docs/API_docs/methods/invokeWithoutUpdates.md | 30 +- .../methods/langpack_getDifference.md | 17 +- docs/API_docs/methods/langpack_getLangPack.md | 17 +- .../API_docs/methods/langpack_getLanguages.md | 17 +- docs/API_docs/methods/langpack_getStrings.md | 19 +- .../methods/messages_acceptEncryption.md | 4 +- docs/API_docs/methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_clearRecentStickers.md | 17 +- docs/API_docs/methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_editInlineBotMessage.md | 22 +- docs/API_docs/methods/messages_editMessage.md | 24 +- .../methods/messages_exportChatInvite.md | 19 +- docs/API_docs/methods/messages_faveSticker.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- docs/API_docs/methods/messages_getAllChats.md | 19 +- .../API_docs/methods/messages_getAllDrafts.md | 17 +- .../methods/messages_getAllStickers.md | 17 +- .../methods/messages_getArchivedStickers.md | 17 +- .../methods/messages_getAttachedStickers.md | 17 +- .../methods/messages_getBotCallbackAnswer.md | 19 +- docs/API_docs/methods/messages_getChats.md | 22 +- .../methods/messages_getCommonChats.md | 19 +- docs/API_docs/methods/messages_getDhConfig.md | 17 +- docs/API_docs/methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFavedStickers.md | 20 +- .../methods/messages_getFeaturedStickers.md | 17 +- docs/API_docs/methods/messages_getFullChat.md | 4 +- .../methods/messages_getGameHighScores.md | 24 +- docs/API_docs/methods/messages_getHistory.md | 19 +- .../methods/messages_getInlineBotResults.md | 21 +- .../messages_getInlineGameHighScores.md | 22 +- .../methods/messages_getMaskStickers.md | 17 +- .../methods/messages_getMessageEditData.md | 19 +- docs/API_docs/methods/messages_getMessages.md | 24 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getPeerDialogs.md | 21 +- .../methods/messages_getPeerSettings.md | 19 +- .../methods/messages_getPinnedDialogs.md | 17 +- .../methods/messages_getRecentLocations.md | 22 +- .../methods/messages_getRecentStickers.md | 17 +- .../API_docs/methods/messages_getSavedGifs.md | 17 +- .../methods/messages_getStickerSet.md | 20 +- docs/API_docs/methods/messages_getStickers.md | 20 +- .../methods/messages_getUnreadMentions.md | 19 +- docs/API_docs/methods/messages_getWebPage.md | 17 +- .../methods/messages_getWebPagePreview.md | 19 +- .../methods/messages_hideReportSpam.md | 19 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- docs/API_docs/methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readFeaturedStickers.md | 19 +- docs/API_docs/methods/messages_readHistory.md | 19 +- .../API_docs/methods/messages_readMentions.md | 22 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderPinnedDialogs.md | 21 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportEncryptedSpam.md | 19 +- docs/API_docs/methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- docs/API_docs/methods/messages_saveDraft.md | 21 +- docs/API_docs/methods/messages_saveGif.md | 19 +- .../methods/messages_saveRecentSticker.md | 19 +- docs/API_docs/methods/messages_search.md | 21 +- docs/API_docs/methods/messages_searchGifs.md | 17 +- .../API_docs/methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendInlineBotResult.md | 19 +- docs/API_docs/methods/messages_sendMedia.md | 26 +- docs/API_docs/methods/messages_sendMessage.md | 25 +- .../methods/messages_sendMultiMedia.md | 24 +- .../messages_sendScreenshotNotification.md | 19 +- .../methods/messages_setBotCallbackAnswer.md | 20 +- .../messages_setBotPrecheckoutResults.md | 20 +- .../methods/messages_setBotShippingResults.md | 22 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../API_docs/methods/messages_setGameScore.md | 24 +- .../methods/messages_setInlineBotResults.md | 22 +- .../methods/messages_setInlineGameScore.md | 22 +- docs/API_docs/methods/messages_setTyping.md | 22 +- docs/API_docs/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_toggleDialogPin.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/messages_uploadEncryptedFile.md | 24 +- docs/API_docs/methods/messages_uploadMedia.md | 24 +- .../methods/payments_clearSavedInfo.md | 17 +- .../methods/payments_getPaymentForm.md | 17 +- .../methods/payments_getPaymentReceipt.md | 17 +- .../API_docs/methods/payments_getSavedInfo.md | 17 +- .../methods/payments_sendPaymentForm.md | 17 +- .../methods/payments_validateRequestedInfo.md | 17 +- docs/API_docs/methods/phone_acceptCall.md | 4 +- docs/API_docs/methods/phone_confirmCall.md | 4 +- docs/API_docs/methods/phone_discardCall.md | 4 +- docs/API_docs/methods/phone_getCallConfig.md | 17 +- docs/API_docs/methods/phone_receivedCall.md | 17 +- docs/API_docs/methods/phone_requestCall.md | 4 +- docs/API_docs/methods/phone_saveCallDebug.md | 17 +- docs/API_docs/methods/phone_setCallRating.md | 17 +- docs/API_docs/methods/photos_deletePhotos.md | 21 +- docs/API_docs/methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/stickers_addStickerToSet.md | 20 +- .../methods/stickers_changeStickerPosition.md | 22 +- .../methods/stickers_createStickerSet.md | 24 +- .../methods/stickers_removeStickerFromSet.md | 22 +- .../methods/updates_getChannelDifference.md | 4 +- .../API_docs/methods/updates_getDifference.md | 4 +- docs/API_docs/methods/updates_getState.md | 4 +- docs/API_docs/methods/upload_getCdnFile.md | 4 +- .../methods/upload_getCdnFileHashes.md | 4 +- docs/API_docs/methods/upload_getFile.md | 4 +- docs/API_docs/methods/upload_getWebFile.md | 17 +- .../methods/upload_reuploadCdnFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- docs/API_docs/methods/upload_saveFilePart.md | 4 +- docs/API_docs/methods/users_getFullUser.md | 4 +- docs/API_docs/methods/users_getUsers.md | 32 +- docs/API_docs/types/Chat.md | 5 + docs/API_docs/types/InputChannel.md | 5 + docs/API_docs/types/InputDocument.md | 2 + docs/API_docs/types/InputEncryptedChat.md | 4 +- docs/API_docs/types/InputEncryptedFile.md | 7 + docs/API_docs/types/InputFile.md | 7 + docs/API_docs/types/InputMedia.md | 2 + docs/API_docs/types/InputPeer.md | 5 + docs/API_docs/types/InputPhoto.md | 2 + docs/API_docs/types/InputUser.md | 5 + docs/API_docs/types/Peer.md | 5 + docs/API_docs/types/PhoneCall.md | 8 +- docs/API_docs/types/User.md | 5 + docs/COMPOSER_INSTALLATION.md | 24 - docs/FULL_README.md | 830 -- docs/FullInfo.md | 2 + docs/GIT_INSTALLATION.md | 17 - docs/Info.md | 2 + docs/MTProto_docs/Lang.php | 506 ++ .../MTProto_docs/constructors/future_salts.md | 2 +- .../constructors/msg_container.md | 2 +- .../constructors/msg_resend_req.md | 2 +- docs/MTProto_docs/constructors/msgs_ack.md | 2 +- .../constructors/msgs_all_info.md | 2 +- .../constructors/msgs_state_req.md | 2 +- docs/MTProto_docs/constructors/resPQ.md | 2 +- docs/MTProto_docs/methods/destroy_session.md | 30 +- docs/MTProto_docs/methods/get_future_salts.md | 30 +- docs/MTProto_docs/methods/http_wait.md | 34 +- docs/MTProto_docs/methods/index.md | 4 + docs/MTProto_docs/methods/ping.md | 30 +- .../methods/ping_delay_disconnect.md | 32 +- docs/MTProto_docs/methods/req_DH_params.md | 40 +- docs/MTProto_docs/methods/req_pq.md | 30 +- docs/MTProto_docs/methods/req_pq_multi.md | 30 +- docs/MTProto_docs/methods/rpc_drop_answer.md | 30 +- .../methods/set_client_DH_params.md | 34 +- docs/TD_docs/methods/acceptCall.md | 2 +- docs/TD_docs/methods/addChatMember.md | 2 +- docs/TD_docs/methods/addChatMembers.md | 2 +- docs/TD_docs/methods/addFavoriteSticker.md | 2 +- docs/TD_docs/methods/addNetworkStatistics.md | 2 +- docs/TD_docs/methods/addRecentSticker.md | 2 +- docs/TD_docs/methods/addRecentlyFoundChat.md | 2 +- docs/TD_docs/methods/addSavedAnimation.md | 2 +- docs/TD_docs/methods/addStickerToSet.md | 2 +- docs/TD_docs/methods/answerCallbackQuery.md | 2 +- docs/TD_docs/methods/answerCustomQuery.md | 2 +- docs/TD_docs/methods/answerInlineQuery.md | 2 +- .../TD_docs/methods/answerPreCheckoutQuery.md | 2 +- docs/TD_docs/methods/answerShippingQuery.md | 2 +- docs/TD_docs/methods/blockUser.md | 2 +- docs/TD_docs/methods/cancelDownloadFile.md | 2 +- docs/TD_docs/methods/cancelUploadFile.md | 2 +- docs/TD_docs/methods/changeAbout.md | 2 +- docs/TD_docs/methods/changeAccountTtl.md | 2 +- .../methods/changeChannelDescription.md | 2 +- docs/TD_docs/methods/changeChannelUsername.md | 2 +- .../TD_docs/methods/changeChatDraftMessage.md | 2 +- .../TD_docs/methods/changeChatMemberStatus.md | 2 +- docs/TD_docs/methods/changeChatPhoto.md | 2 +- .../methods/changeChatReportSpamState.md | 2 +- docs/TD_docs/methods/changeChatTitle.md | 2 +- docs/TD_docs/methods/changeName.md | 2 +- docs/TD_docs/methods/changePhoneNumber.md | 2 +- docs/TD_docs/methods/changeStickerSet.md | 2 +- docs/TD_docs/methods/changeUsername.md | 2 +- docs/TD_docs/methods/checkAuthBotToken.md | 2 +- docs/TD_docs/methods/checkAuthCode.md | 2 +- docs/TD_docs/methods/checkAuthPassword.md | 2 +- .../methods/checkChangePhoneNumberCode.md | 2 +- docs/TD_docs/methods/checkChatInviteLink.md | 2 +- docs/TD_docs/methods/clearRecentStickers.md | 2 +- docs/TD_docs/methods/closeChat.md | 2 +- docs/TD_docs/methods/closeSecretChat.md | 2 +- docs/TD_docs/methods/createCall.md | 2 +- docs/TD_docs/methods/createChannelChat.md | 2 +- docs/TD_docs/methods/createGroupChat.md | 2 +- docs/TD_docs/methods/createNewChannelChat.md | 2 +- docs/TD_docs/methods/createNewGroupChat.md | 2 +- docs/TD_docs/methods/createNewSecretChat.md | 2 +- docs/TD_docs/methods/createNewStickerSet.md | 2 +- docs/TD_docs/methods/createPrivateChat.md | 2 +- docs/TD_docs/methods/createSecretChat.md | 2 +- .../methods/createTemporaryPassword.md | 2 +- docs/TD_docs/methods/debugCall.md | 2 +- docs/TD_docs/methods/deleteAccount.md | 2 +- docs/TD_docs/methods/deleteChannel.md | 2 +- docs/TD_docs/methods/deleteChatHistory.md | 2 +- docs/TD_docs/methods/deleteChatReplyMarkup.md | 2 +- docs/TD_docs/methods/deleteContacts.md | 2 +- docs/TD_docs/methods/deleteFavoriteSticker.md | 2 +- docs/TD_docs/methods/deleteFile.md | 2 +- .../TD_docs/methods/deleteImportedContacts.md | 2 +- docs/TD_docs/methods/deleteMessages.md | 2 +- .../TD_docs/methods/deleteMessagesFromUser.md | 2 +- docs/TD_docs/methods/deleteProfilePhoto.md | 2 +- docs/TD_docs/methods/deleteRecentHashtag.md | 2 +- docs/TD_docs/methods/deleteRecentSticker.md | 2 +- .../methods/deleteRecentlyFoundChat.md | 2 +- .../methods/deleteRecentlyFoundChats.md | 2 +- docs/TD_docs/methods/deleteSavedAnimation.md | 2 +- .../TD_docs/methods/deleteSavedCredentials.md | 2 +- docs/TD_docs/methods/deleteSavedOrderInfo.md | 2 +- docs/TD_docs/methods/deleteStickerFromSet.md | 2 +- docs/TD_docs/methods/deleteTopChat.md | 2 +- docs/TD_docs/methods/discardCall.md | 2 +- docs/TD_docs/methods/downloadFile.md | 2 +- .../methods/editInlineMessageCaption.md | 2 +- .../methods/editInlineMessageReplyMarkup.md | 2 +- docs/TD_docs/methods/editInlineMessageText.md | 2 +- docs/TD_docs/methods/editMessageCaption.md | 2 +- .../TD_docs/methods/editMessageReplyMarkup.md | 2 +- docs/TD_docs/methods/editMessageText.md | 2 +- docs/TD_docs/methods/exportChatInviteLink.md | 2 +- docs/TD_docs/methods/finishFileGeneration.md | 2 +- docs/TD_docs/methods/forwardMessages.md | 2 +- docs/TD_docs/methods/getAccountTtl.md | 2 +- docs/TD_docs/methods/getActiveSessions.md | 2 +- .../TD_docs/methods/getArchivedStickerSets.md | 2 +- .../TD_docs/methods/getAttachedStickerSets.md | 2 +- docs/TD_docs/methods/getAuthState.md | 2 +- docs/TD_docs/methods/getBlockedUsers.md | 2 +- .../TD_docs/methods/getCallbackQueryAnswer.md | 2 +- docs/TD_docs/methods/getChannel.md | 2 +- docs/TD_docs/methods/getChannelFull.md | 2 +- docs/TD_docs/methods/getChannelMembers.md | 2 +- docs/TD_docs/methods/getChat.md | 2 +- docs/TD_docs/methods/getChatEventLog.md | 2 +- docs/TD_docs/methods/getChatHistory.md | 2 +- docs/TD_docs/methods/getChatMember.md | 2 +- .../TD_docs/methods/getChatReportSpamState.md | 2 +- docs/TD_docs/methods/getChats.md | 2 +- docs/TD_docs/methods/getCommonChats.md | 2 +- docs/TD_docs/methods/getCreatedPublicChats.md | 2 +- docs/TD_docs/methods/getFavoriteStickers.md | 2 +- docs/TD_docs/methods/getFile.md | 2 +- docs/TD_docs/methods/getFileExtension.md | 2 +- docs/TD_docs/methods/getFileMimeType.md | 2 +- docs/TD_docs/methods/getFilePersistent.md | 2 +- docs/TD_docs/methods/getGameHighScores.md | 2 +- docs/TD_docs/methods/getGroup.md | 2 +- docs/TD_docs/methods/getGroupFull.md | 2 +- .../methods/getImportedContactCount.md | 2 +- .../methods/getInlineGameHighScores.md | 2 +- docs/TD_docs/methods/getInlineQueryResults.md | 2 +- .../methods/getInstalledStickerSets.md | 2 +- docs/TD_docs/methods/getInviteText.md | 2 +- docs/TD_docs/methods/getMe.md | 2 +- docs/TD_docs/methods/getMessage.md | 2 +- docs/TD_docs/methods/getMessages.md | 2 +- docs/TD_docs/methods/getNetworkStatistics.md | 2 +- .../methods/getNotificationSettings.md | 2 +- docs/TD_docs/methods/getOption.md | 2 +- docs/TD_docs/methods/getPasswordState.md | 2 +- docs/TD_docs/methods/getPaymentForm.md | 2 +- docs/TD_docs/methods/getPaymentReceipt.md | 2 +- docs/TD_docs/methods/getPrivacy.md | 2 +- docs/TD_docs/methods/getProxy.md | 2 +- docs/TD_docs/methods/getPublicMessageLink.md | 2 +- docs/TD_docs/methods/getRecentInlineBots.md | 2 +- docs/TD_docs/methods/getRecentStickers.md | 2 +- docs/TD_docs/methods/getRecoveryEmail.md | 2 +- docs/TD_docs/methods/getSavedAnimations.md | 2 +- docs/TD_docs/methods/getSavedOrderInfo.md | 2 +- docs/TD_docs/methods/getSecretChat.md | 2 +- docs/TD_docs/methods/getStickerEmojis.md | 2 +- docs/TD_docs/methods/getStickerSet.md | 2 +- docs/TD_docs/methods/getStickers.md | 2 +- docs/TD_docs/methods/getStorageStatistics.md | 2 +- .../methods/getStorageStatisticsFast.md | 2 +- docs/TD_docs/methods/getSupportUser.md | 2 +- .../methods/getTemporaryPasswordState.md | 2 +- docs/TD_docs/methods/getTermsOfService.md | 2 +- docs/TD_docs/methods/getTextEntities.md | 2 +- docs/TD_docs/methods/getTopChats.md | 2 +- .../TD_docs/methods/getTrendingStickerSets.md | 2 +- docs/TD_docs/methods/getUser.md | 2 +- docs/TD_docs/methods/getUserFull.md | 2 +- docs/TD_docs/methods/getUserProfilePhotos.md | 2 +- docs/TD_docs/methods/getWallpapers.md | 2 +- docs/TD_docs/methods/getWebPageInstantView.md | 2 +- docs/TD_docs/methods/getWebPagePreview.md | 2 +- docs/TD_docs/methods/importChatInviteLink.md | 2 +- docs/TD_docs/methods/importContacts.md | 2 +- docs/TD_docs/methods/index.md | 4 + .../methods/migrateGroupChatToChannelChat.md | 2 +- docs/TD_docs/methods/openChat.md | 2 +- docs/TD_docs/methods/openMessageContent.md | 2 +- docs/TD_docs/methods/optimizeStorage.md | 2 +- docs/TD_docs/methods/pinChannelMessage.md | 2 +- docs/TD_docs/methods/processDcUpdate.md | 2 +- docs/TD_docs/methods/rateCall.md | 2 +- docs/TD_docs/methods/recoverAuthPassword.md | 2 +- docs/TD_docs/methods/recoverPassword.md | 2 +- docs/TD_docs/methods/registerDevice.md | 2 +- .../methods/reorderInstalledStickerSets.md | 2 +- docs/TD_docs/methods/reportChannelSpam.md | 2 +- docs/TD_docs/methods/reportChat.md | 2 +- .../methods/requestAuthPasswordRecovery.md | 2 +- .../methods/requestPasswordRecovery.md | 2 +- docs/TD_docs/methods/resendAuthCode.md | 2 +- .../methods/resendChangePhoneNumberCode.md | 2 +- .../methods/resetAllNotificationSettings.md | 2 +- docs/TD_docs/methods/resetAuth.md | 2 +- .../TD_docs/methods/resetNetworkStatistics.md | 2 +- docs/TD_docs/methods/searchCallMessages.md | 2 +- docs/TD_docs/methods/searchChatMembers.md | 2 +- docs/TD_docs/methods/searchChatMessages.md | 2 +- docs/TD_docs/methods/searchChats.md | 2 +- docs/TD_docs/methods/searchContacts.md | 2 +- docs/TD_docs/methods/searchHashtags.md | 2 +- docs/TD_docs/methods/searchMessages.md | 2 +- docs/TD_docs/methods/searchPublicChat.md | 2 +- docs/TD_docs/methods/searchPublicChats.md | 2 +- docs/TD_docs/methods/searchSecretMessages.md | 2 +- docs/TD_docs/methods/searchStickerSet.md | 2 +- docs/TD_docs/methods/sendBotStartMessage.md | 2 +- docs/TD_docs/methods/sendChatAction.md | 2 +- .../sendChatScreenshotTakenNotification.md | 2 +- docs/TD_docs/methods/sendChatSetTtlMessage.md | 2 +- docs/TD_docs/methods/sendCustomRequest.md | 2 +- .../methods/sendInlineQueryResultMessage.md | 2 +- docs/TD_docs/methods/sendMessage.md | 2 +- docs/TD_docs/methods/sendPaymentForm.md | 2 +- docs/TD_docs/methods/setAlarm.md | 2 +- docs/TD_docs/methods/setAuthPhoneNumber.md | 2 +- docs/TD_docs/methods/setBotUpdatesStatus.md | 2 +- docs/TD_docs/methods/setChannelStickerSet.md | 2 +- docs/TD_docs/methods/setChatClientData.md | 2 +- .../methods/setFileGenerationProgress.md | 2 +- docs/TD_docs/methods/setGameScore.md | 2 +- docs/TD_docs/methods/setInlineGameScore.md | 2 +- docs/TD_docs/methods/setNetworkType.md | 2 +- .../methods/setNotificationSettings.md | 2 +- docs/TD_docs/methods/setOption.md | 2 +- docs/TD_docs/methods/setPassword.md | 2 +- docs/TD_docs/methods/setPinnedChats.md | 2 +- docs/TD_docs/methods/setPrivacy.md | 2 +- docs/TD_docs/methods/setProfilePhoto.md | 2 +- docs/TD_docs/methods/setProxy.md | 2 +- docs/TD_docs/methods/setRecoveryEmail.md | 2 +- .../methods/setStickerPositionInSet.md | 2 +- .../methods/terminateAllOtherSessions.md | 2 +- docs/TD_docs/methods/terminateSession.md | 2 +- docs/TD_docs/methods/testCallBytes.md | 2 +- docs/TD_docs/methods/testCallEmpty.md | 2 +- docs/TD_docs/methods/testCallString.md | 2 +- docs/TD_docs/methods/testCallVectorInt.md | 2 +- .../methods/testCallVectorIntObject.md | 2 +- docs/TD_docs/methods/testCallVectorString.md | 2 +- .../methods/testCallVectorStringObject.md | 2 +- docs/TD_docs/methods/testGetDifference.md | 2 +- docs/TD_docs/methods/testNetwork.md | 2 +- docs/TD_docs/methods/testSquareInt.md | 2 +- docs/TD_docs/methods/testUseError.md | 2 +- docs/TD_docs/methods/testUseUpdate.md | 2 +- docs/TD_docs/methods/toggleChannelInvites.md | 2 +- .../methods/toggleChannelSignMessages.md | 2 +- docs/TD_docs/methods/toggleChatIsPinned.md | 2 +- .../methods/toggleGroupAdministrators.md | 2 +- docs/TD_docs/methods/unblockUser.md | 2 +- docs/TD_docs/methods/unpinChannelMessage.md | 2 +- docs/TD_docs/methods/uploadFile.md | 2 +- docs/TD_docs/methods/uploadStickerFile.md | 2 +- docs/TD_docs/methods/validateOrderInfo.md | 2 +- docs/TD_docs/methods/viewMessages.md | 2 +- .../methods/viewTrendingStickerSets.md | 2 +- docs/UBUNTU_INSTALLATION_FULL.md | 8 - docs/docs/CALLS.md | 117 + docs/docs/CHAT_INFO.md | 43 + docs/docs/CONTRIBUTING.md | 91 + docs/docs/CREATING_A_CLIENT.md | 21 + docs/docs/DIALOGS.md | 30 + docs/docs/EXCEPTIONS.md | 103 + docs/docs/FEATURES.md | 43 + docs/docs/FILES.md | 427 + docs/docs/INLINE_BUTTONS.md | 52 + docs/docs/INSTALLATION.md | 122 + docs/docs/LOGGING.md | 17 + docs/docs/LOGIN.md | 60 + docs/docs/LUA.md | 17 + docs/docs/PROXY.md | 121 + .../REQUIREMENTS.md} | 4 +- docs/docs/SECRET_CHATS.md | 68 + docs/docs/SELF.md | 9 + docs/docs/SETTINGS.md | 389 + docs/docs/UPDATES.md | 196 + docs/docs/USING_METHODS.md | 83 + docs/get_dialogs.md | 15 +- docs/get_full_info.md | 13 +- docs/get_info.md | 13 +- docs/get_pwr_chat.md | 13 +- docs/get_self.md | 16 +- docs/index.md | 118 +- docs/request_call.md | 33 + docs/request_secret_chat.md | 27 + index.php | 19 + multiprocess_bot.php | 116 +- old_docs/API_docs_v18/Lang.php | 2142 +++++ .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v18/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_suggested.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../constructors/inputMediaUploadedAudio.md | 4 +- .../inputMediaUploadedDocument.md | 4 +- .../constructors/inputMediaUploadedPhoto.md | 2 +- .../inputMediaUploadedThumbDocument.md | 6 +- .../inputMediaUploadedThumbVideo.md | 6 +- .../constructors/inputMediaUploadedVideo.md | 4 +- .../constructors/inputNotifyPeer.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_sentMessageLink.md | 2 +- .../constructors/messages_statedMessage.md | 2 +- .../messages_statedMessageLink.md | 2 +- .../constructors/messages_statedMessages.md | 2 +- .../messages_statedMessagesLinks.md | 2 +- old_docs/API_docs_v18/constructors/photo.md | 2 +- .../API_docs_v18/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updateReadMessages.md | 2 +- old_docs/API_docs_v18/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v18/constructors/wallPaper.md | 2 +- old_docs/API_docs_v18/methods/README.md | 4 + .../methods/account_checkUsername.md | 27 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 39 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updateProfile.md | 29 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../API_docs_v18/methods/auth_checkPhone.md | 27 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- old_docs/API_docs_v18/methods/auth_logOut.md | 4 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v18/methods/auth_sendCall.md | 20 +- .../API_docs_v18/methods/auth_sendCode.md | 4 +- .../API_docs_v18/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v18/methods/auth_sendSms.md | 20 +- old_docs/API_docs_v18/methods/auth_signIn.md | 4 +- old_docs/API_docs_v18/methods/auth_signUp.md | 4 +- .../API_docs_v18/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getSuggested.md | 20 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../API_docs_v18/methods/contacts_search.md | 29 +- .../API_docs_v18/methods/contacts_unblock.md | 27 +- .../API_docs_v18/methods/help_getAppUpdate.md | 17 +- .../API_docs_v18/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v18/methods/help_getNearestDc.md | 17 +- .../API_docs_v18/methods/help_getSupport.md | 17 +- .../API_docs_v18/methods/help_saveAppLog.md | 19 +- .../API_docs_v18/methods/initConnection.md | 40 +- .../API_docs_v18/methods/invokeAfterMsg.md | 32 +- .../API_docs_v18/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v18/methods/invokeWithLayer18.md | 20 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 24 +- .../API_docs_v18/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../API_docs_v18/methods/messages_search.md | 19 +- .../methods/messages_sendBroadcast.md | 26 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 23 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setTyping.md | 22 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v18/methods/updates_getState.md | 4 +- .../API_docs_v18/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v18/methods/users_getFullUser.md | 4 +- .../API_docs_v18/methods/users_getUsers.md | 32 +- old_docs/API_docs_v18/types/Chat.md | 5 + old_docs/API_docs_v18/types/InputDocument.md | 2 + .../API_docs_v18/types/InputEncryptedChat.md | 4 +- .../API_docs_v18/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v18/types/InputFile.md | 7 + old_docs/API_docs_v18/types/InputMedia.md | 2 + old_docs/API_docs_v18/types/InputPeer.md | 5 + old_docs/API_docs_v18/types/InputPhoto.md | 2 + old_docs/API_docs_v18/types/InputUser.md | 5 + old_docs/API_docs_v18/types/Peer.md | 5 + old_docs/API_docs_v18/types/User.md | 5 + .../constructors/account_privacyRules.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v23/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_suggested.md | 2 +- .../API_docs_v23/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../constructors/inputMediaUploadedAudio.md | 4 +- .../inputMediaUploadedDocument.md | 6 +- .../constructors/inputMediaUploadedPhoto.md | 2 +- .../inputMediaUploadedThumbDocument.md | 8 +- .../inputMediaUploadedThumbVideo.md | 6 +- .../constructors/inputMediaUploadedVideo.md | 4 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_sentMessageLink.md | 2 +- .../constructors/messages_statedMessage.md | 2 +- .../messages_statedMessageLink.md | 2 +- .../constructors/messages_statedMessages.md | 2 +- .../messages_statedMessagesLinks.md | 2 +- .../constructors/messages_stickers.md | 2 +- old_docs/API_docs_v23/constructors/photo.md | 2 +- .../API_docs_v23/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../API_docs_v23/constructors/stickerPack.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../constructors/updateReadMessages.md | 2 +- old_docs/API_docs_v23/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v23/constructors/wallPaper.md | 2 +- old_docs/API_docs_v23/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 39 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 27 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updateProfile.md | 29 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../API_docs_v23/methods/auth_checkPhone.md | 27 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- old_docs/API_docs_v23/methods/auth_logOut.md | 4 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v23/methods/auth_sendCall.md | 20 +- .../API_docs_v23/methods/auth_sendCode.md | 4 +- .../API_docs_v23/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v23/methods/auth_sendSms.md | 20 +- old_docs/API_docs_v23/methods/auth_signIn.md | 4 +- old_docs/API_docs_v23/methods/auth_signUp.md | 4 +- .../API_docs_v23/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getSuggested.md | 20 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v23/methods/contacts_search.md | 29 +- .../API_docs_v23/methods/contacts_unblock.md | 27 +- .../API_docs_v23/methods/help_getAppUpdate.md | 17 +- .../API_docs_v23/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v23/methods/help_getNearestDc.md | 17 +- .../API_docs_v23/methods/help_getSupport.md | 17 +- .../API_docs_v23/methods/help_saveAppLog.md | 19 +- .../API_docs_v23/methods/initConnection.md | 40 +- .../API_docs_v23/methods/invokeAfterMsg.md | 32 +- .../API_docs_v23/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v23/methods/invokeWithLayer.md | 32 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 24 +- .../methods/messages_getAllStickers.md | 17 +- .../API_docs_v23/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getStickers.md | 20 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../API_docs_v23/methods/messages_search.md | 19 +- .../methods/messages_sendBroadcast.md | 26 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 23 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setTyping.md | 22 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v23/methods/updates_getState.md | 4 +- .../API_docs_v23/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v23/methods/users_getFullUser.md | 4 +- .../API_docs_v23/methods/users_getUsers.md | 32 +- old_docs/API_docs_v23/types/Chat.md | 5 + old_docs/API_docs_v23/types/InputDocument.md | 2 + .../API_docs_v23/types/InputEncryptedChat.md | 4 +- .../API_docs_v23/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v23/types/InputFile.md | 7 + old_docs/API_docs_v23/types/InputMedia.md | 2 + old_docs/API_docs_v23/types/InputPeer.md | 5 + old_docs/API_docs_v23/types/InputPhoto.md | 2 + old_docs/API_docs_v23/types/InputUser.md | 5 + old_docs/API_docs_v23/types/Peer.md | 5 + old_docs/API_docs_v23/types/User.md | 5 + old_docs/API_docs_v25/Lang.php | 2244 +++++ .../constructors/account_privacyRules.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v25/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_suggested.md | 2 +- .../API_docs_v25/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../constructors/geochats_located.md | 2 +- .../constructors/geochats_messages.md | 2 +- .../constructors/geochats_messagesSlice.md | 2 +- .../constructors/geochats_statedMessage.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../constructors/inputMediaUploadedAudio.md | 4 +- .../inputMediaUploadedDocument.md | 6 +- .../constructors/inputMediaUploadedPhoto.md | 2 +- .../inputMediaUploadedThumbDocument.md | 8 +- .../inputMediaUploadedThumbVideo.md | 6 +- .../constructors/inputMediaUploadedVideo.md | 4 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_sentMessageLink.md | 2 +- .../constructors/messages_statedMessage.md | 2 +- .../messages_statedMessageLink.md | 2 +- .../constructors/messages_statedMessages.md | 2 +- .../messages_statedMessagesLinks.md | 2 +- .../constructors/messages_stickers.md | 2 +- old_docs/API_docs_v25/constructors/photo.md | 2 +- .../API_docs_v25/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../API_docs_v25/constructors/stickerPack.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../constructors/updateReadMessages.md | 2 +- old_docs/API_docs_v25/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v25/constructors/wallPaper.md | 2 +- old_docs/API_docs_v25/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 39 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 27 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPassword.md | 20 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updateProfile.md | 29 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v25/methods/auth_checkPhone.md | 27 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- old_docs/API_docs_v25/methods/auth_logOut.md | 4 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v25/methods/auth_sendCall.md | 20 +- .../API_docs_v25/methods/auth_sendCode.md | 4 +- .../API_docs_v25/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v25/methods/auth_sendSms.md | 20 +- old_docs/API_docs_v25/methods/auth_signIn.md | 4 +- old_docs/API_docs_v25/methods/auth_signUp.md | 4 +- .../API_docs_v25/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getSuggested.md | 20 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v25/methods/contacts_search.md | 29 +- .../API_docs_v25/methods/contacts_unblock.md | 27 +- .../API_docs_v25/methods/geochats_checkin.md | 20 +- .../methods/geochats_createGeoChat.md | 20 +- .../methods/geochats_editChatPhoto.md | 20 +- .../methods/geochats_editChatTitle.md | 20 +- .../methods/geochats_getFullChat.md | 20 +- .../methods/geochats_getHistory.md | 20 +- .../methods/geochats_getLocated.md | 20 +- .../methods/geochats_getRecents.md | 20 +- .../API_docs_v25/methods/geochats_search.md | 20 +- .../methods/geochats_sendMedia.md | 22 +- .../methods/geochats_sendMessage.md | 20 +- .../methods/geochats_setTyping.md | 20 +- .../API_docs_v25/methods/help_getAppUpdate.md | 17 +- .../API_docs_v25/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v25/methods/help_getNearestDc.md | 17 +- .../API_docs_v25/methods/help_getSupport.md | 17 +- .../API_docs_v25/methods/help_saveAppLog.md | 19 +- .../API_docs_v25/methods/initConnection.md | 40 +- .../API_docs_v25/methods/invokeAfterMsg.md | 32 +- .../API_docs_v25/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v25/methods/invokeWithLayer.md | 32 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 24 +- .../methods/messages_getAllStickers.md | 17 +- .../API_docs_v25/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getStickers.md | 20 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_requestEncryption.md | 4 +- .../API_docs_v25/methods/messages_search.md | 19 +- .../methods/messages_sendBroadcast.md | 26 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 23 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setTyping.md | 22 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v25/methods/updates_getState.md | 4 +- .../API_docs_v25/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v25/methods/users_getFullUser.md | 4 +- .../API_docs_v25/methods/users_getUsers.md | 32 +- old_docs/API_docs_v25/types/Chat.md | 5 + old_docs/API_docs_v25/types/InputDocument.md | 2 + .../API_docs_v25/types/InputEncryptedChat.md | 4 +- .../API_docs_v25/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v25/types/InputFile.md | 7 + old_docs/API_docs_v25/types/InputMedia.md | 2 + old_docs/API_docs_v25/types/InputPeer.md | 5 + old_docs/API_docs_v25/types/InputPhoto.md | 2 + old_docs/API_docs_v25/types/InputUser.md | 5 + old_docs/API_docs_v25/types/Peer.md | 5 + old_docs/API_docs_v25/types/User.md | 5 + .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v27/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_suggested.md | 2 +- .../API_docs_v27/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../constructors/geochats_located.md | 2 +- .../constructors/geochats_messages.md | 2 +- .../constructors/geochats_messagesSlice.md | 2 +- .../constructors/geochats_statedMessage.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../constructors/inputMediaUploadedAudio.md | 4 +- .../inputMediaUploadedDocument.md | 6 +- .../constructors/inputMediaUploadedPhoto.md | 2 +- .../inputMediaUploadedThumbDocument.md | 8 +- .../inputMediaUploadedThumbVideo.md | 6 +- .../constructors/inputMediaUploadedVideo.md | 4 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_sentMessageLink.md | 2 +- .../constructors/messages_stickers.md | 2 +- old_docs/API_docs_v27/constructors/photo.md | 2 +- .../API_docs_v27/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../API_docs_v27/constructors/stickerPack.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../constructors/updateReadMessages.md | 2 +- old_docs/API_docs_v27/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v27/constructors/wallPaper.md | 2 +- old_docs/API_docs_v27/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 39 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 27 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 29 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v27/methods/auth_checkPhone.md | 27 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- old_docs/API_docs_v27/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v27/methods/auth_sendCall.md | 20 +- .../API_docs_v27/methods/auth_sendCode.md | 4 +- .../API_docs_v27/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v27/methods/auth_sendSms.md | 20 +- old_docs/API_docs_v27/methods/auth_signIn.md | 4 +- old_docs/API_docs_v27/methods/auth_signUp.md | 4 +- .../API_docs_v27/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getSuggested.md | 20 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v27/methods/contacts_search.md | 29 +- .../API_docs_v27/methods/contacts_unblock.md | 27 +- .../API_docs_v27/methods/geochats_checkin.md | 20 +- .../methods/geochats_createGeoChat.md | 20 +- .../methods/geochats_editChatPhoto.md | 20 +- .../methods/geochats_editChatTitle.md | 20 +- .../methods/geochats_getFullChat.md | 20 +- .../methods/geochats_getHistory.md | 20 +- .../methods/geochats_getLocated.md | 20 +- .../methods/geochats_getRecents.md | 20 +- .../API_docs_v27/methods/geochats_search.md | 20 +- .../methods/geochats_sendMedia.md | 22 +- .../methods/geochats_sendMessage.md | 20 +- .../methods/geochats_setTyping.md | 20 +- .../API_docs_v27/methods/help_getAppUpdate.md | 17 +- .../API_docs_v27/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v27/methods/help_getNearestDc.md | 17 +- .../API_docs_v27/methods/help_getSupport.md | 17 +- .../API_docs_v27/methods/help_saveAppLog.md | 19 +- .../API_docs_v27/methods/initConnection.md | 40 +- .../API_docs_v27/methods/invokeAfterMsg.md | 32 +- .../API_docs_v27/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v27/methods/invokeWithLayer.md | 32 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 24 +- .../methods/messages_getAllStickers.md | 17 +- .../API_docs_v27/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getStickers.md | 20 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_requestEncryption.md | 4 +- .../API_docs_v27/methods/messages_search.md | 19 +- .../methods/messages_sendBroadcast.md | 26 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 23 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setTyping.md | 22 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v27/methods/updates_getState.md | 4 +- .../API_docs_v27/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v27/methods/users_getFullUser.md | 4 +- .../API_docs_v27/methods/users_getUsers.md | 32 +- old_docs/API_docs_v27/types/Chat.md | 5 + old_docs/API_docs_v27/types/InputDocument.md | 2 + .../API_docs_v27/types/InputEncryptedChat.md | 4 +- .../API_docs_v27/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v27/types/InputFile.md | 7 + old_docs/API_docs_v27/types/InputMedia.md | 2 + old_docs/API_docs_v27/types/InputPeer.md | 5 + old_docs/API_docs_v27/types/InputPhoto.md | 2 + old_docs/API_docs_v27/types/InputUser.md | 5 + old_docs/API_docs_v27/types/Peer.md | 5 + old_docs/API_docs_v27/types/User.md | 5 + old_docs/API_docs_v33/Lang.php | 2256 +++++ .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v33/constructors/botInfo.md | 2 +- .../API_docs_v33/constructors/chatFull.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v33/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_suggested.md | 2 +- .../API_docs_v33/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../constructors/geochats_located.md | 2 +- .../constructors/geochats_messages.md | 2 +- .../constructors/geochats_messagesSlice.md | 2 +- .../constructors/geochats_statedMessage.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../constructors/inputMediaUploadedAudio.md | 4 +- .../inputMediaUploadedDocument.md | 6 +- .../constructors/inputMediaUploadedPhoto.md | 2 +- .../inputMediaUploadedThumbDocument.md | 8 +- .../inputMediaUploadedThumbVideo.md | 4 +- .../constructors/inputMediaUploadedVideo.md | 2 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/keyboardButtonRow.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_sentMessageLink.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- .../constructors/messages_stickers.md | 2 +- old_docs/API_docs_v33/constructors/photo.md | 2 +- .../API_docs_v33/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- .../API_docs_v33/constructors/stickerPack.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- old_docs/API_docs_v33/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v33/constructors/wallPaper.md | 2 +- old_docs/API_docs_v33/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 39 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 27 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 29 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v33/methods/auth_checkPhone.md | 27 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v33/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v33/methods/auth_sendCall.md | 20 +- .../API_docs_v33/methods/auth_sendCode.md | 4 +- .../API_docs_v33/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v33/methods/auth_sendSms.md | 20 +- old_docs/API_docs_v33/methods/auth_signIn.md | 4 +- old_docs/API_docs_v33/methods/auth_signUp.md | 4 +- .../API_docs_v33/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getSuggested.md | 20 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v33/methods/contacts_search.md | 29 +- .../API_docs_v33/methods/contacts_unblock.md | 27 +- .../API_docs_v33/methods/geochats_checkin.md | 20 +- .../methods/geochats_createGeoChat.md | 20 +- .../methods/geochats_editChatPhoto.md | 20 +- .../methods/geochats_editChatTitle.md | 20 +- .../methods/geochats_getFullChat.md | 20 +- .../methods/geochats_getHistory.md | 20 +- .../methods/geochats_getLocated.md | 20 +- .../methods/geochats_getRecents.md | 20 +- .../API_docs_v33/methods/geochats_search.md | 20 +- .../methods/geochats_sendMedia.md | 22 +- .../methods/geochats_sendMessage.md | 20 +- .../methods/geochats_setTyping.md | 20 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v33/methods/help_getAppUpdate.md | 17 +- .../API_docs_v33/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v33/methods/help_getNearestDc.md | 17 +- .../API_docs_v33/methods/help_getSupport.md | 17 +- .../API_docs_v33/methods/help_saveAppLog.md | 19 +- .../API_docs_v33/methods/initConnection.md | 40 +- .../API_docs_v33/methods/invokeAfterMsg.md | 32 +- .../API_docs_v33/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v33/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 24 +- .../methods/messages_getAllStickers.md | 17 +- .../API_docs_v33/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getStickers.md | 20 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_requestEncryption.md | 4 +- .../API_docs_v33/methods/messages_search.md | 19 +- .../methods/messages_sendBroadcast.md | 26 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 23 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v33/methods/messages_startBot.md | 21 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v33/methods/updates_getState.md | 4 +- .../API_docs_v33/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v33/methods/users_getFullUser.md | 4 +- .../API_docs_v33/methods/users_getUsers.md | 32 +- old_docs/API_docs_v33/types/Chat.md | 5 + old_docs/API_docs_v33/types/InputDocument.md | 2 + .../API_docs_v33/types/InputEncryptedChat.md | 4 +- .../API_docs_v33/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v33/types/InputFile.md | 7 + old_docs/API_docs_v33/types/InputMedia.md | 2 + old_docs/API_docs_v33/types/InputPeer.md | 5 + old_docs/API_docs_v33/types/InputPhoto.md | 2 + old_docs/API_docs_v33/types/InputUser.md | 5 + old_docs/API_docs_v33/types/Peer.md | 5 + old_docs/API_docs_v33/types/User.md | 5 + old_docs/API_docs_v38/Lang.php | 2294 +++++ .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v38/constructors/botInfo.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v38/constructors/chatFull.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v38/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_suggested.md | 2 +- .../API_docs_v38/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../constructors/inputMediaUploadedAudio.md | 4 +- .../inputMediaUploadedDocument.md | 6 +- .../constructors/inputMediaUploadedPhoto.md | 2 +- .../inputMediaUploadedThumbDocument.md | 8 +- .../inputMediaUploadedThumbVideo.md | 6 +- .../constructors/inputMediaUploadedVideo.md | 4 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/keyboardButtonRow.md | 2 +- old_docs/API_docs_v38/constructors/message.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- .../constructors/messages_stickers.md | 2 +- old_docs/API_docs_v38/constructors/photo.md | 2 +- .../API_docs_v38/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- .../API_docs_v38/constructors/stickerPack.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- old_docs/API_docs_v38/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v38/constructors/wallPaper.md | 2 +- old_docs/API_docs_v38/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 39 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 27 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 29 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v38/methods/auth_checkPhone.md | 27 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v38/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v38/methods/auth_sendCall.md | 20 +- .../API_docs_v38/methods/auth_sendCode.md | 4 +- .../API_docs_v38/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v38/methods/auth_sendSms.md | 20 +- old_docs/API_docs_v38/methods/auth_signIn.md | 4 +- old_docs/API_docs_v38/methods/auth_signUp.md | 4 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 21 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getDialogs.md | 20 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getImportantHistory.md | 22 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_kickFromChannel.md | 24 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_toggleComments.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v38/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getSuggested.md | 20 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v38/methods/contacts_search.md | 29 +- .../API_docs_v38/methods/contacts_unblock.md | 27 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v38/methods/help_getAppUpdate.md | 17 +- .../API_docs_v38/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v38/methods/help_getNearestDc.md | 17 +- .../API_docs_v38/methods/help_getSupport.md | 17 +- .../API_docs_v38/methods/help_saveAppLog.md | 19 +- .../API_docs_v38/methods/initConnection.md | 40 +- .../API_docs_v38/methods/invokeAfterMsg.md | 32 +- .../API_docs_v38/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v38/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllStickers.md | 17 +- .../API_docs_v38/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getStickers.md | 20 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../API_docs_v38/methods/messages_search.md | 19 +- .../methods/messages_sendBroadcast.md | 26 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v38/methods/messages_startBot.md | 21 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v38/methods/updates_getState.md | 4 +- .../API_docs_v38/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v38/methods/users_getFullUser.md | 4 +- .../API_docs_v38/methods/users_getUsers.md | 32 +- old_docs/API_docs_v38/types/Chat.md | 5 + old_docs/API_docs_v38/types/InputChannel.md | 5 + old_docs/API_docs_v38/types/InputDocument.md | 2 + .../API_docs_v38/types/InputEncryptedChat.md | 4 +- .../API_docs_v38/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v38/types/InputFile.md | 7 + old_docs/API_docs_v38/types/InputMedia.md | 2 + old_docs/API_docs_v38/types/InputPeer.md | 5 + old_docs/API_docs_v38/types/InputPhoto.md | 2 + old_docs/API_docs_v38/types/InputUser.md | 5 + old_docs/API_docs_v38/types/Peer.md | 5 + old_docs/API_docs_v38/types/User.md | 5 + old_docs/API_docs_v40/Lang.php | 2328 +++++ .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v40/constructors/botInfo.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../API_docs_v40/constructors/chatFull.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v40/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_suggested.md | 2 +- .../API_docs_v40/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../constructors/inputMediaUploadedAudio.md | 4 +- .../inputMediaUploadedDocument.md | 6 +- .../constructors/inputMediaUploadedPhoto.md | 2 +- .../inputMediaUploadedThumbDocument.md | 8 +- .../inputMediaUploadedThumbVideo.md | 6 +- .../constructors/inputMediaUploadedVideo.md | 4 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/keyboardButtonRow.md | 2 +- old_docs/API_docs_v40/constructors/message.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- .../constructors/messages_stickers.md | 2 +- old_docs/API_docs_v40/constructors/photo.md | 2 +- .../API_docs_v40/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- .../API_docs_v40/constructors/stickerPack.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- old_docs/API_docs_v40/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v40/constructors/wallPaper.md | 2 +- old_docs/API_docs_v40/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 39 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 27 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 29 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v40/methods/auth_checkPhone.md | 27 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v40/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v40/methods/auth_sendCall.md | 20 +- .../API_docs_v40/methods/auth_sendCode.md | 4 +- .../API_docs_v40/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v40/methods/auth_sendSms.md | 20 +- old_docs/API_docs_v40/methods/auth_signIn.md | 4 +- old_docs/API_docs_v40/methods/auth_signUp.md | 4 +- .../API_docs_v40/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getSuggested.md | 20 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v40/methods/contacts_search.md | 29 +- .../API_docs_v40/methods/contacts_unblock.md | 27 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v40/methods/help_getAppUpdate.md | 17 +- .../API_docs_v40/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v40/methods/help_getNearestDc.md | 17 +- .../API_docs_v40/methods/help_getSupport.md | 17 +- .../API_docs_v40/methods/help_saveAppLog.md | 19 +- .../API_docs_v40/methods/initConnection.md | 40 +- .../API_docs_v40/methods/invokeAfterMsg.md | 32 +- .../API_docs_v40/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v40/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_createChannel.md | 20 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChannelMessages.md | 24 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 24 +- .../methods/messages_getAllStickers.md | 17 +- .../methods/messages_getChannelDialogs.md | 20 +- .../API_docs_v40/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getImportantHistory.md | 22 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getStickers.md | 20 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_readChannelHistory.md | 22 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_requestEncryption.md | 4 +- .../API_docs_v40/methods/messages_search.md | 19 +- .../methods/messages_sendBroadcast.md | 26 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v40/methods/messages_startBot.md | 21 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v40/methods/updates_getState.md | 4 +- .../API_docs_v40/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v40/methods/users_getFullUser.md | 4 +- .../API_docs_v40/methods/users_getUsers.md | 32 +- old_docs/API_docs_v40/types/Chat.md | 5 + old_docs/API_docs_v40/types/InputDocument.md | 2 + .../API_docs_v40/types/InputEncryptedChat.md | 4 +- .../API_docs_v40/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v40/types/InputFile.md | 7 + old_docs/API_docs_v40/types/InputMedia.md | 2 + old_docs/API_docs_v40/types/InputPeer.md | 5 + old_docs/API_docs_v40/types/InputPhoto.md | 2 + old_docs/API_docs_v40/types/InputUser.md | 5 + old_docs/API_docs_v40/types/Peer.md | 5 + old_docs/API_docs_v40/types/User.md | 5 + old_docs/API_docs_v41/Lang.php | 2342 +++++ .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v41/constructors/botInfo.md | 2 +- .../API_docs_v41/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v41/constructors/chatFull.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v41/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_suggested.md | 2 +- .../API_docs_v41/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../constructors/inputMediaUploadedAudio.md | 4 +- .../inputMediaUploadedDocument.md | 6 +- .../constructors/inputMediaUploadedPhoto.md | 2 +- .../inputMediaUploadedThumbDocument.md | 8 +- .../inputMediaUploadedThumbVideo.md | 6 +- .../constructors/inputMediaUploadedVideo.md | 4 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/keyboardButtonRow.md | 2 +- old_docs/API_docs_v41/constructors/message.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- .../constructors/messages_stickers.md | 2 +- old_docs/API_docs_v41/constructors/photo.md | 2 +- .../API_docs_v41/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- .../API_docs_v41/constructors/stickerPack.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- old_docs/API_docs_v41/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v41/constructors/wallPaper.md | 2 +- old_docs/API_docs_v41/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 39 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 27 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 29 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v41/methods/auth_checkPhone.md | 27 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v41/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v41/methods/auth_sendCall.md | 20 +- .../API_docs_v41/methods/auth_sendCode.md | 4 +- .../API_docs_v41/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v41/methods/auth_sendSms.md | 20 +- old_docs/API_docs_v41/methods/auth_signIn.md | 4 +- old_docs/API_docs_v41/methods/auth_signUp.md | 4 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getDialogs.md | 20 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getImportantHistory.md | 22 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_kickFromChannel.md | 24 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_toggleComments.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v41/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getSuggested.md | 20 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v41/methods/contacts_search.md | 29 +- .../API_docs_v41/methods/contacts_unblock.md | 27 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v41/methods/help_getAppUpdate.md | 17 +- .../API_docs_v41/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v41/methods/help_getNearestDc.md | 17 +- .../API_docs_v41/methods/help_getSupport.md | 17 +- .../API_docs_v41/methods/help_saveAppLog.md | 19 +- .../API_docs_v41/methods/initConnection.md | 40 +- .../API_docs_v41/methods/invokeAfterMsg.md | 32 +- .../API_docs_v41/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v41/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deactivateChat.md | 22 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllStickers.md | 17 +- .../API_docs_v41/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getStickers.md | 20 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../API_docs_v41/methods/messages_search.md | 19 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendBroadcast.md | 26 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v41/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v41/methods/updates_getState.md | 4 +- .../API_docs_v41/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v41/methods/users_getFullUser.md | 4 +- .../API_docs_v41/methods/users_getUsers.md | 32 +- old_docs/API_docs_v41/types/Chat.md | 5 + old_docs/API_docs_v41/types/InputChannel.md | 5 + old_docs/API_docs_v41/types/InputDocument.md | 2 + .../API_docs_v41/types/InputEncryptedChat.md | 4 +- .../API_docs_v41/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v41/types/InputFile.md | 7 + old_docs/API_docs_v41/types/InputMedia.md | 2 + old_docs/API_docs_v41/types/InputPeer.md | 5 + old_docs/API_docs_v41/types/InputPhoto.md | 2 + old_docs/API_docs_v41/types/InputUser.md | 5 + old_docs/API_docs_v41/types/Peer.md | 5 + old_docs/API_docs_v41/types/User.md | 5 + .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v42/constructors/botInfo.md | 2 +- .../API_docs_v42/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v42/constructors/chatFull.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v42/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_suggested.md | 2 +- .../API_docs_v42/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../constructors/inputMediaUploadedAudio.md | 4 +- .../inputMediaUploadedDocument.md | 6 +- .../constructors/inputMediaUploadedPhoto.md | 2 +- .../inputMediaUploadedThumbDocument.md | 8 +- .../inputMediaUploadedThumbVideo.md | 6 +- .../constructors/inputMediaUploadedVideo.md | 4 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/keyboardButtonRow.md | 2 +- old_docs/API_docs_v42/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- .../constructors/messages_stickers.md | 2 +- old_docs/API_docs_v42/constructors/photo.md | 2 +- .../API_docs_v42/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- .../API_docs_v42/constructors/stickerPack.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- old_docs/API_docs_v42/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v42/constructors/wallPaper.md | 2 +- old_docs/API_docs_v42/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 39 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 27 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 29 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v42/methods/auth_checkPhone.md | 27 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v42/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v42/methods/auth_sendCall.md | 20 +- .../API_docs_v42/methods/auth_sendCode.md | 4 +- .../API_docs_v42/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v42/methods/auth_sendSms.md | 20 +- old_docs/API_docs_v42/methods/auth_signIn.md | 4 +- old_docs/API_docs_v42/methods/auth_signUp.md | 4 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getDialogs.md | 20 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getImportantHistory.md | 22 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_kickFromChannel.md | 24 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_toggleComments.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v42/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getSuggested.md | 20 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v42/methods/contacts_search.md | 29 +- .../API_docs_v42/methods/contacts_unblock.md | 27 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v42/methods/help_getAppUpdate.md | 17 +- .../API_docs_v42/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v42/methods/help_getNearestDc.md | 17 +- .../API_docs_v42/methods/help_getSupport.md | 17 +- .../API_docs_v42/methods/help_saveAppLog.md | 19 +- .../API_docs_v42/methods/initConnection.md | 40 +- .../API_docs_v42/methods/invokeAfterMsg.md | 32 +- .../API_docs_v42/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v42/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllStickers.md | 17 +- .../API_docs_v42/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getStickers.md | 20 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../API_docs_v42/methods/messages_search.md | 19 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendBroadcast.md | 26 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v42/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v42/methods/updates_getState.md | 4 +- .../API_docs_v42/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v42/methods/users_getFullUser.md | 4 +- .../API_docs_v42/methods/users_getUsers.md | 32 +- old_docs/API_docs_v42/types/Chat.md | 5 + old_docs/API_docs_v42/types/InputChannel.md | 5 + old_docs/API_docs_v42/types/InputDocument.md | 2 + .../API_docs_v42/types/InputEncryptedChat.md | 4 +- .../API_docs_v42/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v42/types/InputFile.md | 7 + old_docs/API_docs_v42/types/InputMedia.md | 2 + old_docs/API_docs_v42/types/InputPeer.md | 5 + old_docs/API_docs_v42/types/InputPhoto.md | 2 + old_docs/API_docs_v42/types/InputUser.md | 5 + old_docs/API_docs_v42/types/Peer.md | 5 + old_docs/API_docs_v42/types/User.md | 5 + old_docs/API_docs_v44/Lang.php | 2344 +++++ .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v44/constructors/botInfo.md | 2 +- .../API_docs_v44/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v44/constructors/chatFull.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v44/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_suggested.md | 2 +- .../API_docs_v44/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../constructors/inputMediaUploadedAudio.md | 4 +- .../inputMediaUploadedDocument.md | 6 +- .../constructors/inputMediaUploadedPhoto.md | 2 +- .../inputMediaUploadedThumbDocument.md | 8 +- .../inputMediaUploadedThumbVideo.md | 6 +- .../constructors/inputMediaUploadedVideo.md | 4 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/keyboardButtonRow.md | 2 +- old_docs/API_docs_v44/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- .../constructors/messages_stickers.md | 2 +- old_docs/API_docs_v44/constructors/photo.md | 2 +- .../API_docs_v44/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- .../API_docs_v44/constructors/stickerPack.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- old_docs/API_docs_v44/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v44/constructors/wallPaper.md | 2 +- old_docs/API_docs_v44/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 39 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 27 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 29 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v44/methods/auth_checkPhone.md | 27 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v44/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v44/methods/auth_sendCall.md | 20 +- .../API_docs_v44/methods/auth_sendCode.md | 4 +- .../API_docs_v44/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v44/methods/auth_sendSms.md | 20 +- old_docs/API_docs_v44/methods/auth_signIn.md | 4 +- old_docs/API_docs_v44/methods/auth_signUp.md | 4 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getDialogs.md | 20 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getImportantHistory.md | 22 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_kickFromChannel.md | 24 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_toggleComments.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v44/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getSuggested.md | 20 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v44/methods/contacts_search.md | 29 +- .../API_docs_v44/methods/contacts_unblock.md | 27 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v44/methods/help_getAppUpdate.md | 17 +- .../API_docs_v44/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v44/methods/help_getNearestDc.md | 17 +- .../API_docs_v44/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- .../API_docs_v44/methods/help_saveAppLog.md | 19 +- .../API_docs_v44/methods/initConnection.md | 40 +- .../API_docs_v44/methods/invokeAfterMsg.md | 32 +- .../API_docs_v44/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v44/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllStickers.md | 17 +- .../API_docs_v44/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getStickers.md | 20 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../API_docs_v44/methods/messages_search.md | 19 +- .../methods/messages_searchGifs.md | 17 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendBroadcast.md | 26 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v44/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v44/methods/updates_getState.md | 4 +- .../API_docs_v44/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v44/methods/users_getFullUser.md | 4 +- .../API_docs_v44/methods/users_getUsers.md | 32 +- old_docs/API_docs_v44/types/Chat.md | 5 + old_docs/API_docs_v44/types/InputChannel.md | 5 + old_docs/API_docs_v44/types/InputDocument.md | 2 + .../API_docs_v44/types/InputEncryptedChat.md | 4 +- .../API_docs_v44/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v44/types/InputFile.md | 7 + old_docs/API_docs_v44/types/InputMedia.md | 2 + old_docs/API_docs_v44/types/InputPeer.md | 5 + old_docs/API_docs_v44/types/InputPhoto.md | 2 + old_docs/API_docs_v44/types/InputUser.md | 5 + old_docs/API_docs_v44/types/Peer.md | 5 + old_docs/API_docs_v44/types/User.md | 5 + old_docs/API_docs_v45/Lang.php | 2346 +++++ .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v45/constructors/botInfo.md | 2 +- .../constructors/botInlineMessageText.md | 2 +- .../API_docs_v45/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v45/constructors/chatFull.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v45/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_suggested.md | 2 +- .../API_docs_v45/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../constructors/inputBotInlineMessageText.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../constructors/inputMediaUploadedAudio.md | 4 +- .../inputMediaUploadedDocument.md | 6 +- .../constructors/inputMediaUploadedPhoto.md | 2 +- .../inputMediaUploadedThumbDocument.md | 8 +- .../inputMediaUploadedThumbVideo.md | 6 +- .../constructors/inputMediaUploadedVideo.md | 4 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/keyboardButtonRow.md | 2 +- old_docs/API_docs_v45/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_botResults.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_savedGifs.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- .../constructors/messages_stickers.md | 2 +- old_docs/API_docs_v45/constructors/photo.md | 2 +- .../API_docs_v45/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- .../API_docs_v45/constructors/stickerPack.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- old_docs/API_docs_v45/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v45/constructors/wallPaper.md | 2 +- old_docs/API_docs_v45/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 39 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 27 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 29 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v45/methods/auth_checkPhone.md | 27 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v45/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v45/methods/auth_sendCall.md | 20 +- .../API_docs_v45/methods/auth_sendCode.md | 4 +- .../API_docs_v45/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v45/methods/auth_sendSms.md | 20 +- old_docs/API_docs_v45/methods/auth_signIn.md | 4 +- old_docs/API_docs_v45/methods/auth_signUp.md | 4 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getDialogs.md | 20 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getImportantHistory.md | 22 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_kickFromChannel.md | 24 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_toggleComments.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v45/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getSuggested.md | 20 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v45/methods/contacts_search.md | 29 +- .../API_docs_v45/methods/contacts_unblock.md | 27 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v45/methods/help_getAppUpdate.md | 17 +- .../API_docs_v45/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v45/methods/help_getNearestDc.md | 17 +- .../API_docs_v45/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- .../API_docs_v45/methods/help_saveAppLog.md | 19 +- .../API_docs_v45/methods/initConnection.md | 40 +- .../API_docs_v45/methods/invokeAfterMsg.md | 32 +- .../API_docs_v45/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v45/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllStickers.md | 17 +- .../API_docs_v45/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getInlineBotResults.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getSavedGifs.md | 17 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getStickers.md | 20 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../API_docs_v45/methods/messages_saveGif.md | 19 +- .../API_docs_v45/methods/messages_search.md | 19 +- .../methods/messages_searchGifs.md | 17 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendBroadcast.md | 26 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendInlineBotResult.md | 19 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setInlineBotResults.md | 22 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v45/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v45/methods/updates_getState.md | 4 +- .../API_docs_v45/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v45/methods/users_getFullUser.md | 4 +- .../API_docs_v45/methods/users_getUsers.md | 32 +- old_docs/API_docs_v45/types/Chat.md | 5 + old_docs/API_docs_v45/types/InputChannel.md | 5 + old_docs/API_docs_v45/types/InputDocument.md | 2 + .../API_docs_v45/types/InputEncryptedChat.md | 4 +- .../API_docs_v45/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v45/types/InputFile.md | 7 + old_docs/API_docs_v45/types/InputMedia.md | 2 + old_docs/API_docs_v45/types/InputPeer.md | 5 + old_docs/API_docs_v45/types/InputPhoto.md | 2 + old_docs/API_docs_v45/types/InputUser.md | 5 + old_docs/API_docs_v45/types/Peer.md | 5 + old_docs/API_docs_v45/types/User.md | 5 + .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v46/constructors/botInfo.md | 2 +- .../constructors/botInlineMessageText.md | 2 +- .../API_docs_v46/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v46/constructors/chatFull.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v46/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_suggested.md | 2 +- .../API_docs_v46/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../constructors/inputBotInlineMessageText.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../constructors/inputMediaUploadedAudio.md | 4 +- .../inputMediaUploadedDocument.md | 6 +- .../constructors/inputMediaUploadedPhoto.md | 2 +- .../inputMediaUploadedThumbDocument.md | 8 +- .../inputMediaUploadedThumbVideo.md | 6 +- .../constructors/inputMediaUploadedVideo.md | 4 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/keyboardButtonRow.md | 2 +- old_docs/API_docs_v46/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_botResults.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_savedGifs.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- .../constructors/messages_stickers.md | 2 +- old_docs/API_docs_v46/constructors/photo.md | 2 +- .../API_docs_v46/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- .../API_docs_v46/constructors/stickerPack.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- old_docs/API_docs_v46/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v46/constructors/wallPaper.md | 2 +- old_docs/API_docs_v46/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 39 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 27 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 29 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v46/methods/auth_checkPhone.md | 27 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v46/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v46/methods/auth_sendCall.md | 20 +- .../API_docs_v46/methods/auth_sendCode.md | 4 +- .../API_docs_v46/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v46/methods/auth_sendSms.md | 20 +- old_docs/API_docs_v46/methods/auth_signIn.md | 4 +- old_docs/API_docs_v46/methods/auth_signUp.md | 4 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getDialogs.md | 20 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getImportantHistory.md | 22 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_kickFromChannel.md | 24 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_toggleComments.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v46/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getSuggested.md | 20 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v46/methods/contacts_search.md | 29 +- .../API_docs_v46/methods/contacts_unblock.md | 27 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v46/methods/help_getAppUpdate.md | 17 +- .../API_docs_v46/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v46/methods/help_getNearestDc.md | 17 +- .../API_docs_v46/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- .../API_docs_v46/methods/help_saveAppLog.md | 19 +- .../API_docs_v46/methods/initConnection.md | 40 +- .../API_docs_v46/methods/invokeAfterMsg.md | 32 +- .../API_docs_v46/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v46/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllStickers.md | 17 +- .../API_docs_v46/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getInlineBotResults.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getSavedGifs.md | 17 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getStickers.md | 20 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../API_docs_v46/methods/messages_saveGif.md | 19 +- .../API_docs_v46/methods/messages_search.md | 19 +- .../methods/messages_searchGifs.md | 17 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendBroadcast.md | 26 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendInlineBotResult.md | 19 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setInlineBotResults.md | 22 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v46/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v46/methods/updates_getState.md | 4 +- .../API_docs_v46/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v46/methods/users_getFullUser.md | 4 +- .../API_docs_v46/methods/users_getUsers.md | 32 +- old_docs/API_docs_v46/types/Chat.md | 5 + old_docs/API_docs_v46/types/InputChannel.md | 5 + old_docs/API_docs_v46/types/InputDocument.md | 2 + .../API_docs_v46/types/InputEncryptedChat.md | 4 +- .../API_docs_v46/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v46/types/InputFile.md | 7 + old_docs/API_docs_v46/types/InputMedia.md | 2 + old_docs/API_docs_v46/types/InputPeer.md | 5 + old_docs/API_docs_v46/types/InputPhoto.md | 2 + old_docs/API_docs_v46/types/InputUser.md | 5 + old_docs/API_docs_v46/types/Peer.md | 5 + old_docs/API_docs_v46/types/User.md | 5 + old_docs/API_docs_v51/Lang.php | 2348 +++++ .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v51/constructors/botInfo.md | 2 +- .../constructors/botInlineMessageText.md | 2 +- .../API_docs_v51/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v51/constructors/chatFull.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v51/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../API_docs_v51/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../constructors/inputBotInlineMessageText.md | 2 +- .../inputBotInlineResultDocument.md | 2 +- .../constructors/inputBotInlineResultPhoto.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../inputMediaUploadedDocument.md | 6 +- .../constructors/inputMediaUploadedPhoto.md | 2 +- .../inputMediaUploadedThumbDocument.md | 8 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/keyboardButtonRow.md | 2 +- old_docs/API_docs_v51/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_botResults.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_savedGifs.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- .../constructors/messages_stickers.md | 2 +- old_docs/API_docs_v51/constructors/photo.md | 2 +- .../API_docs_v51/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyInlineMarkup.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- .../API_docs_v51/constructors/stickerPack.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- old_docs/API_docs_v51/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v51/constructors/wallPaper.md | 2 +- old_docs/API_docs_v51/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 39 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 31 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 31 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../API_docs_v51/methods/auth_cancelCode.md | 29 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v51/methods/auth_checkPhone.md | 27 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v51/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../API_docs_v51/methods/auth_resendCode.md | 29 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v51/methods/auth_sendCode.md | 4 +- .../API_docs_v51/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v51/methods/auth_signIn.md | 4 +- old_docs/API_docs_v51/methods/auth_signUp.md | 4 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_exportMessageLink.md | 19 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getDialogs.md | 20 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getImportantHistory.md | 22 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_kickFromChannel.md | 24 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_toggleComments.md | 22 +- .../methods/channels_toggleInvites.md | 19 +- .../methods/channels_toggleSignatures.md | 19 +- .../methods/channels_updatePinnedMessage.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v51/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v51/methods/contacts_search.md | 29 +- .../API_docs_v51/methods/contacts_unblock.md | 27 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v51/methods/help_getAppUpdate.md | 17 +- .../API_docs_v51/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v51/methods/help_getNearestDc.md | 17 +- .../API_docs_v51/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- .../API_docs_v51/methods/help_saveAppLog.md | 19 +- .../API_docs_v51/methods/initConnection.md | 40 +- .../API_docs_v51/methods/invokeAfterMsg.md | 32 +- .../API_docs_v51/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v51/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_editInlineBotMessage.md | 22 +- .../methods/messages_editMessage.md | 24 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllStickers.md | 17 +- .../methods/messages_getBotCallbackAnswer.md | 19 +- .../API_docs_v51/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getInlineBotResults.md | 21 +- .../methods/messages_getMessageEditData.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getPeerSettings.md | 19 +- .../methods/messages_getSavedGifs.md | 17 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getStickers.md | 20 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_hideReportSpam.md | 19 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../API_docs_v51/methods/messages_saveGif.md | 19 +- .../API_docs_v51/methods/messages_search.md | 19 +- .../methods/messages_searchGifs.md | 17 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendBroadcast.md | 26 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendInlineBotResult.md | 19 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_setBotCallbackAnswer.md | 20 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setInlineBotResults.md | 22 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v51/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v51/methods/updates_getState.md | 4 +- .../API_docs_v51/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v51/methods/users_getFullUser.md | 4 +- .../API_docs_v51/methods/users_getUsers.md | 32 +- old_docs/API_docs_v51/types/Chat.md | 5 + old_docs/API_docs_v51/types/InputChannel.md | 5 + old_docs/API_docs_v51/types/InputDocument.md | 2 + .../API_docs_v51/types/InputEncryptedChat.md | 4 +- .../API_docs_v51/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v51/types/InputFile.md | 7 + old_docs/API_docs_v51/types/InputMedia.md | 2 + old_docs/API_docs_v51/types/InputPeer.md | 5 + old_docs/API_docs_v51/types/InputPhoto.md | 2 + old_docs/API_docs_v51/types/InputUser.md | 5 + old_docs/API_docs_v51/types/Peer.md | 5 + old_docs/API_docs_v51/types/User.md | 5 + .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v53/constructors/botInfo.md | 2 +- .../constructors/botInlineMessageText.md | 2 +- .../API_docs_v53/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v53/constructors/chatFull.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v53/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_topPeers.md | 2 +- .../API_docs_v53/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../API_docs_v53/constructors/draftMessage.md | 2 +- .../constructors/inputBotInlineMessageText.md | 2 +- .../inputBotInlineResultDocument.md | 2 +- .../constructors/inputBotInlineResultPhoto.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../inputMediaUploadedDocument.md | 6 +- .../constructors/inputMediaUploadedPhoto.md | 2 +- .../inputMediaUploadedThumbDocument.md | 8 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/keyboardButtonRow.md | 2 +- old_docs/API_docs_v53/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_botResults.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_peerDialogs.md | 2 +- .../constructors/messages_savedGifs.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- .../constructors/messages_stickers.md | 2 +- old_docs/API_docs_v53/constructors/photo.md | 2 +- .../API_docs_v53/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyInlineMarkup.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- .../API_docs_v53/constructors/stickerPack.md | 2 +- .../constructors/topPeerCategoryPeers.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- old_docs/API_docs_v53/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v53/constructors/wallPaper.md | 2 +- old_docs/API_docs_v53/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 29 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 31 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 31 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../API_docs_v53/methods/auth_cancelCode.md | 29 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v53/methods/auth_checkPhone.md | 27 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v53/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../API_docs_v53/methods/auth_resendCode.md | 29 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v53/methods/auth_sendCode.md | 4 +- .../API_docs_v53/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v53/methods/auth_signIn.md | 4 +- old_docs/API_docs_v53/methods/auth_signUp.md | 4 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_exportMessageLink.md | 19 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_kickFromChannel.md | 24 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_toggleInvites.md | 19 +- .../methods/channels_toggleSignatures.md | 19 +- .../methods/channels_updatePinnedMessage.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v53/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getTopPeers.md | 41 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resetTopPeerRating.md | 19 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v53/methods/contacts_search.md | 29 +- .../API_docs_v53/methods/contacts_unblock.md | 27 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v53/methods/help_getAppUpdate.md | 17 +- .../API_docs_v53/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v53/methods/help_getNearestDc.md | 17 +- .../API_docs_v53/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- .../API_docs_v53/methods/help_saveAppLog.md | 19 +- .../API_docs_v53/methods/initConnection.md | 40 +- .../API_docs_v53/methods/invokeAfterMsg.md | 32 +- .../API_docs_v53/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v53/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_editInlineBotMessage.md | 22 +- .../methods/messages_editMessage.md | 24 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllDrafts.md | 17 +- .../methods/messages_getAllStickers.md | 17 +- .../methods/messages_getBotCallbackAnswer.md | 19 +- .../API_docs_v53/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getInlineBotResults.md | 21 +- .../methods/messages_getMessageEditData.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getPeerDialogs.md | 21 +- .../methods/messages_getPeerSettings.md | 19 +- .../methods/messages_getSavedGifs.md | 17 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getStickers.md | 20 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_hideReportSpam.md | 19 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../methods/messages_saveDraft.md | 21 +- .../API_docs_v53/methods/messages_saveGif.md | 19 +- .../API_docs_v53/methods/messages_search.md | 19 +- .../methods/messages_searchGifs.md | 17 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendBroadcast.md | 26 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendInlineBotResult.md | 19 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_setBotCallbackAnswer.md | 20 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setInlineBotResults.md | 22 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v53/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v53/methods/updates_getState.md | 4 +- .../API_docs_v53/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v53/methods/users_getFullUser.md | 4 +- .../API_docs_v53/methods/users_getUsers.md | 32 +- old_docs/API_docs_v53/types/Chat.md | 5 + old_docs/API_docs_v53/types/InputChannel.md | 5 + old_docs/API_docs_v53/types/InputDocument.md | 2 + .../API_docs_v53/types/InputEncryptedChat.md | 4 +- .../API_docs_v53/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v53/types/InputFile.md | 7 + old_docs/API_docs_v53/types/InputMedia.md | 2 + old_docs/API_docs_v53/types/InputPeer.md | 5 + old_docs/API_docs_v53/types/InputPhoto.md | 2 + old_docs/API_docs_v53/types/InputUser.md | 5 + old_docs/API_docs_v53/types/Peer.md | 5 + old_docs/API_docs_v53/types/User.md | 5 + old_docs/API_docs_v55/Lang.php | 2352 +++++ .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v55/constructors/botInfo.md | 2 +- .../constructors/botInlineMessageText.md | 2 +- .../API_docs_v55/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v55/constructors/chatFull.md | 2 +- .../API_docs_v55/constructors/chatInvite.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v55/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_topPeers.md | 2 +- .../API_docs_v55/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../API_docs_v55/constructors/draftMessage.md | 2 +- .../constructors/inputBotInlineMessageText.md | 2 +- .../inputBotInlineResultDocument.md | 2 +- .../constructors/inputBotInlineResultPhoto.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../inputMediaUploadedDocument.md | 6 +- .../constructors/inputMediaUploadedPhoto.md | 2 +- .../inputMediaUploadedThumbDocument.md | 8 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/keyboardButtonRow.md | 2 +- old_docs/API_docs_v55/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_archivedStickers.md | 2 +- .../constructors/messages_botResults.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_featuredStickers.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_peerDialogs.md | 2 +- .../constructors/messages_recentStickers.md | 2 +- .../constructors/messages_savedGifs.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- ...messages_stickerSetInstallResultArchive.md | 2 +- .../constructors/messages_stickers.md | 2 +- old_docs/API_docs_v55/constructors/photo.md | 2 +- .../API_docs_v55/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyInlineMarkup.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- .../API_docs_v55/constructors/stickerPack.md | 2 +- .../constructors/topPeerCategoryPeers.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- old_docs/API_docs_v55/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v55/constructors/wallPaper.md | 2 +- old_docs/API_docs_v55/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_confirmPhone.md | 29 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 29 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 31 +- .../methods/account_sendConfirmPhoneCode.md | 31 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 31 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../API_docs_v55/methods/auth_cancelCode.md | 29 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v55/methods/auth_checkPhone.md | 27 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v55/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../API_docs_v55/methods/auth_resendCode.md | 29 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v55/methods/auth_sendCode.md | 4 +- .../API_docs_v55/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v55/methods/auth_signIn.md | 4 +- old_docs/API_docs_v55/methods/auth_signUp.md | 4 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_exportMessageLink.md | 19 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_kickFromChannel.md | 24 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_toggleInvites.md | 19 +- .../methods/channels_toggleSignatures.md | 19 +- .../methods/channels_updatePinnedMessage.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v55/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getTopPeers.md | 41 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resetTopPeerRating.md | 19 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v55/methods/contacts_search.md | 29 +- .../API_docs_v55/methods/contacts_unblock.md | 27 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v55/methods/help_getAppUpdate.md | 17 +- .../API_docs_v55/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v55/methods/help_getNearestDc.md | 17 +- .../API_docs_v55/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- .../API_docs_v55/methods/help_saveAppLog.md | 19 +- .../API_docs_v55/methods/initConnection.md | 40 +- .../API_docs_v55/methods/invokeAfterMsg.md | 32 +- .../API_docs_v55/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v55/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_clearRecentStickers.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_editInlineBotMessage.md | 22 +- .../methods/messages_editMessage.md | 24 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllDrafts.md | 17 +- .../methods/messages_getAllStickers.md | 17 +- .../methods/messages_getArchivedStickers.md | 17 +- .../methods/messages_getBotCallbackAnswer.md | 19 +- .../API_docs_v55/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFeaturedStickers.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getInlineBotResults.md | 21 +- .../methods/messages_getMessageEditData.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getPeerDialogs.md | 21 +- .../methods/messages_getPeerSettings.md | 19 +- .../methods/messages_getRecentStickers.md | 17 +- .../methods/messages_getSavedGifs.md | 17 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getStickers.md | 20 +- .../methods/messages_getUnusedStickers.md | 20 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_hideReportSpam.md | 19 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readFeaturedStickers.md | 17 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../methods/messages_saveDraft.md | 21 +- .../API_docs_v55/methods/messages_saveGif.md | 19 +- .../methods/messages_saveRecentSticker.md | 19 +- .../API_docs_v55/methods/messages_search.md | 19 +- .../methods/messages_searchGifs.md | 17 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendBroadcast.md | 26 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendInlineBotResult.md | 19 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_setBotCallbackAnswer.md | 20 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setInlineBotResults.md | 22 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v55/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v55/methods/updates_getState.md | 4 +- .../API_docs_v55/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v55/methods/users_getFullUser.md | 4 +- .../API_docs_v55/methods/users_getUsers.md | 32 +- old_docs/API_docs_v55/types/Chat.md | 5 + old_docs/API_docs_v55/types/InputChannel.md | 5 + old_docs/API_docs_v55/types/InputDocument.md | 2 + .../API_docs_v55/types/InputEncryptedChat.md | 4 +- .../API_docs_v55/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v55/types/InputFile.md | 7 + old_docs/API_docs_v55/types/InputMedia.md | 2 + old_docs/API_docs_v55/types/InputPeer.md | 5 + old_docs/API_docs_v55/types/InputPhoto.md | 2 + old_docs/API_docs_v55/types/InputUser.md | 5 + old_docs/API_docs_v55/types/Peer.md | 5 + old_docs/API_docs_v55/types/User.md | 5 + .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v57/constructors/botInfo.md | 2 +- .../constructors/botInlineMessageText.md | 2 +- .../API_docs_v57/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v57/constructors/chatFull.md | 2 +- .../API_docs_v57/constructors/chatInvite.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v57/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_topPeers.md | 2 +- .../API_docs_v57/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../API_docs_v57/constructors/draftMessage.md | 2 +- .../constructors/inputBotInlineMessageText.md | 2 +- .../inputBotInlineResultDocument.md | 2 +- .../constructors/inputBotInlineResultPhoto.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputGameShortName.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../inputMediaUploadedDocument.md | 8 +- .../constructors/inputMediaUploadedPhoto.md | 6 +- .../inputMediaUploadedThumbDocument.md | 10 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../inputStickeredMediaDocument.md | 2 +- .../constructors/inputStickeredMediaPhoto.md | 2 +- .../constructors/keyboardButtonRow.md | 2 +- old_docs/API_docs_v57/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_archivedStickers.md | 2 +- .../constructors/messages_botResults.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_featuredStickers.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_highScores.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_peerDialogs.md | 2 +- .../constructors/messages_recentStickers.md | 2 +- .../constructors/messages_savedGifs.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- ...messages_stickerSetInstallResultArchive.md | 2 +- .../constructors/messages_stickers.md | 2 +- old_docs/API_docs_v57/constructors/photo.md | 2 +- .../API_docs_v57/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyInlineMarkup.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- .../API_docs_v57/constructors/stickerPack.md | 2 +- .../constructors/stickerSetMultiCovered.md | 2 +- .../constructors/topPeerCategoryPeers.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- old_docs/API_docs_v57/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v57/constructors/wallPaper.md | 2 +- old_docs/API_docs_v57/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_confirmPhone.md | 29 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 29 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 31 +- .../methods/account_sendConfirmPhoneCode.md | 31 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 31 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../API_docs_v57/methods/auth_cancelCode.md | 29 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v57/methods/auth_checkPhone.md | 27 +- .../methods/auth_dropTempAuthKeys.md | 32 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v57/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../API_docs_v57/methods/auth_resendCode.md | 29 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v57/methods/auth_sendCode.md | 4 +- .../API_docs_v57/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v57/methods/auth_signIn.md | 4 +- old_docs/API_docs_v57/methods/auth_signUp.md | 4 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_exportMessageLink.md | 19 +- .../channels_getAdminedPublicChannels.md | 17 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_kickFromChannel.md | 24 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_toggleInvites.md | 19 +- .../methods/channels_toggleSignatures.md | 19 +- .../methods/channels_updatePinnedMessage.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v57/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getTopPeers.md | 41 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resetTopPeerRating.md | 19 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v57/methods/contacts_search.md | 29 +- .../API_docs_v57/methods/contacts_unblock.md | 27 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v57/methods/help_getAppUpdate.md | 17 +- .../API_docs_v57/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v57/methods/help_getNearestDc.md | 17 +- .../API_docs_v57/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- .../API_docs_v57/methods/help_saveAppLog.md | 19 +- .../API_docs_v57/methods/initConnection.md | 40 +- .../API_docs_v57/methods/invokeAfterMsg.md | 32 +- .../API_docs_v57/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v57/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_clearRecentStickers.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_editInlineBotMessage.md | 22 +- .../methods/messages_editMessage.md | 24 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllDrafts.md | 17 +- .../methods/messages_getAllStickers.md | 17 +- .../methods/messages_getArchivedStickers.md | 17 +- .../methods/messages_getAttachedStickers.md | 17 +- .../methods/messages_getBotCallbackAnswer.md | 19 +- .../API_docs_v57/methods/messages_getChats.md | 22 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFeaturedStickers.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getGameHighScores.md | 24 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getInlineBotResults.md | 21 +- .../messages_getInlineGameHighScores.md | 22 +- .../methods/messages_getMaskStickers.md | 17 +- .../methods/messages_getMessageEditData.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getPeerDialogs.md | 21 +- .../methods/messages_getPeerSettings.md | 19 +- .../methods/messages_getRecentStickers.md | 17 +- .../methods/messages_getSavedGifs.md | 17 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_hideReportSpam.md | 19 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readFeaturedStickers.md | 19 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../methods/messages_saveDraft.md | 21 +- .../API_docs_v57/methods/messages_saveGif.md | 19 +- .../methods/messages_saveRecentSticker.md | 19 +- .../API_docs_v57/methods/messages_search.md | 19 +- .../methods/messages_searchGifs.md | 17 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendInlineBotResult.md | 19 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_setBotCallbackAnswer.md | 20 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setGameScore.md | 24 +- .../methods/messages_setInlineBotResults.md | 22 +- .../methods/messages_setInlineGameScore.md | 22 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v57/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v57/methods/updates_getState.md | 4 +- .../API_docs_v57/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v57/methods/users_getFullUser.md | 4 +- .../API_docs_v57/methods/users_getUsers.md | 32 +- old_docs/API_docs_v57/types/Chat.md | 5 + old_docs/API_docs_v57/types/InputChannel.md | 5 + old_docs/API_docs_v57/types/InputDocument.md | 2 + .../API_docs_v57/types/InputEncryptedChat.md | 4 +- .../API_docs_v57/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v57/types/InputFile.md | 7 + old_docs/API_docs_v57/types/InputMedia.md | 2 + old_docs/API_docs_v57/types/InputPeer.md | 5 + old_docs/API_docs_v57/types/InputPhoto.md | 2 + old_docs/API_docs_v57/types/InputUser.md | 5 + old_docs/API_docs_v57/types/Peer.md | 5 + old_docs/API_docs_v57/types/User.md | 5 + old_docs/API_docs_v62/Lang.php | 2358 +++++ .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v62/constructors/botInfo.md | 2 +- .../constructors/botInlineMessageText.md | 2 +- .../API_docs_v62/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v62/constructors/chatFull.md | 2 +- .../API_docs_v62/constructors/chatInvite.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v62/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_topPeers.md | 2 +- .../API_docs_v62/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../API_docs_v62/constructors/draftMessage.md | 2 +- .../constructors/help_appChangelog.md | 2 +- .../constructors/inputBotInlineMessageText.md | 2 +- .../inputBotInlineResultDocument.md | 2 +- .../constructors/inputBotInlineResultPhoto.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputGameShortName.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../inputMediaUploadedDocument.md | 8 +- .../constructors/inputMediaUploadedPhoto.md | 6 +- .../inputMediaUploadedThumbDocument.md | 10 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../inputStickeredMediaDocument.md | 2 +- .../constructors/inputStickeredMediaPhoto.md | 2 +- .../constructors/keyboardButtonRow.md | 2 +- old_docs/API_docs_v62/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_archivedStickers.md | 2 +- .../constructors/messages_botResults.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_chatsSlice.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_featuredStickers.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_highScores.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_peerDialogs.md | 2 +- .../constructors/messages_recentStickers.md | 2 +- .../constructors/messages_savedGifs.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- ...messages_stickerSetInstallResultArchive.md | 2 +- .../constructors/messages_stickers.md | 2 +- .../constructors/pageBlockCollage.md | 2 +- .../constructors/pageBlockEmbedPost.md | 2 +- .../constructors/pageBlockList.md | 2 +- .../constructors/pageBlockSlideshow.md | 2 +- .../API_docs_v62/constructors/pageFull.md | 2 +- .../API_docs_v62/constructors/pagePart.md | 2 +- .../API_docs_v62/constructors/phoneCall.md | 2 +- .../constructors/phone_phoneCall.md | 2 +- old_docs/API_docs_v62/constructors/photo.md | 2 +- .../API_docs_v62/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyInlineMarkup.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- .../API_docs_v62/constructors/stickerPack.md | 2 +- .../constructors/stickerSetMultiCovered.md | 2 +- .../API_docs_v62/constructors/textConcat.md | 2 +- .../constructors/topPeerCategoryPeers.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePinnedDialogs.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateServiceNotification.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- old_docs/API_docs_v62/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v62/constructors/wallPaper.md | 2 +- old_docs/API_docs_v62/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_confirmPhone.md | 29 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 29 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 31 +- .../methods/account_sendConfirmPhoneCode.md | 31 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 31 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../API_docs_v62/methods/auth_cancelCode.md | 29 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v62/methods/auth_checkPhone.md | 27 +- .../methods/auth_dropTempAuthKeys.md | 32 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v62/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../API_docs_v62/methods/auth_resendCode.md | 29 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v62/methods/auth_sendCode.md | 4 +- .../API_docs_v62/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v62/methods/auth_signIn.md | 4 +- old_docs/API_docs_v62/methods/auth_signUp.md | 4 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_exportMessageLink.md | 19 +- .../channels_getAdminedPublicChannels.md | 17 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_kickFromChannel.md | 24 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_toggleInvites.md | 19 +- .../methods/channels_toggleSignatures.md | 19 +- .../methods/channels_updatePinnedMessage.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v62/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getTopPeers.md | 41 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resetTopPeerRating.md | 19 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v62/methods/contacts_search.md | 29 +- .../API_docs_v62/methods/contacts_unblock.md | 27 +- .../API_docs_v62/methods/destroy_auth_key.md | 20 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v62/methods/help_getAppUpdate.md | 17 +- .../API_docs_v62/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v62/methods/help_getNearestDc.md | 17 +- .../API_docs_v62/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- .../API_docs_v62/methods/help_saveAppLog.md | 19 +- .../methods/help_setBotUpdatesStatus.md | 20 +- .../API_docs_v62/methods/initConnection.md | 40 +- .../API_docs_v62/methods/invokeAfterMsg.md | 32 +- .../API_docs_v62/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v62/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_clearRecentStickers.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_editInlineBotMessage.md | 22 +- .../methods/messages_editMessage.md | 24 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllChats.md | 19 +- .../methods/messages_getAllDrafts.md | 17 +- .../methods/messages_getAllStickers.md | 17 +- .../methods/messages_getArchivedStickers.md | 17 +- .../methods/messages_getAttachedStickers.md | 17 +- .../methods/messages_getBotCallbackAnswer.md | 19 +- .../API_docs_v62/methods/messages_getChats.md | 22 +- .../methods/messages_getCommonChats.md | 19 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFeaturedStickers.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getGameHighScores.md | 24 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getInlineBotResults.md | 21 +- .../messages_getInlineGameHighScores.md | 22 +- .../methods/messages_getMaskStickers.md | 17 +- .../methods/messages_getMessageEditData.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getPeerDialogs.md | 21 +- .../methods/messages_getPeerSettings.md | 19 +- .../methods/messages_getPinnedDialogs.md | 17 +- .../methods/messages_getRecentStickers.md | 17 +- .../methods/messages_getSavedGifs.md | 17 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getWebPage.md | 17 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_hideReportSpam.md | 19 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readFeaturedStickers.md | 19 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderPinnedDialogs.md | 21 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportEncryptedSpam.md | 19 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../methods/messages_saveDraft.md | 21 +- .../API_docs_v62/methods/messages_saveGif.md | 19 +- .../methods/messages_saveRecentSticker.md | 19 +- .../API_docs_v62/methods/messages_search.md | 19 +- .../methods/messages_searchGifs.md | 17 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendInlineBotResult.md | 19 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_setBotCallbackAnswer.md | 20 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setGameScore.md | 24 +- .../methods/messages_setInlineBotResults.md | 22 +- .../methods/messages_setInlineGameScore.md | 22 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v62/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_toggleDialogPin.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../API_docs_v62/methods/phone_acceptCall.md | 4 +- .../API_docs_v62/methods/phone_discardCall.md | 4 +- .../methods/phone_receivedCall.md | 17 +- .../API_docs_v62/methods/phone_requestCall.md | 4 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v62/methods/updates_getState.md | 4 +- .../API_docs_v62/methods/upload_getFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v62/methods/users_getFullUser.md | 4 +- .../API_docs_v62/methods/users_getUsers.md | 32 +- old_docs/API_docs_v62/types/Chat.md | 5 + old_docs/API_docs_v62/types/InputChannel.md | 5 + old_docs/API_docs_v62/types/InputDocument.md | 2 + .../API_docs_v62/types/InputEncryptedChat.md | 4 +- .../API_docs_v62/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v62/types/InputFile.md | 7 + old_docs/API_docs_v62/types/InputMedia.md | 2 + old_docs/API_docs_v62/types/InputPeer.md | 5 + old_docs/API_docs_v62/types/InputPhoto.md | 2 + old_docs/API_docs_v62/types/InputUser.md | 5 + old_docs/API_docs_v62/types/Peer.md | 5 + old_docs/API_docs_v62/types/PhoneCall.md | 8 +- old_docs/API_docs_v62/types/User.md | 5 + old_docs/API_docs_v65/Lang.php | 2378 +++++ .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v65/constructors/botInfo.md | 2 +- .../constructors/botInlineMessageText.md | 2 +- .../API_docs_v65/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v65/constructors/chatFull.md | 2 +- .../API_docs_v65/constructors/chatInvite.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v65/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_topPeers.md | 2 +- .../API_docs_v65/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../API_docs_v65/constructors/draftMessage.md | 2 +- .../API_docs_v65/constructors/future_salts.md | 2 +- .../constructors/inputBotInlineMessageText.md | 2 +- .../inputBotInlineResultDocument.md | 2 +- .../constructors/inputBotInlineResultPhoto.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputGameShortName.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../inputMediaUploadedDocument.md | 8 +- .../constructors/inputMediaUploadedPhoto.md | 6 +- .../inputMediaUploadedThumbDocument.md | 10 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../inputStickeredMediaDocument.md | 2 +- .../constructors/inputStickeredMediaPhoto.md | 2 +- .../constructors/inputWebDocument.md | 2 +- old_docs/API_docs_v65/constructors/invoice.md | 2 +- .../constructors/keyboardButtonRow.md | 2 +- old_docs/API_docs_v65/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_archivedStickers.md | 2 +- .../constructors/messages_botResults.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_chatsSlice.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_featuredStickers.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_highScores.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_peerDialogs.md | 2 +- .../constructors/messages_recentStickers.md | 2 +- .../constructors/messages_savedGifs.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- ...messages_stickerSetInstallResultArchive.md | 2 +- .../constructors/messages_stickers.md | 2 +- .../constructors/msg_resend_req.md | 2 +- .../API_docs_v65/constructors/msgs_ack.md | 2 +- .../constructors/msgs_all_info.md | 2 +- .../constructors/msgs_state_req.md | 2 +- .../constructors/pageBlockCollage.md | 2 +- .../constructors/pageBlockEmbedPost.md | 2 +- .../constructors/pageBlockList.md | 2 +- .../constructors/pageBlockSlideshow.md | 2 +- .../API_docs_v65/constructors/pageFull.md | 2 +- .../API_docs_v65/constructors/pagePart.md | 2 +- .../constructors/payments_paymentForm.md | 2 +- .../constructors/payments_paymentReceipt.md | 2 +- .../payments_validatedRequestedInfo.md | 2 +- .../API_docs_v65/constructors/phoneCall.md | 2 +- .../constructors/phone_phoneCall.md | 2 +- old_docs/API_docs_v65/constructors/photo.md | 2 +- .../API_docs_v65/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyInlineMarkup.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- old_docs/API_docs_v65/constructors/resPQ.md | 2 +- .../constructors/shippingOption.md | 2 +- .../API_docs_v65/constructors/stickerPack.md | 2 +- .../constructors/stickerSetMultiCovered.md | 2 +- .../API_docs_v65/constructors/textConcat.md | 2 +- .../constructors/topPeerCategoryPeers.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePinnedDialogs.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateServiceNotification.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- old_docs/API_docs_v65/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v65/constructors/wallPaper.md | 2 +- .../API_docs_v65/constructors/webDocument.md | 2 +- old_docs/API_docs_v65/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_confirmPhone.md | 29 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getTmpPassword.md | 29 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 29 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 31 +- .../methods/account_sendConfirmPhoneCode.md | 31 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 31 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../API_docs_v65/methods/auth_cancelCode.md | 29 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v65/methods/auth_checkPhone.md | 27 +- .../methods/auth_dropTempAuthKeys.md | 32 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v65/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../API_docs_v65/methods/auth_resendCode.md | 29 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v65/methods/auth_sendCode.md | 4 +- .../API_docs_v65/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v65/methods/auth_signIn.md | 4 +- old_docs/API_docs_v65/methods/auth_signUp.md | 4 +- .../methods/bots_answerWebhookJSONQuery.md | 20 +- .../methods/bots_sendCustomRequest.md | 20 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_exportMessageLink.md | 19 +- .../channels_getAdminedPublicChannels.md | 17 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_kickFromChannel.md | 24 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_toggleInvites.md | 19 +- .../methods/channels_toggleSignatures.md | 19 +- .../methods/channels_updatePinnedMessage.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v65/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getTopPeers.md | 41 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resetTopPeerRating.md | 19 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v65/methods/contacts_search.md | 29 +- .../API_docs_v65/methods/contacts_unblock.md | 27 +- .../methods/contest_saveDeveloperInfo.md | 20 +- .../API_docs_v65/methods/destroy_auth_key.md | 20 +- .../API_docs_v65/methods/destroy_session.md | 30 +- .../API_docs_v65/methods/get_future_salts.md | 30 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v65/methods/help_getAppUpdate.md | 17 +- .../API_docs_v65/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v65/methods/help_getNearestDc.md | 17 +- .../API_docs_v65/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- .../API_docs_v65/methods/help_saveAppLog.md | 19 +- .../methods/help_setBotUpdatesStatus.md | 20 +- .../API_docs_v65/methods/initConnection.md | 40 +- .../API_docs_v65/methods/invokeAfterMsg.md | 32 +- .../API_docs_v65/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v65/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_clearRecentStickers.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_editInlineBotMessage.md | 22 +- .../methods/messages_editMessage.md | 24 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllChats.md | 19 +- .../methods/messages_getAllDrafts.md | 17 +- .../methods/messages_getAllStickers.md | 17 +- .../methods/messages_getArchivedStickers.md | 17 +- .../methods/messages_getAttachedStickers.md | 17 +- .../methods/messages_getBotCallbackAnswer.md | 19 +- .../API_docs_v65/methods/messages_getChats.md | 22 +- .../methods/messages_getCommonChats.md | 19 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFeaturedStickers.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getGameHighScores.md | 24 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getInlineBotResults.md | 21 +- .../messages_getInlineGameHighScores.md | 22 +- .../methods/messages_getMaskStickers.md | 17 +- .../methods/messages_getMessageEditData.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getPeerDialogs.md | 21 +- .../methods/messages_getPeerSettings.md | 19 +- .../methods/messages_getPinnedDialogs.md | 17 +- .../methods/messages_getRecentStickers.md | 17 +- .../methods/messages_getSavedGifs.md | 17 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getWebPage.md | 17 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_hideReportSpam.md | 19 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readFeaturedStickers.md | 19 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderPinnedDialogs.md | 21 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportEncryptedSpam.md | 19 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../methods/messages_saveDraft.md | 21 +- .../API_docs_v65/methods/messages_saveGif.md | 19 +- .../methods/messages_saveRecentSticker.md | 19 +- .../API_docs_v65/methods/messages_search.md | 19 +- .../methods/messages_searchGifs.md | 17 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendInlineBotResult.md | 19 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_setBotCallbackAnswer.md | 20 +- .../messages_setBotPrecheckoutResults.md | 20 +- .../methods/messages_setBotShippingResults.md | 22 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setGameScore.md | 24 +- .../methods/messages_setInlineBotResults.md | 22 +- .../methods/messages_setInlineGameScore.md | 22 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v65/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_toggleDialogPin.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/payments_clearSavedInfo.md | 17 +- .../methods/payments_getPaymentForm.md | 17 +- .../methods/payments_getPaymentReceipt.md | 17 +- .../methods/payments_getSavedInfo.md | 17 +- .../methods/payments_sendPaymentForm.md | 17 +- .../methods/payments_validateRequestedInfo.md | 17 +- .../API_docs_v65/methods/phone_acceptCall.md | 4 +- .../API_docs_v65/methods/phone_confirmCall.md | 4 +- .../API_docs_v65/methods/phone_discardCall.md | 4 +- .../methods/phone_getCallConfig.md | 17 +- .../methods/phone_receivedCall.md | 17 +- .../API_docs_v65/methods/phone_requestCall.md | 4 +- .../methods/phone_saveCallDebug.md | 17 +- .../methods/phone_setCallRating.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- old_docs/API_docs_v65/methods/ping.md | 30 +- .../methods/ping_delay_disconnect.md | 32 +- .../API_docs_v65/methods/req_DH_params.md | 40 +- old_docs/API_docs_v65/methods/req_pq.md | 30 +- .../API_docs_v65/methods/rpc_drop_answer.md | 30 +- .../methods/set_client_DH_params.md | 34 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v65/methods/updates_getState.md | 4 +- .../API_docs_v65/methods/upload_getFile.md | 4 +- .../API_docs_v65/methods/upload_getWebFile.md | 17 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v65/methods/users_getFullUser.md | 4 +- .../API_docs_v65/methods/users_getUsers.md | 32 +- old_docs/API_docs_v65/types/Chat.md | 5 + old_docs/API_docs_v65/types/InputChannel.md | 5 + old_docs/API_docs_v65/types/InputDocument.md | 2 + .../API_docs_v65/types/InputEncryptedChat.md | 4 +- .../API_docs_v65/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v65/types/InputFile.md | 7 + old_docs/API_docs_v65/types/InputMedia.md | 2 + old_docs/API_docs_v65/types/InputPeer.md | 5 + old_docs/API_docs_v65/types/InputPhoto.md | 2 + old_docs/API_docs_v65/types/InputUser.md | 5 + old_docs/API_docs_v65/types/Peer.md | 5 + old_docs/API_docs_v65/types/PhoneCall.md | 8 +- old_docs/API_docs_v65/types/User.md | 5 + .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v66/constructors/botInfo.md | 2 +- .../constructors/botInlineMessageText.md | 2 +- .../API_docs_v66/constructors/cdnConfig.md | 2 +- .../API_docs_v66/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v66/constructors/chatFull.md | 2 +- .../API_docs_v66/constructors/chatInvite.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v66/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_topPeers.md | 2 +- .../API_docs_v66/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../API_docs_v66/constructors/draftMessage.md | 2 +- .../API_docs_v66/constructors/future_salts.md | 2 +- .../constructors/inputBotInlineMessageText.md | 2 +- .../inputBotInlineResultDocument.md | 2 +- .../constructors/inputBotInlineResultPhoto.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputGameShortName.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../inputMediaUploadedDocument.md | 8 +- .../constructors/inputMediaUploadedPhoto.md | 6 +- .../inputMediaUploadedThumbDocument.md | 10 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../inputStickeredMediaDocument.md | 2 +- .../constructors/inputStickeredMediaPhoto.md | 2 +- .../constructors/inputWebDocument.md | 2 +- old_docs/API_docs_v66/constructors/invoice.md | 2 +- .../constructors/keyboardButtonRow.md | 2 +- old_docs/API_docs_v66/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_archivedStickers.md | 2 +- .../constructors/messages_botResults.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_chatsSlice.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_featuredStickers.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_highScores.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_peerDialogs.md | 2 +- .../constructors/messages_recentStickers.md | 2 +- .../constructors/messages_savedGifs.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- ...messages_stickerSetInstallResultArchive.md | 2 +- .../constructors/messages_stickers.md | 2 +- .../constructors/msg_resend_req.md | 2 +- .../API_docs_v66/constructors/msgs_ack.md | 2 +- .../constructors/msgs_all_info.md | 2 +- .../constructors/msgs_state_req.md | 2 +- .../constructors/pageBlockCollage.md | 2 +- .../constructors/pageBlockEmbedPost.md | 2 +- .../constructors/pageBlockList.md | 2 +- .../constructors/pageBlockSlideshow.md | 2 +- .../API_docs_v66/constructors/pageFull.md | 2 +- .../API_docs_v66/constructors/pagePart.md | 2 +- .../constructors/payments_paymentForm.md | 2 +- .../constructors/payments_paymentReceipt.md | 2 +- .../payments_validatedRequestedInfo.md | 2 +- .../API_docs_v66/constructors/phoneCall.md | 2 +- .../constructors/phone_phoneCall.md | 2 +- old_docs/API_docs_v66/constructors/photo.md | 2 +- .../API_docs_v66/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyInlineMarkup.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- old_docs/API_docs_v66/constructors/resPQ.md | 2 +- .../constructors/shippingOption.md | 2 +- .../API_docs_v66/constructors/stickerPack.md | 2 +- .../constructors/stickerSetMultiCovered.md | 2 +- .../API_docs_v66/constructors/textConcat.md | 2 +- .../constructors/topPeerCategoryPeers.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePinnedDialogs.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateServiceNotification.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- old_docs/API_docs_v66/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v66/constructors/wallPaper.md | 2 +- .../API_docs_v66/constructors/webDocument.md | 2 +- old_docs/API_docs_v66/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_confirmPhone.md | 29 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getTmpPassword.md | 29 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 29 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 31 +- .../methods/account_sendConfirmPhoneCode.md | 31 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 31 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../API_docs_v66/methods/auth_cancelCode.md | 29 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v66/methods/auth_checkPhone.md | 27 +- .../methods/auth_dropTempAuthKeys.md | 32 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v66/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../API_docs_v66/methods/auth_resendCode.md | 29 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v66/methods/auth_sendCode.md | 4 +- .../API_docs_v66/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v66/methods/auth_signIn.md | 4 +- old_docs/API_docs_v66/methods/auth_signUp.md | 4 +- .../methods/bots_answerWebhookJSONQuery.md | 20 +- .../methods/bots_sendCustomRequest.md | 20 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_exportMessageLink.md | 19 +- .../channels_getAdminedPublicChannels.md | 17 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_kickFromChannel.md | 24 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_toggleInvites.md | 19 +- .../methods/channels_toggleSignatures.md | 19 +- .../methods/channels_updatePinnedMessage.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v66/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getTopPeers.md | 41 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resetTopPeerRating.md | 19 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v66/methods/contacts_search.md | 29 +- .../API_docs_v66/methods/contacts_unblock.md | 27 +- .../methods/contest_saveDeveloperInfo.md | 20 +- .../API_docs_v66/methods/destroy_auth_key.md | 20 +- .../API_docs_v66/methods/destroy_session.md | 30 +- .../API_docs_v66/methods/get_future_salts.md | 30 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v66/methods/help_getAppUpdate.md | 17 +- .../API_docs_v66/methods/help_getCdnConfig.md | 20 +- .../API_docs_v66/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v66/methods/help_getNearestDc.md | 17 +- .../API_docs_v66/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- .../API_docs_v66/methods/help_saveAppLog.md | 19 +- .../methods/help_setBotUpdatesStatus.md | 20 +- .../API_docs_v66/methods/initConnection.md | 40 +- .../API_docs_v66/methods/invokeAfterMsg.md | 32 +- .../API_docs_v66/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v66/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_clearRecentStickers.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_editInlineBotMessage.md | 22 +- .../methods/messages_editMessage.md | 24 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllChats.md | 19 +- .../methods/messages_getAllDrafts.md | 17 +- .../methods/messages_getAllStickers.md | 17 +- .../methods/messages_getArchivedStickers.md | 17 +- .../methods/messages_getAttachedStickers.md | 17 +- .../methods/messages_getBotCallbackAnswer.md | 19 +- .../API_docs_v66/methods/messages_getChats.md | 22 +- .../methods/messages_getCommonChats.md | 19 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFeaturedStickers.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getGameHighScores.md | 24 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getInlineBotResults.md | 21 +- .../messages_getInlineGameHighScores.md | 22 +- .../methods/messages_getMaskStickers.md | 17 +- .../methods/messages_getMessageEditData.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getPeerDialogs.md | 21 +- .../methods/messages_getPeerSettings.md | 19 +- .../methods/messages_getPinnedDialogs.md | 17 +- .../methods/messages_getRecentStickers.md | 17 +- .../methods/messages_getSavedGifs.md | 17 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getWebPage.md | 17 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_hideReportSpam.md | 19 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readFeaturedStickers.md | 19 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderPinnedDialogs.md | 21 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportEncryptedSpam.md | 19 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../methods/messages_saveDraft.md | 21 +- .../API_docs_v66/methods/messages_saveGif.md | 19 +- .../methods/messages_saveRecentSticker.md | 19 +- .../API_docs_v66/methods/messages_search.md | 19 +- .../methods/messages_searchGifs.md | 17 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendInlineBotResult.md | 19 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_setBotCallbackAnswer.md | 20 +- .../messages_setBotPrecheckoutResults.md | 20 +- .../methods/messages_setBotShippingResults.md | 22 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setGameScore.md | 24 +- .../methods/messages_setInlineBotResults.md | 22 +- .../methods/messages_setInlineGameScore.md | 22 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v66/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_toggleDialogPin.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/payments_clearSavedInfo.md | 17 +- .../methods/payments_getPaymentForm.md | 17 +- .../methods/payments_getPaymentReceipt.md | 17 +- .../methods/payments_getSavedInfo.md | 17 +- .../methods/payments_sendPaymentForm.md | 17 +- .../methods/payments_validateRequestedInfo.md | 17 +- .../API_docs_v66/methods/phone_acceptCall.md | 4 +- .../API_docs_v66/methods/phone_confirmCall.md | 4 +- .../API_docs_v66/methods/phone_discardCall.md | 4 +- .../methods/phone_getCallConfig.md | 17 +- .../methods/phone_receivedCall.md | 17 +- .../API_docs_v66/methods/phone_requestCall.md | 4 +- .../methods/phone_saveCallDebug.md | 17 +- .../methods/phone_setCallRating.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- old_docs/API_docs_v66/methods/ping.md | 30 +- .../methods/ping_delay_disconnect.md | 32 +- .../API_docs_v66/methods/req_DH_params.md | 40 +- old_docs/API_docs_v66/methods/req_pq.md | 30 +- .../API_docs_v66/methods/rpc_drop_answer.md | 30 +- .../methods/set_client_DH_params.md | 34 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v66/methods/updates_getState.md | 4 +- .../API_docs_v66/methods/upload_getCdnFile.md | 4 +- .../API_docs_v66/methods/upload_getFile.md | 4 +- .../API_docs_v66/methods/upload_getWebFile.md | 17 +- .../methods/upload_reuploadCdnFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v66/methods/users_getFullUser.md | 4 +- .../API_docs_v66/methods/users_getUsers.md | 32 +- old_docs/API_docs_v66/types/Chat.md | 5 + old_docs/API_docs_v66/types/InputChannel.md | 5 + old_docs/API_docs_v66/types/InputDocument.md | 2 + .../API_docs_v66/types/InputEncryptedChat.md | 4 +- .../API_docs_v66/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v66/types/InputFile.md | 7 + old_docs/API_docs_v66/types/InputMedia.md | 2 + old_docs/API_docs_v66/types/InputPeer.md | 5 + old_docs/API_docs_v66/types/InputPhoto.md | 2 + old_docs/API_docs_v66/types/InputUser.md | 5 + old_docs/API_docs_v66/types/Peer.md | 5 + old_docs/API_docs_v66/types/PhoneCall.md | 8 +- old_docs/API_docs_v66/types/User.md | 5 + .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v68/constructors/botInfo.md | 2 +- .../constructors/botInlineMessageText.md | 2 +- .../API_docs_v68/constructors/cdnConfig.md | 2 +- .../API_docs_v68/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../constructors/channels_adminLogResults.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v68/constructors/chatFull.md | 2 +- .../API_docs_v68/constructors/chatInvite.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v68/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_topPeers.md | 2 +- .../API_docs_v68/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../API_docs_v68/constructors/draftMessage.md | 2 +- .../API_docs_v68/constructors/future_salts.md | 2 +- .../constructors/help_configSimple.md | 2 +- .../constructors/inputBotInlineMessageText.md | 2 +- .../inputBotInlineResultDocument.md | 2 +- .../constructors/inputBotInlineResultPhoto.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputGameShortName.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../inputMediaUploadedDocument.md | 8 +- .../constructors/inputMediaUploadedPhoto.md | 6 +- .../inputMediaUploadedThumbDocument.md | 10 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/inputStickerSetItem.md | 2 +- .../inputStickeredMediaDocument.md | 2 +- .../constructors/inputStickeredMediaPhoto.md | 2 +- .../constructors/inputWebDocument.md | 2 +- old_docs/API_docs_v68/constructors/invoice.md | 2 +- .../constructors/keyboardButtonRow.md | 2 +- .../constructors/langPackDifference.md | 2 +- old_docs/API_docs_v68/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_archivedStickers.md | 2 +- .../constructors/messages_botResults.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_chatsSlice.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_featuredStickers.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_highScores.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_peerDialogs.md | 2 +- .../constructors/messages_recentStickers.md | 2 +- .../constructors/messages_savedGifs.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- ...messages_stickerSetInstallResultArchive.md | 2 +- .../constructors/messages_stickers.md | 2 +- .../constructors/msg_resend_req.md | 2 +- .../API_docs_v68/constructors/msgs_ack.md | 2 +- .../constructors/msgs_all_info.md | 2 +- .../constructors/msgs_state_req.md | 2 +- .../constructors/pageBlockCollage.md | 2 +- .../constructors/pageBlockEmbedPost.md | 2 +- .../constructors/pageBlockList.md | 2 +- .../constructors/pageBlockSlideshow.md | 2 +- .../API_docs_v68/constructors/pageFull.md | 2 +- .../API_docs_v68/constructors/pagePart.md | 2 +- .../constructors/payments_paymentForm.md | 2 +- .../constructors/payments_paymentReceipt.md | 2 +- .../payments_validatedRequestedInfo.md | 2 +- .../API_docs_v68/constructors/phoneCall.md | 2 +- .../constructors/phone_phoneCall.md | 2 +- old_docs/API_docs_v68/constructors/photo.md | 2 +- .../API_docs_v68/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyInlineMarkup.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- old_docs/API_docs_v68/constructors/resPQ.md | 2 +- .../constructors/shippingOption.md | 2 +- .../API_docs_v68/constructors/stickerPack.md | 2 +- .../constructors/stickerSetMultiCovered.md | 2 +- .../API_docs_v68/constructors/textConcat.md | 2 +- .../constructors/topPeerCategoryPeers.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePinnedDialogs.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateServiceNotification.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- old_docs/API_docs_v68/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../API_docs_v68/constructors/wallPaper.md | 2 +- .../API_docs_v68/constructors/webDocument.md | 2 +- old_docs/API_docs_v68/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_confirmPhone.md | 29 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getTmpPassword.md | 29 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 29 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 31 +- .../methods/account_sendConfirmPhoneCode.md | 31 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 31 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../API_docs_v68/methods/auth_cancelCode.md | 29 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v68/methods/auth_checkPhone.md | 27 +- .../methods/auth_dropTempAuthKeys.md | 32 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v68/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../API_docs_v68/methods/auth_resendCode.md | 29 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v68/methods/auth_sendCode.md | 4 +- .../API_docs_v68/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v68/methods/auth_signIn.md | 4 +- old_docs/API_docs_v68/methods/auth_signUp.md | 4 +- .../methods/bots_answerWebhookJSONQuery.md | 20 +- .../methods/bots_sendCustomRequest.md | 20 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editBanned.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_exportMessageLink.md | 19 +- .../methods/channels_getAdminLog.md | 23 +- .../channels_getAdminedPublicChannels.md | 17 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_toggleInvites.md | 19 +- .../methods/channels_toggleSignatures.md | 19 +- .../methods/channels_updatePinnedMessage.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v68/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getTopPeers.md | 43 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resetTopPeerRating.md | 19 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v68/methods/contacts_search.md | 29 +- .../API_docs_v68/methods/contacts_unblock.md | 27 +- .../methods/contest_saveDeveloperInfo.md | 20 +- .../API_docs_v68/methods/destroy_auth_key.md | 20 +- .../API_docs_v68/methods/destroy_session.md | 30 +- .../API_docs_v68/methods/get_future_salts.md | 30 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v68/methods/help_getAppUpdate.md | 17 +- .../API_docs_v68/methods/help_getCdnConfig.md | 20 +- .../API_docs_v68/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v68/methods/help_getNearestDc.md | 17 +- .../API_docs_v68/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- .../API_docs_v68/methods/help_saveAppLog.md | 19 +- .../methods/help_setBotUpdatesStatus.md | 20 +- .../API_docs_v68/methods/initConnection.md | 44 +- .../API_docs_v68/methods/invokeAfterMsg.md | 32 +- .../API_docs_v68/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v68/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/langpack_getDifference.md | 17 +- .../methods/langpack_getLangPack.md | 17 +- .../methods/langpack_getLanguages.md | 17 +- .../methods/langpack_getStrings.md | 19 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_clearRecentStickers.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_editInlineBotMessage.md | 22 +- .../methods/messages_editMessage.md | 24 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllChats.md | 19 +- .../methods/messages_getAllDrafts.md | 17 +- .../methods/messages_getAllStickers.md | 17 +- .../methods/messages_getArchivedStickers.md | 17 +- .../methods/messages_getAttachedStickers.md | 17 +- .../methods/messages_getBotCallbackAnswer.md | 19 +- .../API_docs_v68/methods/messages_getChats.md | 22 +- .../methods/messages_getCommonChats.md | 19 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFeaturedStickers.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getGameHighScores.md | 24 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getInlineBotResults.md | 21 +- .../messages_getInlineGameHighScores.md | 22 +- .../methods/messages_getMaskStickers.md | 17 +- .../methods/messages_getMessageEditData.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getPeerDialogs.md | 21 +- .../methods/messages_getPeerSettings.md | 19 +- .../methods/messages_getPinnedDialogs.md | 17 +- .../methods/messages_getRecentStickers.md | 17 +- .../methods/messages_getSavedGifs.md | 17 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getWebPage.md | 17 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_hideReportSpam.md | 19 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readFeaturedStickers.md | 19 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderPinnedDialogs.md | 21 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportEncryptedSpam.md | 19 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../methods/messages_saveDraft.md | 21 +- .../API_docs_v68/methods/messages_saveGif.md | 19 +- .../methods/messages_saveRecentSticker.md | 19 +- .../API_docs_v68/methods/messages_search.md | 21 +- .../methods/messages_searchGifs.md | 17 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendInlineBotResult.md | 19 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_setBotCallbackAnswer.md | 20 +- .../messages_setBotPrecheckoutResults.md | 20 +- .../methods/messages_setBotShippingResults.md | 22 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setGameScore.md | 24 +- .../methods/messages_setInlineBotResults.md | 22 +- .../methods/messages_setInlineGameScore.md | 22 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v68/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_toggleDialogPin.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/messages_uploadMedia.md | 24 +- .../methods/payments_clearSavedInfo.md | 17 +- .../methods/payments_getPaymentForm.md | 17 +- .../methods/payments_getPaymentReceipt.md | 17 +- .../methods/payments_getSavedInfo.md | 17 +- .../methods/payments_sendPaymentForm.md | 17 +- .../methods/payments_validateRequestedInfo.md | 17 +- .../API_docs_v68/methods/phone_acceptCall.md | 4 +- .../API_docs_v68/methods/phone_confirmCall.md | 4 +- .../API_docs_v68/methods/phone_discardCall.md | 4 +- .../methods/phone_getCallConfig.md | 17 +- .../methods/phone_receivedCall.md | 17 +- .../API_docs_v68/methods/phone_requestCall.md | 4 +- .../methods/phone_saveCallDebug.md | 17 +- .../methods/phone_setCallRating.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- old_docs/API_docs_v68/methods/ping.md | 30 +- .../methods/ping_delay_disconnect.md | 32 +- .../API_docs_v68/methods/req_DH_params.md | 40 +- old_docs/API_docs_v68/methods/req_pq.md | 30 +- .../API_docs_v68/methods/rpc_drop_answer.md | 30 +- .../methods/set_client_DH_params.md | 34 +- .../methods/stickers_addStickerToSet.md | 20 +- .../methods/stickers_changeStickerPosition.md | 22 +- .../methods/stickers_createStickerSet.md | 24 +- .../methods/stickers_removeStickerFromSet.md | 22 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v68/methods/updates_getState.md | 4 +- .../API_docs_v68/methods/upload_getCdnFile.md | 4 +- .../API_docs_v68/methods/upload_getFile.md | 4 +- .../API_docs_v68/methods/upload_getWebFile.md | 17 +- .../methods/upload_reuploadCdnFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v68/methods/users_getFullUser.md | 4 +- .../API_docs_v68/methods/users_getUsers.md | 32 +- old_docs/API_docs_v68/types/Chat.md | 5 + old_docs/API_docs_v68/types/InputChannel.md | 5 + old_docs/API_docs_v68/types/InputDocument.md | 2 + .../API_docs_v68/types/InputEncryptedChat.md | 4 +- .../API_docs_v68/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v68/types/InputFile.md | 7 + old_docs/API_docs_v68/types/InputMedia.md | 2 + old_docs/API_docs_v68/types/InputPeer.md | 5 + old_docs/API_docs_v68/types/InputPhoto.md | 2 + old_docs/API_docs_v68/types/InputUser.md | 5 + old_docs/API_docs_v68/types/Peer.md | 5 + old_docs/API_docs_v68/types/PhoneCall.md | 8 +- old_docs/API_docs_v68/types/User.md | 5 + .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v70/constructors/botInfo.md | 2 +- .../constructors/botInlineMessageText.md | 2 +- .../API_docs_v70/constructors/cdnConfig.md | 2 +- .../API_docs_v70/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../constructors/channels_adminLogResults.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v70/constructors/chatFull.md | 2 +- .../API_docs_v70/constructors/chatInvite.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v70/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_topPeers.md | 2 +- .../API_docs_v70/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../API_docs_v70/constructors/draftMessage.md | 2 +- .../API_docs_v70/constructors/future_salts.md | 2 +- .../constructors/help_configSimple.md | 2 +- .../constructors/inputBotInlineMessageText.md | 2 +- .../inputBotInlineResultDocument.md | 2 +- .../constructors/inputBotInlineResultPhoto.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputGameShortName.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../inputMediaUploadedDocument.md | 10 +- .../constructors/inputMediaUploadedPhoto.md | 6 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/inputStickerSetItem.md | 2 +- .../inputStickeredMediaDocument.md | 2 +- .../constructors/inputStickeredMediaPhoto.md | 2 +- .../constructors/inputWebDocument.md | 2 +- old_docs/API_docs_v70/constructors/invoice.md | 2 +- .../constructors/keyboardButtonRow.md | 2 +- .../constructors/langPackDifference.md | 2 +- old_docs/API_docs_v70/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_archivedStickers.md | 2 +- .../constructors/messages_botResults.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_chatsSlice.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_featuredStickers.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_highScores.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_peerDialogs.md | 2 +- .../constructors/messages_recentStickers.md | 2 +- .../constructors/messages_savedGifs.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- ...messages_stickerSetInstallResultArchive.md | 2 +- .../constructors/messages_stickers.md | 2 +- .../constructors/msg_resend_req.md | 2 +- .../API_docs_v70/constructors/msgs_ack.md | 2 +- .../constructors/msgs_all_info.md | 2 +- .../constructors/msgs_state_req.md | 2 +- .../constructors/pageBlockCollage.md | 2 +- .../constructors/pageBlockEmbedPost.md | 2 +- .../constructors/pageBlockList.md | 2 +- .../constructors/pageBlockSlideshow.md | 2 +- .../API_docs_v70/constructors/pageFull.md | 2 +- .../API_docs_v70/constructors/pagePart.md | 2 +- .../constructors/payments_paymentForm.md | 2 +- .../constructors/payments_paymentReceipt.md | 2 +- .../payments_validatedRequestedInfo.md | 2 +- .../API_docs_v70/constructors/phoneCall.md | 2 +- .../constructors/phone_phoneCall.md | 2 +- old_docs/API_docs_v70/constructors/photo.md | 2 +- .../API_docs_v70/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyInlineMarkup.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- old_docs/API_docs_v70/constructors/resPQ.md | 2 +- .../constructors/shippingOption.md | 2 +- .../API_docs_v70/constructors/stickerPack.md | 2 +- .../constructors/stickerSetMultiCovered.md | 2 +- .../API_docs_v70/constructors/textConcat.md | 2 +- .../constructors/topPeerCategoryPeers.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePinnedDialogs.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateServiceNotification.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- old_docs/API_docs_v70/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../constructors/upload_fileCdnRedirect.md | 2 +- .../API_docs_v70/constructors/wallPaper.md | 2 +- .../API_docs_v70/constructors/webDocument.md | 2 +- old_docs/API_docs_v70/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_confirmPhone.md | 29 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getTmpPassword.md | 29 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 29 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 31 +- .../methods/account_sendConfirmPhoneCode.md | 31 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 31 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../API_docs_v70/methods/auth_cancelCode.md | 29 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v70/methods/auth_checkPhone.md | 27 +- .../methods/auth_dropTempAuthKeys.md | 32 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v70/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../API_docs_v70/methods/auth_resendCode.md | 29 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v70/methods/auth_sendCode.md | 4 +- .../API_docs_v70/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v70/methods/auth_signIn.md | 4 +- old_docs/API_docs_v70/methods/auth_signUp.md | 4 +- .../methods/bots_answerWebhookJSONQuery.md | 20 +- .../methods/bots_sendCustomRequest.md | 20 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editBanned.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_exportMessageLink.md | 19 +- .../methods/channels_getAdminLog.md | 23 +- .../channels_getAdminedPublicChannels.md | 17 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_toggleInvites.md | 19 +- .../methods/channels_toggleSignatures.md | 19 +- .../methods/channels_updatePinnedMessage.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v70/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getTopPeers.md | 43 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 31 +- .../methods/contacts_resetTopPeerRating.md | 19 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v70/methods/contacts_search.md | 29 +- .../API_docs_v70/methods/contacts_unblock.md | 27 +- .../methods/contest_saveDeveloperInfo.md | 20 +- .../API_docs_v70/methods/destroy_auth_key.md | 20 +- .../API_docs_v70/methods/destroy_session.md | 30 +- .../API_docs_v70/methods/get_future_salts.md | 30 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v70/methods/help_getAppUpdate.md | 17 +- .../API_docs_v70/methods/help_getCdnConfig.md | 20 +- .../API_docs_v70/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v70/methods/help_getNearestDc.md | 17 +- .../API_docs_v70/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- .../API_docs_v70/methods/help_saveAppLog.md | 19 +- .../methods/help_setBotUpdatesStatus.md | 20 +- .../API_docs_v70/methods/initConnection.md | 44 +- .../API_docs_v70/methods/invokeAfterMsg.md | 32 +- .../API_docs_v70/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v70/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/langpack_getDifference.md | 17 +- .../methods/langpack_getLangPack.md | 17 +- .../methods/langpack_getLanguages.md | 17 +- .../methods/langpack_getStrings.md | 19 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_clearRecentStickers.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_editInlineBotMessage.md | 22 +- .../methods/messages_editMessage.md | 24 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllChats.md | 19 +- .../methods/messages_getAllDrafts.md | 17 +- .../methods/messages_getAllStickers.md | 17 +- .../methods/messages_getArchivedStickers.md | 17 +- .../methods/messages_getAttachedStickers.md | 17 +- .../methods/messages_getBotCallbackAnswer.md | 19 +- .../API_docs_v70/methods/messages_getChats.md | 22 +- .../methods/messages_getCommonChats.md | 19 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFeaturedStickers.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getGameHighScores.md | 24 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getInlineBotResults.md | 21 +- .../messages_getInlineGameHighScores.md | 22 +- .../methods/messages_getMaskStickers.md | 17 +- .../methods/messages_getMessageEditData.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getPeerDialogs.md | 21 +- .../methods/messages_getPeerSettings.md | 19 +- .../methods/messages_getPinnedDialogs.md | 17 +- .../methods/messages_getRecentStickers.md | 17 +- .../methods/messages_getSavedGifs.md | 17 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getWebPage.md | 17 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_hideReportSpam.md | 19 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readFeaturedStickers.md | 19 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderPinnedDialogs.md | 21 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportEncryptedSpam.md | 19 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../methods/messages_saveDraft.md | 21 +- .../API_docs_v70/methods/messages_saveGif.md | 19 +- .../methods/messages_saveRecentSticker.md | 19 +- .../API_docs_v70/methods/messages_search.md | 21 +- .../methods/messages_searchGifs.md | 17 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendInlineBotResult.md | 19 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../messages_sendScreenshotNotification.md | 19 +- .../methods/messages_setBotCallbackAnswer.md | 20 +- .../messages_setBotPrecheckoutResults.md | 20 +- .../methods/messages_setBotShippingResults.md | 22 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setGameScore.md | 24 +- .../methods/messages_setInlineBotResults.md | 22 +- .../methods/messages_setInlineGameScore.md | 22 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v70/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_toggleDialogPin.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/messages_uploadMedia.md | 24 +- .../methods/payments_clearSavedInfo.md | 17 +- .../methods/payments_getPaymentForm.md | 17 +- .../methods/payments_getPaymentReceipt.md | 17 +- .../methods/payments_getSavedInfo.md | 17 +- .../methods/payments_sendPaymentForm.md | 17 +- .../methods/payments_validateRequestedInfo.md | 17 +- .../API_docs_v70/methods/phone_acceptCall.md | 4 +- .../API_docs_v70/methods/phone_confirmCall.md | 4 +- .../API_docs_v70/methods/phone_discardCall.md | 4 +- .../methods/phone_getCallConfig.md | 17 +- .../methods/phone_receivedCall.md | 17 +- .../API_docs_v70/methods/phone_requestCall.md | 4 +- .../methods/phone_saveCallDebug.md | 17 +- .../methods/phone_setCallRating.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- old_docs/API_docs_v70/methods/ping.md | 30 +- .../methods/ping_delay_disconnect.md | 32 +- .../API_docs_v70/methods/req_DH_params.md | 40 +- old_docs/API_docs_v70/methods/req_pq.md | 30 +- .../API_docs_v70/methods/rpc_drop_answer.md | 30 +- .../methods/set_client_DH_params.md | 34 +- .../methods/stickers_addStickerToSet.md | 20 +- .../methods/stickers_changeStickerPosition.md | 22 +- .../methods/stickers_createStickerSet.md | 24 +- .../methods/stickers_removeStickerFromSet.md | 22 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v70/methods/updates_getState.md | 4 +- .../API_docs_v70/methods/upload_getCdnFile.md | 4 +- .../methods/upload_getCdnFileHashes.md | 4 +- .../API_docs_v70/methods/upload_getFile.md | 4 +- .../API_docs_v70/methods/upload_getWebFile.md | 17 +- .../methods/upload_reuploadCdnFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v70/methods/users_getFullUser.md | 4 +- .../API_docs_v70/methods/users_getUsers.md | 32 +- old_docs/API_docs_v70/types/Chat.md | 5 + old_docs/API_docs_v70/types/InputChannel.md | 5 + old_docs/API_docs_v70/types/InputDocument.md | 2 + .../API_docs_v70/types/InputEncryptedChat.md | 4 +- .../API_docs_v70/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v70/types/InputFile.md | 7 + old_docs/API_docs_v70/types/InputMedia.md | 2 + old_docs/API_docs_v70/types/InputPeer.md | 5 + old_docs/API_docs_v70/types/InputPhoto.md | 2 + old_docs/API_docs_v70/types/InputUser.md | 5 + old_docs/API_docs_v70/types/Peer.md | 5 + old_docs/API_docs_v70/types/PhoneCall.md | 8 +- old_docs/API_docs_v70/types/User.md | 5 + .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v71/constructors/botInfo.md | 2 +- .../constructors/botInlineMessageText.md | 2 +- .../API_docs_v71/constructors/cdnConfig.md | 2 +- .../API_docs_v71/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../constructors/channels_adminLogResults.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v71/constructors/chatFull.md | 2 +- .../API_docs_v71/constructors/chatInvite.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v71/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_topPeers.md | 2 +- .../API_docs_v71/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../API_docs_v71/constructors/draftMessage.md | 2 +- .../API_docs_v71/constructors/future_salts.md | 2 +- .../constructors/help_configSimple.md | 2 +- .../constructors/inputBotInlineMessageText.md | 2 +- .../inputBotInlineResultDocument.md | 2 +- .../constructors/inputBotInlineResultPhoto.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputGameShortName.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../inputMediaUploadedDocument.md | 10 +- .../constructors/inputMediaUploadedPhoto.md | 6 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/inputStickerSetItem.md | 2 +- .../inputStickeredMediaDocument.md | 2 +- .../constructors/inputStickeredMediaPhoto.md | 2 +- .../constructors/inputWebDocument.md | 2 +- old_docs/API_docs_v71/constructors/invoice.md | 2 +- .../constructors/keyboardButtonRow.md | 2 +- .../constructors/langPackDifference.md | 2 +- old_docs/API_docs_v71/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_archivedStickers.md | 2 +- .../constructors/messages_botResults.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_chatsSlice.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_favedStickers.md | 2 +- .../constructors/messages_featuredStickers.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_highScores.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_peerDialogs.md | 2 +- .../constructors/messages_recentStickers.md | 2 +- .../constructors/messages_savedGifs.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- ...messages_stickerSetInstallResultArchive.md | 2 +- .../constructors/messages_stickers.md | 2 +- .../constructors/msg_resend_req.md | 2 +- .../API_docs_v71/constructors/msgs_ack.md | 2 +- .../constructors/msgs_all_info.md | 2 +- .../constructors/msgs_state_req.md | 2 +- .../constructors/pageBlockCollage.md | 2 +- .../constructors/pageBlockEmbedPost.md | 2 +- .../constructors/pageBlockList.md | 2 +- .../constructors/pageBlockSlideshow.md | 2 +- .../API_docs_v71/constructors/pageFull.md | 2 +- .../API_docs_v71/constructors/pagePart.md | 2 +- .../constructors/payments_paymentForm.md | 2 +- .../constructors/payments_paymentReceipt.md | 2 +- .../payments_validatedRequestedInfo.md | 2 +- .../API_docs_v71/constructors/phoneCall.md | 2 +- .../constructors/phone_phoneCall.md | 2 +- old_docs/API_docs_v71/constructors/photo.md | 2 +- .../API_docs_v71/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyInlineMarkup.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- old_docs/API_docs_v71/constructors/resPQ.md | 2 +- .../constructors/shippingOption.md | 2 +- .../API_docs_v71/constructors/stickerPack.md | 2 +- .../constructors/stickerSetMultiCovered.md | 2 +- .../API_docs_v71/constructors/textConcat.md | 2 +- .../constructors/topPeerCategoryPeers.md | 2 +- .../updateChannelReadMessagesContents.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePinnedDialogs.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateServiceNotification.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- old_docs/API_docs_v71/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../constructors/upload_fileCdnRedirect.md | 2 +- .../API_docs_v71/constructors/wallPaper.md | 2 +- .../API_docs_v71/constructors/webDocument.md | 2 +- old_docs/API_docs_v71/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_confirmPhone.md | 29 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getTmpPassword.md | 29 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 29 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 31 +- .../methods/account_sendConfirmPhoneCode.md | 31 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 31 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../API_docs_v71/methods/auth_cancelCode.md | 29 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v71/methods/auth_checkPhone.md | 27 +- .../methods/auth_dropTempAuthKeys.md | 32 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v71/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../API_docs_v71/methods/auth_resendCode.md | 29 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v71/methods/auth_sendCode.md | 4 +- .../API_docs_v71/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v71/methods/auth_signIn.md | 4 +- old_docs/API_docs_v71/methods/auth_signUp.md | 4 +- .../methods/bots_answerWebhookJSONQuery.md | 20 +- .../methods/bots_sendCustomRequest.md | 20 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editBanned.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_exportMessageLink.md | 19 +- .../methods/channels_getAdminLog.md | 23 +- .../channels_getAdminedPublicChannels.md | 17 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_readMessageContents.md | 21 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_setStickers.md | 22 +- .../methods/channels_toggleInvites.md | 19 +- .../methods/channels_toggleSignatures.md | 19 +- .../methods/channels_updatePinnedMessage.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v71/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getTopPeers.md | 43 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 29 +- .../methods/contacts_resetSaved.md | 20 +- .../methods/contacts_resetTopPeerRating.md | 19 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v71/methods/contacts_search.md | 29 +- .../API_docs_v71/methods/contacts_unblock.md | 27 +- .../methods/contest_saveDeveloperInfo.md | 20 +- .../API_docs_v71/methods/destroy_auth_key.md | 20 +- .../API_docs_v71/methods/destroy_session.md | 30 +- .../API_docs_v71/methods/get_future_salts.md | 30 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v71/methods/help_getAppUpdate.md | 17 +- .../API_docs_v71/methods/help_getCdnConfig.md | 20 +- .../API_docs_v71/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v71/methods/help_getNearestDc.md | 17 +- .../API_docs_v71/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- .../API_docs_v71/methods/help_saveAppLog.md | 19 +- .../methods/help_setBotUpdatesStatus.md | 20 +- .../API_docs_v71/methods/initConnection.md | 44 +- .../API_docs_v71/methods/invokeAfterMsg.md | 32 +- .../API_docs_v71/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v71/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/langpack_getDifference.md | 17 +- .../methods/langpack_getLangPack.md | 17 +- .../methods/langpack_getLanguages.md | 17 +- .../methods/langpack_getStrings.md | 19 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_clearRecentStickers.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_editInlineBotMessage.md | 22 +- .../methods/messages_editMessage.md | 24 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_faveSticker.md | 22 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllChats.md | 19 +- .../methods/messages_getAllDrafts.md | 17 +- .../methods/messages_getAllStickers.md | 17 +- .../methods/messages_getArchivedStickers.md | 17 +- .../methods/messages_getAttachedStickers.md | 17 +- .../methods/messages_getBotCallbackAnswer.md | 19 +- .../API_docs_v71/methods/messages_getChats.md | 22 +- .../methods/messages_getCommonChats.md | 19 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFavedStickers.md | 20 +- .../methods/messages_getFeaturedStickers.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getGameHighScores.md | 24 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getInlineBotResults.md | 21 +- .../messages_getInlineGameHighScores.md | 22 +- .../methods/messages_getMaskStickers.md | 17 +- .../methods/messages_getMessageEditData.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getPeerDialogs.md | 21 +- .../methods/messages_getPeerSettings.md | 19 +- .../methods/messages_getPinnedDialogs.md | 17 +- .../methods/messages_getRecentStickers.md | 17 +- .../methods/messages_getSavedGifs.md | 17 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getUnreadMentions.md | 19 +- .../methods/messages_getWebPage.md | 17 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_hideReportSpam.md | 19 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readFeaturedStickers.md | 19 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderPinnedDialogs.md | 21 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportEncryptedSpam.md | 19 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../methods/messages_saveDraft.md | 21 +- .../API_docs_v71/methods/messages_saveGif.md | 19 +- .../methods/messages_saveRecentSticker.md | 19 +- .../API_docs_v71/methods/messages_search.md | 21 +- .../methods/messages_searchGifs.md | 17 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendInlineBotResult.md | 19 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../messages_sendScreenshotNotification.md | 19 +- .../methods/messages_setBotCallbackAnswer.md | 20 +- .../messages_setBotPrecheckoutResults.md | 20 +- .../methods/messages_setBotShippingResults.md | 22 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setGameScore.md | 24 +- .../methods/messages_setInlineBotResults.md | 22 +- .../methods/messages_setInlineGameScore.md | 22 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v71/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_toggleDialogPin.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/messages_uploadMedia.md | 24 +- .../methods/payments_clearSavedInfo.md | 17 +- .../methods/payments_getPaymentForm.md | 17 +- .../methods/payments_getPaymentReceipt.md | 17 +- .../methods/payments_getSavedInfo.md | 17 +- .../methods/payments_sendPaymentForm.md | 17 +- .../methods/payments_validateRequestedInfo.md | 17 +- .../API_docs_v71/methods/phone_acceptCall.md | 4 +- .../API_docs_v71/methods/phone_confirmCall.md | 4 +- .../API_docs_v71/methods/phone_discardCall.md | 4 +- .../methods/phone_getCallConfig.md | 17 +- .../methods/phone_receivedCall.md | 17 +- .../API_docs_v71/methods/phone_requestCall.md | 4 +- .../methods/phone_saveCallDebug.md | 17 +- .../methods/phone_setCallRating.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- old_docs/API_docs_v71/methods/ping.md | 30 +- .../methods/ping_delay_disconnect.md | 32 +- .../API_docs_v71/methods/req_DH_params.md | 40 +- old_docs/API_docs_v71/methods/req_pq.md | 30 +- .../API_docs_v71/methods/rpc_drop_answer.md | 30 +- .../methods/set_client_DH_params.md | 34 +- .../methods/stickers_addStickerToSet.md | 20 +- .../methods/stickers_changeStickerPosition.md | 22 +- .../methods/stickers_createStickerSet.md | 24 +- .../methods/stickers_removeStickerFromSet.md | 22 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v71/methods/updates_getState.md | 4 +- .../API_docs_v71/methods/upload_getCdnFile.md | 4 +- .../methods/upload_getCdnFileHashes.md | 4 +- .../API_docs_v71/methods/upload_getFile.md | 4 +- .../API_docs_v71/methods/upload_getWebFile.md | 17 +- .../methods/upload_reuploadCdnFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v71/methods/users_getFullUser.md | 4 +- .../API_docs_v71/methods/users_getUsers.md | 32 +- old_docs/API_docs_v71/types/Chat.md | 5 + old_docs/API_docs_v71/types/InputChannel.md | 5 + old_docs/API_docs_v71/types/InputDocument.md | 2 + .../API_docs_v71/types/InputEncryptedChat.md | 4 +- .../API_docs_v71/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v71/types/InputFile.md | 7 + old_docs/API_docs_v71/types/InputMedia.md | 2 + old_docs/API_docs_v71/types/InputPeer.md | 5 + old_docs/API_docs_v71/types/InputPhoto.md | 2 + old_docs/API_docs_v71/types/InputUser.md | 5 + old_docs/API_docs_v71/types/Peer.md | 5 + old_docs/API_docs_v71/types/PhoneCall.md | 8 +- old_docs/API_docs_v71/types/User.md | 5 + .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v72/constructors/botInfo.md | 2 +- .../constructors/botInlineMessageText.md | 2 +- .../API_docs_v72/constructors/cdnConfig.md | 2 +- .../API_docs_v72/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../constructors/channels_adminLogResults.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v72/constructors/chatFull.md | 2 +- .../API_docs_v72/constructors/chatInvite.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v72/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_topPeers.md | 2 +- .../API_docs_v72/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../API_docs_v72/constructors/draftMessage.md | 2 +- .../API_docs_v72/constructors/future_salts.md | 2 +- .../constructors/help_configSimple.md | 2 +- .../constructors/help_recentMeUrls.md | 2 +- .../constructors/inputBotInlineMessageText.md | 2 +- .../inputBotInlineResultDocument.md | 2 +- .../constructors/inputBotInlineResultPhoto.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputGameShortName.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../inputMediaUploadedDocument.md | 10 +- .../constructors/inputMediaUploadedPhoto.md | 6 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/inputStickerSetItem.md | 2 +- .../inputStickeredMediaDocument.md | 2 +- .../constructors/inputStickeredMediaPhoto.md | 2 +- .../constructors/inputWebDocument.md | 2 +- old_docs/API_docs_v72/constructors/invoice.md | 2 +- .../constructors/keyboardButtonRow.md | 2 +- .../constructors/langPackDifference.md | 2 +- old_docs/API_docs_v72/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_archivedStickers.md | 2 +- .../constructors/messages_botResults.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_chatsSlice.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_favedStickers.md | 2 +- .../constructors/messages_featuredStickers.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_highScores.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_peerDialogs.md | 2 +- .../constructors/messages_recentStickers.md | 2 +- .../constructors/messages_savedGifs.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- ...messages_stickerSetInstallResultArchive.md | 2 +- .../constructors/messages_stickers.md | 2 +- .../constructors/msg_resend_req.md | 2 +- .../API_docs_v72/constructors/msgs_ack.md | 2 +- .../constructors/msgs_all_info.md | 2 +- .../constructors/msgs_state_req.md | 2 +- .../constructors/pageBlockCollage.md | 2 +- .../constructors/pageBlockEmbedPost.md | 2 +- .../constructors/pageBlockList.md | 2 +- .../constructors/pageBlockSlideshow.md | 2 +- .../API_docs_v72/constructors/pageFull.md | 2 +- .../API_docs_v72/constructors/pagePart.md | 2 +- .../constructors/payments_paymentForm.md | 2 +- .../constructors/payments_paymentReceipt.md | 2 +- .../payments_validatedRequestedInfo.md | 2 +- .../API_docs_v72/constructors/phoneCall.md | 2 +- .../constructors/phone_phoneCall.md | 2 +- old_docs/API_docs_v72/constructors/photo.md | 2 +- .../API_docs_v72/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyInlineMarkup.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- old_docs/API_docs_v72/constructors/resPQ.md | 2 +- .../constructors/shippingOption.md | 2 +- .../API_docs_v72/constructors/stickerPack.md | 2 +- .../constructors/stickerSetMultiCovered.md | 2 +- .../API_docs_v72/constructors/textConcat.md | 2 +- .../constructors/topPeerCategoryPeers.md | 2 +- .../updateChannelReadMessagesContents.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePinnedDialogs.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateServiceNotification.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- old_docs/API_docs_v72/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../constructors/upload_fileCdnRedirect.md | 2 +- .../API_docs_v72/constructors/wallPaper.md | 2 +- .../API_docs_v72/constructors/webDocument.md | 2 +- old_docs/API_docs_v72/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_confirmPhone.md | 29 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getTmpPassword.md | 29 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 29 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 31 +- .../methods/account_sendConfirmPhoneCode.md | 31 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 31 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../API_docs_v72/methods/auth_cancelCode.md | 29 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v72/methods/auth_checkPhone.md | 27 +- .../methods/auth_dropTempAuthKeys.md | 32 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v72/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../API_docs_v72/methods/auth_resendCode.md | 29 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v72/methods/auth_sendCode.md | 4 +- .../API_docs_v72/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v72/methods/auth_signIn.md | 4 +- old_docs/API_docs_v72/methods/auth_signUp.md | 4 +- .../methods/bots_answerWebhookJSONQuery.md | 20 +- .../methods/bots_sendCustomRequest.md | 20 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteHistory.md | 22 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editBanned.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_exportMessageLink.md | 19 +- .../methods/channels_getAdminLog.md | 23 +- .../channels_getAdminedPublicChannels.md | 17 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_readMessageContents.md | 21 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_setStickers.md | 22 +- .../methods/channels_toggleInvites.md | 19 +- .../channels_togglePreHistoryHidden.md | 22 +- .../methods/channels_toggleSignatures.md | 19 +- .../methods/channels_updatePinnedMessage.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v72/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getTopPeers.md | 43 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 29 +- .../methods/contacts_resetSaved.md | 20 +- .../methods/contacts_resetTopPeerRating.md | 19 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v72/methods/contacts_search.md | 29 +- .../API_docs_v72/methods/contacts_unblock.md | 27 +- .../methods/contest_saveDeveloperInfo.md | 20 +- .../API_docs_v72/methods/destroy_auth_key.md | 20 +- .../API_docs_v72/methods/destroy_session.md | 30 +- .../API_docs_v72/methods/get_future_salts.md | 30 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v72/methods/help_getAppUpdate.md | 17 +- .../API_docs_v72/methods/help_getCdnConfig.md | 20 +- .../API_docs_v72/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v72/methods/help_getNearestDc.md | 17 +- .../methods/help_getRecentMeUrls.md | 20 +- .../API_docs_v72/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- .../API_docs_v72/methods/help_saveAppLog.md | 19 +- .../methods/help_setBotUpdatesStatus.md | 20 +- .../API_docs_v72/methods/initConnection.md | 44 +- .../API_docs_v72/methods/invokeAfterMsg.md | 32 +- .../API_docs_v72/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v72/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/langpack_getDifference.md | 17 +- .../methods/langpack_getLangPack.md | 17 +- .../methods/langpack_getLanguages.md | 17 +- .../methods/langpack_getStrings.md | 19 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_clearRecentStickers.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_editInlineBotMessage.md | 22 +- .../methods/messages_editMessage.md | 24 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_faveSticker.md | 22 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllChats.md | 19 +- .../methods/messages_getAllDrafts.md | 17 +- .../methods/messages_getAllStickers.md | 17 +- .../methods/messages_getArchivedStickers.md | 17 +- .../methods/messages_getAttachedStickers.md | 17 +- .../methods/messages_getBotCallbackAnswer.md | 19 +- .../API_docs_v72/methods/messages_getChats.md | 22 +- .../methods/messages_getCommonChats.md | 19 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFavedStickers.md | 20 +- .../methods/messages_getFeaturedStickers.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getGameHighScores.md | 24 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getInlineBotResults.md | 21 +- .../messages_getInlineGameHighScores.md | 22 +- .../methods/messages_getMaskStickers.md | 17 +- .../methods/messages_getMessageEditData.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getPeerDialogs.md | 21 +- .../methods/messages_getPeerSettings.md | 19 +- .../methods/messages_getPinnedDialogs.md | 17 +- .../methods/messages_getRecentLocations.md | 22 +- .../methods/messages_getRecentStickers.md | 17 +- .../methods/messages_getSavedGifs.md | 17 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getUnreadMentions.md | 19 +- .../methods/messages_getWebPage.md | 17 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_hideReportSpam.md | 19 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readFeaturedStickers.md | 19 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMentions.md | 22 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderPinnedDialogs.md | 21 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportEncryptedSpam.md | 19 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../methods/messages_saveDraft.md | 21 +- .../API_docs_v72/methods/messages_saveGif.md | 19 +- .../methods/messages_saveRecentSticker.md | 19 +- .../API_docs_v72/methods/messages_search.md | 21 +- .../methods/messages_searchGifs.md | 17 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendInlineBotResult.md | 19 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../messages_sendScreenshotNotification.md | 19 +- .../methods/messages_setBotCallbackAnswer.md | 20 +- .../messages_setBotPrecheckoutResults.md | 20 +- .../methods/messages_setBotShippingResults.md | 22 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setGameScore.md | 24 +- .../methods/messages_setInlineBotResults.md | 22 +- .../methods/messages_setInlineGameScore.md | 22 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v72/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_toggleDialogPin.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/messages_uploadMedia.md | 24 +- .../methods/payments_clearSavedInfo.md | 17 +- .../methods/payments_getPaymentForm.md | 17 +- .../methods/payments_getPaymentReceipt.md | 17 +- .../methods/payments_getSavedInfo.md | 17 +- .../methods/payments_sendPaymentForm.md | 17 +- .../methods/payments_validateRequestedInfo.md | 17 +- .../API_docs_v72/methods/phone_acceptCall.md | 4 +- .../API_docs_v72/methods/phone_confirmCall.md | 4 +- .../API_docs_v72/methods/phone_discardCall.md | 4 +- .../methods/phone_getCallConfig.md | 17 +- .../methods/phone_receivedCall.md | 17 +- .../API_docs_v72/methods/phone_requestCall.md | 4 +- .../methods/phone_saveCallDebug.md | 17 +- .../methods/phone_setCallRating.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- old_docs/API_docs_v72/methods/ping.md | 30 +- .../methods/ping_delay_disconnect.md | 32 +- .../API_docs_v72/methods/req_DH_params.md | 40 +- old_docs/API_docs_v72/methods/req_pq.md | 30 +- .../API_docs_v72/methods/rpc_drop_answer.md | 30 +- .../methods/set_client_DH_params.md | 34 +- .../methods/stickers_addStickerToSet.md | 20 +- .../methods/stickers_changeStickerPosition.md | 22 +- .../methods/stickers_createStickerSet.md | 24 +- .../methods/stickers_removeStickerFromSet.md | 22 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v72/methods/updates_getState.md | 4 +- .../API_docs_v72/methods/upload_getCdnFile.md | 4 +- .../methods/upload_getCdnFileHashes.md | 4 +- .../API_docs_v72/methods/upload_getFile.md | 4 +- .../API_docs_v72/methods/upload_getWebFile.md | 17 +- .../methods/upload_reuploadCdnFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v72/methods/users_getFullUser.md | 4 +- .../API_docs_v72/methods/users_getUsers.md | 32 +- old_docs/API_docs_v72/types/Chat.md | 5 + old_docs/API_docs_v72/types/InputChannel.md | 5 + old_docs/API_docs_v72/types/InputDocument.md | 2 + .../API_docs_v72/types/InputEncryptedChat.md | 4 +- .../API_docs_v72/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v72/types/InputFile.md | 7 + old_docs/API_docs_v72/types/InputMedia.md | 2 + old_docs/API_docs_v72/types/InputPeer.md | 5 + old_docs/API_docs_v72/types/InputPhoto.md | 2 + old_docs/API_docs_v72/types/InputUser.md | 5 + old_docs/API_docs_v72/types/Peer.md | 5 + old_docs/API_docs_v72/types/PhoneCall.md | 8 +- old_docs/API_docs_v72/types/User.md | 5 + .../constructors/account_authorizations.md | 2 +- .../constructors/account_privacyRules.md | 2 +- old_docs/API_docs_v73/constructors/botInfo.md | 2 +- .../constructors/botInlineMessageText.md | 2 +- .../API_docs_v73/constructors/cdnConfig.md | 2 +- .../API_docs_v73/constructors/channelFull.md | 2 +- .../constructors/channelMessagesFilter.md | 2 +- .../constructors/channels_adminLogResults.md | 2 +- .../channels_channelParticipant.md | 2 +- .../channels_channelParticipants.md | 2 +- .../API_docs_v73/constructors/chatFull.md | 2 +- .../API_docs_v73/constructors/chatInvite.md | 2 +- .../constructors/chatParticipants.md | 2 +- old_docs/API_docs_v73/constructors/config.md | 2 +- .../constructors/contacts_blocked.md | 2 +- .../constructors/contacts_blockedSlice.md | 2 +- .../constructors/contacts_contacts.md | 2 +- .../constructors/contacts_found.md | 2 +- .../constructors/contacts_importedContacts.md | 2 +- .../constructors/contacts_resolvedPeer.md | 2 +- .../constructors/contacts_topPeers.md | 2 +- .../API_docs_v73/constructors/document.md | 2 +- .../constructors/documentAttributeAudio.md | 2 +- .../documentAttributeImageSize.md | 4 +- .../constructors/documentAttributeVideo.md | 6 +- .../API_docs_v73/constructors/draftMessage.md | 2 +- .../constructors/help_recentMeUrls.md | 2 +- .../constructors/inputBotInlineMessageText.md | 2 +- .../inputBotInlineResultDocument.md | 2 +- .../constructors/inputBotInlineResultPhoto.md | 2 +- .../constructors/inputChatPhoto.md | 2 +- .../constructors/inputChatUploadedPhoto.md | 2 +- .../constructors/inputGameShortName.md | 2 +- .../constructors/inputMediaDocument.md | 2 +- .../constructors/inputMediaPhoto.md | 2 +- .../inputMediaUploadedDocument.md | 10 +- .../constructors/inputMediaUploadedPhoto.md | 6 +- .../constructors/inputNotifyPeer.md | 2 +- .../inputPrivacyValueAllowUsers.md | 4 +- .../inputPrivacyValueDisallowUsers.md | 4 +- .../constructors/inputSingleMedia.md | 2 +- .../constructors/inputStickerSetItem.md | 2 +- .../inputStickeredMediaDocument.md | 2 +- .../constructors/inputStickeredMediaPhoto.md | 2 +- .../constructors/inputWebDocument.md | 2 +- old_docs/API_docs_v73/constructors/invoice.md | 2 +- .../constructors/keyboardButtonRow.md | 2 +- .../constructors/langPackDifference.md | 2 +- old_docs/API_docs_v73/constructors/message.md | 2 +- .../constructors/messageActionChatAddUser.md | 2 +- .../constructors/messageActionChatCreate.md | 2 +- .../constructors/messages_allStickers.md | 2 +- .../constructors/messages_archivedStickers.md | 2 +- .../constructors/messages_botResults.md | 2 +- .../constructors/messages_channelMessages.md | 2 +- .../constructors/messages_chatFull.md | 2 +- .../constructors/messages_chats.md | 2 +- .../constructors/messages_chatsSlice.md | 2 +- .../constructors/messages_dialogs.md | 2 +- .../constructors/messages_dialogsSlice.md | 2 +- .../constructors/messages_favedStickers.md | 2 +- .../constructors/messages_featuredStickers.md | 2 +- .../constructors/messages_foundGifs.md | 2 +- .../constructors/messages_highScores.md | 2 +- .../constructors/messages_messages.md | 2 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/messages_peerDialogs.md | 2 +- .../constructors/messages_recentStickers.md | 2 +- .../constructors/messages_savedGifs.md | 2 +- .../constructors/messages_stickerSet.md | 2 +- ...messages_stickerSetInstallResultArchive.md | 2 +- .../constructors/messages_stickers.md | 2 +- .../constructors/pageBlockCollage.md | 2 +- .../constructors/pageBlockEmbedPost.md | 2 +- .../constructors/pageBlockList.md | 2 +- .../constructors/pageBlockSlideshow.md | 2 +- .../API_docs_v73/constructors/pageFull.md | 2 +- .../API_docs_v73/constructors/pagePart.md | 2 +- .../constructors/payments_paymentForm.md | 2 +- .../constructors/payments_paymentReceipt.md | 2 +- .../payments_validatedRequestedInfo.md | 2 +- .../API_docs_v73/constructors/phoneCall.md | 2 +- .../constructors/phone_phoneCall.md | 2 +- old_docs/API_docs_v73/constructors/photo.md | 2 +- .../API_docs_v73/constructors/photos_photo.md | 2 +- .../constructors/photos_photos.md | 2 +- .../constructors/photos_photosSlice.md | 2 +- .../constructors/privacyValueAllowUsers.md | 2 +- .../constructors/privacyValueDisallowUsers.md | 2 +- .../constructors/replyInlineMarkup.md | 2 +- .../constructors/replyKeyboardMarkup.md | 2 +- .../constructors/shippingOption.md | 2 +- .../API_docs_v73/constructors/stickerPack.md | 2 +- .../constructors/stickerSetMultiCovered.md | 2 +- .../API_docs_v73/constructors/textConcat.md | 2 +- .../constructors/topPeerCategoryPeers.md | 2 +- .../updateChannelReadMessagesContents.md | 2 +- .../constructors/updateDcOptions.md | 2 +- .../updateDeleteChannelMessages.md | 2 +- .../constructors/updateDeleteMessages.md | 2 +- .../constructors/updatePinnedDialogs.md | 2 +- .../constructors/updatePrivacy.md | 2 +- .../updateReadMessagesContents.md | 2 +- .../constructors/updateServiceNotification.md | 2 +- .../constructors/updateShortChatMessage.md | 2 +- .../constructors/updateShortMessage.md | 2 +- .../constructors/updateShortSentMessage.md | 2 +- .../constructors/updateStickerSetsOrder.md | 2 +- old_docs/API_docs_v73/constructors/updates.md | 2 +- .../constructors/updatesCombined.md | 2 +- .../constructors/updates_channelDifference.md | 2 +- .../updates_channelDifferenceTooLong.md | 2 +- .../constructors/updates_difference.md | 2 +- .../constructors/updates_differenceSlice.md | 2 +- .../constructors/upload_fileCdnRedirect.md | 2 +- .../API_docs_v73/constructors/wallPaper.md | 2 +- .../API_docs_v73/constructors/webDocument.md | 2 +- old_docs/API_docs_v73/methods/README.md | 4 + .../methods/account_changePhone.md | 31 +- .../methods/account_checkUsername.md | 27 +- .../methods/account_confirmPhone.md | 29 +- .../methods/account_deleteAccount.md | 27 +- .../methods/account_getAccountTTL.md | 25 +- .../methods/account_getAuthorizations.md | 25 +- .../methods/account_getNotifySettings.md | 27 +- .../methods/account_getPassword.md | 25 +- .../methods/account_getPasswordSettings.md | 27 +- .../methods/account_getPrivacy.md | 27 +- .../methods/account_getTmpPassword.md | 29 +- .../methods/account_getWallPapers.md | 25 +- .../methods/account_registerDevice.md | 29 +- .../methods/account_reportPeer.md | 29 +- .../methods/account_resetAuthorization.md | 27 +- .../methods/account_resetNotifySettings.md | 25 +- .../methods/account_sendChangePhoneCode.md | 31 +- .../methods/account_sendConfirmPhoneCode.md | 31 +- .../methods/account_setAccountTTL.md | 27 +- .../methods/account_setPrivacy.md | 31 +- .../methods/account_unregisterDevice.md | 29 +- .../methods/account_updateDeviceLocked.md | 27 +- .../methods/account_updateNotifySettings.md | 29 +- .../methods/account_updatePasswordSettings.md | 29 +- .../methods/account_updateProfile.md | 31 +- .../methods/account_updateStatus.md | 27 +- .../methods/account_updateUsername.md | 27 +- .../methods/auth_bindTempAuthKey.md | 78 +- .../API_docs_v73/methods/auth_cancelCode.md | 29 +- .../methods/auth_checkPassword.md | 54 +- .../API_docs_v73/methods/auth_checkPhone.md | 27 +- .../methods/auth_dropTempAuthKeys.md | 32 +- .../methods/auth_exportAuthorization.md | 66 +- .../methods/auth_importAuthorization.md | 70 +- .../methods/auth_importBotAuthorization.md | 4 +- old_docs/API_docs_v73/methods/auth_logOut.md | 4 +- .../methods/auth_recoverPassword.md | 27 +- .../methods/auth_requestPasswordRecovery.md | 25 +- .../API_docs_v73/methods/auth_resendCode.md | 29 +- .../methods/auth_resetAuthorizations.md | 25 +- .../API_docs_v73/methods/auth_sendCode.md | 4 +- .../API_docs_v73/methods/auth_sendInvites.md | 31 +- old_docs/API_docs_v73/methods/auth_signIn.md | 4 +- old_docs/API_docs_v73/methods/auth_signUp.md | 4 +- .../methods/bots_answerWebhookJSONQuery.md | 20 +- .../methods/bots_sendCustomRequest.md | 20 +- .../methods/channels_checkUsername.md | 19 +- .../methods/channels_createChannel.md | 17 +- .../methods/channels_deleteChannel.md | 19 +- .../methods/channels_deleteHistory.md | 22 +- .../methods/channels_deleteMessages.md | 24 +- .../methods/channels_deleteUserHistory.md | 21 +- .../methods/channels_editAbout.md | 22 +- .../methods/channels_editAdmin.md | 24 +- .../methods/channels_editBanned.md | 24 +- .../methods/channels_editPhoto.md | 22 +- .../methods/channels_editTitle.md | 22 +- .../methods/channels_exportInvite.md | 22 +- .../methods/channels_exportMessageLink.md | 19 +- .../methods/channels_getAdminLog.md | 23 +- .../channels_getAdminedPublicChannels.md | 17 +- .../methods/channels_getChannels.md | 24 +- .../methods/channels_getFullChannel.md | 4 +- .../methods/channels_getMessages.md | 24 +- .../methods/channels_getParticipant.md | 24 +- .../methods/channels_getParticipants.md | 22 +- .../methods/channels_inviteToChannel.md | 23 +- .../methods/channels_joinChannel.md | 19 +- .../methods/channels_leaveChannel.md | 22 +- .../methods/channels_readHistory.md | 19 +- .../methods/channels_readMessageContents.md | 21 +- .../methods/channels_reportSpam.md | 23 +- .../methods/channels_setStickers.md | 22 +- .../methods/channels_toggleInvites.md | 19 +- .../channels_togglePreHistoryHidden.md | 22 +- .../methods/channels_toggleSignatures.md | 19 +- .../methods/channels_updatePinnedMessage.md | 22 +- .../methods/channels_updateUsername.md | 19 +- .../API_docs_v73/methods/contacts_block.md | 27 +- .../methods/contacts_deleteContact.md | 27 +- .../methods/contacts_deleteContacts.md | 29 +- .../methods/contacts_exportCard.md | 25 +- .../methods/contacts_getBlocked.md | 29 +- .../methods/contacts_getContacts.md | 27 +- .../methods/contacts_getStatuses.md | 25 +- .../methods/contacts_getTopPeers.md | 43 +- .../methods/contacts_importCard.md | 29 +- .../methods/contacts_importContacts.md | 29 +- .../methods/contacts_resetSaved.md | 20 +- .../methods/contacts_resetTopPeerRating.md | 19 +- .../methods/contacts_resolveUsername.md | 4 +- .../API_docs_v73/methods/contacts_search.md | 29 +- .../API_docs_v73/methods/contacts_unblock.md | 27 +- .../methods/help_getAppChangelog.md | 17 +- .../API_docs_v73/methods/help_getAppUpdate.md | 17 +- .../API_docs_v73/methods/help_getCdnConfig.md | 20 +- .../API_docs_v73/methods/help_getConfig.md | 20 +- .../methods/help_getInviteText.md | 17 +- .../API_docs_v73/methods/help_getNearestDc.md | 17 +- .../methods/help_getRecentMeUrls.md | 20 +- .../API_docs_v73/methods/help_getSupport.md | 17 +- .../methods/help_getTermsOfService.md | 17 +- .../API_docs_v73/methods/help_saveAppLog.md | 19 +- .../methods/help_setBotUpdatesStatus.md | 20 +- .../API_docs_v73/methods/initConnection.md | 44 +- .../API_docs_v73/methods/invokeAfterMsg.md | 32 +- .../API_docs_v73/methods/invokeAfterMsgs.md | 34 +- .../API_docs_v73/methods/invokeWithLayer.md | 32 +- .../methods/invokeWithoutUpdates.md | 30 +- .../methods/langpack_getDifference.md | 17 +- .../methods/langpack_getLangPack.md | 17 +- .../methods/langpack_getLanguages.md | 17 +- .../methods/langpack_getStrings.md | 19 +- .../methods/messages_acceptEncryption.md | 4 +- .../methods/messages_addChatUser.md | 21 +- .../methods/messages_checkChatInvite.md | 17 +- .../methods/messages_clearRecentStickers.md | 17 +- .../methods/messages_createChat.md | 21 +- .../methods/messages_deleteChatUser.md | 24 +- .../methods/messages_deleteHistory.md | 19 +- .../methods/messages_deleteMessages.md | 22 +- .../methods/messages_discardEncryption.md | 4 +- .../methods/messages_editChatAdmin.md | 21 +- .../methods/messages_editChatPhoto.md | 22 +- .../methods/messages_editChatTitle.md | 22 +- .../methods/messages_editInlineBotMessage.md | 22 +- .../methods/messages_editMessage.md | 24 +- .../methods/messages_exportChatInvite.md | 19 +- .../methods/messages_faveSticker.md | 22 +- .../methods/messages_forwardMessage.md | 22 +- .../methods/messages_forwardMessages.md | 26 +- .../methods/messages_getAllChats.md | 19 +- .../methods/messages_getAllDrafts.md | 17 +- .../methods/messages_getAllStickers.md | 17 +- .../methods/messages_getArchivedStickers.md | 17 +- .../methods/messages_getAttachedStickers.md | 17 +- .../methods/messages_getBotCallbackAnswer.md | 19 +- .../API_docs_v73/methods/messages_getChats.md | 22 +- .../methods/messages_getCommonChats.md | 19 +- .../methods/messages_getDhConfig.md | 17 +- .../methods/messages_getDialogs.md | 19 +- .../methods/messages_getDocumentByHash.md | 20 +- .../methods/messages_getFavedStickers.md | 20 +- .../methods/messages_getFeaturedStickers.md | 17 +- .../methods/messages_getFullChat.md | 4 +- .../methods/messages_getGameHighScores.md | 24 +- .../methods/messages_getHistory.md | 19 +- .../methods/messages_getInlineBotResults.md | 21 +- .../messages_getInlineGameHighScores.md | 22 +- .../methods/messages_getMaskStickers.md | 17 +- .../methods/messages_getMessageEditData.md | 19 +- .../methods/messages_getMessages.md | 22 +- .../methods/messages_getMessagesViews.md | 21 +- .../methods/messages_getPeerDialogs.md | 21 +- .../methods/messages_getPeerSettings.md | 19 +- .../methods/messages_getPinnedDialogs.md | 17 +- .../methods/messages_getRecentLocations.md | 22 +- .../methods/messages_getRecentStickers.md | 17 +- .../methods/messages_getSavedGifs.md | 17 +- .../methods/messages_getStickerSet.md | 20 +- .../methods/messages_getUnreadMentions.md | 19 +- .../methods/messages_getWebPage.md | 17 +- .../methods/messages_getWebPagePreview.md | 17 +- .../methods/messages_hideReportSpam.md | 19 +- .../methods/messages_importChatInvite.md | 17 +- .../methods/messages_installStickerSet.md | 17 +- .../methods/messages_migrateChat.md | 19 +- .../methods/messages_readEncryptedHistory.md | 22 +- .../methods/messages_readFeaturedStickers.md | 19 +- .../methods/messages_readHistory.md | 19 +- .../methods/messages_readMentions.md | 22 +- .../methods/messages_readMessageContents.md | 19 +- .../methods/messages_receivedMessages.md | 17 +- .../methods/messages_receivedQueue.md | 20 +- .../methods/messages_reorderPinnedDialogs.md | 21 +- .../methods/messages_reorderStickerSets.md | 19 +- .../methods/messages_reportEncryptedSpam.md | 19 +- .../methods/messages_reportSpam.md | 19 +- .../methods/messages_requestEncryption.md | 4 +- .../methods/messages_saveDraft.md | 21 +- .../API_docs_v73/methods/messages_saveGif.md | 19 +- .../methods/messages_saveRecentSticker.md | 19 +- .../API_docs_v73/methods/messages_search.md | 21 +- .../methods/messages_searchGifs.md | 17 +- .../methods/messages_searchGlobal.md | 19 +- .../methods/messages_sendEncrypted.md | 22 +- .../methods/messages_sendEncryptedFile.md | 24 +- .../methods/messages_sendEncryptedService.md | 22 +- .../methods/messages_sendInlineBotResult.md | 19 +- .../methods/messages_sendMedia.md | 24 +- .../methods/messages_sendMessage.md | 25 +- .../methods/messages_sendMultiMedia.md | 24 +- .../messages_sendScreenshotNotification.md | 19 +- .../methods/messages_setBotCallbackAnswer.md | 20 +- .../messages_setBotPrecheckoutResults.md | 20 +- .../methods/messages_setBotShippingResults.md | 22 +- .../methods/messages_setEncryptedTyping.md | 19 +- .../methods/messages_setGameScore.md | 24 +- .../methods/messages_setInlineBotResults.md | 22 +- .../methods/messages_setInlineGameScore.md | 22 +- .../methods/messages_setTyping.md | 22 +- .../API_docs_v73/methods/messages_startBot.md | 21 +- .../methods/messages_toggleChatAdmins.md | 19 +- .../methods/messages_toggleDialogPin.md | 19 +- .../methods/messages_uninstallStickerSet.md | 17 +- .../methods/messages_uploadEncryptedFile.md | 24 +- .../methods/messages_uploadMedia.md | 24 +- .../methods/payments_clearSavedInfo.md | 17 +- .../methods/payments_getPaymentForm.md | 17 +- .../methods/payments_getPaymentReceipt.md | 17 +- .../methods/payments_getSavedInfo.md | 17 +- .../methods/payments_sendPaymentForm.md | 17 +- .../methods/payments_validateRequestedInfo.md | 17 +- .../API_docs_v73/methods/phone_acceptCall.md | 4 +- .../API_docs_v73/methods/phone_confirmCall.md | 4 +- .../API_docs_v73/methods/phone_discardCall.md | 4 +- .../methods/phone_getCallConfig.md | 17 +- .../methods/phone_receivedCall.md | 17 +- .../API_docs_v73/methods/phone_requestCall.md | 4 +- .../methods/phone_saveCallDebug.md | 17 +- .../methods/phone_setCallRating.md | 17 +- .../methods/photos_deletePhotos.md | 21 +- .../methods/photos_getUserPhotos.md | 22 +- .../methods/photos_updateProfilePhoto.md | 19 +- .../methods/photos_uploadProfilePhoto.md | 19 +- .../methods/stickers_addStickerToSet.md | 20 +- .../methods/stickers_changeStickerPosition.md | 22 +- .../methods/stickers_createStickerSet.md | 24 +- .../methods/stickers_removeStickerFromSet.md | 22 +- .../methods/updates_getChannelDifference.md | 4 +- .../methods/updates_getDifference.md | 4 +- .../API_docs_v73/methods/updates_getState.md | 4 +- .../API_docs_v73/methods/upload_getCdnFile.md | 4 +- .../methods/upload_getCdnFileHashes.md | 4 +- .../API_docs_v73/methods/upload_getFile.md | 4 +- .../API_docs_v73/methods/upload_getWebFile.md | 17 +- .../methods/upload_reuploadCdnFile.md | 4 +- .../methods/upload_saveBigFilePart.md | 4 +- .../methods/upload_saveFilePart.md | 4 +- .../API_docs_v73/methods/users_getFullUser.md | 4 +- .../API_docs_v73/methods/users_getUsers.md | 32 +- old_docs/API_docs_v73/types/Chat.md | 5 + old_docs/API_docs_v73/types/InputChannel.md | 5 + old_docs/API_docs_v73/types/InputDocument.md | 2 + .../API_docs_v73/types/InputEncryptedChat.md | 4 +- .../API_docs_v73/types/InputEncryptedFile.md | 7 + old_docs/API_docs_v73/types/InputFile.md | 7 + old_docs/API_docs_v73/types/InputMedia.md | 2 + old_docs/API_docs_v73/types/InputPeer.md | 5 + old_docs/API_docs_v73/types/InputPhoto.md | 2 + old_docs/API_docs_v73/types/InputUser.md | 5 + old_docs/API_docs_v73/types/Peer.md | 5 + old_docs/API_docs_v73/types/PhoneCall.md | 8 +- old_docs/API_docs_v73/types/User.md | 5 + secret_bot.php | 199 +- src/danog/MadelineProto/Absolute.php | 29 + src/danog/MadelineProto/DocsBuilder.php | 77 +- .../DocsBuilder/Constructors.php | 41 +- .../MadelineProto/DocsBuilder/Methods.php | 63 +- src/danog/MadelineProto/EventHandler.php | 62 + src/danog/MadelineProto/Exception.php | 15 + src/danog/MadelineProto/FileCallback.php | 30 + .../MadelineProto/FileCallbackInterface.php | 20 + src/danog/MadelineProto/Lang.php | 8053 ++++++++++++++++- src/danog/MadelineProto/Logger.php | 6 +- src/danog/MadelineProto/MTProto.php | 44 +- .../MTProtoTools/CallHandler.php | 1 + .../MadelineProto/MTProtoTools/Files.php | 90 +- .../MTProtoTools/PeerHandler.php | 38 +- .../MTProtoTools/UpdateHandler.php | 12 +- src/danog/MadelineProto/Serialization.php | 4 +- .../MadelineProto/TL/Conversion/BotAPI.php | 4 +- src/danog/MadelineProto/TL/TL.php | 72 +- src/danog/MadelineProto/Tools.php | 15 + .../MadelineProto/VoIP/AuthKeyHandler.php | 14 +- src/danog/MadelineProto/Wrappers/Callback.php | 25 + src/danog/MadelineProto/Wrappers/Events.php | 45 + src/danog/MadelineProto/Wrappers/Login.php | 2 +- src/danog/MadelineProto/Wrappers/Loop.php | 60 + src/danog/MadelineProto/Wrappers/Start.php | 150 + .../MadelineProto/Wrappers/Templates.php | 71 + src/danog/MadelineProto/Wrappers/Webhook.php | 28 + tests/testing.php | 221 +- translator.php | 21 +- 7239 files changed, 100384 insertions(+), 46093 deletions(-) create mode 100644 build_docs_index.php create mode 100644 docs/API_docs/Lang.php delete mode 100644 docs/COMPOSER_INSTALLATION.md delete mode 100644 docs/FULL_README.md delete mode 100644 docs/GIT_INSTALLATION.md create mode 100644 docs/MTProto_docs/Lang.php delete mode 100644 docs/UBUNTU_INSTALLATION_FULL.md create mode 100644 docs/docs/CALLS.md create mode 100644 docs/docs/CHAT_INFO.md create mode 100644 docs/docs/CONTRIBUTING.md create mode 100644 docs/docs/CREATING_A_CLIENT.md create mode 100644 docs/docs/DIALOGS.md create mode 100644 docs/docs/EXCEPTIONS.md create mode 100644 docs/docs/FEATURES.md create mode 100644 docs/docs/FILES.md create mode 100644 docs/docs/INLINE_BUTTONS.md create mode 100644 docs/docs/INSTALLATION.md create mode 100644 docs/docs/LOGGING.md create mode 100644 docs/docs/LOGIN.md create mode 100644 docs/docs/LUA.md create mode 100644 docs/docs/PROXY.md rename docs/{UBUNTU_INSTALLATION.md => docs/REQUIREMENTS.md} (85%) create mode 100644 docs/docs/SECRET_CHATS.md create mode 100644 docs/docs/SELF.md create mode 100644 docs/docs/SETTINGS.md create mode 100644 docs/docs/UPDATES.md create mode 100644 docs/docs/USING_METHODS.md create mode 100644 docs/request_call.md create mode 100644 docs/request_secret_chat.md create mode 100644 index.php create mode 100644 old_docs/API_docs_v18/Lang.php create mode 100644 old_docs/API_docs_v25/Lang.php create mode 100644 old_docs/API_docs_v33/Lang.php create mode 100644 old_docs/API_docs_v38/Lang.php create mode 100644 old_docs/API_docs_v40/Lang.php create mode 100644 old_docs/API_docs_v41/Lang.php create mode 100644 old_docs/API_docs_v44/Lang.php create mode 100644 old_docs/API_docs_v45/Lang.php create mode 100644 old_docs/API_docs_v51/Lang.php create mode 100644 old_docs/API_docs_v55/Lang.php create mode 100644 old_docs/API_docs_v62/Lang.php create mode 100644 old_docs/API_docs_v65/Lang.php create mode 100644 src/danog/MadelineProto/Absolute.php create mode 100644 src/danog/MadelineProto/EventHandler.php create mode 100644 src/danog/MadelineProto/FileCallback.php create mode 100644 src/danog/MadelineProto/FileCallbackInterface.php create mode 100644 src/danog/MadelineProto/Wrappers/Callback.php create mode 100644 src/danog/MadelineProto/Wrappers/Events.php create mode 100644 src/danog/MadelineProto/Wrappers/Loop.php create mode 100644 src/danog/MadelineProto/Wrappers/Start.php create mode 100644 src/danog/MadelineProto/Wrappers/Templates.php create mode 100644 src/danog/MadelineProto/Wrappers/Webhook.php diff --git a/README.md b/README.md index 04831280..0193143e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MadelineProto, a PHP MTProto telegram client -Do join the official channel, [@MadelineProto](https://t.me/MadelineProto)! +Do join the official channel, [@MadelineProto](https://t.me/MadelineProto) and the [support groups](https://t.me/pwrtelegramgroup)! ## What's this? @@ -9,16 +9,14 @@ This library can be used to easily interact with Telegram **without** the bot AP It can login with a phone number (MTProto API), or with a bot token (MTProto API, **no bot API involved!**). - -## Installation - -Simply download [madeline.php](https://phar.madelineproto.xyz/madeline.php). - ## Getting started ``` ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); -$MadelineProto->phone_login(readline('Enter your phone number: ')); -$authorization = $MadelineProto->complete_phone_login(readline('Enter the phone code: ')); -if ($authorization['_'] === 'account.password') { - $authorization = $MadelineProto->complete_2fa_login(readline('Please enter your password (hint '.$authorization['hint'].'): ')); -} -if ($authorization['_'] === 'account.needSignup') { - $authorization = $MadelineProto->complete_signup(readline('Please enter your first name: '), readline('Please enter your last name (can be empty): ')); -} - -``` - -## Simple example - -``` $MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => "Hi!\nThanks for creating MadelineProto! <3"]); $MadelineProto->channels->joinChannel(['channel' => '@MadelineProto']); ``` +Run this code in a browser or in a console. + ## Documentation -- [Features](https://docs.madelineproto.xyz/FULL_README.html#features) -- [Full method list](https://docs.madelineproto.xyz/API_docs/methods) -- [How to use these methods](https://docs.madelineproto.xyz/FULL_README.html#methods) -- [Clicking inline buttons](https://docs.madelineproto.xyz/FULL_README.html#inline-buttons) -- [Uploading and downloading files](https://docs.madelineproto.xyz/FULL_README.html#uploading-and-downloading-files) -- [Changing settings](https://docs.madelineproto.xyz/FULL_README.html#settings) -- [Update management (getting incoming messages)](https://docs.madelineproto.xyz/FULL_README.html#handling-updates) -- [Using a proxy](https://docs.madelineproto.xyz/FULL_README.html#using-a-proxy) -- [Calls](https://docs.madelineproto.xyz/FULL_README.html#calls) -- [Secret chats](https://docs.madelineproto.xyz/FULL_README.html#secret-chats) -- [Storing sessions](https://docs.madelineproto.xyz/FULL_README.html#storing-sessions) -- [Exceptions](https://docs.madelineproto.xyz/FULL_README.html#exceptions) -- [Lua binding](https://docs.madelineproto.xyz/FULL_README.html#lua-binding) +* [Creating a client](https://docs.madelineproto.xyz/docs/CREATING_A_CLIENT.html) +* [Logging in](https://docs.madelineproto.xyz/docs/LOGIN.html) + * [Automatic](https://docs.madelineproto.xyz/docs/LOGIN.html#automatic) + * [Manual (user)](https://docs.madelineproto.xyz/docs/LOGIN.html#manual-user) + * [Manual (bot)](https://docs.madelineproto.xyz/docs/LOGIN.html#manual-bot) + * [Logout](https://docs.madelineproto.xyz/docs/LOGIN.html#logout) +* [Features](https://docs.madelineproto.xyz/docs/FEATURES.html) +* [Requirements](https://docs.madelineproto.xyz/docs/REQUIREMENTS.html) +* [Installation](https://docs.madelineproto.xyz/docs/INSTALLATION.html) + * [Simple](https://docs.madelineproto.xyz/docs/INSTALLATION.html#simple) + * [Simple (manual)](https://docs.madelineproto.xyz/docs/INSTALLATION.html#simple-manual) + * [Composer from scratch](https://docs.madelineproto.xyz/docs/INSTALLATION.html#composer-from-scratch) + * [Composer from existing project](https://docs.madelineproto.xyz/docs/INSTALLATION.html#composer-from-existing-project) + * [Git](https://docs.madelineproto.xyz/docs/INSTALLATION.html#git) +* [Handling updates](https://docs.madelineproto.xyz/docs/UPDATES.html) + * [Event driven](https://docs.madelineproto.xyz/docs/UPDATES.html#event-handler) + * [Event driven multithreaded](https://docs.madelineproto.xyz/docs/UPDATES.html#multithreaded-event-handler) + * [Webhook](https://docs.madelineproto.xyz/docs/UPDATES.html#webhook) + * [Webhook multithreaded](https://docs.madelineproto.xyz/docs/UPDATES.html#multithreaded-webhook) + * [Long polling (getupdates)](https://docs.madelineproto.xyz/docs/UPDATES.html#getupdates) + * [Callback](https://docs.madelineproto.xyz/docs/UPDATES.html#callback) + * [Callback multithreaded](https://docs.madelineproto.xyz/docs/UPDATES.html#multithreaded-callback) +* [Settings](https://docs.madelineproto.xyz/docs/SETTINGS.html) +* [Getting info about the current user](https://docs.madelineproto.xyz/docs/SELF.html) +* [Exceptions](https://docs.madelineproto.xyz/docs/EXCEPTIONS.html) + * [List of exception types](https://docs.madelineproto.xyz/docs/EXCEPTIONS.html#list-of-exception-types) + * [Pretty TL trace](https://docs.madelineproto.xyz/docs/EXCEPTIONS.html#pretty-tl-trace) + * [Getting the TL trace](https://docs.madelineproto.xyz/docs/EXCEPTIONS.html#getting-the-tl-trace) +* [Logging](https://docs.madelineproto.xyz/docs/LOGGING.html) +* [Using methods](https://docs.madelineproto.xyz/docs/USING_METHODS.html) + * [Peers](https://docs.madelineproto.xyz/docs/USING_METHODS.html#peers) + * [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) +* [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) + * [Photos](https://docs.madelineproto.xyz/docs/FILES.html#inputmediauploadedphoto) + * [Documents](https://docs.madelineproto.xyz/docs/FILES.html#inputmediauploadeddocument) + * [Documents](https://docs.madelineproto.xyz/docs/FILES.html#documentattributefilename-to-send-a-document) + * [Photos as documents](https://docs.madelineproto.xyz/docs/FILES.html#documentattributeimagesize-to-send-a-photo-as-document) + * [GIFs](https://docs.madelineproto.xyz/docs/FILES.html#documentattributeanimated-to-send-a-gif) + * [Videos](https://docs.madelineproto.xyz/docs/FILES.html#documentattributevideo-to-send-a-video) + * [Audio & Voice](https://docs.madelineproto.xyz/docs/FILES.html#documentattributeaudio-to-send-an-audio-file) + * [Uploading files](https://docs.madelineproto.xyz/docs/FILES.html#uploading-files) + * [Bot API file IDs](https://docs.madelineproto.xyz/docs/FILES.html#bot-api-file-ids) + * [Reusing uploaded files](https://docs.madelineproto.xyz/docs/FILES.html#reusing-uploaded-files) + * [Downloading files](https://docs.madelineproto.xyz/docs/FILES.html#downloading-files) + * [Extracting download info](https://docs.madelineproto.xyz/docs/FILES.html#extracting-download-info) + * [Download to directory](https://docs.madelineproto.xyz/docs/FILES.html#download-to-directory) + * [Download to file](https://docs.madelineproto.xyz/docs/FILES.html#download-to-file) + * [Download to browser (streaming)](https://docs.madelineproto.xyz/docs/FILES.html#download-to-browser-with-streams) + * [Getting progress](https://docs.madelineproto.xyz/docs/FILES.html#getting-progress) +* [Getting info about chats](https://docs.madelineproto.xyz/docs/CHAT_INFO.html) + * [Full chat info with full list of participants](https://docs.madelineproto.xyz/docs/CHAT_INFO.html#get_pwr_chat) + * [Full chat info](https://docs.madelineproto.xyz/docs/CHAT_INFO.html#get_full_info) + * [Reduced chat info (very fast)](https://docs.madelineproto.xyz/docs/CHAT_INFO.html#get_info) +* [Getting all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) + * [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) + * [Checking secret chat status](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html#checking-secret-chat-status) + * [Sending secret messages](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html#sending-secret-messages) +* [Lua binding](https://docs.madelineproto.xyz/docs/LUA.html) +* [Using a proxy](https://docs.madelineproto.xyz/docs/PROXY.html) ## Very complex and complete examples diff --git a/bot.php b/bot.php index be044d35..5184359e 100755 --- a/bot.php +++ b/bot.php @@ -12,51 +12,67 @@ If not, see . */ set_include_path(get_include_path().':'.realpath(dirname(__FILE__).'/MadelineProto/')); -require 'vendor/autoload.php'; -$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e']]; //, 'connection_settings' => ['all' => ['test_mode' => true]]]; +/** + * Various ways to load MadelineProto + */ +if (!file_exists(__DIR__.'/vendor/autoload.php')) { + echo 'You did not run composer update, using madeline.php'.PHP_EOL; + if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); + } + include 'madeline.php'; +} else { + require_once 'vendor/autoload.php'; +} + +class EventHandler extends \danog\MadelineProto\EventHandler +{ + public function onAny($update) + { + \danog\MadelineProto\Logger::log("Received an update of type ".$update['_']); + } + public function onUpdateNewChannelMessage($update) + { + $this->onUpdateNewMessage($update); + } + public function onUpdateNewMessage($update) + { + if (isset($update['message']['out']) && $update['message']['out']) { + return; + } + $res = json_encode($update, JSON_PRETTY_PRINT); + if ($res == '') { + $res = var_export($update, true); + } + + try { + $this->messages->sendMessage(['peer' => $update, 'message' => $res, 'reply_to_msg_id' => $update['message']['id'], 'entities' => [['_' => 'messageEntityPre', 'offset' => 0, 'length' => strlen($res), 'language' => 'json']]]); + } catch (\danog\MadelineProto\RPCErrorException $e) { + $this->messages->sendMessage(['peer' => '@danogentili', 'message' => $e->getCode().': '.$e->getMessage().PHP_EOL.$e->getTraceAsString()]); + } + + try { + if (isset($update['message']['media']) && ($update['message']['media']['_'] == 'messageMediaPhoto' || $update['message']['media']['_'] == 'messageMediaDocument')) { + $time = microtime(true); + $file = $this->download_to_dir($update, '/tmp'); + $this->messages->sendMessage(['peer' => $update, 'message' => 'Downloaded to '.$file.' in '.(microtime(true) - $time).' seconds', 'reply_to_msg_id' => $update['message']['id'], 'entities' => [['_' => 'messageEntityPre', 'offset' => 0, 'length' => strlen($res), 'language' => 'json']]]); + } + } catch (\danog\MadelineProto\RPCErrorException $e) { + $this->messages->sendMessage(['peer' => '@danogentili', 'message' => $e->getCode().': '.$e->getMessage().PHP_EOL.$e->getTraceAsString()]); + } + } +} + + +$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e'], 'updates' => ['handle_updates' => true]]; //, 'connection_settings' => ['all' => ['test_mode' => true]]]; try { $MadelineProto = new \danog\MadelineProto\API('bot.madeline', $settings); } catch (\danog\MadelineProto\Exception $e) { \danog\MadelineProto\Logger::log($e->getMessage()); - $MadelineProto = new \danog\MadelineProto\API($settings); - $authorization = $MadelineProto->bot_login(readline('Enter a bot token: ')); - \danog\MadelineProto\Logger::log($authorization, \danog\MadelineProto\Logger::NOTICE); -} -$MadelineProto->session = 'bot.madeline'; -$offset = 0; - -while (true) { - $updates = $MadelineProto->get_updates(['offset' => $offset, 'limit' => 50, 'timeout' => 0]); // Just like in the bot API, you can specify an offset, a limit and a timeout - \danog\MadelineProto\Logger::log($updates); - foreach ($updates as $update) { - $offset = $update['update_id'] + 1; // Just like in the bot API, the offset must be set to the last update_id - switch ($update['update']['_']) { - case 'updateNewMessage': - case 'updateNewChannelMessage': - if (isset($update['update']['message']['out']) && $update['update']['message']['out']) { - continue; - } - $res = json_encode($update, JSON_PRETTY_PRINT); - if ($res == '') { - $res = var_export($update, true); - } - - try { - $MadelineProto->messages->sendMessage(['peer' => $update['update']['_'] === 'updateNewMessage' ? $update['update']['message']['from_id'] : $update['update']['message']['to_id'], 'message' => $res, 'reply_to_msg_id' => $update['update']['message']['id'], 'entities' => [['_' => 'messageEntityPre', 'offset' => 0, 'length' => strlen($res), 'language' => 'json']]]); - } catch (\danog\MadelineProto\RPCErrorException $e) { - $MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => $e->getCode().': '.$e->getMessage().PHP_EOL.$e->getTraceAsString()]); - } - - try { - if (isset($update['update']['message']['media']) && ($update['update']['message']['media']['_'] == 'messageMediaPhoto' || $update['update']['message']['media']['_'] == 'messageMediaDocument')) { - $time = microtime(true); - $file = $MadelineProto->download_to_dir($update['update']['message']['media'], '/tmp'); - $MadelineProto->messages->sendMessage(['peer' => isset($update['update']['message']['from_id']) ? $update['update']['message']['from_id'] : $update['update']['message']['to_id'], 'message' => 'Downloaded to '.$file.' in '.(microtime(true) - $time).' seconds', 'reply_to_msg_id' => $update['update']['message']['id'], 'entities' => [['_' => 'messageEntityPre', 'offset' => 0, 'length' => strlen($res), 'language' => 'json']]]); - } - } catch (\danog\MadelineProto\RPCErrorException $e) { - $MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => $e->getCode().': '.$e->getMessage().PHP_EOL.$e->getTraceAsString()]); - } - } - } + unlink('bot.madeline'); + $MadelineProto = new \danog\MadelineProto\API('bot.madeline', $settings); } +$MadelineProto->start(); +$MadelineProto->setEventHandler('\EventHandler'); +$MadelineProto->loop(); diff --git a/build_docs_index.php b/build_docs_index.php new file mode 100644 index 00000000..bc555305 --- /dev/null +++ b/build_docs_index.php @@ -0,0 +1,64 @@ + $match) { + $spaces = " $match"; + $name = $matches[2][$key]; + $url = $file."#".$matches[3][$key]; + $index .= "$spaces* [$name]($url)\n"; + } + } +} +echo $index; diff --git a/composer.json b/composer.json index 30498290..5f4b41c9 100644 --- a/composer.json +++ b/composer.json @@ -10,8 +10,8 @@ }, "require": { "php": ">=5.6.0", - "danog/primemodule": "dev-master", - "danog/magicalserializer": "dev-master", + "danog/primemodule": "^1.0.2", + "danog/magicalserializer": "^1.0", "phpseclib/phpseclib": "dev-master#27370df", "vlucas/phpdotenv": "^2.4", "erusev/parsedown": "^1.6", diff --git a/docs/API_docs/Lang.php b/docs/API_docs/Lang.php new file mode 100644 index 00000000..376038e4 --- /dev/null +++ b/docs/API_docs/Lang.php @@ -0,0 +1,2006 @@ +. + */ + +namespace danog\MadelineProto; + +class Lang +{ + public static $lang = array ( + 'it' => + array ( + 'phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istanziamento dei DataCenter...', + 'load_rsa' => 'Caricamento delle chiavi RSA...', + 'TL_translation' => 'Translazione degli schemi TL...', + 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', + 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', + 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', + 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', + 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', + 'threading_on' => 'IL THREADING È ABILITATO', + 'socket_reader' => 'Lettore socket su DC %s: ', + 'socket_status_1' => 'CREAZIONE', + 'socket_status_2' => 'INVIO', + 'socket_status_3' => 'ATTESA', + 'socket_status_4' => 'PRONTO', + 'socket_status_5' => 'AVVIATO', + 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', + 'session_corrupted' => 'La sessione si è corrotta!', + 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', + 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', + 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', + 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', + 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', + 'config_updated' => 'La configurazione è stata aggiornata!', + 'length_not_4' => 'La lunghezza non è uguale a 4', + 'length_not_8' => 'La lunghezza non è uguale a 8', + 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', + 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', + 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', + 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', + 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', + 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', + 'file_not_exist' => 'Il file specificato non esiste', + 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', + 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', + 'loading_key' => 'Caricamento della chiave in corso...', + 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', + 'rsa_encrypting' => 'Criptando con chiave RSA...', + 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', + 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', + 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', + 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', + 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', + 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', + 'socket_con_error' => 'Connessione fallita.', + 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', + 'protocol_invalid' => 'È stato fornito un protocollo non valido', + 'nothing_in_socket' => 'Non c\'è niente nel socket!', + 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', + 'no_data_in_socket' => 'Non ci sono dati nel socket!', + 'dc_con_start' => 'Connessione al DC %s in corso...', + 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', + 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', + 'script_not_exist' => 'Lo script fornito non esiste', + 'apifactory_start' => 'Sto avviando la fabbrica di API...', + 'madelineproto_ready' => 'MadelineProto è pronto!', + 'logout_error' => 'C\'è stato un errore durante il logout!', + 'logout_ok' => 'Il logout è stato eseguito correttamente!', + 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', + 'login_ok' => 'Il login è stato eseguito correttamente!', + 'login_user' => 'Sto eseguendo il login come utente normale...', + 'login_bot' => 'Sto eseguendo il login come bot...', + 'login_code_sending' => 'Sto inviando il codice...', + 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', + 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', + 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', + 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', + 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', + 'not_logged_in' => 'Non ho ancora fatto il login!', + 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', + 'signing_up' => 'Mi sto registrando su telegram come utente normale...', + 'signup_ok' => 'Mi sono registrato su Telegram!', + '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', + 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', + 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', + 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', + 'calling_user' => 'Sto chiamando %s...', + 'generating_a' => 'Sto generando a...', + 'generating_g_a' => 'Sto generando g_a...', + 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', + 'accepting_call' => 'Sto accettando una chiamata da %s...', + 'generating_b' => 'Sto generando b...', + 'call_already_accepted' => 'La chiamata %s è già stata accettata.', + 'call_already_declined' => 'La chiamata %s è già stata annullata.', + 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', + 'call_confirming' => 'Sto confermando una chiamata da %s', + 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', + 'call_completing' => 'Sto completando una chiamata da %s...', + 'invalid_g_a' => 'g_a non valido!', + 'fingerprint_invalid' => 'fingerprint della chiave non valido!', + 'call_discarding' => 'Sto rifiutando la chiamata %s...', + 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', + 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', + 'TL_loading' => 'Sto caricando gli schemi TL...', + 'file_parsing' => 'Leggendo %s...', + 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', + 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', + 'translating_obj' => 'Traducendo gli oggetti...', + 'translating_methods' => 'Traducendo i metodi...', + 'bool_error' => 'Non sono riuscito ad estrarre un booleano', + 'not_numeric' => 'Il valore fornito non è numerico', + 'long_not_16' => 'Il valore fornito non è lungo 16 byte', + 'long_not_32' => 'Il valore fornito non è lungo 32 byte', + 'long_not_64' => 'Il valore fornito non è lungo 64 byte', + 'array_invalid' => 'Il valore fornito non è un array', + 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', + 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', + 'method_not_found' => 'Impossibile trovare il seguente metodo: ', + 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', + 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', + 'stream_handle_invalid' => 'Il valore fornito non è uno stream', + 'length_too_big' => 'Il valore fornito è troppo lungo', + 'deserialize_not_str' => 'Il valore generato non è una stringa', + 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', + 'vector_invalid' => 'ID vettore non valido: ', + 'constructor_not_found' => 'Costruttore non trovato per tipo: ', + 'rand_bytes_too_small' => 'random_bytes è troppo corto!', + 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', + 'non_text_conversion' => 'Non posso ancora convertire messaggi media', + 'last_byte_invalid' => 'L\'ultimo byte non è valido', + 'file_type_invalid' => 'È stato fornito un tipo file errato', + 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', + 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', + 'shutting_down_reader_pool' => 'Chisura pool di lettura', + 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', + 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', + 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', + 'msg_data_length_too_big' => 'message_data_length è troppo grande', + 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', + 'msg_key_mismatch' => 'msg_key non valido', + 'rand_bytes_too_short' => 'random_bytes è troppo corto!', + 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', + 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', + 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', + 'req_pq' => 'Sto richiedendo pq...', + 'done' => 'Fatto!', + 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', + 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!', + ), + 'en' => + array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + ), +); + + // THIS WILL BE OVERWRITTEN BY $lang["en"] + public static $current_lang = array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', +); +} \ No newline at end of file diff --git a/docs/API_docs/constructors/account_authorizations.md b/docs/API_docs/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/docs/API_docs/constructors/account_authorizations.md +++ b/docs/API_docs/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/account_privacyRules.md b/docs/API_docs/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/docs/API_docs/constructors/account_privacyRules.md +++ b/docs/API_docs/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/account_webAuthorizations.md b/docs/API_docs/constructors/account_webAuthorizations.md index 4d4815d9..ee017826 100644 --- a/docs/API_docs/constructors/account_webAuthorizations.md +++ b/docs/API_docs/constructors/account_webAuthorizations.md @@ -22,7 +22,7 @@ description: account_webAuthorizations attributes, type and example ### Example: ``` -$account_webAuthorizations = ['_' => 'account.webAuthorizations', 'authorizations' => [WebAuthorization], 'users' => [User]]; +$account_webAuthorizations = ['_' => 'account.webAuthorizations', 'authorizations' => [WebAuthorization, WebAuthorization], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/botInfo.md b/docs/API_docs/constructors/botInfo.md index bee4a540..25a27913 100644 --- a/docs/API_docs/constructors/botInfo.md +++ b/docs/API_docs/constructors/botInfo.md @@ -23,7 +23,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/botInlineMessageMediaAuto.md b/docs/API_docs/constructors/botInlineMessageMediaAuto.md index 6d55dba7..bd3de485 100644 --- a/docs/API_docs/constructors/botInlineMessageMediaAuto.md +++ b/docs/API_docs/constructors/botInlineMessageMediaAuto.md @@ -23,7 +23,7 @@ description: botInlineMessageMediaAuto attributes, type and example ### Example: ``` -$botInlineMessageMediaAuto = ['_' => 'botInlineMessageMediaAuto', 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$botInlineMessageMediaAuto = ['_' => 'botInlineMessageMediaAuto', 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/botInlineMessageText.md b/docs/API_docs/constructors/botInlineMessageText.md index dc00808b..feb5e9d0 100644 --- a/docs/API_docs/constructors/botInlineMessageText.md +++ b/docs/API_docs/constructors/botInlineMessageText.md @@ -24,7 +24,7 @@ description: botInlineMessageText attributes, type and example ### Example: ``` -$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/cdnConfig.md b/docs/API_docs/constructors/cdnConfig.md index 28e814e5..2bf5d200 100644 --- a/docs/API_docs/constructors/cdnConfig.md +++ b/docs/API_docs/constructors/cdnConfig.md @@ -21,7 +21,7 @@ description: cdnConfig attributes, type and example ### Example: ``` -$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey]]; +$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey, CdnPublicKey]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/channelFull.md b/docs/API_docs/constructors/channelFull.md index f32618fe..14974fd3 100644 --- a/docs/API_docs/constructors/channelFull.md +++ b/docs/API_docs/constructors/channelFull.md @@ -42,7 +42,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'hidden_prehistory' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_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]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'hidden_prehistory' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_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: diff --git a/docs/API_docs/constructors/channelMessagesFilter.md b/docs/API_docs/constructors/channelMessagesFilter.md index 0a731ce9..ad9a592e 100644 --- a/docs/API_docs/constructors/channelMessagesFilter.md +++ b/docs/API_docs/constructors/channelMessagesFilter.md @@ -22,7 +22,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/channels_adminLogResults.md b/docs/API_docs/constructors/channels_adminLogResults.md index f0eb0e66..1ef19a76 100644 --- a/docs/API_docs/constructors/channels_adminLogResults.md +++ b/docs/API_docs/constructors/channels_adminLogResults.md @@ -23,7 +23,7 @@ description: channels_adminLogResults attributes, type and example ### Example: ``` -$channels_adminLogResults = ['_' => 'channels.adminLogResults', 'events' => [ChannelAdminLogEvent], 'chats' => [Chat], 'users' => [User]]; +$channels_adminLogResults = ['_' => 'channels.adminLogResults', 'events' => [ChannelAdminLogEvent, ChannelAdminLogEvent], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/channels_channelParticipant.md b/docs/API_docs/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/docs/API_docs/constructors/channels_channelParticipant.md +++ b/docs/API_docs/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/channels_channelParticipants.md b/docs/API_docs/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/docs/API_docs/constructors/channels_channelParticipants.md +++ b/docs/API_docs/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/chatFull.md b/docs/API_docs/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/docs/API_docs/constructors/chatFull.md +++ b/docs/API_docs/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/chatInvite.md b/docs/API_docs/constructors/chatInvite.md index e7000f7b..e9087e0d 100644 --- a/docs/API_docs/constructors/chatInvite.md +++ b/docs/API_docs/constructors/chatInvite.md @@ -28,7 +28,7 @@ description: chatInvite attributes, type and example ### Example: ``` -$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [User]]; +$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: diff --git a/docs/API_docs/constructors/chatParticipants.md b/docs/API_docs/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/docs/API_docs/constructors/chatParticipants.md +++ b/docs/API_docs/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/config.md b/docs/API_docs/constructors/config.md index 318ce485..0fdd9e25 100644 --- a/docs/API_docs/constructors/config.md +++ b/docs/API_docs/constructors/config.md @@ -55,7 +55,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'default_p2p_contacts' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_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', 'suggested_lang_code' => 'string', 'lang_pack_version' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'default_p2p_contacts' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_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', 'suggested_lang_code' => 'string', 'lang_pack_version' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/contacts_blocked.md b/docs/API_docs/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/docs/API_docs/constructors/contacts_blocked.md +++ b/docs/API_docs/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/contacts_blockedSlice.md b/docs/API_docs/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/docs/API_docs/constructors/contacts_blockedSlice.md +++ b/docs/API_docs/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/contacts_contacts.md b/docs/API_docs/constructors/contacts_contacts.md index 17e4ddc1..f239b0b7 100644 --- a/docs/API_docs/constructors/contacts_contacts.md +++ b/docs/API_docs/constructors/contacts_contacts.md @@ -23,7 +23,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'saved_count' => int, 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'saved_count' => int, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/contacts_found.md b/docs/API_docs/constructors/contacts_found.md index 6f461dd9..f1e93a87 100644 --- a/docs/API_docs/constructors/contacts_found.md +++ b/docs/API_docs/constructors/contacts_found.md @@ -24,7 +24,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'my_results' => [Peer], 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'my_results' => [Peer, Peer], 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/contacts_importedContacts.md b/docs/API_docs/constructors/contacts_importedContacts.md index ae85f35e..e4d017c0 100644 --- a/docs/API_docs/constructors/contacts_importedContacts.md +++ b/docs/API_docs/constructors/contacts_importedContacts.md @@ -24,7 +24,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'popular_invites' => [PopularContact], 'retry_contacts' => [long], 'users' => [User]]; +$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: diff --git a/docs/API_docs/constructors/contacts_resolvedPeer.md b/docs/API_docs/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/docs/API_docs/constructors/contacts_resolvedPeer.md +++ b/docs/API_docs/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/contacts_topPeers.md b/docs/API_docs/constructors/contacts_topPeers.md index 17551f5d..07623018 100644 --- a/docs/API_docs/constructors/contacts_topPeers.md +++ b/docs/API_docs/constructors/contacts_topPeers.md @@ -23,7 +23,7 @@ description: contacts_topPeers attributes, type and example ### Example: ``` -$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers], 'chats' => [Chat], 'users' => [User]]; +$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers, TopPeerCategoryPeers], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/decryptedMessageActionDeleteMessages_8.md b/docs/API_docs/constructors/decryptedMessageActionDeleteMessages_8.md index 2e1e6b97..15402a8b 100644 --- a/docs/API_docs/constructors/decryptedMessageActionDeleteMessages_8.md +++ b/docs/API_docs/constructors/decryptedMessageActionDeleteMessages_8.md @@ -21,7 +21,7 @@ description: decryptedMessageActionDeleteMessages attributes, type and example ### Example: ``` -$decryptedMessageActionDeleteMessages_8 = ['_' => 'decryptedMessageActionDeleteMessages', 'random_ids' => [long]]; +$decryptedMessageActionDeleteMessages_8 = ['_' => 'decryptedMessageActionDeleteMessages', 'random_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/decryptedMessageActionReadMessages_8.md b/docs/API_docs/constructors/decryptedMessageActionReadMessages_8.md index 6ec8b2d6..c36d8f58 100644 --- a/docs/API_docs/constructors/decryptedMessageActionReadMessages_8.md +++ b/docs/API_docs/constructors/decryptedMessageActionReadMessages_8.md @@ -21,7 +21,7 @@ description: decryptedMessageActionReadMessages attributes, type and example ### Example: ``` -$decryptedMessageActionReadMessages_8 = ['_' => 'decryptedMessageActionReadMessages', 'random_ids' => [long]]; +$decryptedMessageActionReadMessages_8 = ['_' => 'decryptedMessageActionReadMessages', 'random_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/decryptedMessageActionScreenshotMessages_8.md b/docs/API_docs/constructors/decryptedMessageActionScreenshotMessages_8.md index 2e8b6b5e..e4b4fc0b 100644 --- a/docs/API_docs/constructors/decryptedMessageActionScreenshotMessages_8.md +++ b/docs/API_docs/constructors/decryptedMessageActionScreenshotMessages_8.md @@ -21,7 +21,7 @@ description: decryptedMessageActionScreenshotMessages attributes, type and examp ### Example: ``` -$decryptedMessageActionScreenshotMessages_8 = ['_' => 'decryptedMessageActionScreenshotMessages', 'random_ids' => [long]]; +$decryptedMessageActionScreenshotMessages_8 = ['_' => 'decryptedMessageActionScreenshotMessages', 'random_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/decryptedMessageMediaAudio_17.md b/docs/API_docs/constructors/decryptedMessageMediaAudio_17.md index aef2010c..8f633bca 100644 --- a/docs/API_docs/constructors/decryptedMessageMediaAudio_17.md +++ b/docs/API_docs/constructors/decryptedMessageMediaAudio_17.md @@ -14,8 +14,6 @@ description: decryptedMessageMediaAudio attributes, type and example |duration|[int](../types/int.md) | Yes| |mime\_type|[string](../types/string.md) | Yes| |size|[int](../types/int.md) | Yes| -|key|[bytes](../types/bytes.md) | Yes| -|iv|[bytes](../types/bytes.md) | Yes| @@ -25,13 +23,13 @@ description: decryptedMessageMediaAudio attributes, type and example ### Example: ``` -$decryptedMessageMediaAudio_17 = ['_' => 'decryptedMessageMediaAudio', 'duration' => int, 'mime_type' => 'string', 'size' => int, 'key' => 'bytes', 'iv' => 'bytes']; +$decryptedMessageMediaAudio_17 = ['_' => 'decryptedMessageMediaAudio', 'duration' => int, 'mime_type' => 'string', 'size' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "decryptedMessageMediaAudio", "duration": int, "mime_type": "string", "size": int, "key": "bytes", "iv": "bytes"} +{"_": "decryptedMessageMediaAudio", "duration": int, "mime_type": "string", "size": int} ``` @@ -39,7 +37,7 @@ Or, if you're into Lua: ``` -decryptedMessageMediaAudio_17={_='decryptedMessageMediaAudio', duration=int, mime_type='string', size=int, key='bytes', iv='bytes'} +decryptedMessageMediaAudio_17={_='decryptedMessageMediaAudio', duration=int, mime_type='string', size=int} ``` diff --git a/docs/API_docs/constructors/decryptedMessageMediaAudio_8.md b/docs/API_docs/constructors/decryptedMessageMediaAudio_8.md index ac64412a..2e492614 100644 --- a/docs/API_docs/constructors/decryptedMessageMediaAudio_8.md +++ b/docs/API_docs/constructors/decryptedMessageMediaAudio_8.md @@ -13,8 +13,6 @@ description: decryptedMessageMediaAudio attributes, type and example |----------|---------------|----------| |duration|[int](../types/int.md) | Yes| |size|[int](../types/int.md) | Yes| -|key|[bytes](../types/bytes.md) | Yes| -|iv|[bytes](../types/bytes.md) | Yes| @@ -24,13 +22,13 @@ description: decryptedMessageMediaAudio attributes, type and example ### Example: ``` -$decryptedMessageMediaAudio_8 = ['_' => 'decryptedMessageMediaAudio', 'duration' => int, 'size' => int, 'key' => 'bytes', 'iv' => 'bytes']; +$decryptedMessageMediaAudio_8 = ['_' => 'decryptedMessageMediaAudio', 'duration' => int, 'size' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "decryptedMessageMediaAudio", "duration": int, "size": int, "key": "bytes", "iv": "bytes"} +{"_": "decryptedMessageMediaAudio", "duration": int, "size": int} ``` @@ -38,7 +36,7 @@ Or, if you're into Lua: ``` -decryptedMessageMediaAudio_8={_='decryptedMessageMediaAudio', duration=int, size=int, key='bytes', iv='bytes'} +decryptedMessageMediaAudio_8={_='decryptedMessageMediaAudio', duration=int, size=int} ``` diff --git a/docs/API_docs/constructors/decryptedMessageMediaDocument_45.md b/docs/API_docs/constructors/decryptedMessageMediaDocument_45.md index 90e35875..2d954ff1 100644 --- a/docs/API_docs/constructors/decryptedMessageMediaDocument_45.md +++ b/docs/API_docs/constructors/decryptedMessageMediaDocument_45.md @@ -16,8 +16,6 @@ description: decryptedMessageMediaDocument attributes, type and example |thumb\_h|[int](../types/int.md) | Yes| |mime\_type|[string](../types/string.md) | Yes| |size|[int](../types/int.md) | Yes| -|key|[bytes](../types/bytes.md) | Yes| -|iv|[bytes](../types/bytes.md) | Yes| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| @@ -29,13 +27,13 @@ description: decryptedMessageMediaDocument attributes, type and example ### Example: ``` -$decryptedMessageMediaDocument_45 = ['_' => 'decryptedMessageMediaDocument', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'mime_type' => 'string', 'size' => int, 'key' => 'bytes', 'iv' => 'bytes', 'attributes' => [DocumentAttribute], 'caption' => 'string']; +$decryptedMessageMediaDocument_45 = ['_' => 'decryptedMessageMediaDocument', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'mime_type' => 'string', 'size' => int, 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "decryptedMessageMediaDocument", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "mime_type": "string", "size": int, "key": "bytes", "iv": "bytes", "attributes": [DocumentAttribute], "caption": "string"} +{"_": "decryptedMessageMediaDocument", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "mime_type": "string", "size": int, "attributes": [DocumentAttribute], "caption": "string"} ``` @@ -43,7 +41,7 @@ Or, if you're into Lua: ``` -decryptedMessageMediaDocument_45={_='decryptedMessageMediaDocument', thumb='bytes', thumb_w=int, thumb_h=int, mime_type='string', size=int, key='bytes', iv='bytes', attributes={DocumentAttribute}, caption='string'} +decryptedMessageMediaDocument_45={_='decryptedMessageMediaDocument', thumb='bytes', thumb_w=int, thumb_h=int, mime_type='string', size=int, attributes={DocumentAttribute}, caption='string'} ``` diff --git a/docs/API_docs/constructors/decryptedMessageMediaDocument_8.md b/docs/API_docs/constructors/decryptedMessageMediaDocument_8.md index 7989d1be..1e2aeaa6 100644 --- a/docs/API_docs/constructors/decryptedMessageMediaDocument_8.md +++ b/docs/API_docs/constructors/decryptedMessageMediaDocument_8.md @@ -17,8 +17,6 @@ description: decryptedMessageMediaDocument attributes, type and example |file\_name|[string](../types/string.md) | Yes| |mime\_type|[string](../types/string.md) | Yes| |size|[int](../types/int.md) | Yes| -|key|[bytes](../types/bytes.md) | Yes| -|iv|[bytes](../types/bytes.md) | Yes| @@ -28,13 +26,13 @@ description: decryptedMessageMediaDocument attributes, type and example ### Example: ``` -$decryptedMessageMediaDocument_8 = ['_' => 'decryptedMessageMediaDocument', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'file_name' => 'string', 'mime_type' => 'string', 'size' => int, 'key' => 'bytes', 'iv' => 'bytes']; +$decryptedMessageMediaDocument_8 = ['_' => 'decryptedMessageMediaDocument', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'file_name' => 'string', 'mime_type' => 'string', 'size' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "decryptedMessageMediaDocument", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "file_name": "string", "mime_type": "string", "size": int, "key": "bytes", "iv": "bytes"} +{"_": "decryptedMessageMediaDocument", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "file_name": "string", "mime_type": "string", "size": int} ``` @@ -42,7 +40,7 @@ Or, if you're into Lua: ``` -decryptedMessageMediaDocument_8={_='decryptedMessageMediaDocument', thumb='bytes', thumb_w=int, thumb_h=int, file_name='string', mime_type='string', size=int, key='bytes', iv='bytes'} +decryptedMessageMediaDocument_8={_='decryptedMessageMediaDocument', thumb='bytes', thumb_w=int, thumb_h=int, file_name='string', mime_type='string', size=int} ``` diff --git a/docs/API_docs/constructors/decryptedMessageMediaExternalDocument_23.md b/docs/API_docs/constructors/decryptedMessageMediaExternalDocument_23.md index 78c73d00..ee9ba519 100644 --- a/docs/API_docs/constructors/decryptedMessageMediaExternalDocument_23.md +++ b/docs/API_docs/constructors/decryptedMessageMediaExternalDocument_23.md @@ -28,7 +28,7 @@ description: decryptedMessageMediaExternalDocument attributes, type and example ### Example: ``` -$decryptedMessageMediaExternalDocument_23 = ['_' => 'decryptedMessageMediaExternalDocument', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute]]; +$decryptedMessageMediaExternalDocument_23 = ['_' => 'decryptedMessageMediaExternalDocument', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/decryptedMessageMediaPhoto_45.md b/docs/API_docs/constructors/decryptedMessageMediaPhoto_45.md index f1202183..5ac2885b 100644 --- a/docs/API_docs/constructors/decryptedMessageMediaPhoto_45.md +++ b/docs/API_docs/constructors/decryptedMessageMediaPhoto_45.md @@ -17,8 +17,6 @@ description: decryptedMessageMediaPhoto attributes, type and example |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| |size|[int](../types/int.md) | Yes| -|key|[bytes](../types/bytes.md) | Yes| -|iv|[bytes](../types/bytes.md) | Yes| |caption|[string](../types/string.md) | Yes| @@ -29,13 +27,13 @@ description: decryptedMessageMediaPhoto attributes, type and example ### Example: ``` -$decryptedMessageMediaPhoto_45 = ['_' => 'decryptedMessageMediaPhoto', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'w' => int, 'h' => int, 'size' => int, 'key' => 'bytes', 'iv' => 'bytes', 'caption' => 'string']; +$decryptedMessageMediaPhoto_45 = ['_' => 'decryptedMessageMediaPhoto', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'w' => int, 'h' => int, 'size' => int, 'caption' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "decryptedMessageMediaPhoto", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "w": int, "h": int, "size": int, "key": "bytes", "iv": "bytes", "caption": "string"} +{"_": "decryptedMessageMediaPhoto", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "w": int, "h": int, "size": int, "caption": "string"} ``` @@ -43,7 +41,7 @@ Or, if you're into Lua: ``` -decryptedMessageMediaPhoto_45={_='decryptedMessageMediaPhoto', thumb='bytes', thumb_w=int, thumb_h=int, w=int, h=int, size=int, key='bytes', iv='bytes', caption='string'} +decryptedMessageMediaPhoto_45={_='decryptedMessageMediaPhoto', thumb='bytes', thumb_w=int, thumb_h=int, w=int, h=int, size=int, caption='string'} ``` diff --git a/docs/API_docs/constructors/decryptedMessageMediaPhoto_8.md b/docs/API_docs/constructors/decryptedMessageMediaPhoto_8.md index accaf0a5..a09712d4 100644 --- a/docs/API_docs/constructors/decryptedMessageMediaPhoto_8.md +++ b/docs/API_docs/constructors/decryptedMessageMediaPhoto_8.md @@ -17,8 +17,6 @@ description: decryptedMessageMediaPhoto attributes, type and example |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| |size|[int](../types/int.md) | Yes| -|key|[bytes](../types/bytes.md) | Yes| -|iv|[bytes](../types/bytes.md) | Yes| @@ -28,13 +26,13 @@ description: decryptedMessageMediaPhoto attributes, type and example ### Example: ``` -$decryptedMessageMediaPhoto_8 = ['_' => 'decryptedMessageMediaPhoto', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'w' => int, 'h' => int, 'size' => int, 'key' => 'bytes', 'iv' => 'bytes']; +$decryptedMessageMediaPhoto_8 = ['_' => 'decryptedMessageMediaPhoto', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'w' => int, 'h' => int, 'size' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "decryptedMessageMediaPhoto", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "w": int, "h": int, "size": int, "key": "bytes", "iv": "bytes"} +{"_": "decryptedMessageMediaPhoto", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "w": int, "h": int, "size": int} ``` @@ -42,7 +40,7 @@ Or, if you're into Lua: ``` -decryptedMessageMediaPhoto_8={_='decryptedMessageMediaPhoto', thumb='bytes', thumb_w=int, thumb_h=int, w=int, h=int, size=int, key='bytes', iv='bytes'} +decryptedMessageMediaPhoto_8={_='decryptedMessageMediaPhoto', thumb='bytes', thumb_w=int, thumb_h=int, w=int, h=int, size=int} ``` diff --git a/docs/API_docs/constructors/decryptedMessageMediaVideo_17.md b/docs/API_docs/constructors/decryptedMessageMediaVideo_17.md index f9dfcf25..33eb26da 100644 --- a/docs/API_docs/constructors/decryptedMessageMediaVideo_17.md +++ b/docs/API_docs/constructors/decryptedMessageMediaVideo_17.md @@ -19,8 +19,6 @@ description: decryptedMessageMediaVideo attributes, type and example |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| |size|[int](../types/int.md) | Yes| -|key|[bytes](../types/bytes.md) | Yes| -|iv|[bytes](../types/bytes.md) | Yes| @@ -30,13 +28,13 @@ description: decryptedMessageMediaVideo attributes, type and example ### Example: ``` -$decryptedMessageMediaVideo_17 = ['_' => 'decryptedMessageMediaVideo', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'duration' => int, 'mime_type' => 'string', 'w' => int, 'h' => int, 'size' => int, 'key' => 'bytes', 'iv' => 'bytes']; +$decryptedMessageMediaVideo_17 = ['_' => 'decryptedMessageMediaVideo', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'duration' => int, 'mime_type' => 'string', 'w' => int, 'h' => int, 'size' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "decryptedMessageMediaVideo", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "duration": int, "mime_type": "string", "w": int, "h": int, "size": int, "key": "bytes", "iv": "bytes"} +{"_": "decryptedMessageMediaVideo", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "duration": int, "mime_type": "string", "w": int, "h": int, "size": int} ``` @@ -44,7 +42,7 @@ Or, if you're into Lua: ``` -decryptedMessageMediaVideo_17={_='decryptedMessageMediaVideo', thumb='bytes', thumb_w=int, thumb_h=int, duration=int, mime_type='string', w=int, h=int, size=int, key='bytes', iv='bytes'} +decryptedMessageMediaVideo_17={_='decryptedMessageMediaVideo', thumb='bytes', thumb_w=int, thumb_h=int, duration=int, mime_type='string', w=int, h=int, size=int} ``` diff --git a/docs/API_docs/constructors/decryptedMessageMediaVideo_45.md b/docs/API_docs/constructors/decryptedMessageMediaVideo_45.md index 09cc9139..92525eea 100644 --- a/docs/API_docs/constructors/decryptedMessageMediaVideo_45.md +++ b/docs/API_docs/constructors/decryptedMessageMediaVideo_45.md @@ -19,8 +19,6 @@ description: decryptedMessageMediaVideo attributes, type and example |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| |size|[int](../types/int.md) | Yes| -|key|[bytes](../types/bytes.md) | Yes| -|iv|[bytes](../types/bytes.md) | Yes| |caption|[string](../types/string.md) | Yes| @@ -31,13 +29,13 @@ description: decryptedMessageMediaVideo attributes, type and example ### Example: ``` -$decryptedMessageMediaVideo_45 = ['_' => 'decryptedMessageMediaVideo', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'duration' => int, 'mime_type' => 'string', 'w' => int, 'h' => int, 'size' => int, 'key' => 'bytes', 'iv' => 'bytes', 'caption' => 'string']; +$decryptedMessageMediaVideo_45 = ['_' => 'decryptedMessageMediaVideo', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'duration' => int, 'mime_type' => 'string', 'w' => int, 'h' => int, 'size' => int, 'caption' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "decryptedMessageMediaVideo", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "duration": int, "mime_type": "string", "w": int, "h": int, "size": int, "key": "bytes", "iv": "bytes", "caption": "string"} +{"_": "decryptedMessageMediaVideo", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "duration": int, "mime_type": "string", "w": int, "h": int, "size": int, "caption": "string"} ``` @@ -45,7 +43,7 @@ Or, if you're into Lua: ``` -decryptedMessageMediaVideo_45={_='decryptedMessageMediaVideo', thumb='bytes', thumb_w=int, thumb_h=int, duration=int, mime_type='string', w=int, h=int, size=int, key='bytes', iv='bytes', caption='string'} +decryptedMessageMediaVideo_45={_='decryptedMessageMediaVideo', thumb='bytes', thumb_w=int, thumb_h=int, duration=int, mime_type='string', w=int, h=int, size=int, caption='string'} ``` diff --git a/docs/API_docs/constructors/decryptedMessageMediaVideo_8.md b/docs/API_docs/constructors/decryptedMessageMediaVideo_8.md index 56d33b6e..77a5c4bb 100644 --- a/docs/API_docs/constructors/decryptedMessageMediaVideo_8.md +++ b/docs/API_docs/constructors/decryptedMessageMediaVideo_8.md @@ -18,8 +18,6 @@ description: decryptedMessageMediaVideo attributes, type and example |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| |size|[int](../types/int.md) | Yes| -|key|[bytes](../types/bytes.md) | Yes| -|iv|[bytes](../types/bytes.md) | Yes| @@ -29,13 +27,13 @@ description: decryptedMessageMediaVideo attributes, type and example ### Example: ``` -$decryptedMessageMediaVideo_8 = ['_' => 'decryptedMessageMediaVideo', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'duration' => int, 'w' => int, 'h' => int, 'size' => int, 'key' => 'bytes', 'iv' => 'bytes']; +$decryptedMessageMediaVideo_8 = ['_' => 'decryptedMessageMediaVideo', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'duration' => int, 'w' => int, 'h' => int, 'size' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "decryptedMessageMediaVideo", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "duration": int, "w": int, "h": int, "size": int, "key": "bytes", "iv": "bytes"} +{"_": "decryptedMessageMediaVideo", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "duration": int, "w": int, "h": int, "size": int} ``` @@ -43,7 +41,7 @@ Or, if you're into Lua: ``` -decryptedMessageMediaVideo_8={_='decryptedMessageMediaVideo', thumb='bytes', thumb_w=int, thumb_h=int, duration=int, w=int, h=int, size=int, key='bytes', iv='bytes'} +decryptedMessageMediaVideo_8={_='decryptedMessageMediaVideo', thumb='bytes', thumb_w=int, thumb_h=int, duration=int, w=int, h=int, size=int} ``` diff --git a/docs/API_docs/constructors/decryptedMessage_45.md b/docs/API_docs/constructors/decryptedMessage_45.md index e6608c4f..8c98bf3e 100644 --- a/docs/API_docs/constructors/decryptedMessage_45.md +++ b/docs/API_docs/constructors/decryptedMessage_45.md @@ -26,7 +26,7 @@ description: decryptedMessage attributes, type and example ### Example: ``` -$decryptedMessage_45 = ['_' => 'decryptedMessage', 'ttl' => int, 'message' => 'string', 'media' => DecryptedMessageMedia, 'entities' => [MessageEntity], 'via_bot_name' => 'string', 'reply_to_random_id' => long]; +$decryptedMessage_45 = ['_' => 'decryptedMessage', 'ttl' => int, 'message' => 'string', 'media' => DecryptedMessageMedia, 'entities' => [MessageEntity, MessageEntity], 'via_bot_name' => 'string', 'reply_to_random_id' => long]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/decryptedMessage_73.md b/docs/API_docs/constructors/decryptedMessage_73.md index ceaaaafe..48d03904 100644 --- a/docs/API_docs/constructors/decryptedMessage_73.md +++ b/docs/API_docs/constructors/decryptedMessage_73.md @@ -27,7 +27,7 @@ description: decryptedMessage attributes, type and example ### Example: ``` -$decryptedMessage_73 = ['_' => 'decryptedMessage', 'ttl' => int, 'message' => 'string', 'media' => DecryptedMessageMedia, 'entities' => [MessageEntity], 'via_bot_name' => 'string', 'reply_to_random_id' => long, 'grouped_id' => long]; +$decryptedMessage_73 = ['_' => 'decryptedMessage', 'ttl' => int, 'message' => 'string', 'media' => DecryptedMessageMedia, 'entities' => [MessageEntity, MessageEntity], 'via_bot_name' => 'string', 'reply_to_random_id' => long, 'grouped_id' => long]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/document.md b/docs/API_docs/constructors/document.md index 8c0883bb..55d4c017 100644 --- a/docs/API_docs/constructors/document.md +++ b/docs/API_docs/constructors/document.md @@ -29,7 +29,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/documentAttributeAudio.md b/docs/API_docs/constructors/documentAttributeAudio.md index 4d393890..ceb02cba 100644 --- a/docs/API_docs/constructors/documentAttributeAudio.md +++ b/docs/API_docs/constructors/documentAttributeAudio.md @@ -12,7 +12,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| |voice|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Optional| |performer|[string](../types/string.md) | Optional| |waveform|[bytes](../types/bytes.md) | Optional| diff --git a/docs/API_docs/constructors/documentAttributeAudio_23.md b/docs/API_docs/constructors/documentAttributeAudio_23.md index e4936fd6..51fb058d 100644 --- a/docs/API_docs/constructors/documentAttributeAudio_23.md +++ b/docs/API_docs/constructors/documentAttributeAudio_23.md @@ -11,7 +11,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| diff --git a/docs/API_docs/constructors/documentAttributeAudio_46.md b/docs/API_docs/constructors/documentAttributeAudio_46.md index 7524d604..2aecf59d 100644 --- a/docs/API_docs/constructors/documentAttributeAudio_46.md +++ b/docs/API_docs/constructors/documentAttributeAudio_46.md @@ -11,7 +11,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Yes| |performer|[string](../types/string.md) | Yes| diff --git a/docs/API_docs/constructors/documentAttributeImageSize.md b/docs/API_docs/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/docs/API_docs/constructors/documentAttributeImageSize.md +++ b/docs/API_docs/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/docs/API_docs/constructors/documentAttributeVideo.md b/docs/API_docs/constructors/documentAttributeVideo.md index 1e515c2d..b8018d5b 100644 --- a/docs/API_docs/constructors/documentAttributeVideo.md +++ b/docs/API_docs/constructors/documentAttributeVideo.md @@ -13,9 +13,9 @@ description: documentAttributeVideo attributes, type and example |----------|---------------|----------| |round\_message|[Bool](../types/Bool.md) | Optional| |supports\_streaming|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/docs/API_docs/constructors/documentAttributeVideo_23.md b/docs/API_docs/constructors/documentAttributeVideo_23.md index 09f6aa6b..c8e9f63d 100644 --- a/docs/API_docs/constructors/documentAttributeVideo_23.md +++ b/docs/API_docs/constructors/documentAttributeVideo_23.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/docs/API_docs/constructors/draftMessage.md b/docs/API_docs/constructors/draftMessage.md index 13277194..644adc43 100644 --- a/docs/API_docs/constructors/draftMessage.md +++ b/docs/API_docs/constructors/draftMessage.md @@ -25,7 +25,7 @@ description: draftMessage attributes, type and example ### Example: ``` -$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity], 'date' => int]; +$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'date' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/help_recentMeUrls.md b/docs/API_docs/constructors/help_recentMeUrls.md index 282945dd..04d9d1e4 100644 --- a/docs/API_docs/constructors/help_recentMeUrls.md +++ b/docs/API_docs/constructors/help_recentMeUrls.md @@ -23,7 +23,7 @@ description: help_recentMeUrls attributes, type and example ### Example: ``` -$help_recentMeUrls = ['_' => 'help.recentMeUrls', 'urls' => [RecentMeUrl], 'chats' => [Chat], 'users' => [User]]; +$help_recentMeUrls = ['_' => 'help.recentMeUrls', 'urls' => [RecentMeUrl, RecentMeUrl], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/inputBotInlineMessageMediaAuto.md b/docs/API_docs/constructors/inputBotInlineMessageMediaAuto.md index f71b6c9b..a4b2353d 100644 --- a/docs/API_docs/constructors/inputBotInlineMessageMediaAuto.md +++ b/docs/API_docs/constructors/inputBotInlineMessageMediaAuto.md @@ -23,7 +23,7 @@ description: inputBotInlineMessageMediaAuto attributes, type and example ### Example: ``` -$inputBotInlineMessageMediaAuto = ['_' => 'inputBotInlineMessageMediaAuto', 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$inputBotInlineMessageMediaAuto = ['_' => 'inputBotInlineMessageMediaAuto', 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/inputBotInlineMessageText.md b/docs/API_docs/constructors/inputBotInlineMessageText.md index 677e5d8c..ed3ddd1b 100644 --- a/docs/API_docs/constructors/inputBotInlineMessageText.md +++ b/docs/API_docs/constructors/inputBotInlineMessageText.md @@ -24,7 +24,7 @@ description: inputBotInlineMessageText attributes, type and example ### Example: ``` -$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/inputBotInlineResultDocument.md b/docs/API_docs/constructors/inputBotInlineResultDocument.md index 2315623b..f27421f9 100644 --- a/docs/API_docs/constructors/inputBotInlineResultDocument.md +++ b/docs/API_docs/constructors/inputBotInlineResultDocument.md @@ -15,7 +15,7 @@ description: inputBotInlineResultDocument attributes, type and example |type|[string](../types/string.md) | Yes| |title|[string](../types/string.md) | Optional| |description|[string](../types/string.md) | Optional| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/docs/API_docs/constructors/inputBotInlineResultPhoto.md b/docs/API_docs/constructors/inputBotInlineResultPhoto.md index d39bd108..9628b4e5 100644 --- a/docs/API_docs/constructors/inputBotInlineResultPhoto.md +++ b/docs/API_docs/constructors/inputBotInlineResultPhoto.md @@ -13,7 +13,7 @@ description: inputBotInlineResultPhoto attributes, type and example |----------|---------------|----------| |id|[string](../types/string.md) | Yes| |type|[string](../types/string.md) | Yes| -|photo|[InputPhoto](../types/InputPhoto.md) | Optional| +|photo|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/docs/API_docs/constructors/inputChatPhoto.md b/docs/API_docs/constructors/inputChatPhoto.md index e787f342..ae979308 100644 --- a/docs/API_docs/constructors/inputChatPhoto.md +++ b/docs/API_docs/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/docs/API_docs/constructors/inputChatUploadedPhoto.md b/docs/API_docs/constructors/inputChatUploadedPhoto.md index 78c28fdc..e9d2f354 100644 --- a/docs/API_docs/constructors/inputChatUploadedPhoto.md +++ b/docs/API_docs/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| diff --git a/docs/API_docs/constructors/inputGameShortName.md b/docs/API_docs/constructors/inputGameShortName.md index 64c55c18..0261912a 100644 --- a/docs/API_docs/constructors/inputGameShortName.md +++ b/docs/API_docs/constructors/inputGameShortName.md @@ -11,7 +11,7 @@ description: inputGameShortName attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|bot\_id|[InputUser](../types/InputUser.md) | Optional| +|bot\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |short\_name|[string](../types/string.md) | Yes| diff --git a/docs/API_docs/constructors/inputMediaDocument.md b/docs/API_docs/constructors/inputMediaDocument.md index 9a55afbf..ca59900f 100644 --- a/docs/API_docs/constructors/inputMediaDocument.md +++ b/docs/API_docs/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |ttl\_seconds|[int](../types/int.md) | Optional| diff --git a/docs/API_docs/constructors/inputMediaPhoto.md b/docs/API_docs/constructors/inputMediaPhoto.md index 67b6e036..870cf9a9 100644 --- a/docs/API_docs/constructors/inputMediaPhoto.md +++ b/docs/API_docs/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |ttl\_seconds|[int](../types/int.md) | Optional| diff --git a/docs/API_docs/constructors/inputMediaUploadedDocument.md b/docs/API_docs/constructors/inputMediaUploadedDocument.md index 564d6704..f3bc5fcf 100644 --- a/docs/API_docs/constructors/inputMediaUploadedDocument.md +++ b/docs/API_docs/constructors/inputMediaUploadedDocument.md @@ -12,11 +12,11 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| |nosound\_video|[Bool](../types/Bool.md) | Optional| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Optional| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Optional| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |ttl\_seconds|[int](../types/int.md) | Optional| @@ -27,7 +27,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'nosound_video' => Bool, 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'stickers' => [InputDocument], 'ttl_seconds' => int]; +$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: diff --git a/docs/API_docs/constructors/inputMediaUploadedPhoto.md b/docs/API_docs/constructors/inputMediaUploadedPhoto.md index 86fe2296..264284f5 100644 --- a/docs/API_docs/constructors/inputMediaUploadedPhoto.md +++ b/docs/API_docs/constructors/inputMediaUploadedPhoto.md @@ -11,8 +11,8 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |ttl\_seconds|[int](../types/int.md) | Optional| @@ -23,7 +23,7 @@ description: inputMediaUploadedPhoto attributes, type and example ### Example: ``` -$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'stickers' => [InputDocument], 'ttl_seconds' => int]; +$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'stickers' => [InputDocument, InputDocument], 'ttl_seconds' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/inputNotifyPeer.md b/docs/API_docs/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/docs/API_docs/constructors/inputNotifyPeer.md +++ b/docs/API_docs/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/docs/API_docs/constructors/inputPrivacyValueAllowUsers.md b/docs/API_docs/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/docs/API_docs/constructors/inputPrivacyValueAllowUsers.md +++ b/docs/API_docs/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/inputPrivacyValueDisallowUsers.md b/docs/API_docs/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/docs/API_docs/constructors/inputPrivacyValueDisallowUsers.md +++ b/docs/API_docs/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/inputSingleMedia.md b/docs/API_docs/constructors/inputSingleMedia.md index 618b1a1f..1c8e4c3f 100644 --- a/docs/API_docs/constructors/inputSingleMedia.md +++ b/docs/API_docs/constructors/inputSingleMedia.md @@ -11,7 +11,7 @@ description: inputSingleMedia attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Message, Update or InputMedia](../types/InputMedia.md) | Optional| |message|[string](../types/string.md) | Yes| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| @@ -23,7 +23,7 @@ description: inputSingleMedia attributes, type and example ### Example: ``` -$inputSingleMedia = ['_' => 'inputSingleMedia', 'media' => InputMedia, 'message' => 'string', 'entities' => [MessageEntity]]; +$inputSingleMedia = ['_' => 'inputSingleMedia', 'media' => InputMedia, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/inputStickerSetItem.md b/docs/API_docs/constructors/inputStickerSetItem.md index 84ae0e46..749330b9 100644 --- a/docs/API_docs/constructors/inputStickerSetItem.md +++ b/docs/API_docs/constructors/inputStickerSetItem.md @@ -11,7 +11,7 @@ description: inputStickerSetItem attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |emoji|[string](../types/string.md) | Yes| |mask\_coords|[MaskCoords](../types/MaskCoords.md) | Optional| diff --git a/docs/API_docs/constructors/inputStickeredMediaDocument.md b/docs/API_docs/constructors/inputStickeredMediaDocument.md index ca9921e7..c281b7e5 100644 --- a/docs/API_docs/constructors/inputStickeredMediaDocument.md +++ b/docs/API_docs/constructors/inputStickeredMediaDocument.md @@ -11,7 +11,7 @@ description: inputStickeredMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/docs/API_docs/constructors/inputStickeredMediaPhoto.md b/docs/API_docs/constructors/inputStickeredMediaPhoto.md index ac0428e1..042044b0 100644 --- a/docs/API_docs/constructors/inputStickeredMediaPhoto.md +++ b/docs/API_docs/constructors/inputStickeredMediaPhoto.md @@ -11,7 +11,7 @@ description: inputStickeredMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/docs/API_docs/constructors/inputWebDocument.md b/docs/API_docs/constructors/inputWebDocument.md index 81f2707a..dd9a24ff 100644 --- a/docs/API_docs/constructors/inputWebDocument.md +++ b/docs/API_docs/constructors/inputWebDocument.md @@ -24,7 +24,7 @@ description: inputWebDocument attributes, type and example ### Example: ``` -$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/invoice.md b/docs/API_docs/constructors/invoice.md index cf585377..07d6694b 100644 --- a/docs/API_docs/constructors/invoice.md +++ b/docs/API_docs/constructors/invoice.md @@ -30,7 +30,7 @@ description: invoice attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/docs/API_docs/constructors/keyboardButtonRow.md b/docs/API_docs/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/docs/API_docs/constructors/keyboardButtonRow.md +++ b/docs/API_docs/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/langPackDifference.md b/docs/API_docs/constructors/langPackDifference.md index 0d077158..3447d739 100644 --- a/docs/API_docs/constructors/langPackDifference.md +++ b/docs/API_docs/constructors/langPackDifference.md @@ -24,7 +24,7 @@ description: langPackDifference attributes, type and example ### Example: ``` -$langPackDifference = ['_' => 'langPackDifference', 'lang_code' => 'string', 'from_version' => int, 'version' => int, 'strings' => [LangPackString]]; +$langPackDifference = ['_' => 'langPackDifference', 'lang_code' => 'string', 'from_version' => int, 'version' => int, 'strings' => [LangPackString, LangPackString]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/message.md b/docs/API_docs/constructors/message.md index 27bf1730..71eeda88 100644 --- a/docs/API_docs/constructors/message.md +++ b/docs/API_docs/constructors/message.md @@ -40,7 +40,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; +$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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: diff --git a/docs/API_docs/constructors/messageActionChatAddUser.md b/docs/API_docs/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/docs/API_docs/constructors/messageActionChatAddUser.md +++ b/docs/API_docs/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messageActionChatCreate.md b/docs/API_docs/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/docs/API_docs/constructors/messageActionChatCreate.md +++ b/docs/API_docs/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_allStickers.md b/docs/API_docs/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/docs/API_docs/constructors/messages_allStickers.md +++ b/docs/API_docs/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_archivedStickers.md b/docs/API_docs/constructors/messages_archivedStickers.md index 7af238d4..c9675b57 100644 --- a/docs/API_docs/constructors/messages_archivedStickers.md +++ b/docs/API_docs/constructors/messages_archivedStickers.md @@ -22,7 +22,7 @@ description: messages_archivedStickers attributes, type and example ### Example: ``` -$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered]]; +$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_botResults.md b/docs/API_docs/constructors/messages_botResults.md index 481be63b..d043c50e 100644 --- a/docs/API_docs/constructors/messages_botResults.md +++ b/docs/API_docs/constructors/messages_botResults.md @@ -27,7 +27,7 @@ description: messages_botResults attributes, type and example ### Example: ``` -$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult], 'cache_time' => int, 'users' => [User]]; +$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: diff --git a/docs/API_docs/constructors/messages_channelMessages.md b/docs/API_docs/constructors/messages_channelMessages.md index 8ec11b2d..358c0c70 100644 --- a/docs/API_docs/constructors/messages_channelMessages.md +++ b/docs/API_docs/constructors/messages_channelMessages.md @@ -25,7 +25,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_chatFull.md b/docs/API_docs/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/docs/API_docs/constructors/messages_chatFull.md +++ b/docs/API_docs/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_chats.md b/docs/API_docs/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/docs/API_docs/constructors/messages_chats.md +++ b/docs/API_docs/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_chatsSlice.md b/docs/API_docs/constructors/messages_chatsSlice.md index 4e3e0e77..614c577b 100644 --- a/docs/API_docs/constructors/messages_chatsSlice.md +++ b/docs/API_docs/constructors/messages_chatsSlice.md @@ -22,7 +22,7 @@ description: messages_chatsSlice attributes, type and example ### Example: ``` -$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat]]; +$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_dialogs.md b/docs/API_docs/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/docs/API_docs/constructors/messages_dialogs.md +++ b/docs/API_docs/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_dialogsSlice.md b/docs/API_docs/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/docs/API_docs/constructors/messages_dialogsSlice.md +++ b/docs/API_docs/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/docs/API_docs/constructors/messages_favedStickers.md b/docs/API_docs/constructors/messages_favedStickers.md index 7fb2fba0..1a937049 100644 --- a/docs/API_docs/constructors/messages_favedStickers.md +++ b/docs/API_docs/constructors/messages_favedStickers.md @@ -23,7 +23,7 @@ description: messages_favedStickers attributes, type and example ### Example: ``` -$messages_favedStickers = ['_' => 'messages.favedStickers', 'hash' => int, 'packs' => [StickerPack], 'stickers' => [Document]]; +$messages_favedStickers = ['_' => 'messages.favedStickers', 'hash' => int, 'packs' => [StickerPack, StickerPack], 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_featuredStickers.md b/docs/API_docs/constructors/messages_featuredStickers.md index dac1fd91..0fc54db1 100644 --- a/docs/API_docs/constructors/messages_featuredStickers.md +++ b/docs/API_docs/constructors/messages_featuredStickers.md @@ -23,7 +23,7 @@ description: messages_featuredStickers attributes, type and example ### Example: ``` -$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered], 'unread' => [long]]; +$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered, StickerSetCovered], 'unread' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_foundGifs.md b/docs/API_docs/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/docs/API_docs/constructors/messages_foundGifs.md +++ b/docs/API_docs/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_highScores.md b/docs/API_docs/constructors/messages_highScores.md index 26eab658..df592f06 100644 --- a/docs/API_docs/constructors/messages_highScores.md +++ b/docs/API_docs/constructors/messages_highScores.md @@ -22,7 +22,7 @@ description: messages_highScores attributes, type and example ### Example: ``` -$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore], 'users' => [User]]; +$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore, HighScore], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_messages.md b/docs/API_docs/constructors/messages_messages.md index 24360337..847673df 100644 --- a/docs/API_docs/constructors/messages_messages.md +++ b/docs/API_docs/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_messagesSlice.md b/docs/API_docs/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/docs/API_docs/constructors/messages_messagesSlice.md +++ b/docs/API_docs/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_peerDialogs.md b/docs/API_docs/constructors/messages_peerDialogs.md index bec6c88c..5d25b545 100644 --- a/docs/API_docs/constructors/messages_peerDialogs.md +++ b/docs/API_docs/constructors/messages_peerDialogs.md @@ -25,7 +25,7 @@ description: messages_peerDialogs attributes, type and example ### Example: ``` -$messages_peerDialogs = ['_' => 'messages.peerDialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/docs/API_docs/constructors/messages_recentStickers.md b/docs/API_docs/constructors/messages_recentStickers.md index be5e69a0..a8a53ffe 100644 --- a/docs/API_docs/constructors/messages_recentStickers.md +++ b/docs/API_docs/constructors/messages_recentStickers.md @@ -22,7 +22,7 @@ description: messages_recentStickers attributes, type and example ### Example: ``` -$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document]]; +$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_savedGifs.md b/docs/API_docs/constructors/messages_savedGifs.md index 7e2a00eb..b4ff040d 100644 --- a/docs/API_docs/constructors/messages_savedGifs.md +++ b/docs/API_docs/constructors/messages_savedGifs.md @@ -22,7 +22,7 @@ description: messages_savedGifs attributes, type and example ### Example: ``` -$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document]]; +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_stickerSet.md b/docs/API_docs/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/docs/API_docs/constructors/messages_stickerSet.md +++ b/docs/API_docs/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_stickerSetInstallResultArchive.md b/docs/API_docs/constructors/messages_stickerSetInstallResultArchive.md index f3e510bb..5b7fb05f 100644 --- a/docs/API_docs/constructors/messages_stickerSetInstallResultArchive.md +++ b/docs/API_docs/constructors/messages_stickerSetInstallResultArchive.md @@ -21,7 +21,7 @@ description: messages_stickerSetInstallResultArchive attributes, type and exampl ### Example: ``` -$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered]]; +$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/messages_stickers.md b/docs/API_docs/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/docs/API_docs/constructors/messages_stickers.md +++ b/docs/API_docs/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/pageBlockCollage.md b/docs/API_docs/constructors/pageBlockCollage.md index 8685b250..3950e34d 100644 --- a/docs/API_docs/constructors/pageBlockCollage.md +++ b/docs/API_docs/constructors/pageBlockCollage.md @@ -22,7 +22,7 @@ description: pageBlockCollage attributes, type and example ### Example: ``` -$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/pageBlockEmbedPost.md b/docs/API_docs/constructors/pageBlockEmbedPost.md index e0e955b9..e9434dfa 100644 --- a/docs/API_docs/constructors/pageBlockEmbedPost.md +++ b/docs/API_docs/constructors/pageBlockEmbedPost.md @@ -27,7 +27,7 @@ description: pageBlockEmbedPost attributes, type and example ### Example: ``` -$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock], 'caption' => RichText]; +$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/pageBlockList.md b/docs/API_docs/constructors/pageBlockList.md index 6bf3c783..728c05a7 100644 --- a/docs/API_docs/constructors/pageBlockList.md +++ b/docs/API_docs/constructors/pageBlockList.md @@ -22,7 +22,7 @@ description: pageBlockList attributes, type and example ### Example: ``` -$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText]]; +$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/pageBlockSlideshow.md b/docs/API_docs/constructors/pageBlockSlideshow.md index e48d51bb..0c18e64f 100644 --- a/docs/API_docs/constructors/pageBlockSlideshow.md +++ b/docs/API_docs/constructors/pageBlockSlideshow.md @@ -22,7 +22,7 @@ description: pageBlockSlideshow attributes, type and example ### Example: ``` -$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/pageFull.md b/docs/API_docs/constructors/pageFull.md index 7dabe40d..4ea43cd0 100644 --- a/docs/API_docs/constructors/pageFull.md +++ b/docs/API_docs/constructors/pageFull.md @@ -23,7 +23,7 @@ description: pageFull attributes, type and example ### Example: ``` -$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock], 'photos' => [Photo], 'documents' => [Document]]; +$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/pagePart.md b/docs/API_docs/constructors/pagePart.md index a6969c73..32e8ac28 100644 --- a/docs/API_docs/constructors/pagePart.md +++ b/docs/API_docs/constructors/pagePart.md @@ -23,7 +23,7 @@ description: pagePart attributes, type and example ### Example: ``` -$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock], 'photos' => [Photo], 'documents' => [Document]]; +$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/payments_paymentForm.md b/docs/API_docs/constructors/payments_paymentForm.md index 6b468a10..982b4a13 100644 --- a/docs/API_docs/constructors/payments_paymentForm.md +++ b/docs/API_docs/constructors/payments_paymentForm.md @@ -31,7 +31,7 @@ description: payments_paymentForm attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/docs/API_docs/constructors/payments_paymentReceipt.md b/docs/API_docs/constructors/payments_paymentReceipt.md index cb64a78a..f7c6589c 100644 --- a/docs/API_docs/constructors/payments_paymentReceipt.md +++ b/docs/API_docs/constructors/payments_paymentReceipt.md @@ -30,7 +30,7 @@ description: payments_paymentReceipt attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/docs/API_docs/constructors/payments_validatedRequestedInfo.md b/docs/API_docs/constructors/payments_validatedRequestedInfo.md index a1d841b5..362544ca 100644 --- a/docs/API_docs/constructors/payments_validatedRequestedInfo.md +++ b/docs/API_docs/constructors/payments_validatedRequestedInfo.md @@ -22,7 +22,7 @@ description: payments_validatedRequestedInfo attributes, type and example ### Example: ``` -$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption]]; +$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption, ShippingOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/phoneCall.md b/docs/API_docs/constructors/phoneCall.md index 279af015..703116b5 100644 --- a/docs/API_docs/constructors/phoneCall.md +++ b/docs/API_docs/constructors/phoneCall.md @@ -31,7 +31,7 @@ description: phoneCall attributes, type and example ### Example: ``` -$phoneCall = ['_' => 'phoneCall', '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]; +$phoneCall = ['_' => 'phoneCall', '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: diff --git a/docs/API_docs/constructors/phone_phoneCall.md b/docs/API_docs/constructors/phone_phoneCall.md index 38177647..00a43b98 100644 --- a/docs/API_docs/constructors/phone_phoneCall.md +++ b/docs/API_docs/constructors/phone_phoneCall.md @@ -22,7 +22,7 @@ description: phone_phoneCall attributes, type and example ### Example: ``` -$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User]]; +$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/photo.md b/docs/API_docs/constructors/photo.md index 0d6edc52..293458ca 100644 --- a/docs/API_docs/constructors/photo.md +++ b/docs/API_docs/constructors/photo.md @@ -25,7 +25,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/photos_photo.md b/docs/API_docs/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/docs/API_docs/constructors/photos_photo.md +++ b/docs/API_docs/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/photos_photos.md b/docs/API_docs/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/docs/API_docs/constructors/photos_photos.md +++ b/docs/API_docs/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/photos_photosSlice.md b/docs/API_docs/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/docs/API_docs/constructors/photos_photosSlice.md +++ b/docs/API_docs/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/privacyValueAllowUsers.md b/docs/API_docs/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/docs/API_docs/constructors/privacyValueAllowUsers.md +++ b/docs/API_docs/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/privacyValueDisallowUsers.md b/docs/API_docs/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/docs/API_docs/constructors/privacyValueDisallowUsers.md +++ b/docs/API_docs/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/replyInlineMarkup.md b/docs/API_docs/constructors/replyInlineMarkup.md index 80d2ff77..95257485 100644 --- a/docs/API_docs/constructors/replyInlineMarkup.md +++ b/docs/API_docs/constructors/replyInlineMarkup.md @@ -21,7 +21,7 @@ description: replyInlineMarkup attributes, type and example ### Example: ``` -$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow]]; +$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/replyKeyboardMarkup.md b/docs/API_docs/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/docs/API_docs/constructors/replyKeyboardMarkup.md +++ b/docs/API_docs/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/shippingOption.md b/docs/API_docs/constructors/shippingOption.md index 32ec5182..53a0405f 100644 --- a/docs/API_docs/constructors/shippingOption.md +++ b/docs/API_docs/constructors/shippingOption.md @@ -23,7 +23,7 @@ description: shippingOption attributes, type and example ### Example: ``` -$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice]]; +$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/stickerPack.md b/docs/API_docs/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/docs/API_docs/constructors/stickerPack.md +++ b/docs/API_docs/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/stickerSetMultiCovered.md b/docs/API_docs/constructors/stickerSetMultiCovered.md index 4dd5a0a7..9a337fdc 100644 --- a/docs/API_docs/constructors/stickerSetMultiCovered.md +++ b/docs/API_docs/constructors/stickerSetMultiCovered.md @@ -22,7 +22,7 @@ description: stickerSetMultiCovered attributes, type and example ### Example: ``` -$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document]]; +$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/textConcat.md b/docs/API_docs/constructors/textConcat.md index 4a44d3b2..bfdb9e50 100644 --- a/docs/API_docs/constructors/textConcat.md +++ b/docs/API_docs/constructors/textConcat.md @@ -21,7 +21,7 @@ description: textConcat attributes, type and example ### Example: ``` -$textConcat = ['_' => 'textConcat', 'texts' => [RichText]]; +$textConcat = ['_' => 'textConcat', 'texts' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/topPeerCategoryPeers.md b/docs/API_docs/constructors/topPeerCategoryPeers.md index acd5cf08..03b78ed3 100644 --- a/docs/API_docs/constructors/topPeerCategoryPeers.md +++ b/docs/API_docs/constructors/topPeerCategoryPeers.md @@ -23,7 +23,7 @@ description: topPeerCategoryPeers attributes, type and example ### Example: ``` -$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer]]; +$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer, TopPeer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/updateChannelReadMessagesContents.md b/docs/API_docs/constructors/updateChannelReadMessagesContents.md index 7b69edd8..419e7d12 100644 --- a/docs/API_docs/constructors/updateChannelReadMessagesContents.md +++ b/docs/API_docs/constructors/updateChannelReadMessagesContents.md @@ -22,7 +22,7 @@ description: updateChannelReadMessagesContents attributes, type and example ### Example: ``` -$updateChannelReadMessagesContents = ['_' => 'updateChannelReadMessagesContents', 'channel_id' => int, 'messages' => [int]]; +$updateChannelReadMessagesContents = ['_' => 'updateChannelReadMessagesContents', 'channel_id' => int, 'messages' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/updateDcOptions.md b/docs/API_docs/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/docs/API_docs/constructors/updateDcOptions.md +++ b/docs/API_docs/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/updateDeleteChannelMessages.md b/docs/API_docs/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/docs/API_docs/constructors/updateDeleteChannelMessages.md +++ b/docs/API_docs/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/updateDeleteMessages.md b/docs/API_docs/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/docs/API_docs/constructors/updateDeleteMessages.md +++ b/docs/API_docs/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/updatePinnedDialogs.md b/docs/API_docs/constructors/updatePinnedDialogs.md index a531ad75..c38d664c 100644 --- a/docs/API_docs/constructors/updatePinnedDialogs.md +++ b/docs/API_docs/constructors/updatePinnedDialogs.md @@ -21,7 +21,7 @@ description: updatePinnedDialogs attributes, type and example ### Example: ``` -$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer]]; +$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer, Peer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/updatePrivacy.md b/docs/API_docs/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/docs/API_docs/constructors/updatePrivacy.md +++ b/docs/API_docs/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/updateReadMessagesContents.md b/docs/API_docs/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/docs/API_docs/constructors/updateReadMessagesContents.md +++ b/docs/API_docs/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/updateServiceNotification.md b/docs/API_docs/constructors/updateServiceNotification.md index 562d1089..92280ccf 100644 --- a/docs/API_docs/constructors/updateServiceNotification.md +++ b/docs/API_docs/constructors/updateServiceNotification.md @@ -26,7 +26,7 @@ description: updateServiceNotification attributes, type and example ### Example: ``` -$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/updateShortChatMessage.md b/docs/API_docs/constructors/updateShortChatMessage.md index 08aa61a5..f6310d0d 100644 --- a/docs/API_docs/constructors/updateShortChatMessage.md +++ b/docs/API_docs/constructors/updateShortChatMessage.md @@ -35,7 +35,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/docs/API_docs/constructors/updateShortMessage.md b/docs/API_docs/constructors/updateShortMessage.md index 608d2a30..24f07b99 100644 --- a/docs/API_docs/constructors/updateShortMessage.md +++ b/docs/API_docs/constructors/updateShortMessage.md @@ -34,7 +34,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/docs/API_docs/constructors/updateShortSentMessage.md b/docs/API_docs/constructors/updateShortSentMessage.md index 28f82e3a..ebc40cf9 100644 --- a/docs/API_docs/constructors/updateShortSentMessage.md +++ b/docs/API_docs/constructors/updateShortSentMessage.md @@ -27,7 +27,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$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: diff --git a/docs/API_docs/constructors/updateStickerSetsOrder.md b/docs/API_docs/constructors/updateStickerSetsOrder.md index 53637821..7b29b8f2 100644 --- a/docs/API_docs/constructors/updateStickerSetsOrder.md +++ b/docs/API_docs/constructors/updateStickerSetsOrder.md @@ -22,7 +22,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/updates.md b/docs/API_docs/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/docs/API_docs/constructors/updates.md +++ b/docs/API_docs/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/updatesCombined.md b/docs/API_docs/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/docs/API_docs/constructors/updatesCombined.md +++ b/docs/API_docs/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/docs/API_docs/constructors/updates_channelDifference.md b/docs/API_docs/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/docs/API_docs/constructors/updates_channelDifference.md +++ b/docs/API_docs/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/docs/API_docs/constructors/updates_channelDifferenceTooLong.md b/docs/API_docs/constructors/updates_channelDifferenceTooLong.md index 0b2c46be..3bb04cf4 100644 --- a/docs/API_docs/constructors/updates_channelDifferenceTooLong.md +++ b/docs/API_docs/constructors/updates_channelDifferenceTooLong.md @@ -31,7 +31,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/docs/API_docs/constructors/updates_difference.md b/docs/API_docs/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/docs/API_docs/constructors/updates_difference.md +++ b/docs/API_docs/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/docs/API_docs/constructors/updates_differenceSlice.md b/docs/API_docs/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/docs/API_docs/constructors/updates_differenceSlice.md +++ b/docs/API_docs/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/docs/API_docs/constructors/upload_fileCdnRedirect.md b/docs/API_docs/constructors/upload_fileCdnRedirect.md index 33aaefd2..8140b266 100644 --- a/docs/API_docs/constructors/upload_fileCdnRedirect.md +++ b/docs/API_docs/constructors/upload_fileCdnRedirect.md @@ -25,7 +25,7 @@ description: upload_fileCdnRedirect attributes, type and example ### Example: ``` -$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'cdn_file_hashes' => [CdnFileHash]]; +$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'cdn_file_hashes' => [CdnFileHash, CdnFileHash]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/wallPaper.md b/docs/API_docs/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/docs/API_docs/constructors/wallPaper.md +++ b/docs/API_docs/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/constructors/webDocument.md b/docs/API_docs/constructors/webDocument.md index 0be6cb8a..55a5b09b 100644 --- a/docs/API_docs/constructors/webDocument.md +++ b/docs/API_docs/constructors/webDocument.md @@ -26,7 +26,7 @@ description: webDocument attributes, type and example ### Example: ``` -$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'dc_id' => int]; +$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'dc_id' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/API_docs/methods/account_changePhone.md b/docs/API_docs/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/docs/API_docs/methods/account_changePhone.md +++ b/docs/API_docs/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/docs/API_docs/methods/account_checkUsername.md b/docs/API_docs/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/docs/API_docs/methods/account_checkUsername.md +++ b/docs/API_docs/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/docs/API_docs/methods/account_confirmPhone.md b/docs/API_docs/methods/account_confirmPhone.md index 8dd79d94..2261e6e8 100644 --- a/docs/API_docs/methods/account_confirmPhone.md +++ b/docs/API_docs/methods/account_confirmPhone.md @@ -1,17 +1,19 @@ --- title: account.confirmPhone -description: account.confirmPhone parameters, return type and example +description: Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode --- ## 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 | Required | -|----------|---------------|----------| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_code\_hash|[string](../types/string.md) | Yes|obtain phone_code_hash from sendConfirmPhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The code sent by sendConfirmPhoneCode| ### Return type: [Bool](../types/Bool.md) @@ -31,13 +33,18 @@ description: account.confirmPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/docs/API_docs/methods/account_deleteAccount.md b/docs/API_docs/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/docs/API_docs/methods/account_deleteAccount.md +++ b/docs/API_docs/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/docs/API_docs/methods/account_getAccountTTL.md b/docs/API_docs/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/docs/API_docs/methods/account_getAccountTTL.md +++ b/docs/API_docs/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/docs/API_docs/methods/account_getAuthorizations.md b/docs/API_docs/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/docs/API_docs/methods/account_getAuthorizations.md +++ b/docs/API_docs/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/docs/API_docs/methods/account_getNotifySettings.md b/docs/API_docs/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/docs/API_docs/methods/account_getNotifySettings.md +++ b/docs/API_docs/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/docs/API_docs/methods/account_getPassword.md b/docs/API_docs/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/docs/API_docs/methods/account_getPassword.md +++ b/docs/API_docs/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/docs/API_docs/methods/account_getPasswordSettings.md b/docs/API_docs/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/docs/API_docs/methods/account_getPasswordSettings.md +++ b/docs/API_docs/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/docs/API_docs/methods/account_getPrivacy.md b/docs/API_docs/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/docs/API_docs/methods/account_getPrivacy.md +++ b/docs/API_docs/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/docs/API_docs/methods/account_getTmpPassword.md b/docs/API_docs/methods/account_getTmpPassword.md index d9bd30d8..e9ff8d28 100644 --- a/docs/API_docs/methods/account_getTmpPassword.md +++ b/docs/API_docs/methods/account_getTmpPassword.md @@ -1,17 +1,19 @@ --- title: account.getTmpPassword -description: account.getTmpPassword parameters, return type and example +description: Get temporary password for buying products through bots --- ## Method: account.getTmpPassword [Back to methods index](index.md) +Get temporary password for buying products through bots + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|password\_hash|[bytes](../types/bytes.md) | Yes|The password hash| +|period|[int](../types/int.md) | Yes|The validity period| ### Return type: [account\_TmpPassword](../types/account_TmpPassword.md) @@ -31,13 +33,18 @@ description: account.getTmpPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); ``` diff --git a/docs/API_docs/methods/account_getWallPapers.md b/docs/API_docs/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/docs/API_docs/methods/account_getWallPapers.md +++ b/docs/API_docs/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/docs/API_docs/methods/account_getWebAuthorizations.md b/docs/API_docs/methods/account_getWebAuthorizations.md index 42623407..5c009a38 100644 --- a/docs/API_docs/methods/account_getWebAuthorizations.md +++ b/docs/API_docs/methods/account_getWebAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getWebAuthorizations -description: account.getWebAuthorizations parameters, return type and example +description: Get telegram web login authorizations --- ## Method: account.getWebAuthorizations [Back to methods index](index.md) +Get telegram web login authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_WebAuthorizations](../types/account_WebAuthorizations.md) @@ -17,16 +23,18 @@ description: account.getWebAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_WebAuthorizations = $MadelineProto->account->getWebAuthorizations(); ``` diff --git a/docs/API_docs/methods/account_registerDevice.md b/docs/API_docs/methods/account_registerDevice.md index 712b9485..2192933f 100644 --- a/docs/API_docs/methods/account_registerDevice.md +++ b/docs/API_docs/methods/account_registerDevice.md @@ -1,19 +1,21 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| -|app\_sandbox|[Bool](../types/Bool.md) | Yes| -|other\_uids|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| +|app\_sandbox|[Bool](../types/Bool.md) | Yes|Should the app run in a sandbox?| +|other\_uids|Array of [int](../types/int.md) | Yes|Other UUIDs| ### Return type: [Bool](../types/Bool.md) @@ -32,15 +34,20 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'app_sandbox' => Bool, 'other_uids' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'app_sandbox' => Bool, 'other_uids' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/account_reportPeer.md b/docs/API_docs/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/docs/API_docs/methods/account_reportPeer.md +++ b/docs/API_docs/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/docs/API_docs/methods/account_resetAuthorization.md b/docs/API_docs/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/docs/API_docs/methods/account_resetAuthorization.md +++ b/docs/API_docs/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/docs/API_docs/methods/account_resetNotifySettings.md b/docs/API_docs/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/docs/API_docs/methods/account_resetNotifySettings.md +++ b/docs/API_docs/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/docs/API_docs/methods/account_resetWebAuthorization.md b/docs/API_docs/methods/account_resetWebAuthorization.md index a180d9d1..cd57e949 100644 --- a/docs/API_docs/methods/account_resetWebAuthorization.md +++ b/docs/API_docs/methods/account_resetWebAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetWebAuthorization -description: account.resetWebAuthorization parameters, return type and example +description: Delete a certain telegram web login authorization --- ## Method: account.resetWebAuthorization [Back to methods index](index.md) +Delete a certain telegram web login authorization + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The authorization's hash| ### Return type: [Bool](../types/Bool.md) @@ -22,16 +24,18 @@ description: account.resetWebAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetWebAuthorization(['hash' => long, ]); ``` diff --git a/docs/API_docs/methods/account_resetWebAuthorizations.md b/docs/API_docs/methods/account_resetWebAuthorizations.md index 113f59e8..f9f09bc8 100644 --- a/docs/API_docs/methods/account_resetWebAuthorizations.md +++ b/docs/API_docs/methods/account_resetWebAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.resetWebAuthorizations -description: account.resetWebAuthorizations parameters, return type and example +description: Reset all telegram web login authorizations --- ## Method: account.resetWebAuthorizations [Back to methods index](index.md) +Reset all telegram web login authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,16 +23,18 @@ description: account.resetWebAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetWebAuthorizations(); ``` diff --git a/docs/API_docs/methods/account_sendChangePhoneCode.md b/docs/API_docs/methods/account_sendChangePhoneCode.md index 017b5f7f..9e5016a4 100644 --- a/docs/API_docs/methods/account_sendChangePhoneCode.md +++ b/docs/API_docs/methods/account_sendChangePhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|phone\_number|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can the code be sent using a flash call instead of an SMS?| +|phone\_number|[string](../types/string.md) | Yes|New phone number| +|current\_number|[Bool](../types/Bool.md) | Optional|Current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); ``` diff --git a/docs/API_docs/methods/account_sendConfirmPhoneCode.md b/docs/API_docs/methods/account_sendConfirmPhoneCode.md index 3665bd50..4de86a33 100644 --- a/docs/API_docs/methods/account_sendConfirmPhoneCode.md +++ b/docs/API_docs/methods/account_sendConfirmPhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendConfirmPhoneCode -description: account.sendConfirmPhoneCode parameters, return type and example +description: Send confirmation phone code --- ## Method: account.sendConfirmPhoneCode [Back to methods index](index.md) +Send confirmation phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|hash|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can telegram call you instead of sending an SMS?| +|hash|[string](../types/string.md) | Yes|The hash| +|current\_number|[Bool](../types/Bool.md) | Optional|The current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendConfirmPhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); ``` diff --git a/docs/API_docs/methods/account_setAccountTTL.md b/docs/API_docs/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/docs/API_docs/methods/account_setAccountTTL.md +++ b/docs/API_docs/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/docs/API_docs/methods/account_setPrivacy.md b/docs/API_docs/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/docs/API_docs/methods/account_setPrivacy.md +++ b/docs/API_docs/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/account_unregisterDevice.md b/docs/API_docs/methods/account_unregisterDevice.md index 48a93859..873b1189 100644 --- a/docs/API_docs/methods/account_unregisterDevice.md +++ b/docs/API_docs/methods/account_unregisterDevice.md @@ -1,18 +1,20 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| -|other\_uids|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| +|other\_uids|Array of [int](../types/int.md) | Yes|Other UUIDs| ### Return type: [Bool](../types/Bool.md) @@ -31,15 +33,20 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', 'other_uids' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', 'other_uids' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/account_updateDeviceLocked.md b/docs/API_docs/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/docs/API_docs/methods/account_updateDeviceLocked.md +++ b/docs/API_docs/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/docs/API_docs/methods/account_updateNotifySettings.md b/docs/API_docs/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/docs/API_docs/methods/account_updateNotifySettings.md +++ b/docs/API_docs/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/docs/API_docs/methods/account_updatePasswordSettings.md b/docs/API_docs/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/docs/API_docs/methods/account_updatePasswordSettings.md +++ b/docs/API_docs/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/docs/API_docs/methods/account_updateProfile.md b/docs/API_docs/methods/account_updateProfile.md index b3d468d1..8b0c3268 100644 --- a/docs/API_docs/methods/account_updateProfile.md +++ b/docs/API_docs/methods/account_updateProfile.md @@ -1,18 +1,20 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Optional| -|last\_name|[string](../types/string.md) | Optional| -|about|[string](../types/string.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Optional|The first name| +|last\_name|[string](../types/string.md) | Optional|The last name| +|about|[string](../types/string.md) | Optional|The bio/about field| ### Return type: [User](../types/User.md) @@ -32,13 +34,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); ``` diff --git a/docs/API_docs/methods/account_updateStatus.md b/docs/API_docs/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/docs/API_docs/methods/account_updateStatus.md +++ b/docs/API_docs/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/docs/API_docs/methods/account_updateUsername.md b/docs/API_docs/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/docs/API_docs/methods/account_updateUsername.md +++ b/docs/API_docs/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/docs/API_docs/methods/auth_bindTempAuthKey.md b/docs/API_docs/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/docs/API_docs/methods/auth_bindTempAuthKey.md +++ b/docs/API_docs/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/docs/API_docs/methods/auth_cancelCode.md b/docs/API_docs/methods/auth_cancelCode.md index 05d927a1..1283e1e5 100644 --- a/docs/API_docs/methods/auth_cancelCode.md +++ b/docs/API_docs/methods/auth_cancelCode.md @@ -1,17 +1,19 @@ --- title: auth.cancelCode -description: auth.cancelCode parameters, return type and example +description: Invalidate sent phone code --- ## Method: auth.cancelCode [Back to methods index](index.md) +Invalidate sent phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: auth.cancelCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/docs/API_docs/methods/auth_checkPassword.md b/docs/API_docs/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/docs/API_docs/methods/auth_checkPassword.md +++ b/docs/API_docs/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/docs/API_docs/methods/auth_checkPhone.md b/docs/API_docs/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/docs/API_docs/methods/auth_checkPhone.md +++ b/docs/API_docs/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/docs/API_docs/methods/auth_dropTempAuthKeys.md b/docs/API_docs/methods/auth_dropTempAuthKeys.md index fedb7bf4..b08b9f40 100644 --- a/docs/API_docs/methods/auth_dropTempAuthKeys.md +++ b/docs/API_docs/methods/auth_dropTempAuthKeys.md @@ -1,16 +1,18 @@ --- title: auth.dropTempAuthKeys -description: auth.dropTempAuthKeys parameters, return type and example +description: Delete all temporary authorization keys except the ones provided --- ## Method: auth.dropTempAuthKeys [Back to methods index](index.md) +Delete all temporary authorization keys except the ones provided + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|except\_auth\_keys|Array of [long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|except\_auth\_keys|Array of [long](../types/long.md) | Yes|The temporary authorization keys to keep| ### Return type: [Bool](../types/Bool.md) @@ -22,18 +24,20 @@ description: auth.dropTempAuthKeys parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/auth_exportAuthorization.md b/docs/API_docs/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/docs/API_docs/methods/auth_exportAuthorization.md +++ b/docs/API_docs/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/docs/API_docs/methods/auth_importAuthorization.md b/docs/API_docs/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/docs/API_docs/methods/auth_importAuthorization.md +++ b/docs/API_docs/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/docs/API_docs/methods/auth_importBotAuthorization.md b/docs/API_docs/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/docs/API_docs/methods/auth_importBotAuthorization.md +++ b/docs/API_docs/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)** diff --git a/docs/API_docs/methods/auth_logOut.md b/docs/API_docs/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/docs/API_docs/methods/auth_logOut.md +++ b/docs/API_docs/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info)** diff --git a/docs/API_docs/methods/auth_recoverPassword.md b/docs/API_docs/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/docs/API_docs/methods/auth_recoverPassword.md +++ b/docs/API_docs/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/docs/API_docs/methods/auth_requestPasswordRecovery.md b/docs/API_docs/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/docs/API_docs/methods/auth_requestPasswordRecovery.md +++ b/docs/API_docs/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/docs/API_docs/methods/auth_resendCode.md b/docs/API_docs/methods/auth_resendCode.md index df4803b8..4bfbf379 100644 --- a/docs/API_docs/methods/auth_resendCode.md +++ b/docs/API_docs/methods/auth_resendCode.md @@ -1,17 +1,19 @@ --- title: auth.resendCode -description: auth.resendCode parameters, return type and example +description: Resend the SMS verification code --- ## Method: auth.resendCode [Back to methods index](index.md) +Resend the SMS verification code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|The phone code hash| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -30,13 +32,18 @@ description: auth.resendCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/docs/API_docs/methods/auth_resetAuthorizations.md b/docs/API_docs/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/docs/API_docs/methods/auth_resetAuthorizations.md +++ b/docs/API_docs/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/docs/API_docs/methods/auth_sendCode.md b/docs/API_docs/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/docs/API_docs/methods/auth_sendCode.md +++ b/docs/API_docs/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**You cannot use this method directly, use the phone_login method instead (see https://docs.madelineproto.xyz for more info)** diff --git a/docs/API_docs/methods/auth_sendInvites.md b/docs/API_docs/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/docs/API_docs/methods/auth_sendInvites.md +++ b/docs/API_docs/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/auth_signIn.md b/docs/API_docs/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/docs/API_docs/methods/auth_signIn.md +++ b/docs/API_docs/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info)** diff --git a/docs/API_docs/methods/auth_signUp.md b/docs/API_docs/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/docs/API_docs/methods/auth_signUp.md +++ b/docs/API_docs/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info)** diff --git a/docs/API_docs/methods/bots_answerWebhookJSONQuery.md b/docs/API_docs/methods/bots_answerWebhookJSONQuery.md index d910db35..809576fa 100644 --- a/docs/API_docs/methods/bots_answerWebhookJSONQuery.md +++ b/docs/API_docs/methods/bots_answerWebhookJSONQuery.md @@ -31,16 +31,18 @@ description: bots.answerWebhookJSONQuery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); ``` diff --git a/docs/API_docs/methods/bots_sendCustomRequest.md b/docs/API_docs/methods/bots_sendCustomRequest.md index abb880ef..ce28f6ca 100644 --- a/docs/API_docs/methods/bots_sendCustomRequest.md +++ b/docs/API_docs/methods/bots_sendCustomRequest.md @@ -30,16 +30,18 @@ description: bots.sendCustomRequest parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); ``` diff --git a/docs/API_docs/methods/channels_checkUsername.md b/docs/API_docs/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/docs/API_docs/methods/channels_checkUsername.md +++ b/docs/API_docs/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/docs/API_docs/methods/channels_createChannel.md b/docs/API_docs/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/docs/API_docs/methods/channels_createChannel.md +++ b/docs/API_docs/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/docs/API_docs/methods/channels_deleteChannel.md b/docs/API_docs/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/docs/API_docs/methods/channels_deleteChannel.md +++ b/docs/API_docs/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/docs/API_docs/methods/channels_deleteHistory.md b/docs/API_docs/methods/channels_deleteHistory.md index 552ffeaf..519cf766 100644 --- a/docs/API_docs/methods/channels_deleteHistory.md +++ b/docs/API_docs/methods/channels_deleteHistory.md @@ -10,7 +10,7 @@ description: channels.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -23,16 +23,18 @@ description: channels.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->deleteHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/docs/API_docs/methods/channels_deleteMessages.md b/docs/API_docs/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/docs/API_docs/methods/channels_deleteMessages.md +++ b/docs/API_docs/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/channels_deleteUserHistory.md b/docs/API_docs/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/docs/API_docs/methods/channels_deleteUserHistory.md +++ b/docs/API_docs/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/docs/API_docs/methods/channels_editAbout.md b/docs/API_docs/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/docs/API_docs/methods/channels_editAbout.md +++ b/docs/API_docs/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/docs/API_docs/methods/channels_editAdmin.md b/docs/API_docs/methods/channels_editAdmin.md index 07f8cc11..36ae5241 100644 --- a/docs/API_docs/methods/channels_editAdmin.md +++ b/docs/API_docs/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]); ``` diff --git a/docs/API_docs/methods/channels_editBanned.md b/docs/API_docs/methods/channels_editBanned.md index d26e857f..4f5dc25c 100644 --- a/docs/API_docs/methods/channels_editBanned.md +++ b/docs/API_docs/methods/channels_editBanned.md @@ -10,8 +10,8 @@ description: channels.editBanned parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Yes| @@ -35,16 +35,18 @@ description: channels.editBanned parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]); ``` diff --git a/docs/API_docs/methods/channels_editPhoto.md b/docs/API_docs/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/docs/API_docs/methods/channels_editPhoto.md +++ b/docs/API_docs/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/docs/API_docs/methods/channels_editTitle.md b/docs/API_docs/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/docs/API_docs/methods/channels_editTitle.md +++ b/docs/API_docs/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/docs/API_docs/methods/channels_exportInvite.md b/docs/API_docs/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/docs/API_docs/methods/channels_exportInvite.md +++ b/docs/API_docs/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/docs/API_docs/methods/channels_exportMessageLink.md b/docs/API_docs/methods/channels_exportMessageLink.md index 6d535c0b..94bbb418 100644 --- a/docs/API_docs/methods/channels_exportMessageLink.md +++ b/docs/API_docs/methods/channels_exportMessageLink.md @@ -10,7 +10,7 @@ description: channels.exportMessageLink parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| |grouped|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: channels.exportMessageLink parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, 'grouped' => Bool, ]); ``` diff --git a/docs/API_docs/methods/channels_getAdminLog.md b/docs/API_docs/methods/channels_getAdminLog.md index 247d82f5..2b4d08d6 100644 --- a/docs/API_docs/methods/channels_getAdminLog.md +++ b/docs/API_docs/methods/channels_getAdminLog.md @@ -10,10 +10,10 @@ description: channels.getAdminLog parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |q|[string](../types/string.md) | Yes| |events\_filter|[ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md) | Optional| -|admins|Array of [InputUser](../types/InputUser.md) | Optional| +|admins|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |max\_id|[long](../types/long.md) | Yes| |min\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -37,15 +37,20 @@ description: channels.getAdminLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$channels_AdminLogResults = $MadelineProto->channels->getAdminLog(['channel' => InputChannel, 'q' => 'string', 'events_filter' => ChannelAdminLogEventsFilter, 'admins' => [InputUser], 'max_id' => long, 'min_id' => long, 'limit' => int, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/channels_getAdminedPublicChannels.md b/docs/API_docs/methods/channels_getAdminedPublicChannels.md index 283a9071..01ea971f 100644 --- a/docs/API_docs/methods/channels_getAdminedPublicChannels.md +++ b/docs/API_docs/methods/channels_getAdminedPublicChannels.md @@ -17,13 +17,18 @@ description: channels.getAdminedPublicChannels parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); ``` diff --git a/docs/API_docs/methods/channels_getChannels.md b/docs/API_docs/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/docs/API_docs/methods/channels_getChannels.md +++ b/docs/API_docs/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/channels_getFullChannel.md b/docs/API_docs/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/docs/API_docs/methods/channels_getFullChannel.md +++ b/docs/API_docs/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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/docs/API_docs/methods/channels_getMessages.md b/docs/API_docs/methods/channels_getMessages.md index 3725cefe..31ccc00a 100644 --- a/docs/API_docs/methods/channels_getMessages.md +++ b/docs/API_docs/methods/channels_getMessages.md @@ -10,8 +10,8 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|id|Array of [InputMessage](../types/InputMessage.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|id|Array of [Message ID or InputMessage](../types/InputMessage.md) | Yes| ### Return type: [messages\_Messages](../types/messages_Messages.md) @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [InputMessage], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [InputMessage, InputMessage], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/channels_getParticipant.md b/docs/API_docs/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/docs/API_docs/methods/channels_getParticipant.md +++ b/docs/API_docs/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/docs/API_docs/methods/channels_getParticipants.md b/docs/API_docs/methods/channels_getParticipants.md index 2af62d64..45c48c25 100644 --- a/docs/API_docs/methods/channels_getParticipants.md +++ b/docs/API_docs/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -37,16 +37,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, 'hash' => int, ]); ``` diff --git a/docs/API_docs/methods/channels_inviteToChannel.md b/docs/API_docs/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/docs/API_docs/methods/channels_inviteToChannel.md +++ b/docs/API_docs/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/channels_joinChannel.md b/docs/API_docs/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/docs/API_docs/methods/channels_joinChannel.md +++ b/docs/API_docs/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/docs/API_docs/methods/channels_leaveChannel.md b/docs/API_docs/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/docs/API_docs/methods/channels_leaveChannel.md +++ b/docs/API_docs/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/docs/API_docs/methods/channels_readHistory.md b/docs/API_docs/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/docs/API_docs/methods/channels_readHistory.md +++ b/docs/API_docs/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/docs/API_docs/methods/channels_readMessageContents.md b/docs/API_docs/methods/channels_readMessageContents.md index e165c81f..7e3da8e4 100644 --- a/docs/API_docs/methods/channels_readMessageContents.md +++ b/docs/API_docs/methods/channels_readMessageContents.md @@ -10,7 +10,7 @@ description: channels.readMessageContents parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -31,15 +31,20 @@ description: channels.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/channels_reportSpam.md b/docs/API_docs/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/docs/API_docs/methods/channels_reportSpam.md +++ b/docs/API_docs/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/channels_setStickers.md b/docs/API_docs/methods/channels_setStickers.md index 0431b0c9..a1f733eb 100644 --- a/docs/API_docs/methods/channels_setStickers.md +++ b/docs/API_docs/methods/channels_setStickers.md @@ -10,7 +10,7 @@ description: channels.setStickers parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |stickerset|[InputStickerSet](../types/InputStickerSet.md) | Optional| @@ -31,16 +31,18 @@ description: channels.setStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->setStickers(['channel' => InputChannel, 'stickerset' => InputStickerSet, ]); ``` diff --git a/docs/API_docs/methods/channels_toggleInvites.md b/docs/API_docs/methods/channels_toggleInvites.md index 19669eec..8d977fd0 100644 --- a/docs/API_docs/methods/channels_toggleInvites.md +++ b/docs/API_docs/methods/channels_toggleInvites.md @@ -10,7 +10,7 @@ description: channels.toggleInvites parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -32,13 +32,18 @@ description: channels.toggleInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/docs/API_docs/methods/channels_togglePreHistoryHidden.md b/docs/API_docs/methods/channels_togglePreHistoryHidden.md index 9e5e511f..421878a6 100644 --- a/docs/API_docs/methods/channels_togglePreHistoryHidden.md +++ b/docs/API_docs/methods/channels_togglePreHistoryHidden.md @@ -10,7 +10,7 @@ description: channels.togglePreHistoryHidden parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -23,16 +23,18 @@ description: channels.togglePreHistoryHidden parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->togglePreHistoryHidden(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/docs/API_docs/methods/channels_toggleSignatures.md b/docs/API_docs/methods/channels_toggleSignatures.md index 4aaaeb0c..13d53d92 100644 --- a/docs/API_docs/methods/channels_toggleSignatures.md +++ b/docs/API_docs/methods/channels_toggleSignatures.md @@ -10,7 +10,7 @@ description: channels.toggleSignatures parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: channels.toggleSignatures parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/docs/API_docs/methods/channels_updatePinnedMessage.md b/docs/API_docs/methods/channels_updatePinnedMessage.md index 3bb6d010..ecc15ce6 100644 --- a/docs/API_docs/methods/channels_updatePinnedMessage.md +++ b/docs/API_docs/methods/channels_updatePinnedMessage.md @@ -11,7 +11,7 @@ description: channels.updatePinnedMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |silent|[Bool](../types/Bool.md) | Optional| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: channels.updatePinnedMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); ``` diff --git a/docs/API_docs/methods/channels_updateUsername.md b/docs/API_docs/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/docs/API_docs/methods/channels_updateUsername.md +++ b/docs/API_docs/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/docs/API_docs/methods/contacts_block.md b/docs/API_docs/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/docs/API_docs/methods/contacts_block.md +++ b/docs/API_docs/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/docs/API_docs/methods/contacts_deleteContact.md b/docs/API_docs/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/docs/API_docs/methods/contacts_deleteContact.md +++ b/docs/API_docs/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/docs/API_docs/methods/contacts_deleteContacts.md b/docs/API_docs/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/docs/API_docs/methods/contacts_deleteContacts.md +++ b/docs/API_docs/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/contacts_exportCard.md b/docs/API_docs/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/docs/API_docs/methods/contacts_exportCard.md +++ b/docs/API_docs/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/docs/API_docs/methods/contacts_getBlocked.md b/docs/API_docs/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/docs/API_docs/methods/contacts_getBlocked.md +++ b/docs/API_docs/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/docs/API_docs/methods/contacts_getContacts.md b/docs/API_docs/methods/contacts_getContacts.md index e7783c1b..32823094 100644 --- a/docs/API_docs/methods/contacts_getContacts.md +++ b/docs/API_docs/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[int](../types/int.md) | Yes|$ids is the list ids of previously fetched contacts, $hash = $MadelineProto->gen_vector_hash($ids);| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => int, ]); ``` diff --git a/docs/API_docs/methods/contacts_getStatuses.md b/docs/API_docs/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/docs/API_docs/methods/contacts_getStatuses.md +++ b/docs/API_docs/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/docs/API_docs/methods/contacts_getTopPeers.md b/docs/API_docs/methods/contacts_getTopPeers.md index f72133a5..560f15c6 100644 --- a/docs/API_docs/methods/contacts_getTopPeers.md +++ b/docs/API_docs/methods/contacts_getTopPeers.md @@ -1,24 +1,26 @@ --- title: contacts.getTopPeers -description: contacts.getTopPeers parameters, return type and example +description: Get most used chats --- ## Method: contacts.getTopPeers [Back to methods index](index.md) +Get most used chats + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|correspondents|[Bool](../types/Bool.md) | Optional| -|bots\_pm|[Bool](../types/Bool.md) | Optional| -|bots\_inline|[Bool](../types/Bool.md) | Optional| -|phone\_calls|[Bool](../types/Bool.md) | Optional| -|groups|[Bool](../types/Bool.md) | Optional| -|channels|[Bool](../types/Bool.md) | Optional| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|correspondents|[Bool](../types/Bool.md) | Optional|| +|bots\_pm|[Bool](../types/Bool.md) | Optional|| +|bots\_inline|[Bool](../types/Bool.md) | Optional|| +|phone\_calls|[Bool](../types/Bool.md) | Optional|| +|groups|[Bool](../types/Bool.md) | Optional|| +|channels|[Bool](../types/Bool.md) | Optional|| +|offset|[int](../types/int.md) | Yes|| +|limit|[int](../types/int.md) | Yes|| +|hash|[int](../types/int.md) | Yes|| ### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md) @@ -37,13 +39,18 @@ description: contacts.getTopPeers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/docs/API_docs/methods/contacts_importCard.md b/docs/API_docs/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/docs/API_docs/methods/contacts_importCard.md +++ b/docs/API_docs/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/contacts_importContacts.md b/docs/API_docs/methods/contacts_importContacts.md index 7d580e83..a6b93600 100644 --- a/docs/API_docs/methods/contacts_importContacts.md +++ b/docs/API_docs/methods/contacts_importContacts.md @@ -1,16 +1,18 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -22,15 +24,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/contacts_resetSaved.md b/docs/API_docs/methods/contacts_resetSaved.md index 87f8db12..7ad65cb1 100644 --- a/docs/API_docs/methods/contacts_resetSaved.md +++ b/docs/API_docs/methods/contacts_resetSaved.md @@ -17,16 +17,18 @@ description: contacts.resetSaved parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetSaved(); ``` diff --git a/docs/API_docs/methods/contacts_resetTopPeerRating.md b/docs/API_docs/methods/contacts_resetTopPeerRating.md index 3eab7e04..ddcf6b2f 100644 --- a/docs/API_docs/methods/contacts_resetTopPeerRating.md +++ b/docs/API_docs/methods/contacts_resetTopPeerRating.md @@ -11,7 +11,7 @@ description: contacts.resetTopPeerRating parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |category|[TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); ``` diff --git a/docs/API_docs/methods/contacts_resolveUsername.md b/docs/API_docs/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/docs/API_docs/methods/contacts_resolveUsername.md +++ b/docs/API_docs/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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/docs/API_docs/methods/contacts_search.md b/docs/API_docs/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/docs/API_docs/methods/contacts_search.md +++ b/docs/API_docs/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/docs/API_docs/methods/contacts_unblock.md b/docs/API_docs/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/docs/API_docs/methods/contacts_unblock.md +++ b/docs/API_docs/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/docs/API_docs/methods/help_getAppChangelog.md b/docs/API_docs/methods/help_getAppChangelog.md index 59916787..f09a7a0d 100644 --- a/docs/API_docs/methods/help_getAppChangelog.md +++ b/docs/API_docs/methods/help_getAppChangelog.md @@ -22,13 +22,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); ``` diff --git a/docs/API_docs/methods/help_getAppUpdate.md b/docs/API_docs/methods/help_getAppUpdate.md index 89ff22c3..0e227d24 100644 --- a/docs/API_docs/methods/help_getAppUpdate.md +++ b/docs/API_docs/methods/help_getAppUpdate.md @@ -17,13 +17,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); ``` diff --git a/docs/API_docs/methods/help_getCdnConfig.md b/docs/API_docs/methods/help_getCdnConfig.md index 3079e605..ba2a6c9a 100644 --- a/docs/API_docs/methods/help_getCdnConfig.md +++ b/docs/API_docs/methods/help_getCdnConfig.md @@ -24,16 +24,18 @@ description: help.getCdnConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $CdnConfig = $MadelineProto->help->getCdnConfig(); ``` diff --git a/docs/API_docs/methods/help_getConfig.md b/docs/API_docs/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/docs/API_docs/methods/help_getConfig.md +++ b/docs/API_docs/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/docs/API_docs/methods/help_getInviteText.md b/docs/API_docs/methods/help_getInviteText.md index 6d2674d6..a8d8992e 100644 --- a/docs/API_docs/methods/help_getInviteText.md +++ b/docs/API_docs/methods/help_getInviteText.md @@ -17,13 +17,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); ``` diff --git a/docs/API_docs/methods/help_getNearestDc.md b/docs/API_docs/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/docs/API_docs/methods/help_getNearestDc.md +++ b/docs/API_docs/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/docs/API_docs/methods/help_getRecentMeUrls.md b/docs/API_docs/methods/help_getRecentMeUrls.md index 76d65594..720e0f72 100644 --- a/docs/API_docs/methods/help_getRecentMeUrls.md +++ b/docs/API_docs/methods/help_getRecentMeUrls.md @@ -22,16 +22,18 @@ description: help.getRecentMeUrls parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_RecentMeUrls = $MadelineProto->help->getRecentMeUrls(['referer' => 'string', ]); ``` diff --git a/docs/API_docs/methods/help_getSupport.md b/docs/API_docs/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/docs/API_docs/methods/help_getSupport.md +++ b/docs/API_docs/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/docs/API_docs/methods/help_getTermsOfService.md b/docs/API_docs/methods/help_getTermsOfService.md index eb686506..a588e830 100644 --- a/docs/API_docs/methods/help_getTermsOfService.md +++ b/docs/API_docs/methods/help_getTermsOfService.md @@ -17,13 +17,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); ``` diff --git a/docs/API_docs/methods/help_saveAppLog.md b/docs/API_docs/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/docs/API_docs/methods/help_saveAppLog.md +++ b/docs/API_docs/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/help_setBotUpdatesStatus.md b/docs/API_docs/methods/help_setBotUpdatesStatus.md index 470187a0..68c9720a 100644 --- a/docs/API_docs/methods/help_setBotUpdatesStatus.md +++ b/docs/API_docs/methods/help_setBotUpdatesStatus.md @@ -23,16 +23,18 @@ description: help.setBotUpdatesStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); ``` diff --git a/docs/API_docs/methods/index.md b/docs/API_docs/methods/index.md index c812edb5..fdd81c1a 100644 --- a/docs/API_docs/methods/index.md +++ b/docs/API_docs/methods/index.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/docs/API_docs/methods/initConnection.md b/docs/API_docs/methods/initConnection.md index ef40e7f5..3c81c311 100644 --- a/docs/API_docs/methods/initConnection.md +++ b/docs/API_docs/methods/initConnection.md @@ -1,23 +1,25 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|system\_lang\_code|[string](../types/string.md) | Yes| -|lang\_pack|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|system\_lang\_code|[string](../types/string.md) | Yes|Language code| +|lang\_pack|[string](../types/string.md) | Yes|Language pack to use| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -37,16 +39,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', 'query' => !X, ]); ``` diff --git a/docs/API_docs/methods/invokeAfterMsg.md b/docs/API_docs/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/docs/API_docs/methods/invokeAfterMsg.md +++ b/docs/API_docs/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/docs/API_docs/methods/invokeAfterMsgs.md b/docs/API_docs/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/docs/API_docs/methods/invokeAfterMsgs.md +++ b/docs/API_docs/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/invokeWithLayer.md b/docs/API_docs/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/docs/API_docs/methods/invokeWithLayer.md +++ b/docs/API_docs/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/docs/API_docs/methods/invokeWithoutUpdates.md b/docs/API_docs/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/docs/API_docs/methods/invokeWithoutUpdates.md +++ b/docs/API_docs/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/docs/API_docs/methods/langpack_getDifference.md b/docs/API_docs/methods/langpack_getDifference.md index 116e78e2..b1078532 100644 --- a/docs/API_docs/methods/langpack_getDifference.md +++ b/docs/API_docs/methods/langpack_getDifference.md @@ -29,13 +29,18 @@ description: langpack.getDifference parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getDifference(['from_version' => int, ]); ``` diff --git a/docs/API_docs/methods/langpack_getLangPack.md b/docs/API_docs/methods/langpack_getLangPack.md index b5686e61..7d440b66 100644 --- a/docs/API_docs/methods/langpack_getLangPack.md +++ b/docs/API_docs/methods/langpack_getLangPack.md @@ -29,13 +29,18 @@ description: langpack.getLangPack parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getLangPack(['lang_code' => 'string', ]); ``` diff --git a/docs/API_docs/methods/langpack_getLanguages.md b/docs/API_docs/methods/langpack_getLanguages.md index cb65e5a0..8afce13f 100644 --- a/docs/API_docs/methods/langpack_getLanguages.md +++ b/docs/API_docs/methods/langpack_getLanguages.md @@ -24,13 +24,18 @@ description: langpack.getLanguages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_LangPackLanguage = $MadelineProto->langpack->getLanguages(); ``` diff --git a/docs/API_docs/methods/langpack_getStrings.md b/docs/API_docs/methods/langpack_getStrings.md index ce58daf9..9791f621 100644 --- a/docs/API_docs/methods/langpack_getStrings.md +++ b/docs/API_docs/methods/langpack_getStrings.md @@ -30,15 +30,20 @@ description: langpack.getStrings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string'], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string', 'string'], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_acceptEncryption.md b/docs/API_docs/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/docs/API_docs/methods/messages_acceptEncryption.md +++ b/docs/API_docs/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats** diff --git a/docs/API_docs/methods/messages_addChatUser.md b/docs/API_docs/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/docs/API_docs/methods/messages_addChatUser.md +++ b/docs/API_docs/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_checkChatInvite.md b/docs/API_docs/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/docs/API_docs/methods/messages_checkChatInvite.md +++ b/docs/API_docs/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/docs/API_docs/methods/messages_clearRecentStickers.md b/docs/API_docs/methods/messages_clearRecentStickers.md index ae45b249..31941a34 100644 --- a/docs/API_docs/methods/messages_clearRecentStickers.md +++ b/docs/API_docs/methods/messages_clearRecentStickers.md @@ -22,13 +22,18 @@ description: messages.clearRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); ``` diff --git a/docs/API_docs/methods/messages_createChat.md b/docs/API_docs/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/docs/API_docs/methods/messages_createChat.md +++ b/docs/API_docs/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_deleteChatUser.md b/docs/API_docs/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/docs/API_docs/methods/messages_deleteChatUser.md +++ b/docs/API_docs/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/docs/API_docs/methods/messages_deleteHistory.md b/docs/API_docs/methods/messages_deleteHistory.md index d1c3f195..01686b2b 100644 --- a/docs/API_docs/methods/messages_deleteHistory.md +++ b/docs/API_docs/methods/messages_deleteHistory.md @@ -11,7 +11,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |just\_clear|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_deleteMessages.md b/docs/API_docs/methods/messages_deleteMessages.md index 5472cc72..0cc6e6ed 100644 --- a/docs/API_docs/methods/messages_deleteMessages.md +++ b/docs/API_docs/methods/messages_deleteMessages.md @@ -30,18 +30,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_discardEncryption.md b/docs/API_docs/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/docs/API_docs/methods/messages_discardEncryption.md +++ b/docs/API_docs/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats** diff --git a/docs/API_docs/methods/messages_editChatAdmin.md b/docs/API_docs/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/docs/API_docs/methods/messages_editChatAdmin.md +++ b/docs/API_docs/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/docs/API_docs/methods/messages_editChatPhoto.md b/docs/API_docs/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/docs/API_docs/methods/messages_editChatPhoto.md +++ b/docs/API_docs/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/docs/API_docs/methods/messages_editChatTitle.md b/docs/API_docs/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/docs/API_docs/methods/messages_editChatTitle.md +++ b/docs/API_docs/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/docs/API_docs/methods/messages_editInlineBotMessage.md b/docs/API_docs/methods/messages_editInlineBotMessage.md index caa59b61..a2f59d4c 100644 --- a/docs/API_docs/methods/messages_editInlineBotMessage.md +++ b/docs/API_docs/methods/messages_editInlineBotMessage.md @@ -37,18 +37,20 @@ description: messages.editInlineBotMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'stop_geo_live' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', 'geo_point' => InputGeoPoint, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'stop_geo_live' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', 'geo_point' => InputGeoPoint, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_editMessage.md b/docs/API_docs/methods/messages_editMessage.md index 4dfadde7..396c9449 100644 --- a/docs/API_docs/methods/messages_editMessage.md +++ b/docs/API_docs/methods/messages_editMessage.md @@ -12,7 +12,7 @@ description: messages.editMessage parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |stop\_geo\_live|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| |message|[string](../types/string.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -46,18 +46,20 @@ description: messages.editMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'stop_geo_live' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', 'geo_point' => InputGeoPoint, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'stop_geo_live' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', 'geo_point' => InputGeoPoint, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_exportChatInvite.md b/docs/API_docs/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/docs/API_docs/methods/messages_exportChatInvite.md +++ b/docs/API_docs/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/docs/API_docs/methods/messages_faveSticker.md b/docs/API_docs/methods/messages_faveSticker.md index 9264d8a3..88544c20 100644 --- a/docs/API_docs/methods/messages_faveSticker.md +++ b/docs/API_docs/methods/messages_faveSticker.md @@ -10,7 +10,7 @@ description: messages.faveSticker parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unfave|[Bool](../types/Bool.md) | Yes| @@ -30,16 +30,18 @@ description: messages.faveSticker parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->faveSticker(['id' => InputDocument, 'unfave' => Bool, ]); ``` diff --git a/docs/API_docs/methods/messages_forwardMessages.md b/docs/API_docs/methods/messages_forwardMessages.md index ec12a217..62703972 100644 --- a/docs/API_docs/methods/messages_forwardMessages.md +++ b/docs/API_docs/methods/messages_forwardMessages.md @@ -14,9 +14,9 @@ description: messages.forwardMessages parameters, return type and example |background|[Bool](../types/Bool.md) | Optional| |with\_my\_score|[Bool](../types/Bool.md) | Optional| |grouped|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -56,18 +56,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'grouped' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_getAllChats.md b/docs/API_docs/methods/messages_getAllChats.md index babcf17d..59bc0add 100644 --- a/docs/API_docs/methods/messages_getAllChats.md +++ b/docs/API_docs/methods/messages_getAllChats.md @@ -22,15 +22,20 @@ description: messages.getAllChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_getAllDrafts.md b/docs/API_docs/methods/messages_getAllDrafts.md index 8550c5b8..7f0f7843 100644 --- a/docs/API_docs/methods/messages_getAllDrafts.md +++ b/docs/API_docs/methods/messages_getAllDrafts.md @@ -17,13 +17,18 @@ description: messages.getAllDrafts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); ``` diff --git a/docs/API_docs/methods/messages_getAllStickers.md b/docs/API_docs/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/docs/API_docs/methods/messages_getAllStickers.md +++ b/docs/API_docs/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_getArchivedStickers.md b/docs/API_docs/methods/messages_getArchivedStickers.md index cdb7f0af..8c2041a3 100644 --- a/docs/API_docs/methods/messages_getArchivedStickers.md +++ b/docs/API_docs/methods/messages_getArchivedStickers.md @@ -24,13 +24,18 @@ description: messages.getArchivedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_getAttachedStickers.md b/docs/API_docs/methods/messages_getAttachedStickers.md index 79d4e30d..f03f0be2 100644 --- a/docs/API_docs/methods/messages_getAttachedStickers.md +++ b/docs/API_docs/methods/messages_getAttachedStickers.md @@ -22,13 +22,18 @@ description: messages.getAttachedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); ``` diff --git a/docs/API_docs/methods/messages_getBotCallbackAnswer.md b/docs/API_docs/methods/messages_getBotCallbackAnswer.md index bd916755..b9039098 100644 --- a/docs/API_docs/methods/messages_getBotCallbackAnswer.md +++ b/docs/API_docs/methods/messages_getBotCallbackAnswer.md @@ -11,7 +11,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |game|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |msg\_id|[int](../types/int.md) | Yes| |data|[bytes](../types/bytes.md) | Optional| @@ -36,13 +36,18 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); ``` diff --git a/docs/API_docs/methods/messages_getChats.md b/docs/API_docs/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/docs/API_docs/methods/messages_getChats.md +++ b/docs/API_docs/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_getCommonChats.md b/docs/API_docs/methods/messages_getCommonChats.md index d713f3a5..0df79096 100644 --- a/docs/API_docs/methods/messages_getCommonChats.md +++ b/docs/API_docs/methods/messages_getCommonChats.md @@ -10,7 +10,7 @@ description: messages.getCommonChats parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getCommonChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_getDhConfig.md b/docs/API_docs/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/docs/API_docs/methods/messages_getDhConfig.md +++ b/docs/API_docs/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_getDialogs.md b/docs/API_docs/methods/messages_getDialogs.md index e7e81a8c..041b3efe 100644 --- a/docs/API_docs/methods/messages_getDialogs.md +++ b/docs/API_docs/methods/messages_getDialogs.md @@ -13,7 +13,7 @@ description: messages.getDialogs parameters, return type and example |exclude\_pinned|[Bool](../types/Bool.md) | Optional| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_getDocumentByHash.md b/docs/API_docs/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/docs/API_docs/methods/messages_getDocumentByHash.md +++ b/docs/API_docs/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/docs/API_docs/methods/messages_getFavedStickers.md b/docs/API_docs/methods/messages_getFavedStickers.md index 51701826..fc2717f8 100644 --- a/docs/API_docs/methods/messages_getFavedStickers.md +++ b/docs/API_docs/methods/messages_getFavedStickers.md @@ -22,16 +22,18 @@ description: messages.getFavedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FavedStickers = $MadelineProto->messages->getFavedStickers(['hash' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_getFeaturedStickers.md b/docs/API_docs/methods/messages_getFeaturedStickers.md index 5aad1810..51097eda 100644 --- a/docs/API_docs/methods/messages_getFeaturedStickers.md +++ b/docs/API_docs/methods/messages_getFeaturedStickers.md @@ -22,13 +22,18 @@ description: messages.getFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_getFullChat.md b/docs/API_docs/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/docs/API_docs/methods/messages_getFullChat.md +++ b/docs/API_docs/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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/docs/API_docs/methods/messages_getGameHighScores.md b/docs/API_docs/methods/messages_getGameHighScores.md index c316a8bd..4b8b1397 100644 --- a/docs/API_docs/methods/messages_getGameHighScores.md +++ b/docs/API_docs/methods/messages_getGameHighScores.md @@ -10,9 +10,9 @@ description: messages.getGameHighScores parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -32,16 +32,18 @@ description: messages.getGameHighScores parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); ``` diff --git a/docs/API_docs/methods/messages_getHistory.md b/docs/API_docs/methods/messages_getHistory.md index b0dfa205..e25111ed 100644 --- a/docs/API_docs/methods/messages_getHistory.md +++ b/docs/API_docs/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| @@ -41,13 +41,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/docs/API_docs/methods/messages_getInlineBotResults.md b/docs/API_docs/methods/messages_getInlineBotResults.md index 90e2a427..6d965b19 100644 --- a/docs/API_docs/methods/messages_getInlineBotResults.md +++ b/docs/API_docs/methods/messages_getInlineBotResults.md @@ -10,8 +10,8 @@ description: messages.getInlineBotResults parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |query|[string](../types/string.md) | Yes| |offset|[string](../types/string.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); ``` diff --git a/docs/API_docs/methods/messages_getInlineGameHighScores.md b/docs/API_docs/methods/messages_getInlineGameHighScores.md index 524e387b..9305a0f4 100644 --- a/docs/API_docs/methods/messages_getInlineGameHighScores.md +++ b/docs/API_docs/methods/messages_getInlineGameHighScores.md @@ -11,7 +11,7 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Name | Type | Required | |----------|---------------|----------| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -31,16 +31,18 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); ``` diff --git a/docs/API_docs/methods/messages_getMaskStickers.md b/docs/API_docs/methods/messages_getMaskStickers.md index ca964647..260cfdb7 100644 --- a/docs/API_docs/methods/messages_getMaskStickers.md +++ b/docs/API_docs/methods/messages_getMaskStickers.md @@ -22,13 +22,18 @@ description: messages.getMaskStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_getMessageEditData.md b/docs/API_docs/methods/messages_getMessageEditData.md index df71c31a..2a90a419 100644 --- a/docs/API_docs/methods/messages_getMessageEditData.md +++ b/docs/API_docs/methods/messages_getMessageEditData.md @@ -10,7 +10,7 @@ description: messages.getMessageEditData parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getMessageEditData parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_getMessages.md b/docs/API_docs/methods/messages_getMessages.md index 74cb22e3..15f87e60 100644 --- a/docs/API_docs/methods/messages_getMessages.md +++ b/docs/API_docs/methods/messages_getMessages.md @@ -10,7 +10,7 @@ description: messages.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputMessage](../types/InputMessage.md) | Yes| +|id|Array of [Message ID or InputMessage](../types/InputMessage.md) | Yes| ### Return type: [messages\_Messages](../types/messages_Messages.md) @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [InputMessage], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [InputMessage, InputMessage], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_getMessagesViews.md b/docs/API_docs/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/docs/API_docs/methods/messages_getMessagesViews.md +++ b/docs/API_docs/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_getPeerDialogs.md b/docs/API_docs/methods/messages_getPeerDialogs.md index 226948ae..eff29878 100644 --- a/docs/API_docs/methods/messages_getPeerDialogs.md +++ b/docs/API_docs/methods/messages_getPeerDialogs.md @@ -10,7 +10,7 @@ description: messages.getPeerDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peers|Array of [InputPeer](../types/InputPeer.md) | Yes| +|peers|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md) @@ -30,15 +30,20 @@ description: messages.getPeerDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_getPeerSettings.md b/docs/API_docs/methods/messages_getPeerSettings.md index fab25034..25906b73 100644 --- a/docs/API_docs/methods/messages_getPeerSettings.md +++ b/docs/API_docs/methods/messages_getPeerSettings.md @@ -10,7 +10,7 @@ description: messages.getPeerSettings parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [PeerSettings](../types/PeerSettings.md) @@ -30,13 +30,18 @@ description: messages.getPeerSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); ``` diff --git a/docs/API_docs/methods/messages_getPinnedDialogs.md b/docs/API_docs/methods/messages_getPinnedDialogs.md index ec744f01..e5499df7 100644 --- a/docs/API_docs/methods/messages_getPinnedDialogs.md +++ b/docs/API_docs/methods/messages_getPinnedDialogs.md @@ -17,13 +17,18 @@ description: messages.getPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); ``` diff --git a/docs/API_docs/methods/messages_getRecentLocations.md b/docs/API_docs/methods/messages_getRecentLocations.md index a362f903..be42bb77 100644 --- a/docs/API_docs/methods/messages_getRecentLocations.md +++ b/docs/API_docs/methods/messages_getRecentLocations.md @@ -10,7 +10,7 @@ description: messages.getRecentLocations parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -23,16 +23,18 @@ description: messages.getRecentLocations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getRecentLocations(['peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_getRecentStickers.md b/docs/API_docs/methods/messages_getRecentStickers.md index a6ae162f..5a60d345 100644 --- a/docs/API_docs/methods/messages_getRecentStickers.md +++ b/docs/API_docs/methods/messages_getRecentStickers.md @@ -23,13 +23,18 @@ description: messages.getRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_getSavedGifs.md b/docs/API_docs/methods/messages_getSavedGifs.md index 4986d812..bcb4590d 100644 --- a/docs/API_docs/methods/messages_getSavedGifs.md +++ b/docs/API_docs/methods/messages_getSavedGifs.md @@ -22,13 +22,18 @@ description: messages.getSavedGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_getStickerSet.md b/docs/API_docs/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/docs/API_docs/methods/messages_getStickerSet.md +++ b/docs/API_docs/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/docs/API_docs/methods/messages_getStickers.md b/docs/API_docs/methods/messages_getStickers.md index 1587cd01..6ac68c87 100644 --- a/docs/API_docs/methods/messages_getStickers.md +++ b/docs/API_docs/methods/messages_getStickers.md @@ -23,16 +23,18 @@ description: messages.getStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); ``` diff --git a/docs/API_docs/methods/messages_getUnreadMentions.md b/docs/API_docs/methods/messages_getUnreadMentions.md index c79eef68..181e730c 100644 --- a/docs/API_docs/methods/messages_getUnreadMentions.md +++ b/docs/API_docs/methods/messages_getUnreadMentions.md @@ -10,7 +10,7 @@ description: messages.getUnreadMentions parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -34,13 +34,18 @@ description: messages.getUnreadMentions parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getUnreadMentions(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_getWebPage.md b/docs/API_docs/methods/messages_getWebPage.md index e886b020..0f09af47 100644 --- a/docs/API_docs/methods/messages_getWebPage.md +++ b/docs/API_docs/methods/messages_getWebPage.md @@ -30,13 +30,18 @@ description: messages.getWebPage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_getWebPagePreview.md b/docs/API_docs/methods/messages_getWebPagePreview.md index c1dd47f6..31630bc2 100644 --- a/docs/API_docs/methods/messages_getWebPagePreview.md +++ b/docs/API_docs/methods/messages_getWebPagePreview.md @@ -24,15 +24,20 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_hideReportSpam.md b/docs/API_docs/methods/messages_hideReportSpam.md index d47e8aa5..0419ec79 100644 --- a/docs/API_docs/methods/messages_hideReportSpam.md +++ b/docs/API_docs/methods/messages_hideReportSpam.md @@ -10,7 +10,7 @@ description: messages.hideReportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.hideReportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); ``` diff --git a/docs/API_docs/methods/messages_importChatInvite.md b/docs/API_docs/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/docs/API_docs/methods/messages_importChatInvite.md +++ b/docs/API_docs/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/docs/API_docs/methods/messages_installStickerSet.md b/docs/API_docs/methods/messages_installStickerSet.md index 9336cc22..f405adce 100644 --- a/docs/API_docs/methods/messages_installStickerSet.md +++ b/docs/API_docs/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); ``` diff --git a/docs/API_docs/methods/messages_migrateChat.md b/docs/API_docs/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/docs/API_docs/methods/messages_migrateChat.md +++ b/docs/API_docs/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/docs/API_docs/methods/messages_readEncryptedHistory.md b/docs/API_docs/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/docs/API_docs/methods/messages_readEncryptedHistory.md +++ b/docs/API_docs/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_readFeaturedStickers.md b/docs/API_docs/methods/messages_readFeaturedStickers.md index 02055bf3..766ba200 100644 --- a/docs/API_docs/methods/messages_readFeaturedStickers.md +++ b/docs/API_docs/methods/messages_readFeaturedStickers.md @@ -22,15 +22,20 @@ description: messages.readFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_readHistory.md b/docs/API_docs/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/docs/API_docs/methods/messages_readHistory.md +++ b/docs/API_docs/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_readMentions.md b/docs/API_docs/methods/messages_readMentions.md index 687a4053..0fec0465 100644 --- a/docs/API_docs/methods/messages_readMentions.md +++ b/docs/API_docs/methods/messages_readMentions.md @@ -10,7 +10,7 @@ description: messages.readMentions parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -22,16 +22,18 @@ description: messages.readMentions parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readMentions(['peer' => InputPeer, ]); ``` diff --git a/docs/API_docs/methods/messages_readMessageContents.md b/docs/API_docs/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/docs/API_docs/methods/messages_readMessageContents.md +++ b/docs/API_docs/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_receivedMessages.md b/docs/API_docs/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/docs/API_docs/methods/messages_receivedMessages.md +++ b/docs/API_docs/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_receivedQueue.md b/docs/API_docs/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/docs/API_docs/methods/messages_receivedQueue.md +++ b/docs/API_docs/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_reorderPinnedDialogs.md b/docs/API_docs/methods/messages_reorderPinnedDialogs.md index b4bfb84f..30e926d9 100644 --- a/docs/API_docs/methods/messages_reorderPinnedDialogs.md +++ b/docs/API_docs/methods/messages_reorderPinnedDialogs.md @@ -11,7 +11,7 @@ description: messages.reorderPinnedDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |force|[Bool](../types/Bool.md) | Optional| -|order|Array of [InputPeer](../types/InputPeer.md) | Yes| +|order|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +30,20 @@ description: messages.reorderPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_reorderStickerSets.md b/docs/API_docs/methods/messages_reorderStickerSets.md index fa094550..0e2c121d 100644 --- a/docs/API_docs/methods/messages_reorderStickerSets.md +++ b/docs/API_docs/methods/messages_reorderStickerSets.md @@ -23,15 +23,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_reportEncryptedSpam.md b/docs/API_docs/methods/messages_reportEncryptedSpam.md index aed7a891..64ebecdd 100644 --- a/docs/API_docs/methods/messages_reportEncryptedSpam.md +++ b/docs/API_docs/methods/messages_reportEncryptedSpam.md @@ -10,7 +10,7 @@ description: messages.reportEncryptedSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportEncryptedSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); ``` diff --git a/docs/API_docs/methods/messages_reportSpam.md b/docs/API_docs/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/docs/API_docs/methods/messages_reportSpam.md +++ b/docs/API_docs/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/docs/API_docs/methods/messages_requestEncryption.md b/docs/API_docs/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/docs/API_docs/methods/messages_requestEncryption.md +++ b/docs/API_docs/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats** diff --git a/docs/API_docs/methods/messages_saveDraft.md b/docs/API_docs/methods/messages_saveDraft.md index 7a85dfe7..754b4da2 100644 --- a/docs/API_docs/methods/messages_saveDraft.md +++ b/docs/API_docs/methods/messages_saveDraft.md @@ -12,7 +12,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |message|[string](../types/string.md) | Yes| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| |parse\_mode| [string](../types/string.md) | Optional | @@ -34,15 +34,20 @@ description: messages.saveDraft parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_saveGif.md b/docs/API_docs/methods/messages_saveGif.md index b3673c91..725bc949 100644 --- a/docs/API_docs/methods/messages_saveGif.md +++ b/docs/API_docs/methods/messages_saveGif.md @@ -10,7 +10,7 @@ description: messages.saveGif parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveGif parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/docs/API_docs/methods/messages_saveRecentSticker.md b/docs/API_docs/methods/messages_saveRecentSticker.md index bc3d1627..4a8298e2 100644 --- a/docs/API_docs/methods/messages_saveRecentSticker.md +++ b/docs/API_docs/methods/messages_saveRecentSticker.md @@ -11,7 +11,7 @@ description: messages.saveRecentSticker parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |attached|[Bool](../types/Bool.md) | Optional| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.saveRecentSticker parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/docs/API_docs/methods/messages_search.md b/docs/API_docs/methods/messages_search.md index 368688bd..4dd3f947 100644 --- a/docs/API_docs/methods/messages_search.md +++ b/docs/API_docs/methods/messages_search.md @@ -10,9 +10,9 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| -|from\_id|[InputUser](../types/InputUser.md) | Optional| +|from\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -45,13 +45,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/docs/API_docs/methods/messages_searchGifs.md b/docs/API_docs/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/docs/API_docs/methods/messages_searchGifs.md +++ b/docs/API_docs/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_searchGlobal.md b/docs/API_docs/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/docs/API_docs/methods/messages_searchGlobal.md +++ b/docs/API_docs/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_sendEncrypted.md b/docs/API_docs/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/docs/API_docs/methods/messages_sendEncrypted.md +++ b/docs/API_docs/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/docs/API_docs/methods/messages_sendEncryptedFile.md b/docs/API_docs/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/docs/API_docs/methods/messages_sendEncryptedFile.md +++ b/docs/API_docs/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/docs/API_docs/methods/messages_sendEncryptedService.md b/docs/API_docs/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/docs/API_docs/methods/messages_sendEncryptedService.md +++ b/docs/API_docs/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/docs/API_docs/methods/messages_sendInlineBotResult.md b/docs/API_docs/methods/messages_sendInlineBotResult.md index 0857341e..6bfb1578 100644 --- a/docs/API_docs/methods/messages_sendInlineBotResult.md +++ b/docs/API_docs/methods/messages_sendInlineBotResult.md @@ -13,7 +13,7 @@ description: messages.sendInlineBotResult parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |query\_id|[long](../types/long.md) | Yes| |id|[string](../types/string.md) | Yes| @@ -40,13 +40,18 @@ description: messages.sendInlineBotResult parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); ``` diff --git a/docs/API_docs/methods/messages_sendMedia.md b/docs/API_docs/methods/messages_sendMedia.md index a4931eb2..3d49b319 100644 --- a/docs/API_docs/methods/messages_sendMedia.md +++ b/docs/API_docs/methods/messages_sendMedia.md @@ -13,9 +13,9 @@ description: messages.sendMedia parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| @@ -59,18 +59,20 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$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], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_sendMessage.md b/docs/API_docs/methods/messages_sendMessage.md index bec95b8c..49ace99c 100644 --- a/docs/API_docs/methods/messages_sendMessage.md +++ b/docs/API_docs/methods/messages_sendMessage.md @@ -14,7 +14,7 @@ description: messages.sendMessage parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -50,6 +50,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -57,18 +58,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$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], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_sendMultiMedia.md b/docs/API_docs/methods/messages_sendMultiMedia.md index 1ec27201..53afd358 100644 --- a/docs/API_docs/methods/messages_sendMultiMedia.md +++ b/docs/API_docs/methods/messages_sendMultiMedia.md @@ -13,7 +13,7 @@ description: messages.sendMultiMedia parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |multi\_media|Array of [InputSingleMedia](../types/InputSingleMedia.md) | Yes| @@ -27,18 +27,20 @@ description: messages.sendMultiMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendMultiMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'multi_media' => [InputSingleMedia], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendMultiMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'multi_media' => [InputSingleMedia, InputSingleMedia], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_sendScreenshotNotification.md b/docs/API_docs/methods/messages_sendScreenshotNotification.md index 8ab8154b..2e66b51a 100644 --- a/docs/API_docs/methods/messages_sendScreenshotNotification.md +++ b/docs/API_docs/methods/messages_sendScreenshotNotification.md @@ -10,7 +10,7 @@ description: messages.sendScreenshotNotification parameters, return type and exa | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.sendScreenshotNotification parameters, return type and exa ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendScreenshotNotification(['peer' => InputPeer, 'reply_to_msg_id' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_setBotCallbackAnswer.md b/docs/API_docs/methods/messages_setBotCallbackAnswer.md index 2901a558..0282168b 100644 --- a/docs/API_docs/methods/messages_setBotCallbackAnswer.md +++ b/docs/API_docs/methods/messages_setBotCallbackAnswer.md @@ -33,16 +33,18 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_setBotPrecheckoutResults.md b/docs/API_docs/methods/messages_setBotPrecheckoutResults.md index 5666e9ff..4aba8ca3 100644 --- a/docs/API_docs/methods/messages_setBotPrecheckoutResults.md +++ b/docs/API_docs/methods/messages_setBotPrecheckoutResults.md @@ -31,16 +31,18 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); ``` diff --git a/docs/API_docs/methods/messages_setBotShippingResults.md b/docs/API_docs/methods/messages_setBotShippingResults.md index 95376b64..5dcfe12e 100644 --- a/docs/API_docs/methods/messages_setBotShippingResults.md +++ b/docs/API_docs/methods/messages_setBotShippingResults.md @@ -31,18 +31,20 @@ description: messages.setBotShippingResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_setEncryptedTyping.md b/docs/API_docs/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/docs/API_docs/methods/messages_setEncryptedTyping.md +++ b/docs/API_docs/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/docs/API_docs/methods/messages_setGameScore.md b/docs/API_docs/methods/messages_setGameScore.md index 615aa87b..61dfe579 100644 --- a/docs/API_docs/methods/messages_setGameScore.md +++ b/docs/API_docs/methods/messages_setGameScore.md @@ -12,9 +12,9 @@ description: messages.setGameScore parameters, return type and example |----------|---------------|----------| |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -35,16 +35,18 @@ description: messages.setGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_setInlineBotResults.md b/docs/API_docs/methods/messages_setInlineBotResults.md index 8b49c4c7..c38b8c2e 100644 --- a/docs/API_docs/methods/messages_setInlineBotResults.md +++ b/docs/API_docs/methods/messages_setInlineBotResults.md @@ -45,18 +45,20 @@ description: messages.setInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/messages_setInlineGameScore.md b/docs/API_docs/methods/messages_setInlineGameScore.md index b5fc27d5..9fadc31e 100644 --- a/docs/API_docs/methods/messages_setInlineGameScore.md +++ b/docs/API_docs/methods/messages_setInlineGameScore.md @@ -13,7 +13,7 @@ description: messages.setInlineGameScore parameters, return type and example |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: messages.setInlineGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/docs/API_docs/methods/messages_setTyping.md b/docs/API_docs/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/docs/API_docs/methods/messages_setTyping.md +++ b/docs/API_docs/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/docs/API_docs/methods/messages_startBot.md b/docs/API_docs/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/docs/API_docs/methods/messages_startBot.md +++ b/docs/API_docs/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/docs/API_docs/methods/messages_toggleChatAdmins.md b/docs/API_docs/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/docs/API_docs/methods/messages_toggleChatAdmins.md +++ b/docs/API_docs/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/docs/API_docs/methods/messages_toggleDialogPin.md b/docs/API_docs/methods/messages_toggleDialogPin.md index 535a0fa1..7c5bfa9f 100644 --- a/docs/API_docs/methods/messages_toggleDialogPin.md +++ b/docs/API_docs/methods/messages_toggleDialogPin.md @@ -11,7 +11,7 @@ description: messages.toggleDialogPin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |pinned|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: messages.toggleDialogPin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); ``` diff --git a/docs/API_docs/methods/messages_uninstallStickerSet.md b/docs/API_docs/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/docs/API_docs/methods/messages_uninstallStickerSet.md +++ b/docs/API_docs/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/docs/API_docs/methods/messages_uploadEncryptedFile.md b/docs/API_docs/methods/messages_uploadEncryptedFile.md index 60a63bf3..cc5d62fe 100644 --- a/docs/API_docs/methods/messages_uploadEncryptedFile.md +++ b/docs/API_docs/methods/messages_uploadEncryptedFile.md @@ -10,8 +10,8 @@ description: messages.uploadEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [EncryptedFile](../types/EncryptedFile.md) @@ -23,16 +23,18 @@ description: messages.uploadEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $EncryptedFile = $MadelineProto->messages->uploadEncryptedFile(['peer' => InputEncryptedChat, 'file' => InputEncryptedFile, ]); ``` diff --git a/docs/API_docs/methods/messages_uploadMedia.md b/docs/API_docs/methods/messages_uploadMedia.md index 8a79defa..74515f11 100644 --- a/docs/API_docs/methods/messages_uploadMedia.md +++ b/docs/API_docs/methods/messages_uploadMedia.md @@ -10,8 +10,8 @@ description: messages.uploadMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [MessageMedia](../types/MessageMedia.md) @@ -32,16 +32,18 @@ description: messages.uploadMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->uploadMedia(['peer' => InputPeer, 'media' => InputMedia, ]); ``` diff --git a/docs/API_docs/methods/payments_clearSavedInfo.md b/docs/API_docs/methods/payments_clearSavedInfo.md index fb9bae07..dc762198 100644 --- a/docs/API_docs/methods/payments_clearSavedInfo.md +++ b/docs/API_docs/methods/payments_clearSavedInfo.md @@ -23,13 +23,18 @@ description: payments.clearSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); ``` diff --git a/docs/API_docs/methods/payments_getPaymentForm.md b/docs/API_docs/methods/payments_getPaymentForm.md index 141c47f2..ee269741 100644 --- a/docs/API_docs/methods/payments_getPaymentForm.md +++ b/docs/API_docs/methods/payments_getPaymentForm.md @@ -29,13 +29,18 @@ description: payments.getPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); ``` diff --git a/docs/API_docs/methods/payments_getPaymentReceipt.md b/docs/API_docs/methods/payments_getPaymentReceipt.md index f6aa1ab6..e46563d0 100644 --- a/docs/API_docs/methods/payments_getPaymentReceipt.md +++ b/docs/API_docs/methods/payments_getPaymentReceipt.md @@ -29,13 +29,18 @@ description: payments.getPaymentReceipt parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); ``` diff --git a/docs/API_docs/methods/payments_getSavedInfo.md b/docs/API_docs/methods/payments_getSavedInfo.md index 4104679a..ae1fcf33 100644 --- a/docs/API_docs/methods/payments_getSavedInfo.md +++ b/docs/API_docs/methods/payments_getSavedInfo.md @@ -17,13 +17,18 @@ description: payments.getSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); ``` diff --git a/docs/API_docs/methods/payments_sendPaymentForm.md b/docs/API_docs/methods/payments_sendPaymentForm.md index 180a7279..08505110 100644 --- a/docs/API_docs/methods/payments_sendPaymentForm.md +++ b/docs/API_docs/methods/payments_sendPaymentForm.md @@ -32,13 +32,18 @@ description: payments.sendPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); ``` diff --git a/docs/API_docs/methods/payments_validateRequestedInfo.md b/docs/API_docs/methods/payments_validateRequestedInfo.md index acfd1852..ebfc5c22 100644 --- a/docs/API_docs/methods/payments_validateRequestedInfo.md +++ b/docs/API_docs/methods/payments_validateRequestedInfo.md @@ -31,13 +31,18 @@ description: payments.validateRequestedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); ``` diff --git a/docs/API_docs/methods/phone_acceptCall.md b/docs/API_docs/methods/phone_acceptCall.md index 79266f27..49029aed 100644 --- a/docs/API_docs/methods/phone_acceptCall.md +++ b/docs/API_docs/methods/phone_acceptCall.md @@ -1,12 +1,12 @@ --- title: phone.acceptCall -description: phone.acceptCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.acceptCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls** diff --git a/docs/API_docs/methods/phone_confirmCall.md b/docs/API_docs/methods/phone_confirmCall.md index 69e90751..5c7bb15c 100644 --- a/docs/API_docs/methods/phone_confirmCall.md +++ b/docs/API_docs/methods/phone_confirmCall.md @@ -1,12 +1,12 @@ --- title: phone.confirmCall -description: phone.confirmCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.confirmCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls** diff --git a/docs/API_docs/methods/phone_discardCall.md b/docs/API_docs/methods/phone_discardCall.md index c300e61c..c01d1014 100644 --- a/docs/API_docs/methods/phone_discardCall.md +++ b/docs/API_docs/methods/phone_discardCall.md @@ -1,12 +1,12 @@ --- title: phone.discardCall -description: phone.discardCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.discardCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls** diff --git a/docs/API_docs/methods/phone_getCallConfig.md b/docs/API_docs/methods/phone_getCallConfig.md index 3f18d7ca..636ae946 100644 --- a/docs/API_docs/methods/phone_getCallConfig.md +++ b/docs/API_docs/methods/phone_getCallConfig.md @@ -17,13 +17,18 @@ description: phone.getCallConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); ``` diff --git a/docs/API_docs/methods/phone_receivedCall.md b/docs/API_docs/methods/phone_receivedCall.md index 8ca6a4e1..00b51aed 100644 --- a/docs/API_docs/methods/phone_receivedCall.md +++ b/docs/API_docs/methods/phone_receivedCall.md @@ -30,13 +30,18 @@ description: phone.receivedCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); ``` diff --git a/docs/API_docs/methods/phone_requestCall.md b/docs/API_docs/methods/phone_requestCall.md index c8ae48a9..be45437e 100644 --- a/docs/API_docs/methods/phone_requestCall.md +++ b/docs/API_docs/methods/phone_requestCall.md @@ -1,12 +1,12 @@ --- title: phone.requestCall -description: phone.requestCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.requestCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls** diff --git a/docs/API_docs/methods/phone_saveCallDebug.md b/docs/API_docs/methods/phone_saveCallDebug.md index ea3fa2d7..90135792 100644 --- a/docs/API_docs/methods/phone_saveCallDebug.md +++ b/docs/API_docs/methods/phone_saveCallDebug.md @@ -31,13 +31,18 @@ description: phone.saveCallDebug parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); ``` diff --git a/docs/API_docs/methods/phone_setCallRating.md b/docs/API_docs/methods/phone_setCallRating.md index c6e5d7fa..21570b80 100644 --- a/docs/API_docs/methods/phone_setCallRating.md +++ b/docs/API_docs/methods/phone_setCallRating.md @@ -31,13 +31,18 @@ description: phone.setCallRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); ``` diff --git a/docs/API_docs/methods/photos_deletePhotos.md b/docs/API_docs/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/docs/API_docs/methods/photos_deletePhotos.md +++ b/docs/API_docs/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/photos_getUserPhotos.md b/docs/API_docs/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/docs/API_docs/methods/photos_getUserPhotos.md +++ b/docs/API_docs/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/docs/API_docs/methods/photos_updateProfilePhoto.md b/docs/API_docs/methods/photos_updateProfilePhoto.md index cc79a625..1ed6fb24 100644 --- a/docs/API_docs/methods/photos_updateProfilePhoto.md +++ b/docs/API_docs/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| ### Return type: [UserProfilePhoto](../types/UserProfilePhoto.md) @@ -22,13 +22,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); ``` diff --git a/docs/API_docs/methods/photos_uploadProfilePhoto.md b/docs/API_docs/methods/photos_uploadProfilePhoto.md index 075dab4b..4b20315b 100644 --- a/docs/API_docs/methods/photos_uploadProfilePhoto.md +++ b/docs/API_docs/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| ### Return type: [photos\_Photo](../types/photos_Photo.md) @@ -32,13 +32,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); ``` diff --git a/docs/API_docs/methods/stickers_addStickerToSet.md b/docs/API_docs/methods/stickers_addStickerToSet.md index e7fa6ed4..f70d14fb 100644 --- a/docs/API_docs/methods/stickers_addStickerToSet.md +++ b/docs/API_docs/methods/stickers_addStickerToSet.md @@ -31,16 +31,18 @@ description: stickers.addStickerToSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->addStickerToSet(['stickerset' => InputStickerSet, 'sticker' => InputStickerSetItem, ]); ``` diff --git a/docs/API_docs/methods/stickers_changeStickerPosition.md b/docs/API_docs/methods/stickers_changeStickerPosition.md index bcbbc57d..05597041 100644 --- a/docs/API_docs/methods/stickers_changeStickerPosition.md +++ b/docs/API_docs/methods/stickers_changeStickerPosition.md @@ -10,7 +10,7 @@ description: stickers.changeStickerPosition parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|sticker|[InputDocument](../types/InputDocument.md) | Optional| +|sticker|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |position|[int](../types/int.md) | Yes| @@ -31,16 +31,18 @@ description: stickers.changeStickerPosition parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->changeStickerPosition(['sticker' => InputDocument, 'position' => int, ]); ``` diff --git a/docs/API_docs/methods/stickers_createStickerSet.md b/docs/API_docs/methods/stickers_createStickerSet.md index ba8a2d71..1db94b11 100644 --- a/docs/API_docs/methods/stickers_createStickerSet.md +++ b/docs/API_docs/methods/stickers_createStickerSet.md @@ -11,7 +11,7 @@ description: stickers.createStickerSet parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |masks|[Bool](../types/Bool.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |title|[string](../types/string.md) | Yes| |short\_name|[string](../types/string.md) | Yes| |stickers|Array of [InputStickerSetItem](../types/InputStickerSetItem.md) | Yes| @@ -41,18 +41,20 @@ description: stickers.createStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem, InputStickerSetItem], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/methods/stickers_removeStickerFromSet.md b/docs/API_docs/methods/stickers_removeStickerFromSet.md index adb64e07..6a37b6a4 100644 --- a/docs/API_docs/methods/stickers_removeStickerFromSet.md +++ b/docs/API_docs/methods/stickers_removeStickerFromSet.md @@ -10,7 +10,7 @@ description: stickers.removeStickerFromSet parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|sticker|[InputDocument](../types/InputDocument.md) | Optional| +|sticker|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| ### Return type: [messages\_StickerSet](../types/messages_StickerSet.md) @@ -30,16 +30,18 @@ description: stickers.removeStickerFromSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->removeStickerFromSet(['sticker' => InputDocument, ]); ``` diff --git a/docs/API_docs/methods/updates_getChannelDifference.md b/docs/API_docs/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/docs/API_docs/methods/updates_getChannelDifference.md +++ b/docs/API_docs/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/docs/API_docs/methods/updates_getDifference.md b/docs/API_docs/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/docs/API_docs/methods/updates_getDifference.md +++ b/docs/API_docs/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/docs/API_docs/methods/updates_getState.md b/docs/API_docs/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/docs/API_docs/methods/updates_getState.md +++ b/docs/API_docs/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/docs/API_docs/methods/upload_getCdnFile.md b/docs/API_docs/methods/upload_getCdnFile.md index 3a0cd50e..7e1eefcc 100644 --- a/docs/API_docs/methods/upload_getCdnFile.md +++ b/docs/API_docs/methods/upload_getCdnFile.md @@ -1,12 +1,12 @@ --- title: upload.getCdnFile -description: upload.getCdnFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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/docs/API_docs/methods/upload_getCdnFileHashes.md b/docs/API_docs/methods/upload_getCdnFileHashes.md index 2ab7792b..2bf24b5e 100644 --- a/docs/API_docs/methods/upload_getCdnFileHashes.md +++ b/docs/API_docs/methods/upload_getCdnFileHashes.md @@ -1,12 +1,12 @@ --- title: upload.getCdnFileHashes -description: upload.getCdnFileHashes parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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/docs/API_docs/methods/upload_getFile.md b/docs/API_docs/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/docs/API_docs/methods/upload_getFile.md +++ b/docs/API_docs/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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/docs/API_docs/methods/upload_getWebFile.md b/docs/API_docs/methods/upload_getWebFile.md index 8744dac5..ca200db1 100644 --- a/docs/API_docs/methods/upload_getWebFile.md +++ b/docs/API_docs/methods/upload_getWebFile.md @@ -31,13 +31,18 @@ description: upload.getWebFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); ``` diff --git a/docs/API_docs/methods/upload_reuploadCdnFile.md b/docs/API_docs/methods/upload_reuploadCdnFile.md index 4c00bbd0..13d93ec1 100644 --- a/docs/API_docs/methods/upload_reuploadCdnFile.md +++ b/docs/API_docs/methods/upload_reuploadCdnFile.md @@ -1,12 +1,12 @@ --- title: upload.reuploadCdnFile -description: upload.reuploadCdnFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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/docs/API_docs/methods/upload_saveBigFilePart.md b/docs/API_docs/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/docs/API_docs/methods/upload_saveBigFilePart.md +++ b/docs/API_docs/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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/docs/API_docs/methods/upload_saveFilePart.md b/docs/API_docs/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/docs/API_docs/methods/upload_saveFilePart.md +++ b/docs/API_docs/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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/docs/API_docs/methods/users_getFullUser.md b/docs/API_docs/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/docs/API_docs/methods/users_getFullUser.md +++ b/docs/API_docs/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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/docs/API_docs/methods/users_getUsers.md b/docs/API_docs/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/docs/API_docs/methods/users_getUsers.md +++ b/docs/API_docs/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/docs/API_docs/types/Chat.md b/docs/API_docs/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/docs/API_docs/types/Chat.md +++ b/docs/API_docs/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/docs/API_docs/types/InputChannel.md b/docs/API_docs/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/docs/API_docs/types/InputChannel.md +++ b/docs/API_docs/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/docs/API_docs/types/InputDocument.md b/docs/API_docs/types/InputDocument.md index ef551639..fa203274 100644 --- a/docs/API_docs/types/InputDocument.md +++ b/docs/API_docs/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/docs/API_docs/types/InputEncryptedChat.md b/docs/API_docs/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/docs/API_docs/types/InputEncryptedChat.md +++ b/docs/API_docs/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/docs/API_docs/types/InputEncryptedFile.md b/docs/API_docs/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/docs/API_docs/types/InputEncryptedFile.md +++ b/docs/API_docs/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/docs/API_docs/types/InputFile.md b/docs/API_docs/types/InputFile.md index cff3b32a..872e5331 100644 --- a/docs/API_docs/types/InputFile.md +++ b/docs/API_docs/types/InputFile.md @@ -9,6 +9,13 @@ description: constructors and methods of type InputFile Points to some file +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/docs/API_docs/types/InputMedia.md b/docs/API_docs/types/InputMedia.md index 3012be49..6a015de1 100644 --- a/docs/API_docs/types/InputMedia.md +++ b/docs/API_docs/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/docs/API_docs/types/InputPeer.md b/docs/API_docs/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/docs/API_docs/types/InputPeer.md +++ b/docs/API_docs/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/docs/API_docs/types/InputPhoto.md b/docs/API_docs/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/docs/API_docs/types/InputPhoto.md +++ b/docs/API_docs/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/docs/API_docs/types/InputUser.md b/docs/API_docs/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/docs/API_docs/types/InputUser.md +++ b/docs/API_docs/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/docs/API_docs/types/Peer.md b/docs/API_docs/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/docs/API_docs/types/Peer.md +++ b/docs/API_docs/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/docs/API_docs/types/PhoneCall.md b/docs/API_docs/types/PhoneCall.md index e70eda8e..1a91a72e 100644 --- a/docs/API_docs/types/PhoneCall.md +++ b/docs/API_docs/types/PhoneCall.md @@ -9,7 +9,7 @@ description: constructors and methods of type PhoneCall 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://daniil.it/MadelineProto#calls) for an easy installation script. +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. @@ -83,8 +83,8 @@ Call states (these constants are incrementing integers, thus can be compared lik * `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://daniil.it/MadelineProto/API_docs/types/PhoneCallProtocol.html) object -* `getCallID()` - Gets the call ID, as an [InputPhoneCall](https://daniil.it/MadelineProto/API_docs/types/InputPhoneCall.html) object +* `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 @@ -102,7 +102,7 @@ Call states (these constants are incrementing integers, thus can be compared lik Accepts two optional parameters: -`$reason` - can be a [PhoneCallDiscardReason](https://daniil.it/MadelineProto/API_docs/types/PhoneCallDiscardReason.html) object (defaults to a [phoneCallDiscardReasonDisconnect](https://daniil.it/MadelineProto/API_docs/constructors/phoneCallDiscardReasonDisconnect.html) object). +`$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.` diff --git a/docs/API_docs/types/User.md b/docs/API_docs/types/User.md index d696a931..f748d04a 100644 --- a/docs/API_docs/types/User.md +++ b/docs/API_docs/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/docs/COMPOSER_INSTALLATION.md b/docs/COMPOSER_INSTALLATION.md deleted file mode 100644 index 48301212..00000000 --- a/docs/COMPOSER_INSTALLATION.md +++ /dev/null @@ -1,24 +0,0 @@ -# Composer - -Once you have all the requirements installed properly (on dev as well as production), add this to the ```composer.json``` file: - -``` -"repositories": [ - { - "type": "git", - "url": "https://github.com/danog/phpseclib" - } -], -``` - -Make sure you also have these set in the composer.json: - -``` -"minimum-stability": "dev", -``` - -Then you can require the package by addding the following line to the require section: - -``` -"danog/madelineproto":"dev-master" -``` diff --git a/docs/FULL_README.md b/docs/FULL_README.md deleted file mode 100644 index d6e2b2d7..00000000 --- a/docs/FULL_README.md +++ /dev/null @@ -1,830 +0,0 @@ -# MadelineProto, a PHP MTProto telegram client - -Do join the official channel, [@MadelineProto](https://t.me/MadelineProto)! - -This library can be used to create php telegram bots (like bot API bots, only better) and php telegram userbots (like tg-cli userbots, only better). - -This library can also be used to create lua telegram bots (like bot API bots, only better) and lua telegram userbots (like tg-cli userbots, only better). - -## Features - -* It allows you to do everything official clients can do, programmatically! - -* *It can make phone calls!* [See here for instructions](#calls) - -* It can be proxied! - -* It is very fast! - -* It can be easily serialized! - -* It featured update handling with callbacks or long polling! - -* Easy to use wrappers to upload/download files and call mtproto methods - -* Documentation for EVERY mtproto method! - -* Internal peer management: you can provide a simple bot API chat id or a username to send a message or to call other mtproto methods! - -* You can easily login as a user (2FA is supported) or as a bot! - -* Simple error handling! - -* It is highly customizable with a lot of different settings! - -* Bot API file id/object support (even for users)! - -* A Lua binding - -* A lua wrapper for td-cli scripts - -* Secret chats - -* MTProto 2.0 - -* PFS - -* PFS in secret chats - -* [Clickable inline buttons](#inline-buttons)! - - -## Requirements - -MadelineProto needs the xml extension to function properly (if not, you will get DOMDocument errors). -MadelineProto uses the gmp, PrimeModule extensions (if not, it will be VERY slow). - - -Usually these extension is installed by default, [skip to next section](#installation). - - -If not, here's how to install everything on: - -* [Ubuntu](UBUNTU_INSTALLATION.md) -* [Ubuntu (full)](UBUNTU_INSTALLATION_FULL.md) - - -## Installation - -### Simple - -Download [madeline.php](https://phar.madelineproto.xyz/madeline.php). - - -Other methods: - -* [composer](COMPOSER_INSTALLATION.md) -* [git](GIT_INSTALLATION.md) - - -## Inline buttons - -You can easily click inline buttons using MadelineProto, just access the correct button: - -``` -$button = $update['update']['message']['reply_markup']['rows'][0]['buttons'][0]; -``` - -You can then access properties (they vary depending on the [type of button](https://docs.madelineproto.xyz/API_docs/types/KeyboardButton.html)): - -``` -$text = $button['text']; -``` - -And click them: - -``` -$button->click(); -``` - - -## Storing sessions - -To store information about an account session, serialization must be done. - -An istance of MadelineProto is automatically serialized every `$settings['serialization']['serialization_interval']` seconds (by default 30 seconds), and on shutdown. - -To set the serialization destination file, do the following: - -When creating a new session: -``` -$MadelineProto = new \danog\MadelineProto\API($settings); -$MadelineProto->session = 'session.madeline'; // The session will be serialized to session.madeline -$MadelineProto->serialize(); // Force first serialization -``` - -To load a serialized session: -``` -$MadelineProto = new \danog\MadelineProto\API('session.madeline'); -``` - -To load a serialized session, replacing settings on deserialization: -``` -$MadelineProto = new \danog\MadelineProto\API('session.madeline', $settings); -``` - -If the scripts shutsdown normally (without ctrl+c or fatal errors/exceptions), the session will be serialized automatically. - - -## Methods - -A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 75)](https://daniil.it/MadelineProto/API_docs/). - -If an object of type User, InputUser, Chat, InputChannel, Peer or InputPeer must be provided as a parameter to a method, you can substitute it with the user/group/channel's username (`@username`) or bot API id (`-1029449`, `1249421`, `-100412412901`). - -Methods that allow sending message entities ([messages.sendMessage](http://docs.madelineproto.xyz/API_docs/methods/messages_sendMessage.html) for example) also have an additional `parse_mode` parameter that enables or disables html/markdown parsing of the message to be sent. See the [method-specific](http://docs.madelineproto.xyz/API_docs/methods/messages_sendMessage.html) documentation for more info. - -To convert the results of methods to bot API objects you must provide a second parameter to method wrappers, containing an array with the `botAPI` key set to true: - -``` -$bot_API_object = $MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'lel'], ['botAPI' => true]); -``` - -To disable fetching the result of a method, the array that must be provided as second parameter to method wrapper must have the `noResponse` key set to true. - -``` -$MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'lel'], ['noResponse' => true]); -``` - -reply_markup accepts bot API reply markup objects as well as MTProto ones. - -``` -$MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'lel', 'reply_markup' => $MTProto_markup]); -$MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'lel', 'reply_markup' => $bot_API_markup]); -``` - - -Use `phone_login` to login, see [here for the parameters and the result](https://daniil.it/MadelineProto/phone_login.html). -Use `complete_phone_login` to complete the login, see [here for the parameters and the result](https://daniil.it/MadelineProto/complete_phone_login.html). -Use `complete_2FA_login` to complete the login to an account with 2FA enabled, see [here for the parameters and the result](https://daniil.it/MadelineProto/complete_2FA_login.html). -Use `complete_signup` to signup, see [here for the parameters and the result](https://daniil.it/MadelineProto/complete_signup.html). - -Use `bot_login` to login as a bot, see [here for the parameters and the result](https://daniil.it/MadelineProto/bot_login.html). -Note that when you login as a bot, MadelineProto also logins using the [PWRTelegram](https://pwrtelegram.xyz) API, to allow persistant storage of peers, even after a logout and another login. - - -Use `logout` to logout, see [here for the parameters and the result](https://daniil.it/MadelineProto/logout.html). - - -Use `get_pwr_chat` to get chat info, see [here for the parameters and the result](https://daniil.it/MadelineProto/get_pwr_chat.html). -You can also use `get_info` to get chat info, see [here for the parameters and the result](https://daniil.it/MadelineProto/get_info.html) -You can also use `get_full_info` to get chat info, see [here for the parameters and the result](https://daniil.it/MadelineProto/get_full_info.html). - -You must use `get_dialogs` to get a list of all of the chats, see [here for the parameters and the result](https://daniil.it/MadelineProto/get_dialogs.html) - -You must use `get_self` to get info about the current user, see [here for the parameters and the result](https://daniil.it/MadelineProto/get_self.html) - -## Uploading and downloading files - -MadelineProto provides wrapper methods to upload and download files that support bot API file ids. - -Every method described in this section accepts a last optional paramater with a callable function that will be called during the upload/download using the first parameter to pass a floating point number indicating the upload/download status in percentage. - -The upload method returns an [InputFile](https://daniil.it/MadelineProto/API_docs/types/InputFile.html) object that must be used to generate an [InputMedia](https://daniil.it/MadelineProto/API_docs/types/InputMedia.html) object, that can be later sent using the [sendmedia method](https://daniil.it/MadelineProto/API_docs/methods/messages_sendMedia.html). - -The `upload_encrypted` method returns an [InputEncryptedFile](https://daniil.it/MadelineProto/API_docs/types/InputEncryptedFile.html) object that must be used to generate an [EncryptedMessage](https://daniil.it/MadelineProto/API_docs/types/EncryptedMessage.html) object, that can be later sent using the [sendEncryptedFile method](https://daniil.it/MadelineProto/API_docs/methods/messages_sendEncryptedFile.html). - - -``` -$inputFile = $MadelineProto->upload('file', 'optional new file name.ext'); -// Generate an inputMedia object and store it in $inputMedia, see tests/testing.php -$MadelineProto->messages->sendMedia(['peer' => '@pwrtelegramgroup', 'media' => $inputMedia]); - -$inputEncryptedFile = $MadelineProto->upload_encrypted('file', 'optional new file name.ext'); - -``` - -To convert the result of sendMedia to a bot API file id select the messageMedia object from the output of the method and pass it to `$MadelineProto->API->MTProto_to_botAPI()`. - -See tests/testing.php for more examples. - - -There are multiple download methods that allow you to download a file to a directory, to a file or to a stream. -The first parameter of these functions must always be either a [messageMediaPhoto](https://daniil.it/MadelineProto/API_docs/constructors/messageMediaPhoto.html) or a [messageMediaDocument](https://daniil.it/MadelineProto/API_docs/constructors/messageMediaDocument.html) object, an [EncryptedMessage](https://daniil.it/MadelineProto/API_docs/types/EncryptedMessage.html) or a bot API file id. These objects are usually received in updates, see `bot.php` for examples - - -``` -$output_file_name = $MadelineProto->download_to_dir($message_media, '/tmp/dldir'); -$custom_output_file_name = $MadelineProto->download_to_file($message_media, '/tmp/dldir/customname.ext'); -$stream = fopen('php://output', 'w'); // Stream to browser like with echo -$MadelineProto->download_to_stream($message_media, $stream, $cb, $offset, $endoffset); // offset and endoffset are optional parameters that specify the byte from which to start downloading and the byte where to stop downloading (the latter non-inclusive), if not specified default to 0 and the size of the file -``` - -### Settings - -The constructor accepts an optional parameter, which is the settings array. This array contains some other arrays, which are the settings for a specific MadelineProto function. -Here are the default values for the settings arrays and explanations for every setting: - -``` -[ - 'authorization' => [ // Authorization settings - 'default_temp_auth_key_expires_in' => 31557600, // validity of temporary keys and the binding of the temporary and permanent keys - 'rsa_keys' => [ - "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAwVACPi9w23mF3tBkdZz+zwrzKOaaQdr01vAbU4E1pvkfj4sqDsm6\nlyDONS789sVoD/xCS9Y0hkkC3gtL1tSfTlgCMOOul9lcixlEKzwKENj1Yz/s7daS\nan9tqw3bfUV/nqgbhGX81v/+7RFAEd+RwFnK7a+XYl9sluzHRyVVaTTveB2GazTw\nEfzk2DWgkBluml8OREmvfraX3bkHZJTKX4EQSjBbbdJ2ZXIsRrYOXfaA+xayEGB+\n8hdlLmAjbCVfaigxX0CDqWeR1yFL9kwd9P0NsZRPsmoqVwMbMu7mStFai6aIhc3n\nSlv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB\n-----END RSA PUBLIC KEY-----", - "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAxq7aeLAqJR20tkQQMfRn+ocfrtMlJsQ2Uksfs7Xcoo77jAid0bRt\nksiVmT2HEIJUlRxfABoPBV8wY9zRTUMaMA654pUX41mhyVN+XoerGxFvrs9dF1Ru\nvCHbI02dM2ppPvyytvvMoefRoL5BTcpAihFgm5xCaakgsJ/tH5oVl74CdhQw8J5L\nxI/K++KJBUyZ26Uba1632cOiq05JBUW0Z2vWIOk4BLysk7+U9z+SxynKiZR3/xdi\nXvFKk01R3BHV+GUKM2RYazpS/P8v7eyKhAbKxOdRcFpHLlVwfjyM1VlDQrEZxsMp\nNTLYXb6Sce1Uov0YtNx5wEowlREH1WOTlwIDAQAB\n-----END RSA PUBLIC KEY-----", - "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAsQZnSWVZNfClk29RcDTJQ76n8zZaiTGuUsi8sUhW8AS4PSbPKDm+\nDyJgdHDWdIF3HBzl7DHeFrILuqTs0vfS7Pa2NW8nUBwiaYQmPtwEa4n7bTmBVGsB\n1700/tz8wQWOLUlL2nMv+BPlDhxq4kmJCyJfgrIrHlX8sGPcPA4Y6Rwo0MSqYn3s\ng1Pu5gOKlaT9HKmE6wn5Sut6IiBjWozrRQ6n5h2RXNtO7O2qCDqjgB2vBxhV7B+z\nhRbLbCmW0tYMDsvPpX5M8fsO05svN+lKtCAuz1leFns8piZpptpSCFn7bWxiA9/f\nx5x17D7pfah3Sy2pA+NDXyzSlGcKdaUmwQIDAQAB\n-----END RSA PUBLIC KEY-----", - "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAwqjFW0pi4reKGbkc9pK83Eunwj/k0G8ZTioMMPbZmW99GivMibwa\nxDM9RDWabEMyUtGoQC2ZcDeLWRK3W8jMP6dnEKAlvLkDLfC4fXYHzFO5KHEqF06i\nqAqBdmI1iBGdQv/OQCBcbXIWCGDY2AsiqLhlGQfPOI7/vvKc188rTriocgUtoTUc\n/n/sIUzkgwTqRyvWYynWARWzQg0I9olLBBC2q5RQJJlnYXZwyTL3y9tdb7zOHkks\nWV9IMQmZmyZh/N7sMbGWQpt4NMchGpPGeJ2e5gHBjDnlIf2p1yZOYeUYrdbwcS0t\nUiggS4UeE8TzIuXFQxw7fzEIlmhIaq3FnwIDAQAB\n-----END RSA PUBLIC KEY-----", - ], // RSA public keys - ], - 'connection' => [ // List of datacenters/subdomains where to connect - 'ssl_subdomains' => [ // Subdomains of web.telegram.org for https protocol - 1 => 'pluto', - 2 => 'venus', - 3 => 'aurora', - 4 => 'vesta', - 5 => 'flora', // musa oh wait no :( - ], - 'test' => [ // Test datacenters - 'ipv4' => [ // ipv4 addresses - 2 => [ // The rest will be fetched automatically - 'ip_address' => '149.154.167.40', - 'port' => 443, - 'media_only' => false, - 'tcpo_only' => false, - ], - ], - 'ipv6' => [ // ipv6 addresses - 2 => [ // The rest will be fetched automatically - 'ip_address' => '2001:067c:04e8:f002:0000:0000:0000:000e', - 'port' => 443, - 'media_only' => false, - 'tcpo_only' => false, - ], - ], - ], - 'main' => [ // Main datacenters - 'ipv4' => [ // ipv4 addresses - 2 => [ // The rest will be fetched automatically - 'ip_address' => '149.154.167.51', - 'port' => 443, - 'media_only' => false, - 'tcpo_only' => false, - ], - ], - 'ipv6' => [ // ipv6 addresses - 2 => [ // The rest will be fetched automatically - 'ip_address' => '2001:067c:04e8:f002:0000:0000:0000:000a', - 'port' => 443, - 'media_only' => false, - 'tcpo_only' => false, - ], - ], - ], - ], - 'connection_settings' => [ // connection settings - 'all' => [ // These settings will be applied on every datacenter that hasn't a custom settings subarray... - 'protocol' => 'tcp_full', // can be tcp_full, tcp_abridged, tcp_intermediate, http, https, obfuscated2, udp (unsupported) - 'test_mode' => false, // decides whether to connect to the main telegram servers or to the testing servers (deep telegram) - 'ipv6' => $this - > ipv6, // decides whether to use ipv6, ipv6 attribute of API attribute of API class contains autodetected boolean - 'timeout' => 2, // timeout for sockets - 'proxy' => '\Socket', // The proxy class to use - 'proxy_extra' => [], // Extra parameters to pass to the proxy class using setExtra - 'pfs' => true, // Should we use PFS for this socket? - ], - ], - 'app_info' => [ // obtained in https://my.telegram.org - 'api_id' => you should put an API id in the settings array you provide - 'api_hash' => you should put an API hash in the settings array you provide - 'device_model' => $device_model, - 'system_version' => $system_version, - 'app_version' => 'Unicorn', - 'lang_code' => $lang_code, - ], - 'tl_schema' => [ // TL scheme files - 'layer' => 75, // layer version - 'src' => [ - 'mtproto' => __DIR__.'/TL_mtproto_v1.json', // mtproto TL scheme - 'telegram' => __DIR__.'/TL_telegram_v75.tl', // telegram TL scheme - 'secret' => __DIR__.'/TL_secret.tl', // secret chats TL scheme - 'calls' => __DIR__.'/TL_calls.tl', // calls TL scheme - 'botAPI' => __DIR__.'/TL_botAPI.tl', // bot API TL scheme for file ids - ], - ], - 'logger' => [ // Logger settings - /* - * logger modes: - * 0 - No logger - * 1 - Log to the default logger destination - * 2 - Log to file defined in second parameter - * 3 - Echo logs - * 4 - Call callable provided in logger_param. logger_param must accept two parameters: array $message, int $level - * $message is an array containing the messages the log, $level, is the logging level - */ - 'logger' => 1, // write to - 'logger_param' => '/tmp/MadelineProto.log', - 'logger' => 3, // overwrite previous setting and echo logs - 'logger_level' => Logger::VERBOSE, // Logging level, available logging levels are: ULTRA_VERBOSE, VERBOSE, NOTICE, WARNING, ERROR, FATAL_ERROR. Can be provided as last parameter to the logging function. - 'rollbar_token' => 'f9fff6689aea4905b58eec75f66c791d' // You can provide a token for the rollbar log management system - ], - 'max_tries' => [ - 'query' => 5, // How many times should I try to call a method or send an object before throwing an exception - 'authorization' => 5, // How many times should I try to generate an authorization key before throwing an exception - 'response' => 5, // How many times should I try to get a response of a query before throwing an exception - ], - 'flood_timeout' => [ - 'wait_if_lt' => 20, // Sleeps if flood block time is lower than this - ], - 'msg_array_limit' => [ // How big should be the arrays containing the incoming and outgoing messages? - 'incoming' => 200, - 'outgoing' => 200, - 'call_queue' => 200, - ], - 'peer' => [ - 'full_info_cache_time' => 3600, // Full peer info cache validity - 'full_fetch' => false, // Should madeline fetch the full member list of every group it meets? - 'cache_all_peers_on_startup' => false, // Should madeline fetch the full chat list on startup? - ], - 'requests' => [ - 'gzip_encode_if_gt' => 500, // Should I try using gzip encoding for requests bigger than N bytes? Set to -1 to disable. - ], - 'updates' => [ - 'handle_updates' => true, // Should I handle updates? - 'handle_old_updates' => true, // Should I handle old updates on startup? - 'getdifference_interval' => 30, // Manual difference polling interval - 'callback' => 'get_updates_update_handler', // A callable function that will be called every time an update is received, must accept an array (for the update) as the only parameter - ], - 'secret_chats' => [ - 'accept_chats' => true, // Should I accept secret chats? Can be true, false or on array of user ids from which to accept chats - ], - 'serialization' => [ - 'serialization_interval' => 30, // Automatic serialization interval - ], - 'threading' => [ - 'allow_threading' => false, // Should I use threading, if it is enabled? - 'handler_workers' => 10, // How many workers should every message handler pool of each socket reader have - ], - 'pwr' => [ - 'pwr' => false, // Need info ? - 'db_token' => false, // Need info ? - 'strict' => false, // Need info ? - 'requests' => true, // Should I get info about unknown peers from PWRTelegram? - ], -]; -``` - - - -You can provide part of any subsetting array, that way the remaining arrays will be automagically set to default and undefined values of specified subsetting arrays will be set to the default values. -Example: - -``` -$settings = [ - 'authorization' => [ // Authorization settings - 'default_temp_auth_key_expires_in' => 86400, // a day - ] -] -``` - -Becomes: - -``` -$settings = [ - 'authorization' => [ // Authorization settings - 'default_temp_auth_key_expires_in' => 86400, - 'rsa_keys' => array with default rsa keys - ] - // The remaining subsetting arrays are the set to default -] -``` - -Note that only settings arrays or values of a settings array will be set to default. - -The settings array can be accessed and modified in the instantiated class by accessing the `settings` attribute of the API class: - -``` -$yoursettings = ['updates' => ['handle_updates' => false]]; // disable update handlig -$MadelineProto = new \danog\MadelineProto\API($yoursettings); -var_dump($MadelineProto->settings); -$MadelineProto->settings['updates']['handle_updates'] = true; // reenable update fetching -``` - -### Handling updates - -When an update is received, the update callback function (see settings) is called. By default, the get_updates_update_handler MadelineProto method is called. This method stores all incoming updates into an array (its size limit is specified by the updates\_array\_limit parameter in the settings) and can be fetched by running the `get_updates` method. -IMPORTANT Note that you should turn off update handling if you don't plan to use it because the default get_updates update handling stores updates in an array inside the MadelineProto class, without deleting old ones unless they are read using get_updates. This will eventually fill up the RAM of your server if you don't disable updates or read them using get_updates. -This method accepts an array of options as the first parameter, and returns an array of updates (an array containing the update id and an object of type [Update](https://daniil.it/MadelineProto/API_docs/types/Update.html)). Example: - -``` -$MadelineProto = new \danog\MadelineProto\API(); -// Login or deserialize - -$offset = 0; -while (true) { - $updates = $MadelineProto->API->get_updates(['offset' => $offset, 'limit' => 50, 'timeout' => 1]); // Just like in the bot API, you can specify an offset, a limit and a timeout - foreach ($updates as $update) { - $offset = $update['update_id']; // Just like in the bot API, the offset must be set to the last update_id - // Parse $update['update'], that is an object of type Update - } - var_dump($updates); -} - -array(3) { - [0]=> - array(2) { - ["update_id"]=> - int(0) - ["update"]=> - array(5) { - ["_"]=> - string(22) "updateNewAuthorization" - ["auth_key_id"]=> - int(-8182897590766478746) - ["date"]=> - int(1483110797) - ["device"]=> - string(3) "Web" - ["location"]=> - string(25) "IT, 05 (IP = 79.2.51.203)" - } - } - [1]=> - array(2) { - ["update_id"]=> - int(1) - ["update"]=> - array(3) { - ["_"]=> - string(23) "updateReadChannelOutbox" - ["channel_id"]=> - int(1049295266) - ["max_id"]=> - int(8288) - } - } - [2]=> - array(2) { - ["update_id"]=> - int(2) - ["update"]=> - array(4) { - ["_"]=> - string(23) "updateNewChannelMessage" - ["message"]=> - array(12) { - ["_"]=> - string(7) "message" - ["out"]=> - bool(false) - ["mentioned"]=> - bool(false) - ["media_unread"]=> - bool(false) - ["silent"]=> - bool(false) - ["post"]=> - bool(false) - ["id"]=> - int(11521) - ["from_id"]=> - int(262946027) - ["to_id"]=> - array(2) { - ["_"]=> - string(11) "peerChannel" - ["channel_id"]=> - int(1066910227) - } - ["date"]=> - int(1483110798) - ["message"]=> - string(3) "yay" - ["entities"]=> - array(1) { - [0]=> - array(4) { - ["_"]=> - string(24) "messageEntityMentionName" - ["offset"]=> - int(0) - ["length"]=> - int(3) - ["user_id"]=> - int(101374607) - } - } - } - ["pts"]=> - int(13010) - ["pts_count"]=> - int(1) - } - } -} - - -``` - -To specify a custom callback change the correct value in the settings. The specified callable must accept one parameter for the update. - - -### Using a proxy - -You can use a proxy with MadelineProto. - -To do that, simply create a class that implements the `\danog\MadelineProto\Proxy` interface, and enter its name in the settings. - -Your proxy class MUST use the `\Socket` class for all TCP/UDP communications. - -Your proxy class can also have a setExtra method that accepts an array as the first parameter, to pass the values provided in the proxy_extra setting. - -The `\Socket` class has the following methods (all of the following methods must also be implemented by your proxy class): - - -```public function __construct(int $domain, int $type, int $protocol);``` - -Works exactly like the [socket_connect](http://php.net/manual/en/function.socket-connect.php) function. - - - -```public function setOption(int $level, int $name, $value);``` - -Works exactly like the [socket_set_option](http://php.net/manual/en/function.socket-set-option.php) function. - - - -```public function getOption(int $name, $value);``` - -Works exactly like the [socket_get_option](http://php.net/manual/en/function.socket-get-option.php) function. - - - -```public function setBlocking(bool $blocking);``` - -Works like the [socket_block](http://php.net/manual/en/function.socket-set-block.php) or [socket_nonblock](http://php.net/manual/en/function.socket-set-nonblock.php) functions. - - - -```public function bind(string $address, [ int $port = 0 ]);``` - -Works exactly like the [socket_bind](http://php.net/manual/en/function.socket-bind.php) function. - - - -```public function listen([ int $backlog = 0 ]);``` - -Works exactly like the [socket_listen](http://php.net/manual/en/function.socket-listen.php) function. - - - -```public function accept();``` - -Works exactly like the [socket_accept](http://php.net/manual/en/function.socket-accept.php) function. - - - -```public function connect(string $address, [ int $port = 0 ]);``` - -Works exactly like the [socket_accept](http://php.net/manual/en/function.socket-connect.php) function. - - - -```public function select(array &$read, array &$write, array &$except, int $tv_sec, int $tv_usec = 0);``` - -Works exactly like the [socket_select](http://php.net/manual/en/function.socket-select.php) function. - - - -```public function read(int $length, [ int $flags = 0 ]);``` - -Works exactly like the [socket_read](http://php.net/manual/en/function.socket-read.php) function. - - - -```public function write(string $buffer, [ int $length ]);``` - -Works exactly like the [socket_read](http://php.net/manual/en/function.socket-write.php) function. - - - -```public function send(string $data, int $length, int $flags);``` - -Works exactly like the [socket_send](http://php.net/manual/en/function.socket-send.php) function. - - - -```public function close();``` - -Works exactly like the [socket_close](http://php.net/manual/en/function.socket-close.php) function. - - -```public function getPeerName(bool $port = true);``` - -Works like [socket_getpeername](http://php.net/manual/en/function.socket-getpeername.php): the difference is that it returns an array with the `host` and the `port`. - - -```public function getSockName(bool $port = true);``` - -Works like [socket_getsockname](http://php.net/manual/en/function.socket-getsockname.php): the difference is that it returns an array with the `host` and the `port`. - - -### Calls - -MadelineProto provides an easy wrapper to work with phone calls. - -The wrapper consists in the `\danog\MadelineProto\VoIP` class, that can be installed by compiling the [php-libtgvoip](https://github.com/danog/php-libtgvoip) extension. - -Please read the whole [VoIP API documentation](https://daniil.it/MadelineProto/API_docs/types/PhoneCall.html) before proceeding. - -You can also run [this script](https://daniil.it/php.sh), that will compile the latest version of ZTS PHP, PrimeModule, pthreads, and php-libtgvoip. - -It accepts one parameter with the ID of the person to call, and returns a VoIP object that can be used to play audio files, set the hold files, change the configuration and set the output file. - -Input/output audio can be converted from/to any audio/video file using ffmpeg (just don't forget to provide the correct number of channels, sample rate and bit depth, `ffmpeg -i anyaudioorvideo -f s"$bitnumber"le -ac $channelNumber -ar $bitRate -acodec pcm_s"$bitnumber"le output.raw`). - -You can also stream the audio track of video streams (even from youtube), or audio streams. Just stream the data to a FIFO, and use ffmpeg to output the converted audio to another FIFO that will be used as input file. - -MadelineProto works using raw signed PCM audio with the sample rate and the bit depth specified in the configuration (see [here](https://daniil.it/MadelineProto/API_docs/types/PhoneCall.html) for info on how to fetch it). - - -Requesting calls is easy, just run the `request_call` method. - -``` -$controller = $MadelineProto->request_call('@danogentili')->play('input.raw')->then('inputb.raw')->playOhHold(['hold.raw'])->setOutputFile('output.raw'); -$controller->configuration['log_file_path'] = $controller->getOtherID().'.log'; - -// We need to receive updates in order to know that the other use accepted the call -while ($controller->getCallState() < \danog\MadelineProto\VoIP::CALL_STATE_READY) { - $MadelineProto->get_updates(); -} - -``` - - -Accepting calls is just as easy: you will receive an [updatePhoneCall](https://daniil.it/MadelineProto/API_docs/constructors/updatePhoneCall.html) object from your update source (see [update handling](#update-handling)). - -This array will contain a VoIP object under the `phone_call` key. - -``` - -$updates = $MadelineProto->API->get_updates(['offset' => $offset, 'limit' => 50, 'timeout' => 0]); // Just like in the bot API, you can specify an offset, a limit and a timeout -foreach ($updates as $update) { - \danog\MadelineProto\Logger::log([$update]); - $offset = $update['update_id'] + 1; // Just like in the bot API, the offset must be set to the last update_id - switch ($update['update']['_']) { - case 'updatePhoneCall': - if (is_object($update['update']['phone_call']) && $update['update']['phone_call']->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_INCOMING) { - $update['update']['phone_call']->accept()->play('input.raw')->then('inputb.raw')->playOnHold(['hold.raw'])->setOutputFile('output.raw'); - } - } -} -``` - -### Secret chats - -MadelineProto provides some wrappers to work with secret chats: - -``` -$secret_chat = $MadelineProto->request_secret_chat($InputUser); -``` - -`request_secret_chat` requests a secret secret chat to the [InputUser](https://daniil.it/MadelineProto/API_docs/types/InputUser.html) specified, and returns a number that can be used instead of an [InputEncryptedChat](https://daniil.it/MadelineProto/API_docs/constructors/inputEncryptedChat.html). - - -Secret chats are accepted or refused automatically, based on a value in the settings array (by default MadelineProto is set to accept all secret chats). - -Before sending any message, you must check if the secret chat was accepted by the other client with the following method: - - -``` -$status = $MadelineProto->secret_chat_status($chat); -``` - -Returns 0 if the chat cannot be found in the local database, 1 if the chat was requested but not yet accepted, and 2 if it is a valid accepted secret chat. - - -To send messages/files/service messages, simply use the sendEncrypted methods with objects that use the same layer used by the other client (specified by the number after the underscore in decryptedMessage object names, to obtain the layer that must be used for a secret chat use the following wrapper method). - -``` -$secret_chat = $MadelineProto->get_secret_chat($chat); -/* -[ - 'key' => [ // The authorization key - 'auth_key' => 'string', // 256 bytes long - 'fingerprint' => 10387574747492, // a 64 bit signed integer - 'visualization_orig' => 'string', // 16 bytes long - 'visualization_46' => 'string', // 20 bytes long - // The two visualization strings must be concatenated to generate a visual fingerprint - ], - 'admin' => false, // Am I the creator of the chat? - 'user_id' => 101374607, // The user id of the other user - 'InputEncryptedChat' => [...], // An inputEncryptedChat object that represents the current chat - 'in_seq_no_x' => number, // in_seq_no must be multiplied by two and incremented by this before being sent over the network - 'out_seq_no_x' => number, // out_seq_no must be multiplied by two and incremeneted this begore being sent over the network - 'layer' => number, // The secret chat TL layer used by the other client - 'ttl' => number, // The default time to live of messages in this chat - 'ttr' => 100, // Time left before rekeying must be done, decremented by one every time a message as encrypted/decrypted with this key - 'updated' => time(), // Last time the key of the current chat was changed - 'incoming' => [], // Incoming messages, TL serialized strings - 'outgoing' => [], // Outgoing ~ - 'created' => time(), // When was this chat created - 'rekeying' => [0] // Info for rekeying -]; -*/ -``` - -This method gets info about a certain chat. - - -### Lua binding - -The lua binding makes use of the Lua php extension. - -When istantiating the `\danog\MadelineProto\Lua` class, the first parameter provided to the constructor must be the path to the lua script, and the second parameter a logged in instance of MadelineProto. - -The class is basically a wrapper for the lua environment, so by setting an attribute you're setting a variable in the Lua environment, by reading an attribute you're reading a variable from the lua environment, and by calling a function you're actually calling a Lua function you declared in the script. - -By assigning a callable to an attribute, you're actually assigning a new function in the lua environment that once called, will call the php callable. - -Passing lua callables to a parameter of a PHP callable will throw an exception due to a bug in the PHP lua extension that I gotta fix (so passing the usual cb and cb_extra parameters to the td-cli wrappers isn't yet possible). - -All MadelineProto wrapper methods (for example upload, download, upload_encrypted, get_self, and others) are imported in the Lua environment, as well as all MTProto wrappers (see the API docs for more info). - -td-cli wrappers are also present: you can use the tdcli_function in lua and pass mtproto updates to the tdcli_update_callback via PHP, they will be automatically converted to/from td objects. Please note that the object conversion is not complete, feel free to contribute to the conversion module in `src/danog/MadelineProto/Conversion/TD.php`. - -For examples, see `lua/*`. - - -### Exceptions - -MadelineProto can throw lots of different exceptions: -* \danog\MadelineProto\Exception - Default exception, thrown when a php error occures and in a lot of other cases - -* \danog\MadelineProto\RPCErrorException - Thrown when an RPC error occurres (an error received via the mtproto API) - -* \danog\MadelineProto\TL\Exception - Thrown on TL serialization/deserialization errors - -* \danog\MadelineProto\NothingInTheSocketException - Thrown if no data can be read from the TCP socket - -* \danog\MadelineProto\PTSException - Thrown if the PTS is unrecoverably corrupted - -* \danog\MadelineProto\SecurityException - Thrown on security problems (invalid params during generation of auth key or similar) - -* \danog\MadelineProto\TL\Conversion\Exception - Thrown if some param/object can't be converted to/from bot API/TD/TD-CLI format (this includes markdown/html parsing) - - -## Credits - -Created by [Daniil Gentili](https://daniil.it), licensed under AGPLv3, based on [telepy](https://github.com/griganton/telepy_old). - -While writing this client, I looked at many projects for inspiration and help. Here's the full list: - -* [tgl](https://github.com/vysheng/tgl) - -* [Kotlogram](https://github.com/badoualy/kotlogram) - -* [Webogram](https://github.com/zhukov/webogram) - -* [Telethon](https://github.com/LonamiWebs/Telethon/) - -Thanks to the devs that contributed to these projects, MadelineProto is now an easy, well-written and complete MTProto client. - - -## Contributing - -[Here](https://github.com/danog/MadelineProto/projects/1) you can find this project's roadmap. - -You can use this scheme of the structure of this project to help yourself: - -``` -build_docs.php - Builds API docs from TL scheme file -src/danog/MadelineProto/ - MTProtoTools/ - AckHandler - Handles acknowledgement of incoming and outgoing mtproto messages - AuthKeyHandler - Handles generation of the temporary and permanent authorization keys - CallHandler - Handles synchronous calls to mtproto methods or objects, also basic response management (waits until the socket receives a response) - Crypt - Handles ige and aes encryption - MessageHandler - Handles sending and receiving of mtproto messages (packs TL serialized data with message id, auth key id and encrypts it with Crypt if needed, adds them to the arrays of incoming and outgoing messages) - MsgIdHandler - Handles message ids (checks if they are valid, adds them to the arrays of incoming and outgoing messages) - ResponseHandler - Handles the content of responses received, service messages, rpc results, errors, and stores them into the response section of the outgoing messages array) - SaltHandler - Handles server salts - SeqNoHandler - Handles sequence numbers (checks validity) - PeerHandler - Manages peers - UpdateHandler - Handles updates - TL/ - Exception - Handles exceptions in the TL namespace - TL - Handles TL serialization and deserialization - TLConstructor - Stores TL constructors - TLMethod - Stores TL methods - TLParams - Parses params - Wrappers/ - Login - Handles logging in as a bot or a user, logging out - PeerHandler - Eases getting of input peer objects using usernames or bot API chat ids - SettingsManager - Eases updating settings - API - Wrapper class that instantiates the MTProto class, sets the error handler, provides a wrapper for calling mtproto methods directly as class submethods, and uses the simplified wrappers from Wrappers/ - APIFactory - Provides a wrapper for calling namespaced mtproto methods directly as class submethods - Connection - Handles tcp/udp/http connections and wrapping payloads generated by MTProtoTools/MessageHandler into the right message according to the protocol, stores authorization keys, session id and sequence number - DataCenter - Handles mtproto datacenters (is a wrapper for Connection classes) - DebugTools - Various debugging tools - Exception - Handles exceptions and PHP errors - RPCErrorException - Handles RPC errors - MTProto - Handles initial connection, generation of authorization keys, instantiation of classes, writing of client info - Logger - Static logging class - prime.py and getpq.py - prime module (python) for p and q generation - PrimeModule.php - prime module (php) for p and q generation by wrapping the python module, using wolfram alpha or a built in PHP engine - RSA - Handles RSA public keys and signatures - Tools - Various tools (positive modulus, string2bin, python-like range) -``` - -Check out the [Contribution guide](https://github.com/danog/MadelineProto/blob/master/CONTRIBUTING.md) before contributing. -Kiao by grizzly - diff --git a/docs/FullInfo.md b/docs/FullInfo.md index 690dcf8e..ec1e6906 100644 --- a/docs/FullInfo.md +++ b/docs/FullInfo.md @@ -11,6 +11,8 @@ description: chat attributes, type and example | Name | Type | Required |Description| |----------|---------------|----------|-----------| |type|[string](API_docs/types/string.md) | Yes|bot, user, channel, supergroup or chat| +|Chat|[Chat](API_docs/types/Chat.md) | Optional|Info about the current chat| +|User|[User](API_docs/types/User.md) | Optional|Info about the current user| |bot\_api\_id|[long](API_docs/types/long.md) | Yes|bot API chat id| |InputPeer|[InputPeer](API_docs/types/InputPeer.md) | Yes|InputPeer object| |Peer|[Peer](API_docs/types/Peer.md) | Optional|Peer object| diff --git a/docs/GIT_INSTALLATION.md b/docs/GIT_INSTALLATION.md deleted file mode 100644 index 54bdee92..00000000 --- a/docs/GIT_INSTALLATION.md +++ /dev/null @@ -1,17 +0,0 @@ -### git - -Run the following commands in a console: - -``` -mkdir MadelineProtoBot -cd MadelineProtoBot -git init . -git submodule add https://github.com/danog/MadelineProto -cd MadelineProto -composer update -cp .env.example .env -cp -a *php tests userbots .env* .. -``` - -Now open `.env` and edit its values as needed. - diff --git a/docs/Info.md b/docs/Info.md index ed36edf5..28ca11c0 100644 --- a/docs/Info.md +++ b/docs/Info.md @@ -11,6 +11,8 @@ description: chat attributes, type and example | Name | Type | Required |Description| |----------|---------------|----------|-----------| |type|[string](API_docs/types/string.md) | Yes|bot, user, channel, supergroup or chat| +|Chat|[Chat](API_docs/types/Chat.md) | Optional|Info about the current chat| +|User|[User](API_docs/types/User.md) | Optional|Info about the current user| |bot\_api\_id|[long](API_docs/types/long.md) | Yes|bot API chat id| |InputPeer|[InputPeer](API_docs/types/InputPeer.md) | Yes|InputPeer object| |Peer|[Peer](API_docs/types/Peer.md) | Optional|Peer object| diff --git a/docs/MTProto_docs/Lang.php b/docs/MTProto_docs/Lang.php new file mode 100644 index 00000000..c7acb62d --- /dev/null +++ b/docs/MTProto_docs/Lang.php @@ -0,0 +1,506 @@ +. + */ + +namespace danog\MadelineProto; + +class Lang +{ + public static $lang = array ( + 'it' => + array ( + 'phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istanziamento dei DataCenter...', + 'load_rsa' => 'Caricamento delle chiavi RSA...', + 'TL_translation' => 'Translazione degli schemi TL...', + 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', + 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', + 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', + 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', + 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', + 'threading_on' => 'IL THREADING È ABILITATO', + 'socket_reader' => 'Lettore socket su DC %s: ', + 'socket_status_1' => 'CREAZIONE', + 'socket_status_2' => 'INVIO', + 'socket_status_3' => 'ATTESA', + 'socket_status_4' => 'PRONTO', + 'socket_status_5' => 'AVVIATO', + 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', + 'session_corrupted' => 'La sessione si è corrotta!', + 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', + 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', + 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', + 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', + 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', + 'config_updated' => 'La configurazione è stata aggiornata!', + 'length_not_4' => 'La lunghezza non è uguale a 4', + 'length_not_8' => 'La lunghezza non è uguale a 8', + 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', + 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', + 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', + 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', + 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', + 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', + 'file_not_exist' => 'Il file specificato non esiste', + 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', + 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', + 'loading_key' => 'Caricamento della chiave in corso...', + 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', + 'rsa_encrypting' => 'Criptando con chiave RSA...', + 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', + 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', + 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', + 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', + 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', + 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', + 'socket_con_error' => 'Connessione fallita.', + 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', + 'protocol_invalid' => 'È stato fornito un protocollo non valido', + 'nothing_in_socket' => 'Non c\'è niente nel socket!', + 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', + 'no_data_in_socket' => 'Non ci sono dati nel socket!', + 'dc_con_start' => 'Connessione al DC %s in corso...', + 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', + 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', + 'script_not_exist' => 'Lo script fornito non esiste', + 'apifactory_start' => 'Sto avviando la fabbrica di API...', + 'madelineproto_ready' => 'MadelineProto è pronto!', + 'logout_error' => 'C\'è stato un errore durante il logout!', + 'logout_ok' => 'Il logout è stato eseguito correttamente!', + 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', + 'login_ok' => 'Il login è stato eseguito correttamente!', + 'login_user' => 'Sto eseguendo il login come utente normale...', + 'login_bot' => 'Sto eseguendo il login come bot...', + 'login_code_sending' => 'Sto inviando il codice...', + 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', + 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', + 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', + 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', + 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', + 'not_logged_in' => 'Non ho ancora fatto il login!', + 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', + 'signing_up' => 'Mi sto registrando su telegram come utente normale...', + 'signup_ok' => 'Mi sono registrato su Telegram!', + '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', + 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', + 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', + 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', + 'calling_user' => 'Sto chiamando %s...', + 'generating_a' => 'Sto generando a...', + 'generating_g_a' => 'Sto generando g_a...', + 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', + 'accepting_call' => 'Sto accettando una chiamata da %s...', + 'generating_b' => 'Sto generando b...', + 'call_already_accepted' => 'La chiamata %s è già stata accettata.', + 'call_already_declined' => 'La chiamata %s è già stata annullata.', + 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', + 'call_confirming' => 'Sto confermando una chiamata da %s', + 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', + 'call_completing' => 'Sto completando una chiamata da %s...', + 'invalid_g_a' => 'g_a non valido!', + 'fingerprint_invalid' => 'fingerprint della chiave non valido!', + 'call_discarding' => 'Sto rifiutando la chiamata %s...', + 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', + 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', + 'TL_loading' => 'Sto caricando gli schemi TL...', + 'file_parsing' => 'Leggendo %s...', + 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', + 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', + 'translating_obj' => 'Traducendo gli oggetti...', + 'translating_methods' => 'Traducendo i metodi...', + 'bool_error' => 'Non sono riuscito ad estrarre un booleano', + 'not_numeric' => 'Il valore fornito non è numerico', + 'long_not_16' => 'Il valore fornito non è lungo 16 byte', + 'long_not_32' => 'Il valore fornito non è lungo 32 byte', + 'long_not_64' => 'Il valore fornito non è lungo 64 byte', + 'array_invalid' => 'Il valore fornito non è un array', + 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', + 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', + 'method_not_found' => 'Impossibile trovare il seguente metodo: ', + 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', + 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', + 'stream_handle_invalid' => 'Il valore fornito non è uno stream', + 'length_too_big' => 'Il valore fornito è troppo lungo', + 'deserialize_not_str' => 'Il valore generato non è una stringa', + 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', + 'vector_invalid' => 'ID vettore non valido: ', + 'constructor_not_found' => 'Costruttore non trovato per tipo: ', + 'rand_bytes_too_small' => 'random_bytes è troppo corto!', + 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', + 'non_text_conversion' => 'Non posso ancora convertire messaggi media', + 'last_byte_invalid' => 'L\'ultimo byte non è valido', + 'file_type_invalid' => 'È stato fornito un tipo file errato', + 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', + 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', + 'shutting_down_reader_pool' => 'Chisura pool di lettura', + 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', + 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', + 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', + 'msg_data_length_too_big' => 'message_data_length è troppo grande', + 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', + 'msg_key_mismatch' => 'msg_key non valido', + 'rand_bytes_too_short' => 'random_bytes è troppo corto!', + 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', + 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', + 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', + 'req_pq' => 'Sto richiedendo pq...', + 'done' => 'Fatto!', + 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', + 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!', + ), + 'en' => + array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + ), +); + + // THIS WILL BE OVERWRITTEN BY $lang["en"] + public static $current_lang = array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', +); +} \ No newline at end of file diff --git a/docs/MTProto_docs/constructors/future_salts.md b/docs/MTProto_docs/constructors/future_salts.md index 4fb8d0f3..a0e695cc 100644 --- a/docs/MTProto_docs/constructors/future_salts.md +++ b/docs/MTProto_docs/constructors/future_salts.md @@ -23,7 +23,7 @@ description: future_salts attributes, type and example ### Example: ``` -$future_salts = ['_' => 'future_salts', 'req_msg_id' => long, 'now' => int, 'salts' => [future_salt]]; +$future_salts = ['_' => 'future_salts', 'req_msg_id' => long, 'now' => int, 'salts' => [future_salt, future_salt]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/MTProto_docs/constructors/msg_container.md b/docs/MTProto_docs/constructors/msg_container.md index aa4f4c25..75142c22 100644 --- a/docs/MTProto_docs/constructors/msg_container.md +++ b/docs/MTProto_docs/constructors/msg_container.md @@ -21,7 +21,7 @@ description: msg_container attributes, type and example ### Example: ``` -$msg_container = ['_' => 'msg_container', 'messages' => [MTmessage]]; +$msg_container = ['_' => 'msg_container', 'messages' => [MTmessage, MTmessage]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/MTProto_docs/constructors/msg_resend_req.md b/docs/MTProto_docs/constructors/msg_resend_req.md index 6a584a1a..13e6669d 100644 --- a/docs/MTProto_docs/constructors/msg_resend_req.md +++ b/docs/MTProto_docs/constructors/msg_resend_req.md @@ -21,7 +21,7 @@ description: msg_resend_req attributes, type and example ### Example: ``` -$msg_resend_req = ['_' => 'msg_resend_req', 'msg_ids' => [long]]; +$msg_resend_req = ['_' => 'msg_resend_req', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/MTProto_docs/constructors/msgs_ack.md b/docs/MTProto_docs/constructors/msgs_ack.md index 6d945079..353148ea 100644 --- a/docs/MTProto_docs/constructors/msgs_ack.md +++ b/docs/MTProto_docs/constructors/msgs_ack.md @@ -21,7 +21,7 @@ description: msgs_ack attributes, type and example ### Example: ``` -$msgs_ack = ['_' => 'msgs_ack', 'msg_ids' => [long]]; +$msgs_ack = ['_' => 'msgs_ack', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/MTProto_docs/constructors/msgs_all_info.md b/docs/MTProto_docs/constructors/msgs_all_info.md index 3f9890f8..c1c662dd 100644 --- a/docs/MTProto_docs/constructors/msgs_all_info.md +++ b/docs/MTProto_docs/constructors/msgs_all_info.md @@ -22,7 +22,7 @@ description: msgs_all_info attributes, type and example ### Example: ``` -$msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long], 'info' => 'bytes']; +$msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long, long], 'info' => 'bytes']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/MTProto_docs/constructors/msgs_state_req.md b/docs/MTProto_docs/constructors/msgs_state_req.md index 3aecb1ee..76f1f05c 100644 --- a/docs/MTProto_docs/constructors/msgs_state_req.md +++ b/docs/MTProto_docs/constructors/msgs_state_req.md @@ -21,7 +21,7 @@ description: msgs_state_req attributes, type and example ### Example: ``` -$msgs_state_req = ['_' => 'msgs_state_req', 'msg_ids' => [long]]; +$msgs_state_req = ['_' => 'msgs_state_req', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/MTProto_docs/constructors/resPQ.md b/docs/MTProto_docs/constructors/resPQ.md index f5afe635..8aaefe5d 100644 --- a/docs/MTProto_docs/constructors/resPQ.md +++ b/docs/MTProto_docs/constructors/resPQ.md @@ -24,7 +24,7 @@ description: resPQ attributes, type and example ### Example: ``` -$resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => 'bytes', 'server_public_key_fingerprints' => [long]]; +$resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => 'bytes', 'server_public_key_fingerprints' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/docs/MTProto_docs/methods/destroy_session.md b/docs/MTProto_docs/methods/destroy_session.md index 39aa2c6e..b2525dfb 100644 --- a/docs/MTProto_docs/methods/destroy_session.md +++ b/docs/MTProto_docs/methods/destroy_session.md @@ -1,16 +1,18 @@ --- title: destroy_session -description: destroy_session parameters, return type and example +description: Destroy the current MTProto session --- ## Method: destroy\_session [Back to methods index](index.md) +Destroy the current MTProto session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|session\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|session\_id|[long](../types/long.md) | Yes|The session to destroy| ### Return type: [DestroySessionRes](../types/DestroySessionRes.md) @@ -22,16 +24,18 @@ description: destroy_session parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DestroySessionRes = $MadelineProto->destroy_session(['session_id' => long, ]); ``` diff --git a/docs/MTProto_docs/methods/get_future_salts.md b/docs/MTProto_docs/methods/get_future_salts.md index fedf036c..4c2c9c46 100644 --- a/docs/MTProto_docs/methods/get_future_salts.md +++ b/docs/MTProto_docs/methods/get_future_salts.md @@ -1,16 +1,18 @@ --- title: get_future_salts -description: get_future_salts parameters, return type and example +description: Get future salts --- ## Method: get\_future\_salts [Back to methods index](index.md) +Get future salts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|num|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|num|[int](../types/int.md) | Yes|How many salts should be fetched| ### Return type: [FutureSalts](../types/FutureSalts.md) @@ -22,16 +24,18 @@ description: get_future_salts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $FutureSalts = $MadelineProto->get_future_salts(['num' => int, ]); ``` diff --git a/docs/MTProto_docs/methods/http_wait.md b/docs/MTProto_docs/methods/http_wait.md index 71d84d6b..a86f012d 100644 --- a/docs/MTProto_docs/methods/http_wait.md +++ b/docs/MTProto_docs/methods/http_wait.md @@ -1,18 +1,20 @@ --- title: http_wait -description: http_wait parameters, return type and example +description: Makes the server send messages waiting in the buffer --- ## Method: http\_wait [Back to methods index](index.md) +Makes the server send messages waiting in the buffer + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|max\_delay|[int](../types/int.md) | Yes| -|wait\_after|[int](../types/int.md) | Yes| -|max\_wait|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|max\_delay|[int](../types/int.md) | Yes|Denotes the maximum number of milliseconds that has elapsed between the first message for this session and the transmission of an HTTP response| +|wait\_after|[int](../types/int.md) | Yes|after the receipt of the latest message for a particular session, the server waits another wait_after milliseconds in case there are more messages. If there are no additional messages, the result is transmitted (a container with all the messages).| +|max\_wait|[int](../types/int.md) | Yes|If more messages appear, the wait_after timer is reset.| ### Return type: [HttpWait](../types/HttpWait.md) @@ -24,16 +26,18 @@ description: http_wait parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $HttpWait = $MadelineProto->http_wait(['max_delay' => int, 'wait_after' => int, 'max_wait' => int, ]); ``` diff --git a/docs/MTProto_docs/methods/index.md b/docs/MTProto_docs/methods/index.md index fc04e979..215917a4 100644 --- a/docs/MTProto_docs/methods/index.md +++ b/docs/MTProto_docs/methods/index.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md) diff --git a/docs/MTProto_docs/methods/ping.md b/docs/MTProto_docs/methods/ping.md index 7c20ca86..18f5a2bd 100644 --- a/docs/MTProto_docs/methods/ping.md +++ b/docs/MTProto_docs/methods/ping.md @@ -1,16 +1,18 @@ --- title: ping -description: ping parameters, return type and example +description: pings the server --- ## Method: ping [Back to methods index](index.md) +pings the server + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ping\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ping\_id|[long](../types/long.md) | Yes|Ping ID| ### Return type: [Pong](../types/Pong.md) @@ -22,16 +24,18 @@ description: ping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Pong = $MadelineProto->ping(['ping_id' => long, ]); ``` diff --git a/docs/MTProto_docs/methods/ping_delay_disconnect.md b/docs/MTProto_docs/methods/ping_delay_disconnect.md index e8b62005..709f8026 100644 --- a/docs/MTProto_docs/methods/ping_delay_disconnect.md +++ b/docs/MTProto_docs/methods/ping_delay_disconnect.md @@ -1,17 +1,19 @@ --- title: ping_delay_disconnect -description: ping_delay_disconnect parameters, return type and example +description: Pings the server and causes disconection if the same method is not called within ping_disconnect_delay --- ## Method: ping\_delay\_disconnect [Back to methods index](index.md) +Pings the server and causes disconection if the same method is not called within ping_disconnect_delay + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ping\_id|[long](../types/long.md) | Yes| -|disconnect\_delay|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ping\_id|[long](../types/long.md) | Yes|Ping ID| +|disconnect\_delay|[int](../types/int.md) | Yes|Disconection delay| ### Return type: [Pong](../types/Pong.md) @@ -23,16 +25,18 @@ description: ping_delay_disconnect parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Pong = $MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]); ``` diff --git a/docs/MTProto_docs/methods/req_DH_params.md b/docs/MTProto_docs/methods/req_DH_params.md index 9a1a9f81..9e5b6ed7 100644 --- a/docs/MTProto_docs/methods/req_DH_params.md +++ b/docs/MTProto_docs/methods/req_DH_params.md @@ -1,21 +1,23 @@ --- title: req_DH_params -description: req_DH_params parameters, return type and example +description: Requests Diffie-hellman parameters for key exchange --- ## Method: req\_DH\_params [Back to methods index](index.md) +Requests Diffie-hellman parameters for key exchange + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| -|server\_nonce|[int128](../types/int128.md) | Yes| -|p|[bytes](../types/bytes.md) | Yes| -|q|[bytes](../types/bytes.md) | Yes| -|public\_key\_fingerprint|[long](../types/long.md) | Yes| -|encrypted\_data|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| +|server\_nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security, given by server| +|p|[bytes](../types/bytes.md) | Yes|Factorized p from pq| +|q|[bytes](../types/bytes.md) | Yes|Factorized q from pq| +|public\_key\_fingerprint|[long](../types/long.md) | Yes|Server RSA fingerprint| +|encrypted\_data|[bytes](../types/bytes.md) | Yes|Encrypted key exchange message| ### Return type: [Server\_DH\_Params](../types/Server_DH_Params.md) @@ -27,16 +29,18 @@ description: req_DH_params parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Server_DH_Params = $MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => 'bytes', 'q' => 'bytes', 'public_key_fingerprint' => long, 'encrypted_data' => 'bytes', ]); ``` diff --git a/docs/MTProto_docs/methods/req_pq.md b/docs/MTProto_docs/methods/req_pq.md index 7a583643..39a1715b 100644 --- a/docs/MTProto_docs/methods/req_pq.md +++ b/docs/MTProto_docs/methods/req_pq.md @@ -1,16 +1,18 @@ --- title: req_pq -description: req_pq parameters, return type and example +description: Requests PQ for factorization --- ## Method: req\_pq [Back to methods index](index.md) +Requests PQ for factorization + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| ### Return type: [ResPQ](../types/ResPQ.md) @@ -22,16 +24,18 @@ description: req_pq parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ResPQ = $MadelineProto->req_pq(['nonce' => int128, ]); ``` diff --git a/docs/MTProto_docs/methods/req_pq_multi.md b/docs/MTProto_docs/methods/req_pq_multi.md index 7fadb018..6ed67047 100644 --- a/docs/MTProto_docs/methods/req_pq_multi.md +++ b/docs/MTProto_docs/methods/req_pq_multi.md @@ -1,16 +1,18 @@ --- title: req_pq_multi -description: req_pq_multi parameters, return type and example +description: Requests PQ for factorization (new version) --- ## Method: req\_pq\_multi [Back to methods index](index.md) +Requests PQ for factorization (new version) + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| ### Return type: [ResPQ](../types/ResPQ.md) @@ -22,16 +24,18 @@ description: req_pq_multi parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ResPQ = $MadelineProto->req_pq_multi(['nonce' => int128, ]); ``` diff --git a/docs/MTProto_docs/methods/rpc_drop_answer.md b/docs/MTProto_docs/methods/rpc_drop_answer.md index e15ddca9..225a43b5 100644 --- a/docs/MTProto_docs/methods/rpc_drop_answer.md +++ b/docs/MTProto_docs/methods/rpc_drop_answer.md @@ -1,16 +1,18 @@ --- title: rpc_drop_answer -description: rpc_drop_answer parameters, return type and example +description: Do not send answer to provided request --- ## Method: rpc\_drop\_answer [Back to methods index](index.md) +Do not send answer to provided request + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|req\_msg\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|req\_msg\_id|[long](../types/long.md) | Yes|The message ID of the request| ### Return type: [RpcDropAnswer](../types/RpcDropAnswer.md) @@ -22,16 +24,18 @@ description: rpc_drop_answer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $RpcDropAnswer = $MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]); ``` diff --git a/docs/MTProto_docs/methods/set_client_DH_params.md b/docs/MTProto_docs/methods/set_client_DH_params.md index 74313ea0..70f15bf8 100644 --- a/docs/MTProto_docs/methods/set_client_DH_params.md +++ b/docs/MTProto_docs/methods/set_client_DH_params.md @@ -1,18 +1,20 @@ --- title: set_client_DH_params -description: set_client_DH_params parameters, return type and example +description: Sets client diffie-hellman parameters --- ## Method: set\_client\_DH\_params [Back to methods index](index.md) +Sets client diffie-hellman parameters + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| -|server\_nonce|[int128](../types/int128.md) | Yes| -|encrypted\_data|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| +|server\_nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security, given by server| +|encrypted\_data|[bytes](../types/bytes.md) | Yes|Encrypted key exchange message| ### Return type: [Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) @@ -24,16 +26,18 @@ description: set_client_DH_params parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Set_client_DH_params_answer = $MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => 'bytes', ]); ``` diff --git a/docs/TD_docs/methods/acceptCall.md b/docs/TD_docs/methods/acceptCall.md index ad55dc5e..0e327ce5 100644 --- a/docs/TD_docs/methods/acceptCall.md +++ b/docs/TD_docs/methods/acceptCall.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Accepts incoming call -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/addChatMember.md b/docs/TD_docs/methods/addChatMember.md index 00e2b3de..e5d9997d 100644 --- a/docs/TD_docs/methods/addChatMember.md +++ b/docs/TD_docs/methods/addChatMember.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Adds new member to chat. Members can't be added to private or secret chats. Member will not be added until chat state will be synchronized with the server -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/addChatMembers.md b/docs/TD_docs/methods/addChatMembers.md index 3d6c9232..ef061253 100644 --- a/docs/TD_docs/methods/addChatMembers.md +++ b/docs/TD_docs/methods/addChatMembers.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Adds many new members to the chat. Currently, available only for channels. Can't be used to join the channel. Members can't be added to broadcast channel if it has more than 200 members. Members will not be added until chat state will be synchronized with the server -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/addFavoriteSticker.md b/docs/TD_docs/methods/addFavoriteSticker.md index d062dd97..7663d22e 100644 --- a/docs/TD_docs/methods/addFavoriteSticker.md +++ b/docs/TD_docs/methods/addFavoriteSticker.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Adds new sticker to the list of favorite stickers. New sticker is added to the beginning of the list. If the sticker is already in the list, at first it is removed from the list. Only stickers belonging to a sticker set can be added to the list -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/addNetworkStatistics.md b/docs/TD_docs/methods/addNetworkStatistics.md index 07feecc8..9bc24ddb 100644 --- a/docs/TD_docs/methods/addNetworkStatistics.md +++ b/docs/TD_docs/methods/addNetworkStatistics.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Adds specified data to data usage statistics. Can be called before authorization -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/addRecentSticker.md b/docs/TD_docs/methods/addRecentSticker.md index c883c02b..6abb0ca8 100644 --- a/docs/TD_docs/methods/addRecentSticker.md +++ b/docs/TD_docs/methods/addRecentSticker.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Manually adds new sticker to the list of recently used stickers. New sticker is added to the beginning of the list. If the sticker is already in the list, at first it is removed from the list. Only stickers belonging to a sticker set can be added to the list -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/addRecentlyFoundChat.md b/docs/TD_docs/methods/addRecentlyFoundChat.md index 2c42550c..e305058c 100644 --- a/docs/TD_docs/methods/addRecentlyFoundChat.md +++ b/docs/TD_docs/methods/addRecentlyFoundChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Adds chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already in the list, at first it is removed from the list -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/addSavedAnimation.md b/docs/TD_docs/methods/addSavedAnimation.md index b21a1938..f626fa18 100644 --- a/docs/TD_docs/methods/addSavedAnimation.md +++ b/docs/TD_docs/methods/addSavedAnimation.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Manually adds new animation to the list of saved animations. New animation is added to the beginning of the list. If the animation is already in the list, at first it is removed from the list. Only non-secret video animations with MIME type "video/mp4" can be added to the list -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/addStickerToSet.md b/docs/TD_docs/methods/addStickerToSet.md index b4fd5420..e322aca6 100644 --- a/docs/TD_docs/methods/addStickerToSet.md +++ b/docs/TD_docs/methods/addStickerToSet.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Adds new sticker to a set. Returns the sticker set -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/answerCallbackQuery.md b/docs/TD_docs/methods/answerCallbackQuery.md index 00a454a4..8eebe561 100644 --- a/docs/TD_docs/methods/answerCallbackQuery.md +++ b/docs/TD_docs/methods/answerCallbackQuery.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Sets result of a callback query -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/answerCustomQuery.md b/docs/TD_docs/methods/answerCustomQuery.md index 65746c28..3d0a0a39 100644 --- a/docs/TD_docs/methods/answerCustomQuery.md +++ b/docs/TD_docs/methods/answerCustomQuery.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Answers a custom query -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/answerInlineQuery.md b/docs/TD_docs/methods/answerInlineQuery.md index 1358e7fd..cae03e9f 100644 --- a/docs/TD_docs/methods/answerInlineQuery.md +++ b/docs/TD_docs/methods/answerInlineQuery.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Sets result of an inline query -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/answerPreCheckoutQuery.md b/docs/TD_docs/methods/answerPreCheckoutQuery.md index 9fdb3915..5e4cdb2a 100644 --- a/docs/TD_docs/methods/answerPreCheckoutQuery.md +++ b/docs/TD_docs/methods/answerPreCheckoutQuery.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Sets result of a pre checkout query -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/answerShippingQuery.md b/docs/TD_docs/methods/answerShippingQuery.md index 22c0435d..9b560b43 100644 --- a/docs/TD_docs/methods/answerShippingQuery.md +++ b/docs/TD_docs/methods/answerShippingQuery.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Sets result of a shipping query -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/blockUser.md b/docs/TD_docs/methods/blockUser.md index 330b9719..8ff6ca82 100644 --- a/docs/TD_docs/methods/blockUser.md +++ b/docs/TD_docs/methods/blockUser.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Adds user to black list -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/cancelDownloadFile.md b/docs/TD_docs/methods/cancelDownloadFile.md index 935b40ba..fb9c5fe0 100644 --- a/docs/TD_docs/methods/cancelDownloadFile.md +++ b/docs/TD_docs/methods/cancelDownloadFile.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Stops file downloading. If file is already downloaded, does nothing -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/cancelUploadFile.md b/docs/TD_docs/methods/cancelUploadFile.md index 7972da2a..06cec86f 100644 --- a/docs/TD_docs/methods/cancelUploadFile.md +++ b/docs/TD_docs/methods/cancelUploadFile.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Stops file uploading. Works only for files uploaded using uploadFile. For other files the behavior is undefined -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/changeAbout.md b/docs/TD_docs/methods/changeAbout.md index a3511d14..d73bd51c 100644 --- a/docs/TD_docs/methods/changeAbout.md +++ b/docs/TD_docs/methods/changeAbout.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes about information of logged in user -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/changeAccountTtl.md b/docs/TD_docs/methods/changeAccountTtl.md index 18490b9a..e98e53fd 100644 --- a/docs/TD_docs/methods/changeAccountTtl.md +++ b/docs/TD_docs/methods/changeAccountTtl.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes period of inactivity, after which the account of currently logged in user will be automatically deleted -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/changeChannelDescription.md b/docs/TD_docs/methods/changeChannelDescription.md index 65ae6c9e..03e05755 100644 --- a/docs/TD_docs/methods/changeChannelDescription.md +++ b/docs/TD_docs/methods/changeChannelDescription.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes information about the channel. Needs appropriate rights in the channel -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/changeChannelUsername.md b/docs/TD_docs/methods/changeChannelUsername.md index 6ccbc54d..ff891e79 100644 --- a/docs/TD_docs/methods/changeChannelUsername.md +++ b/docs/TD_docs/methods/changeChannelUsername.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes username of the channel. Needs creator privileges in the channel -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/changeChatDraftMessage.md b/docs/TD_docs/methods/changeChatDraftMessage.md index 98528aa4..07d0eb8d 100644 --- a/docs/TD_docs/methods/changeChatDraftMessage.md +++ b/docs/TD_docs/methods/changeChatDraftMessage.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes chat draft message -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/changeChatMemberStatus.md b/docs/TD_docs/methods/changeChatMemberStatus.md index 2580452a..69b729af 100644 --- a/docs/TD_docs/methods/changeChatMemberStatus.md +++ b/docs/TD_docs/methods/changeChatMemberStatus.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes status of the chat member, need appropriate privileges. This function is currently not suitable for adding new members to the chat, use addChatMember instead. Status will not be changed until chat state will be synchronized with the server -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/changeChatPhoto.md b/docs/TD_docs/methods/changeChatPhoto.md index b7b271c6..48604f70 100644 --- a/docs/TD_docs/methods/changeChatPhoto.md +++ b/docs/TD_docs/methods/changeChatPhoto.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes chat photo. Works only for group and channel chats. Requires administrator rights in groups and appropriate administrator right in channels. Photo will not change before request to the server completes -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/changeChatReportSpamState.md b/docs/TD_docs/methods/changeChatReportSpamState.md index 88167bcb..9840af65 100644 --- a/docs/TD_docs/methods/changeChatReportSpamState.md +++ b/docs/TD_docs/methods/changeChatReportSpamState.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Reports chat as a spam chat or as not a spam chat. Can be used only if ChatReportSpamState.can_report_spam is true. After this request ChatReportSpamState.can_report_spam became false forever -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/changeChatTitle.md b/docs/TD_docs/methods/changeChatTitle.md index 14ec0173..3a5ec699 100644 --- a/docs/TD_docs/methods/changeChatTitle.md +++ b/docs/TD_docs/methods/changeChatTitle.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes chat title. Works only for group and channel chats. Requires administrator rights in groups and appropriate administrator right in channels. Title will not change before request to the server completes -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/changeName.md b/docs/TD_docs/methods/changeName.md index 44222283..e0981adc 100644 --- a/docs/TD_docs/methods/changeName.md +++ b/docs/TD_docs/methods/changeName.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes first and last names of logged in user. If something changes, updateUser will be sent -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/changePhoneNumber.md b/docs/TD_docs/methods/changePhoneNumber.md index 664c48bc..2dea3a85 100644 --- a/docs/TD_docs/methods/changePhoneNumber.md +++ b/docs/TD_docs/methods/changePhoneNumber.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes user's phone number and sends authentication code to the new user's phone number. Returns authStateWaitCode with information about sent code on success -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/changeStickerSet.md b/docs/TD_docs/methods/changeStickerSet.md index ed3516f3..0f2c101d 100644 --- a/docs/TD_docs/methods/changeStickerSet.md +++ b/docs/TD_docs/methods/changeStickerSet.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Installs/uninstalls or enables/archives sticker set -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/changeUsername.md b/docs/TD_docs/methods/changeUsername.md index 3a910d64..ac193251 100644 --- a/docs/TD_docs/methods/changeUsername.md +++ b/docs/TD_docs/methods/changeUsername.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes username of logged in user. If something changes, updateUser will be sent -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/checkAuthBotToken.md b/docs/TD_docs/methods/checkAuthBotToken.md index 70a390d9..5cf252b3 100644 --- a/docs/TD_docs/methods/checkAuthBotToken.md +++ b/docs/TD_docs/methods/checkAuthBotToken.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Check bot's authentication token to log in as a bot. Works only when getAuthState returns authStateWaitPhoneNumber. Can be used instead of setAuthPhoneNumber and checkAuthCode to log in. Returns authStateOk on success -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/checkAuthCode.md b/docs/TD_docs/methods/checkAuthCode.md index f2d480e4..1fbb2abc 100644 --- a/docs/TD_docs/methods/checkAuthCode.md +++ b/docs/TD_docs/methods/checkAuthCode.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Checks authentication code. Works only when getAuthState returns authStateWaitCode. Returns authStateWaitPassword or authStateOk on success -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/checkAuthPassword.md b/docs/TD_docs/methods/checkAuthPassword.md index ea3e73a3..6fd051d7 100644 --- a/docs/TD_docs/methods/checkAuthPassword.md +++ b/docs/TD_docs/methods/checkAuthPassword.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Checks password for correctness. Works only when getAuthState returns authStateWaitPassword. Returns authStateOk on success -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/checkChangePhoneNumberCode.md b/docs/TD_docs/methods/checkChangePhoneNumberCode.md index fa7a78a0..99cdb972 100644 --- a/docs/TD_docs/methods/checkChangePhoneNumberCode.md +++ b/docs/TD_docs/methods/checkChangePhoneNumberCode.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Checks authentication code sent to change user's phone number. Returns authStateOk on success -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/checkChatInviteLink.md b/docs/TD_docs/methods/checkChatInviteLink.md index a7892066..b38327cc 100644 --- a/docs/TD_docs/methods/checkChatInviteLink.md +++ b/docs/TD_docs/methods/checkChatInviteLink.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Checks chat invite link for validness and returns information about the corresponding chat -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/clearRecentStickers.md b/docs/TD_docs/methods/clearRecentStickers.md index 5756fdc9..3532e1ea 100644 --- a/docs/TD_docs/methods/clearRecentStickers.md +++ b/docs/TD_docs/methods/clearRecentStickers.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Clears list of recently used stickers -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/closeChat.md b/docs/TD_docs/methods/closeChat.md index 660a4cf1..e76dc1cd 100644 --- a/docs/TD_docs/methods/closeChat.md +++ b/docs/TD_docs/methods/closeChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Chat is closed by the user. Many useful activities depends on chat being opened or closed. -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/closeSecretChat.md b/docs/TD_docs/methods/closeSecretChat.md index 07028dee..75984ed7 100644 --- a/docs/TD_docs/methods/closeSecretChat.md +++ b/docs/TD_docs/methods/closeSecretChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Closes secret chat, effectively transfering its state to "Closed" -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/createCall.md b/docs/TD_docs/methods/createCall.md index 34aea13e..88e3c7eb 100644 --- a/docs/TD_docs/methods/createCall.md +++ b/docs/TD_docs/methods/createCall.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Creates new call -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/createChannelChat.md b/docs/TD_docs/methods/createChannelChat.md index 331a7168..3d160f73 100644 --- a/docs/TD_docs/methods/createChannelChat.md +++ b/docs/TD_docs/methods/createChannelChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns existing chat corresponding to the known channel -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/createGroupChat.md b/docs/TD_docs/methods/createGroupChat.md index aed03b36..aec5b4c8 100644 --- a/docs/TD_docs/methods/createGroupChat.md +++ b/docs/TD_docs/methods/createGroupChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns existing chat corresponding to the known group -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/createNewChannelChat.md b/docs/TD_docs/methods/createNewChannelChat.md index dce9c3cb..c9df33c0 100644 --- a/docs/TD_docs/methods/createNewChannelChat.md +++ b/docs/TD_docs/methods/createNewChannelChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Creates new channel chat and send corresponding messageChannelChatCreate, returns created chat -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/createNewGroupChat.md b/docs/TD_docs/methods/createNewGroupChat.md index 2df598e2..f72d2817 100644 --- a/docs/TD_docs/methods/createNewGroupChat.md +++ b/docs/TD_docs/methods/createNewGroupChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Creates new group chat and send corresponding messageGroupChatCreate, returns created chat -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/createNewSecretChat.md b/docs/TD_docs/methods/createNewSecretChat.md index aad3632a..1540f5f4 100644 --- a/docs/TD_docs/methods/createNewSecretChat.md +++ b/docs/TD_docs/methods/createNewSecretChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Creates new secret chat, returns created chat -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/createNewStickerSet.md b/docs/TD_docs/methods/createNewStickerSet.md index 7af83230..df9ca5be 100644 --- a/docs/TD_docs/methods/createNewStickerSet.md +++ b/docs/TD_docs/methods/createNewStickerSet.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Creates new sticker set. Returns created sticker set -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/createPrivateChat.md b/docs/TD_docs/methods/createPrivateChat.md index b5486068..3124ab2b 100644 --- a/docs/TD_docs/methods/createPrivateChat.md +++ b/docs/TD_docs/methods/createPrivateChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns existing chat corresponding to the given user -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/createSecretChat.md b/docs/TD_docs/methods/createSecretChat.md index 8b7c9efd..09e48ad2 100644 --- a/docs/TD_docs/methods/createSecretChat.md +++ b/docs/TD_docs/methods/createSecretChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns existing chat corresponding to the known secret chat -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/createTemporaryPassword.md b/docs/TD_docs/methods/createTemporaryPassword.md index ef0d4790..0aec1c6d 100644 --- a/docs/TD_docs/methods/createTemporaryPassword.md +++ b/docs/TD_docs/methods/createTemporaryPassword.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Creates new temporary password for payments processing -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/debugCall.md b/docs/TD_docs/methods/debugCall.md index e60eecc9..0c0bb1db 100644 --- a/docs/TD_docs/methods/debugCall.md +++ b/docs/TD_docs/methods/debugCall.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Sends call debug information -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteAccount.md b/docs/TD_docs/methods/deleteAccount.md index 83d873a8..a97ce6c9 100644 --- a/docs/TD_docs/methods/deleteAccount.md +++ b/docs/TD_docs/methods/deleteAccount.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Deletes the account of currently logged in user, deleting from the server all information associated with it. Account's phone number can be used to create new account, but only once in two weeks -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteChannel.md b/docs/TD_docs/methods/deleteChannel.md index 5b595495..67c3aaf8 100644 --- a/docs/TD_docs/methods/deleteChannel.md +++ b/docs/TD_docs/methods/deleteChannel.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Deletes channel along with all messages in corresponding chat. Releases channel username and removes all members. Needs creator privileges in the channel. Channels with more than 1000 members can't be deleted -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteChatHistory.md b/docs/TD_docs/methods/deleteChatHistory.md index af7224d4..f85c5e19 100644 --- a/docs/TD_docs/methods/deleteChatHistory.md +++ b/docs/TD_docs/methods/deleteChatHistory.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Deletes all messages in the chat. Can't be used for channel chats -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteChatReplyMarkup.md b/docs/TD_docs/methods/deleteChatReplyMarkup.md index a670a871..a956dbc0 100644 --- a/docs/TD_docs/methods/deleteChatReplyMarkup.md +++ b/docs/TD_docs/methods/deleteChatReplyMarkup.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Deletes default reply markup from chat. This method needs to be called after one-time keyboard or ForceReply reply markup has been used. UpdateChatReplyMarkup will be send if reply markup will be changed -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteContacts.md b/docs/TD_docs/methods/deleteContacts.md index 09c3aaba..33caae03 100644 --- a/docs/TD_docs/methods/deleteContacts.md +++ b/docs/TD_docs/methods/deleteContacts.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Deletes users from contacts list -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteFavoriteSticker.md b/docs/TD_docs/methods/deleteFavoriteSticker.md index 3ff60bff..030906a0 100644 --- a/docs/TD_docs/methods/deleteFavoriteSticker.md +++ b/docs/TD_docs/methods/deleteFavoriteSticker.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Removes a sticker from the list of favorite stickers -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteFile.md b/docs/TD_docs/methods/deleteFile.md index c3569655..569be98a 100644 --- a/docs/TD_docs/methods/deleteFile.md +++ b/docs/TD_docs/methods/deleteFile.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Deletes a file from TDLib file cache -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteImportedContacts.md b/docs/TD_docs/methods/deleteImportedContacts.md index c7015d7a..e351205e 100644 --- a/docs/TD_docs/methods/deleteImportedContacts.md +++ b/docs/TD_docs/methods/deleteImportedContacts.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Deletes all imported contacts -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteMessages.md b/docs/TD_docs/methods/deleteMessages.md index 7ff54dbe..37e3791d 100644 --- a/docs/TD_docs/methods/deleteMessages.md +++ b/docs/TD_docs/methods/deleteMessages.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Deletes messages -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteMessagesFromUser.md b/docs/TD_docs/methods/deleteMessagesFromUser.md index 22a95b3a..a1332293 100644 --- a/docs/TD_docs/methods/deleteMessagesFromUser.md +++ b/docs/TD_docs/methods/deleteMessagesFromUser.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Deletes all messages in the chat sent by the specified user. Works only in supergroup channel chats, needs can_delete_messages administrator privileges -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteProfilePhoto.md b/docs/TD_docs/methods/deleteProfilePhoto.md index 244cfb91..65d86fef 100644 --- a/docs/TD_docs/methods/deleteProfilePhoto.md +++ b/docs/TD_docs/methods/deleteProfilePhoto.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Deletes profile photo. If something changes, updateUser will be sent -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteRecentHashtag.md b/docs/TD_docs/methods/deleteRecentHashtag.md index e40b2b8d..5dd47cf8 100644 --- a/docs/TD_docs/methods/deleteRecentHashtag.md +++ b/docs/TD_docs/methods/deleteRecentHashtag.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Deletes a hashtag from the list of recently used hashtags -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteRecentSticker.md b/docs/TD_docs/methods/deleteRecentSticker.md index d9a43d64..92b1121f 100644 --- a/docs/TD_docs/methods/deleteRecentSticker.md +++ b/docs/TD_docs/methods/deleteRecentSticker.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Removes a sticker from the list of recently used stickers -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteRecentlyFoundChat.md b/docs/TD_docs/methods/deleteRecentlyFoundChat.md index de0c4bfc..0c9e1203 100644 --- a/docs/TD_docs/methods/deleteRecentlyFoundChat.md +++ b/docs/TD_docs/methods/deleteRecentlyFoundChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Deletes chat from the list of recently found chats -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteRecentlyFoundChats.md b/docs/TD_docs/methods/deleteRecentlyFoundChats.md index 3be7c5ed..c6126ba0 100644 --- a/docs/TD_docs/methods/deleteRecentlyFoundChats.md +++ b/docs/TD_docs/methods/deleteRecentlyFoundChats.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Clears list of recently found chats -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteSavedAnimation.md b/docs/TD_docs/methods/deleteSavedAnimation.md index 3f4a0ccf..72c5d77b 100644 --- a/docs/TD_docs/methods/deleteSavedAnimation.md +++ b/docs/TD_docs/methods/deleteSavedAnimation.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Removes an animation from the list of saved animations -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteSavedCredentials.md b/docs/TD_docs/methods/deleteSavedCredentials.md index 7f50a1db..fd1dfa4b 100644 --- a/docs/TD_docs/methods/deleteSavedCredentials.md +++ b/docs/TD_docs/methods/deleteSavedCredentials.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Deletes saved credentials for all payments provider bots -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteSavedOrderInfo.md b/docs/TD_docs/methods/deleteSavedOrderInfo.md index 15a63eed..4ee8cbc3 100644 --- a/docs/TD_docs/methods/deleteSavedOrderInfo.md +++ b/docs/TD_docs/methods/deleteSavedOrderInfo.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Deletes saved order info -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteStickerFromSet.md b/docs/TD_docs/methods/deleteStickerFromSet.md index 07e1640d..c1283cba 100644 --- a/docs/TD_docs/methods/deleteStickerFromSet.md +++ b/docs/TD_docs/methods/deleteStickerFromSet.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Deletes a sticker from the set it belongs to. Sticker set should be created by the bot -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/deleteTopChat.md b/docs/TD_docs/methods/deleteTopChat.md index a02afd83..05b4e380 100644 --- a/docs/TD_docs/methods/deleteTopChat.md +++ b/docs/TD_docs/methods/deleteTopChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Delete a chat from a list of frequently used chats. Supported only if chat info database is enabled -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/discardCall.md b/docs/TD_docs/methods/discardCall.md index ef47647b..0d9a9418 100644 --- a/docs/TD_docs/methods/discardCall.md +++ b/docs/TD_docs/methods/discardCall.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Discards a call -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/downloadFile.md b/docs/TD_docs/methods/downloadFile.md index dce3585c..2f18bede 100644 --- a/docs/TD_docs/methods/downloadFile.md +++ b/docs/TD_docs/methods/downloadFile.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Asynchronously downloads file from cloud. Updates updateFile will notify about download progress and successful download -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/editInlineMessageCaption.md b/docs/TD_docs/methods/editInlineMessageCaption.md index 1ddada91..049f40dc 100644 --- a/docs/TD_docs/methods/editInlineMessageCaption.md +++ b/docs/TD_docs/methods/editInlineMessageCaption.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Edits caption of an inline message content sent via bot -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/editInlineMessageReplyMarkup.md b/docs/TD_docs/methods/editInlineMessageReplyMarkup.md index fd513dab..b568f45c 100644 --- a/docs/TD_docs/methods/editInlineMessageReplyMarkup.md +++ b/docs/TD_docs/methods/editInlineMessageReplyMarkup.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Edits reply markup of an inline message sent via bot -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/editInlineMessageText.md b/docs/TD_docs/methods/editInlineMessageText.md index 377d8690..085b072a 100644 --- a/docs/TD_docs/methods/editInlineMessageText.md +++ b/docs/TD_docs/methods/editInlineMessageText.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Edits text of an inline text or game message sent via bot -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/editMessageCaption.md b/docs/TD_docs/methods/editMessageCaption.md index 12c8d4e4..43001928 100644 --- a/docs/TD_docs/methods/editMessageCaption.md +++ b/docs/TD_docs/methods/editMessageCaption.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Edits message content caption. Non-bots can edit message in a limited period of time. Returns edited message after edit is complete server side -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/editMessageReplyMarkup.md b/docs/TD_docs/methods/editMessageReplyMarkup.md index e54cdea2..eae11a1b 100644 --- a/docs/TD_docs/methods/editMessageReplyMarkup.md +++ b/docs/TD_docs/methods/editMessageReplyMarkup.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Edits message reply markup. Returns edited message after edit is complete server side -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/editMessageText.md b/docs/TD_docs/methods/editMessageText.md index 4af7eb16..a08bd109 100644 --- a/docs/TD_docs/methods/editMessageText.md +++ b/docs/TD_docs/methods/editMessageText.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Edits text of text or game message. Non-bots can edit message in a limited period of time. Returns edited message after edit is complete server side -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/exportChatInviteLink.md b/docs/TD_docs/methods/exportChatInviteLink.md index f68f42e5..161f777b 100644 --- a/docs/TD_docs/methods/exportChatInviteLink.md +++ b/docs/TD_docs/methods/exportChatInviteLink.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Generates new chat invite link, previously generated link is revoked. Available for group and channel chats. In groups can be called only by creator, in channels requires appropriate rights -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/finishFileGeneration.md b/docs/TD_docs/methods/finishFileGeneration.md index 29588c55..ca2cec2a 100644 --- a/docs/TD_docs/methods/finishFileGeneration.md +++ b/docs/TD_docs/methods/finishFileGeneration.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Finishes file generation -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/forwardMessages.md b/docs/TD_docs/methods/forwardMessages.md index 8f1eb175..27e12908 100644 --- a/docs/TD_docs/methods/forwardMessages.md +++ b/docs/TD_docs/methods/forwardMessages.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Forwards previously sent messages. Returns forwarded messages in the same order as message identifiers passed in message_ids. If message can't be forwarded, null will be returned instead of the message -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getAccountTtl.md b/docs/TD_docs/methods/getAccountTtl.md index bd94b1e7..95a53962 100644 --- a/docs/TD_docs/methods/getAccountTtl.md +++ b/docs/TD_docs/methods/getAccountTtl.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns period of inactivity, after which the account of currently logged in user will be automatically deleted -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getActiveSessions.md b/docs/TD_docs/methods/getActiveSessions.md index 782127c7..856fd054 100644 --- a/docs/TD_docs/methods/getActiveSessions.md +++ b/docs/TD_docs/methods/getActiveSessions.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns all active sessions of logged in user -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getArchivedStickerSets.md b/docs/TD_docs/methods/getArchivedStickerSets.md index 986c3ab3..1cd320bb 100644 --- a/docs/TD_docs/methods/getArchivedStickerSets.md +++ b/docs/TD_docs/methods/getArchivedStickerSets.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns list of archived sticker sets -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getAttachedStickerSets.md b/docs/TD_docs/methods/getAttachedStickerSets.md index cafabebf..3073381a 100644 --- a/docs/TD_docs/methods/getAttachedStickerSets.md +++ b/docs/TD_docs/methods/getAttachedStickerSets.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns list of sticker sets attached to a file, currently only photos and videos can have attached sticker sets -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getAuthState.md b/docs/TD_docs/methods/getAuthState.md index d1a569a0..41e964af 100644 --- a/docs/TD_docs/methods/getAuthState.md +++ b/docs/TD_docs/methods/getAuthState.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns current authorization state, offline request -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getBlockedUsers.md b/docs/TD_docs/methods/getBlockedUsers.md index a3e5d760..dd5d0bf3 100644 --- a/docs/TD_docs/methods/getBlockedUsers.md +++ b/docs/TD_docs/methods/getBlockedUsers.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns users blocked by the current user -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getCallbackQueryAnswer.md b/docs/TD_docs/methods/getCallbackQueryAnswer.md index ac7e2b6a..3afd6906 100644 --- a/docs/TD_docs/methods/getCallbackQueryAnswer.md +++ b/docs/TD_docs/methods/getCallbackQueryAnswer.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Sends callback query to a bot and returns answer to it. Returns error with code 502 if bot fails to answer the query before query timeout expires. Unavailable for bots -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getChannel.md b/docs/TD_docs/methods/getChannel.md index a100ddcf..5fa71fb5 100644 --- a/docs/TD_docs/methods/getChannel.md +++ b/docs/TD_docs/methods/getChannel.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns information about a channel by its identifier, offline request if current user is not a bot -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getChannelFull.md b/docs/TD_docs/methods/getChannelFull.md index 88234361..9f0c5cca 100644 --- a/docs/TD_docs/methods/getChannelFull.md +++ b/docs/TD_docs/methods/getChannelFull.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns full information about a channel by its identifier, cached for at most 1 minute -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getChannelMembers.md b/docs/TD_docs/methods/getChannelMembers.md index 50a6a8ab..5f03c21b 100644 --- a/docs/TD_docs/methods/getChannelMembers.md +++ b/docs/TD_docs/methods/getChannelMembers.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns information about channel members or banned users. Can be used only if channel_full->can_get_members == true. Administrator privileges may be additionally needed for some filters -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getChat.md b/docs/TD_docs/methods/getChat.md index f98bc0db..74871e0f 100644 --- a/docs/TD_docs/methods/getChat.md +++ b/docs/TD_docs/methods/getChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns information about a chat by its identifier, offline request if current user is not a bot -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getChatEventLog.md b/docs/TD_docs/methods/getChatEventLog.md index b9848066..2ac9e568 100644 --- a/docs/TD_docs/methods/getChatEventLog.md +++ b/docs/TD_docs/methods/getChatEventLog.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns list of service actions taken by chat members and administrators in the last 48 hours, available only in channels. Requires administrator rights. Returns result in reverse chronological order, i. e. in order of decreasing event_id -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getChatHistory.md b/docs/TD_docs/methods/getChatHistory.md index a951d028..16f8c99c 100644 --- a/docs/TD_docs/methods/getChatHistory.md +++ b/docs/TD_docs/methods/getChatHistory.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns messages in a chat. Returns result in reverse chronological order, i.e. in order of decreasing message.message_id. Offline request if only_local is true -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getChatMember.md b/docs/TD_docs/methods/getChatMember.md index 5c97460b..99b52331 100644 --- a/docs/TD_docs/methods/getChatMember.md +++ b/docs/TD_docs/methods/getChatMember.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns information about one participant of the chat -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getChatReportSpamState.md b/docs/TD_docs/methods/getChatReportSpamState.md index 2bd9476b..788b47eb 100644 --- a/docs/TD_docs/methods/getChatReportSpamState.md +++ b/docs/TD_docs/methods/getChatReportSpamState.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns current chat report spam state -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getChats.md b/docs/TD_docs/methods/getChats.md index 1c9cdfe9..01513190 100644 --- a/docs/TD_docs/methods/getChats.md +++ b/docs/TD_docs/methods/getChats.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns list of chats in the right order, chats are sorted by (order, chat_id) in decreasing order. For example, to get list of chats from the beginning, the offset_order should be equal 2^63 - 1 -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getCommonChats.md b/docs/TD_docs/methods/getCommonChats.md index 33fe3f8d..e9ed12e0 100644 --- a/docs/TD_docs/methods/getCommonChats.md +++ b/docs/TD_docs/methods/getCommonChats.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns list of common chats with an other given user. Chats are sorted by their type and creation date -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getCreatedPublicChats.md b/docs/TD_docs/methods/getCreatedPublicChats.md index 41897590..6d127be5 100644 --- a/docs/TD_docs/methods/getCreatedPublicChats.md +++ b/docs/TD_docs/methods/getCreatedPublicChats.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns list of created public chats -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getFavoriteStickers.md b/docs/TD_docs/methods/getFavoriteStickers.md index 4d9ca09b..57f5eadb 100644 --- a/docs/TD_docs/methods/getFavoriteStickers.md +++ b/docs/TD_docs/methods/getFavoriteStickers.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns favorite stickers -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getFile.md b/docs/TD_docs/methods/getFile.md index fec3fb21..596336e1 100644 --- a/docs/TD_docs/methods/getFile.md +++ b/docs/TD_docs/methods/getFile.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns information about a file, offline request -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getFileExtension.md b/docs/TD_docs/methods/getFileExtension.md index b465ed4c..8b5c417f 100644 --- a/docs/TD_docs/methods/getFileExtension.md +++ b/docs/TD_docs/methods/getFileExtension.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns file's extension guessing only by its mime type. Returns empty string on failure. Offline method. Can be called before authorization. Can be called synchronously -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getFileMimeType.md b/docs/TD_docs/methods/getFileMimeType.md index c92c3965..2ec83637 100644 --- a/docs/TD_docs/methods/getFileMimeType.md +++ b/docs/TD_docs/methods/getFileMimeType.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns file's mime type guessing only by its extension. Returns empty string on failure. Offline method. Can be called before authorization. Can be called synchronously -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getFilePersistent.md b/docs/TD_docs/methods/getFilePersistent.md index 00611123..6ae39ece 100644 --- a/docs/TD_docs/methods/getFilePersistent.md +++ b/docs/TD_docs/methods/getFilePersistent.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns information about a file by its persistent id, offline request. May be used to register a URL as a file for further uploading or sending as message -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getGameHighScores.md b/docs/TD_docs/methods/getGameHighScores.md index 62f5ea4a..0332e731 100644 --- a/docs/TD_docs/methods/getGameHighScores.md +++ b/docs/TD_docs/methods/getGameHighScores.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Returns game high scores and some part of the score table around of the specified user in the game -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getGroup.md b/docs/TD_docs/methods/getGroup.md index 34b875fd..46fad255 100644 --- a/docs/TD_docs/methods/getGroup.md +++ b/docs/TD_docs/methods/getGroup.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns information about a group by its identifier, offline request if current user is not a bot -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getGroupFull.md b/docs/TD_docs/methods/getGroupFull.md index 084c6ba8..4506da11 100644 --- a/docs/TD_docs/methods/getGroupFull.md +++ b/docs/TD_docs/methods/getGroupFull.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns full information about a group by its identifier -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getImportedContactCount.md b/docs/TD_docs/methods/getImportedContactCount.md index 26d89550..d82b0b1e 100644 --- a/docs/TD_docs/methods/getImportedContactCount.md +++ b/docs/TD_docs/methods/getImportedContactCount.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns total number of imported contacts -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getInlineGameHighScores.md b/docs/TD_docs/methods/getInlineGameHighScores.md index 5191538a..a1419d6a 100644 --- a/docs/TD_docs/methods/getInlineGameHighScores.md +++ b/docs/TD_docs/methods/getInlineGameHighScores.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Returns game high scores and some part of the score table around of the specified user in the game -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getInlineQueryResults.md b/docs/TD_docs/methods/getInlineQueryResults.md index faf20bfa..99ce5e83 100644 --- a/docs/TD_docs/methods/getInlineQueryResults.md +++ b/docs/TD_docs/methods/getInlineQueryResults.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Sends inline query to a bot and returns its results. Returns error with code 502 if bot fails to answer the query before query timeout expires. Unavailable for bots -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getInstalledStickerSets.md b/docs/TD_docs/methods/getInstalledStickerSets.md index 96cc00c9..dd0ecb99 100644 --- a/docs/TD_docs/methods/getInstalledStickerSets.md +++ b/docs/TD_docs/methods/getInstalledStickerSets.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns list of installed sticker sets -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getInviteText.md b/docs/TD_docs/methods/getInviteText.md index afb4af15..e49f84dc 100644 --- a/docs/TD_docs/methods/getInviteText.md +++ b/docs/TD_docs/methods/getInviteText.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns invite text for invitation of new users -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getMe.md b/docs/TD_docs/methods/getMe.md index c83767a9..136d9ce2 100644 --- a/docs/TD_docs/methods/getMe.md +++ b/docs/TD_docs/methods/getMe.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns current logged in user -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getMessage.md b/docs/TD_docs/methods/getMessage.md index 080ba986..0a00c9bd 100644 --- a/docs/TD_docs/methods/getMessage.md +++ b/docs/TD_docs/methods/getMessage.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns information about a message -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getMessages.md b/docs/TD_docs/methods/getMessages.md index 3eadf3b2..95845bc2 100644 --- a/docs/TD_docs/methods/getMessages.md +++ b/docs/TD_docs/methods/getMessages.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns information about messages. If message is not found, returns null on the corresponding position of the result -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getNetworkStatistics.md b/docs/TD_docs/methods/getNetworkStatistics.md index c7b6c67f..7cbe32dd 100644 --- a/docs/TD_docs/methods/getNetworkStatistics.md +++ b/docs/TD_docs/methods/getNetworkStatistics.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns network data usage statistics. Can be called before authorization -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getNotificationSettings.md b/docs/TD_docs/methods/getNotificationSettings.md index de629172..2693724b 100644 --- a/docs/TD_docs/methods/getNotificationSettings.md +++ b/docs/TD_docs/methods/getNotificationSettings.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns notification settings for a given scope -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getOption.md b/docs/TD_docs/methods/getOption.md index d55f306c..6b8d358d 100644 --- a/docs/TD_docs/methods/getOption.md +++ b/docs/TD_docs/methods/getOption.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns value of an option by its name. See list of available options on https: core.telegram.org/tdlib/options. Can be called before authorization -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getPasswordState.md b/docs/TD_docs/methods/getPasswordState.md index 531c0ec3..ab4da3fa 100644 --- a/docs/TD_docs/methods/getPasswordState.md +++ b/docs/TD_docs/methods/getPasswordState.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns current state of two-step verification -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getPaymentForm.md b/docs/TD_docs/methods/getPaymentForm.md index c2f671c9..40178332 100644 --- a/docs/TD_docs/methods/getPaymentForm.md +++ b/docs/TD_docs/methods/getPaymentForm.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns invoice payment form. The method should be called when user presses inlineKeyboardButtonBuy -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getPaymentReceipt.md b/docs/TD_docs/methods/getPaymentReceipt.md index 36a0e6db..1558b90b 100644 --- a/docs/TD_docs/methods/getPaymentReceipt.md +++ b/docs/TD_docs/methods/getPaymentReceipt.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns information about successful payment -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getPrivacy.md b/docs/TD_docs/methods/getPrivacy.md index 0f495972..357b71c0 100644 --- a/docs/TD_docs/methods/getPrivacy.md +++ b/docs/TD_docs/methods/getPrivacy.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns current privacy settings -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getProxy.md b/docs/TD_docs/methods/getProxy.md index 43fe7f18..5532bb77 100644 --- a/docs/TD_docs/methods/getProxy.md +++ b/docs/TD_docs/methods/getProxy.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns current set up proxy. Can be called before authorization -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getPublicMessageLink.md b/docs/TD_docs/methods/getPublicMessageLink.md index 5613b45d..358202ac 100644 --- a/docs/TD_docs/methods/getPublicMessageLink.md +++ b/docs/TD_docs/methods/getPublicMessageLink.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns public HTTPS link to a message. Available only for messages in public channels -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getRecentInlineBots.md b/docs/TD_docs/methods/getRecentInlineBots.md index b0a75673..c42c3594 100644 --- a/docs/TD_docs/methods/getRecentInlineBots.md +++ b/docs/TD_docs/methods/getRecentInlineBots.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns up to 20 recently used inline bots in the order of the last usage -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getRecentStickers.md b/docs/TD_docs/methods/getRecentStickers.md index bc288320..8209eded 100644 --- a/docs/TD_docs/methods/getRecentStickers.md +++ b/docs/TD_docs/methods/getRecentStickers.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns list of recently used stickers -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getRecoveryEmail.md b/docs/TD_docs/methods/getRecoveryEmail.md index da1289db..8b040489 100644 --- a/docs/TD_docs/methods/getRecoveryEmail.md +++ b/docs/TD_docs/methods/getRecoveryEmail.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns set up recovery email. This method can be used to verify a password provided by the user -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getSavedAnimations.md b/docs/TD_docs/methods/getSavedAnimations.md index 423799b6..3e01e420 100644 --- a/docs/TD_docs/methods/getSavedAnimations.md +++ b/docs/TD_docs/methods/getSavedAnimations.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns saved animations -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getSavedOrderInfo.md b/docs/TD_docs/methods/getSavedOrderInfo.md index c90976fd..adbe5109 100644 --- a/docs/TD_docs/methods/getSavedOrderInfo.md +++ b/docs/TD_docs/methods/getSavedOrderInfo.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns saved order info if any -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getSecretChat.md b/docs/TD_docs/methods/getSecretChat.md index 8dc20220..1b00087f 100644 --- a/docs/TD_docs/methods/getSecretChat.md +++ b/docs/TD_docs/methods/getSecretChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns information about a secret chat by its identifier, offline request -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getStickerEmojis.md b/docs/TD_docs/methods/getStickerEmojis.md index ec2c7d50..26f3991a 100644 --- a/docs/TD_docs/methods/getStickerEmojis.md +++ b/docs/TD_docs/methods/getStickerEmojis.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns emojis corresponding to a sticker -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getStickerSet.md b/docs/TD_docs/methods/getStickerSet.md index 036e67b6..4f93c682 100644 --- a/docs/TD_docs/methods/getStickerSet.md +++ b/docs/TD_docs/methods/getStickerSet.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns information about sticker set by its identifier -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getStickers.md b/docs/TD_docs/methods/getStickers.md index a1d5dcbc..c05fe05e 100644 --- a/docs/TD_docs/methods/getStickers.md +++ b/docs/TD_docs/methods/getStickers.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns stickers from installed ordinary sticker sets corresponding to the given emoji. If emoji is not empty, elso favorite and recently used stickers may be returned -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getStorageStatistics.md b/docs/TD_docs/methods/getStorageStatistics.md index cc05a82c..8a38f64c 100644 --- a/docs/TD_docs/methods/getStorageStatistics.md +++ b/docs/TD_docs/methods/getStorageStatistics.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns storage usage statistics -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getStorageStatisticsFast.md b/docs/TD_docs/methods/getStorageStatisticsFast.md index e519cde2..d8f4acc0 100644 --- a/docs/TD_docs/methods/getStorageStatisticsFast.md +++ b/docs/TD_docs/methods/getStorageStatisticsFast.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Quickly returns approximate storage usage statistics -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getSupportUser.md b/docs/TD_docs/methods/getSupportUser.md index 8470bcf8..6a586718 100644 --- a/docs/TD_docs/methods/getSupportUser.md +++ b/docs/TD_docs/methods/getSupportUser.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns user that can be contacted to get support -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getTemporaryPasswordState.md b/docs/TD_docs/methods/getTemporaryPasswordState.md index a15355dd..021c427a 100644 --- a/docs/TD_docs/methods/getTemporaryPasswordState.md +++ b/docs/TD_docs/methods/getTemporaryPasswordState.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns information about current temporary password -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getTermsOfService.md b/docs/TD_docs/methods/getTermsOfService.md index dc718b50..8eaf0992 100644 --- a/docs/TD_docs/methods/getTermsOfService.md +++ b/docs/TD_docs/methods/getTermsOfService.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns terms of service. Can be called before authorization -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getTextEntities.md b/docs/TD_docs/methods/getTextEntities.md index 86fbcbfe..1ff63ba5 100644 --- a/docs/TD_docs/methods/getTextEntities.md +++ b/docs/TD_docs/methods/getTextEntities.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns all mentions, hashtags, bot commands, URLs and emails contained in the text. Offline method. Can be called before authorization. Can be called synchronously -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getTopChats.md b/docs/TD_docs/methods/getTopChats.md index de36de13..ff7be40c 100644 --- a/docs/TD_docs/methods/getTopChats.md +++ b/docs/TD_docs/methods/getTopChats.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns a list of frequently used chats. Supported only if chat info database is enabled -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getTrendingStickerSets.md b/docs/TD_docs/methods/getTrendingStickerSets.md index 8b4905ed..224b4b68 100644 --- a/docs/TD_docs/methods/getTrendingStickerSets.md +++ b/docs/TD_docs/methods/getTrendingStickerSets.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns list of trending sticker sets -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getUser.md b/docs/TD_docs/methods/getUser.md index fccf1d3c..f9135ce2 100644 --- a/docs/TD_docs/methods/getUser.md +++ b/docs/TD_docs/methods/getUser.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns information about a user by its identifier, offline request if current user is not a bot -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getUserFull.md b/docs/TD_docs/methods/getUserFull.md index af5b6324..9ae075ba 100644 --- a/docs/TD_docs/methods/getUserFull.md +++ b/docs/TD_docs/methods/getUserFull.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns full information about a user by its identifier -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getUserProfilePhotos.md b/docs/TD_docs/methods/getUserProfilePhotos.md index c41ee769..fe16b0e9 100644 --- a/docs/TD_docs/methods/getUserProfilePhotos.md +++ b/docs/TD_docs/methods/getUserProfilePhotos.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns profile photos of the user. Result of this query may be outdated: some photos may be already deleted -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getWallpapers.md b/docs/TD_docs/methods/getWallpapers.md index 59dcc4d6..ba0bd714 100644 --- a/docs/TD_docs/methods/getWallpapers.md +++ b/docs/TD_docs/methods/getWallpapers.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns background wallpapers -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getWebPageInstantView.md b/docs/TD_docs/methods/getWebPageInstantView.md index f5b7f45e..1b8ee19d 100644 --- a/docs/TD_docs/methods/getWebPageInstantView.md +++ b/docs/TD_docs/methods/getWebPageInstantView.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns web page instant view if available. Returns error 404 if web page has no instant view -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/getWebPagePreview.md b/docs/TD_docs/methods/getWebPagePreview.md index f3a9e5f1..9dc48906 100644 --- a/docs/TD_docs/methods/getWebPagePreview.md +++ b/docs/TD_docs/methods/getWebPagePreview.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns web page preview by text of the message. Do not call this function to often. Returns error 404 if web page has no preview -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/importChatInviteLink.md b/docs/TD_docs/methods/importChatInviteLink.md index 5b4dd1ec..5350b54e 100644 --- a/docs/TD_docs/methods/importChatInviteLink.md +++ b/docs/TD_docs/methods/importChatInviteLink.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Imports chat invite link, adds current user to a chat if possible. Member will not be added until chat state will be synchronized with the server -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/importContacts.md b/docs/TD_docs/methods/importContacts.md index bcd5a328..2a6e4887 100644 --- a/docs/TD_docs/methods/importContacts.md +++ b/docs/TD_docs/methods/importContacts.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Adds new contacts/edits existing contacts, contacts user identifiers are ignored -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/index.md b/docs/TD_docs/methods/index.md index 12c7b713..86d97638 100644 --- a/docs/TD_docs/methods/index.md +++ b/docs/TD_docs/methods/index.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->[acceptCall](acceptCall.md)(\['call_id' => [int](../types/int.md), 'protocol' => [callProtocol](../constructors/callProtocol.md), \]) === [$Ok](../types/Ok.md) diff --git a/docs/TD_docs/methods/migrateGroupChatToChannelChat.md b/docs/TD_docs/methods/migrateGroupChatToChannelChat.md index 7e527f9d..87a25568 100644 --- a/docs/TD_docs/methods/migrateGroupChatToChannelChat.md +++ b/docs/TD_docs/methods/migrateGroupChatToChannelChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Creates new channel supergroup chat from existing group chat and send corresponding messageChatMigrateTo and messageChatMigrateFrom. Deactivates group -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/openChat.md b/docs/TD_docs/methods/openChat.md index 6e5e2c82..dca732cb 100644 --- a/docs/TD_docs/methods/openChat.md +++ b/docs/TD_docs/methods/openChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Chat is opened by the user. Many useful activities depends on chat being opened or closed. For example, in channels all updates are received only for opened chats -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/openMessageContent.md b/docs/TD_docs/methods/openMessageContent.md index 8486c11e..266ebad5 100644 --- a/docs/TD_docs/methods/openMessageContent.md +++ b/docs/TD_docs/methods/openMessageContent.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Message content is opened, for example the user has opened a photo, a video, a document, a location or a venue or have listened to an audio or a voice message. You will receive updateOpenMessageContent if something has changed -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/optimizeStorage.md b/docs/TD_docs/methods/optimizeStorage.md index ec17f03d..58e40e70 100644 --- a/docs/TD_docs/methods/optimizeStorage.md +++ b/docs/TD_docs/methods/optimizeStorage.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Optimizes storage usage, i.e. deletes some files and return new storage usage statistics. Secret thumbnails can't be deleted -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/pinChannelMessage.md b/docs/TD_docs/methods/pinChannelMessage.md index 4fed3023..d9b50f8c 100644 --- a/docs/TD_docs/methods/pinChannelMessage.md +++ b/docs/TD_docs/methods/pinChannelMessage.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Pins a message in a supergroup channel chat. Needs appropriate rights in the channel -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/processDcUpdate.md b/docs/TD_docs/methods/processDcUpdate.md index 6a795563..f93761e8 100644 --- a/docs/TD_docs/methods/processDcUpdate.md +++ b/docs/TD_docs/methods/processDcUpdate.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Handles DC_UPDATE push service notification. Can be called before authorization -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/rateCall.md b/docs/TD_docs/methods/rateCall.md index 74d80003..13e66dc5 100644 --- a/docs/TD_docs/methods/rateCall.md +++ b/docs/TD_docs/methods/rateCall.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Sends call rating -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/recoverAuthPassword.md b/docs/TD_docs/methods/recoverAuthPassword.md index 8cd2785d..c6b49b68 100644 --- a/docs/TD_docs/methods/recoverAuthPassword.md +++ b/docs/TD_docs/methods/recoverAuthPassword.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Recovers password with recovery code sent to email. Works only when getAuthState returns authStateWaitPassword. Returns authStateOk on success -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/recoverPassword.md b/docs/TD_docs/methods/recoverPassword.md index 1e7e5c36..35bbeba7 100644 --- a/docs/TD_docs/methods/recoverPassword.md +++ b/docs/TD_docs/methods/recoverPassword.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Recovers password with recovery code sent to email -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/registerDevice.md b/docs/TD_docs/methods/registerDevice.md index e18e2c66..5a500a3d 100644 --- a/docs/TD_docs/methods/registerDevice.md +++ b/docs/TD_docs/methods/registerDevice.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Registers current used device for receiving push notifications -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/reorderInstalledStickerSets.md b/docs/TD_docs/methods/reorderInstalledStickerSets.md index 5bbed182..c347616d 100644 --- a/docs/TD_docs/methods/reorderInstalledStickerSets.md +++ b/docs/TD_docs/methods/reorderInstalledStickerSets.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes the order of installed sticker sets -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/reportChannelSpam.md b/docs/TD_docs/methods/reportChannelSpam.md index 343049ff..712ab778 100644 --- a/docs/TD_docs/methods/reportChannelSpam.md +++ b/docs/TD_docs/methods/reportChannelSpam.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Reports some supergroup channel messages from a user as spam messages -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/reportChat.md b/docs/TD_docs/methods/reportChat.md index e7039452..acec9259 100644 --- a/docs/TD_docs/methods/reportChat.md +++ b/docs/TD_docs/methods/reportChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Reports chat to Telegram moderators. Can be used only for a channel chat or a private chat with a bot, because all other chats can't be checked by moderators -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/requestAuthPasswordRecovery.md b/docs/TD_docs/methods/requestAuthPasswordRecovery.md index 1c3f7f6e..5f3f79d3 100644 --- a/docs/TD_docs/methods/requestAuthPasswordRecovery.md +++ b/docs/TD_docs/methods/requestAuthPasswordRecovery.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Requests to send password recovery code to email. Works only when getAuthState returns authStateWaitPassword. Returns authStateWaitPassword on success -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/requestPasswordRecovery.md b/docs/TD_docs/methods/requestPasswordRecovery.md index 7f1f748b..e2776c47 100644 --- a/docs/TD_docs/methods/requestPasswordRecovery.md +++ b/docs/TD_docs/methods/requestPasswordRecovery.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Requests to send password recovery code to email -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/resendAuthCode.md b/docs/TD_docs/methods/resendAuthCode.md index ab0a13ee..1f135ee4 100644 --- a/docs/TD_docs/methods/resendAuthCode.md +++ b/docs/TD_docs/methods/resendAuthCode.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Resends authentication code to the user. Works only when getAuthState returns authStateWaitCode and next_code_type of result is not null. Returns authStateWaitCode on success -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/resendChangePhoneNumberCode.md b/docs/TD_docs/methods/resendChangePhoneNumberCode.md index 64f7ce56..5504d368 100644 --- a/docs/TD_docs/methods/resendChangePhoneNumberCode.md +++ b/docs/TD_docs/methods/resendChangePhoneNumberCode.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Resends authentication code sent to change user's phone number. Wotks only if in previously received authStateWaitCode next_code_type was not null. Returns authStateWaitCode on success -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/resetAllNotificationSettings.md b/docs/TD_docs/methods/resetAllNotificationSettings.md index 32b94c0b..8f0d7c16 100644 --- a/docs/TD_docs/methods/resetAllNotificationSettings.md +++ b/docs/TD_docs/methods/resetAllNotificationSettings.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Resets all notification settings to the default value. By default the only muted chats are supergroups, sound is set to 'default' and message previews are showed -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/resetAuth.md b/docs/TD_docs/methods/resetAuth.md index 6fa3d0b2..e2b7928b 100644 --- a/docs/TD_docs/methods/resetAuth.md +++ b/docs/TD_docs/methods/resetAuth.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Logs out user. If force == false, begins to perform soft log out, returns authStateLoggingOut after completion. If force == true then succeeds almost immediately without cleaning anything at the server, but returns error with code 401 and description "Unauthorized" -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/resetNetworkStatistics.md b/docs/TD_docs/methods/resetNetworkStatistics.md index a5a78b19..0ab29b58 100644 --- a/docs/TD_docs/methods/resetNetworkStatistics.md +++ b/docs/TD_docs/methods/resetNetworkStatistics.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Resets all network data usage statistics to zero. Can be called before authorization -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/searchCallMessages.md b/docs/TD_docs/methods/searchCallMessages.md index 111f86d8..9bee293c 100644 --- a/docs/TD_docs/methods/searchCallMessages.md +++ b/docs/TD_docs/methods/searchCallMessages.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Searches for call messages. Returns result in reverse chronological order, i. e. in order of decreasing message_id -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/searchChatMembers.md b/docs/TD_docs/methods/searchChatMembers.md index 1ae2799f..1be33ab1 100644 --- a/docs/TD_docs/methods/searchChatMembers.md +++ b/docs/TD_docs/methods/searchChatMembers.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Searches for the specified query in the first name, last name and username among members of the specified chat. Requires administrator rights in broadcast channels -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/searchChatMessages.md b/docs/TD_docs/methods/searchChatMessages.md index d7512a12..3686e795 100644 --- a/docs/TD_docs/methods/searchChatMessages.md +++ b/docs/TD_docs/methods/searchChatMessages.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Searches for messages with given words in the chat. Returns result in reverse chronological order, i. e. in order of decreasing message_id. Doesn't work in secret chats with non-empty query (searchSecretMessages should be used instead) or without enabled message database -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/searchChats.md b/docs/TD_docs/methods/searchChats.md index 2a1c1564..1fbbe420 100644 --- a/docs/TD_docs/methods/searchChats.md +++ b/docs/TD_docs/methods/searchChats.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Searches for specified query in the title and username of known chats, offline request. Returns chats in the order of them in the chat list -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/searchContacts.md b/docs/TD_docs/methods/searchContacts.md index 9535006f..f8303cfa 100644 --- a/docs/TD_docs/methods/searchContacts.md +++ b/docs/TD_docs/methods/searchContacts.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Searches for specified query in the first name, last name and username of the known user contacts -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/searchHashtags.md b/docs/TD_docs/methods/searchHashtags.md index 3e95cf96..683bc45b 100644 --- a/docs/TD_docs/methods/searchHashtags.md +++ b/docs/TD_docs/methods/searchHashtags.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Searches for recently used hashtags by their prefix -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/searchMessages.md b/docs/TD_docs/methods/searchMessages.md index 32690ca0..0bd212d5 100644 --- a/docs/TD_docs/methods/searchMessages.md +++ b/docs/TD_docs/methods/searchMessages.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Searches for messages in all chats except secret chats. Returns result in reverse chronological order, i. e. in order of decreasing (date, chat_id, message_id) -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/searchPublicChat.md b/docs/TD_docs/methods/searchPublicChat.md index b2ee12ea..9eb7526a 100644 --- a/docs/TD_docs/methods/searchPublicChat.md +++ b/docs/TD_docs/methods/searchPublicChat.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Searches public chat by its username. Currently only private and channel chats can be public. Returns chat if found, otherwise some error is returned -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/searchPublicChats.md b/docs/TD_docs/methods/searchPublicChats.md index 3928c2aa..43929165 100644 --- a/docs/TD_docs/methods/searchPublicChats.md +++ b/docs/TD_docs/methods/searchPublicChats.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Searches public chats by prefix of their username. Currently only private and channel (including supergroup) chats can be public. Returns meaningful number of results. Returns nothing if length of the searched username prefix is less than 5. Excludes private chats with contacts from the results -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/searchSecretMessages.md b/docs/TD_docs/methods/searchSecretMessages.md index 0ce25eb5..0c262cd6 100644 --- a/docs/TD_docs/methods/searchSecretMessages.md +++ b/docs/TD_docs/methods/searchSecretMessages.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Searches for messages in secret chats. Returns result in reverse chronological order -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/searchStickerSet.md b/docs/TD_docs/methods/searchStickerSet.md index 87037322..18ca56ea 100644 --- a/docs/TD_docs/methods/searchStickerSet.md +++ b/docs/TD_docs/methods/searchStickerSet.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Searches sticker set by its short name -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/sendBotStartMessage.md b/docs/TD_docs/methods/sendBotStartMessage.md index 485beb26..c0664450 100644 --- a/docs/TD_docs/methods/sendBotStartMessage.md +++ b/docs/TD_docs/methods/sendBotStartMessage.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Invites bot to a chat (if it is not in the chat) and send /start to it. Bot can't be invited to a private chat other than chat with the bot. Bots can't be invited to broadcast channel chats and secret chats. Returns sent message -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/sendChatAction.md b/docs/TD_docs/methods/sendChatAction.md index 0f9e9f57..9dcb0c25 100644 --- a/docs/TD_docs/methods/sendChatAction.md +++ b/docs/TD_docs/methods/sendChatAction.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Sends notification about user activity in a chat -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/sendChatScreenshotTakenNotification.md b/docs/TD_docs/methods/sendChatScreenshotTakenNotification.md index c693bf2c..25b03427 100644 --- a/docs/TD_docs/methods/sendChatScreenshotTakenNotification.md +++ b/docs/TD_docs/methods/sendChatScreenshotTakenNotification.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Sends notification about screenshot taken in a chat. Works only in private and secret chats -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/sendChatSetTtlMessage.md b/docs/TD_docs/methods/sendChatSetTtlMessage.md index d2e6c65d..933482c1 100644 --- a/docs/TD_docs/methods/sendChatSetTtlMessage.md +++ b/docs/TD_docs/methods/sendChatSetTtlMessage.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes current ttl setting in a secret chat and sends corresponding message -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/sendCustomRequest.md b/docs/TD_docs/methods/sendCustomRequest.md index c0df725c..b7f88aab 100644 --- a/docs/TD_docs/methods/sendCustomRequest.md +++ b/docs/TD_docs/methods/sendCustomRequest.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Sends custom request -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/sendInlineQueryResultMessage.md b/docs/TD_docs/methods/sendInlineQueryResultMessage.md index c801fdbb..b2edb7fd 100644 --- a/docs/TD_docs/methods/sendInlineQueryResultMessage.md +++ b/docs/TD_docs/methods/sendInlineQueryResultMessage.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Sends result of the inline query as a message. Returns sent message. Always clears chat draft message -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/sendMessage.md b/docs/TD_docs/methods/sendMessage.md index f747ab1c..2c2eb42e 100644 --- a/docs/TD_docs/methods/sendMessage.md +++ b/docs/TD_docs/methods/sendMessage.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Sends a message. Returns sent message -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/sendPaymentForm.md b/docs/TD_docs/methods/sendPaymentForm.md index 05a58bc8..f775d47e 100644 --- a/docs/TD_docs/methods/sendPaymentForm.md +++ b/docs/TD_docs/methods/sendPaymentForm.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Sends filled payment form to the bot for the final verification -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setAlarm.md b/docs/TD_docs/methods/setAlarm.md index caf3a391..039e6850 100644 --- a/docs/TD_docs/methods/setAlarm.md +++ b/docs/TD_docs/methods/setAlarm.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns Ok after specified amount of the time passed. Can be called before authorization -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setAuthPhoneNumber.md b/docs/TD_docs/methods/setAuthPhoneNumber.md index 50b3631c..0249f694 100644 --- a/docs/TD_docs/methods/setAuthPhoneNumber.md +++ b/docs/TD_docs/methods/setAuthPhoneNumber.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Sets user's phone number and sends authentication code to the user. Works only when getAuthState returns authStateWaitPhoneNumber. If phone number is not recognized or another error has happened, returns an error. Otherwise returns authStateWaitCode -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setBotUpdatesStatus.md b/docs/TD_docs/methods/setBotUpdatesStatus.md index f3cc0bbd..e4f4f107 100644 --- a/docs/TD_docs/methods/setBotUpdatesStatus.md +++ b/docs/TD_docs/methods/setBotUpdatesStatus.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Informs server about number of pending bot updates if they aren't processed for a long time -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setChannelStickerSet.md b/docs/TD_docs/methods/setChannelStickerSet.md index fd6b6acb..d80abb21 100644 --- a/docs/TD_docs/methods/setChannelStickerSet.md +++ b/docs/TD_docs/methods/setChannelStickerSet.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes sticker set of the channel. Needs appropriate rights in the channel -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setChatClientData.md b/docs/TD_docs/methods/setChatClientData.md index 353d253c..f2bd9293 100644 --- a/docs/TD_docs/methods/setChatClientData.md +++ b/docs/TD_docs/methods/setChatClientData.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes client data associated with a chat -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setFileGenerationProgress.md b/docs/TD_docs/methods/setFileGenerationProgress.md index febfee75..247b7abd 100644 --- a/docs/TD_docs/methods/setFileGenerationProgress.md +++ b/docs/TD_docs/methods/setFileGenerationProgress.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Next part of a file was generated -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setGameScore.md b/docs/TD_docs/methods/setGameScore.md index 26d3ca79..3f74e8a1 100644 --- a/docs/TD_docs/methods/setGameScore.md +++ b/docs/TD_docs/methods/setGameScore.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Updates game score of the specified user in the game -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setInlineGameScore.md b/docs/TD_docs/methods/setInlineGameScore.md index 258494a7..1dc7e6ad 100644 --- a/docs/TD_docs/methods/setInlineGameScore.md +++ b/docs/TD_docs/methods/setInlineGameScore.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Updates game score of the specified user in the game -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setNetworkType.md b/docs/TD_docs/methods/setNetworkType.md index 5d078271..e14beee8 100644 --- a/docs/TD_docs/methods/setNetworkType.md +++ b/docs/TD_docs/methods/setNetworkType.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Sets current network type. Can be called before authorization. Call to this method forces reopening of all network connections mitigating delay in switching between different networks, so it should be called whenever network is changed even network type remains the same. -Network type is used to check if library can use network at all and for collecting detailed network data usage statistics -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setNotificationSettings.md b/docs/TD_docs/methods/setNotificationSettings.md index 39946426..844981cf 100644 --- a/docs/TD_docs/methods/setNotificationSettings.md +++ b/docs/TD_docs/methods/setNotificationSettings.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes notification settings for a given scope -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setOption.md b/docs/TD_docs/methods/setOption.md index d42ca2e0..7854da3d 100644 --- a/docs/TD_docs/methods/setOption.md +++ b/docs/TD_docs/methods/setOption.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Sets value of an option. See list of available options on https: core.telegram.org/tdlib/options. Only writable options can be set. Can be called before authorization -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setPassword.md b/docs/TD_docs/methods/setPassword.md index ef4e0218..db54c4e6 100644 --- a/docs/TD_docs/methods/setPassword.md +++ b/docs/TD_docs/methods/setPassword.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes user password. If new recovery email is specified, then error EMAIL_UNCONFIRMED is returned and password change will not be applied until email confirmation. Application should call getPasswordState from time to time to check if email is already confirmed -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setPinnedChats.md b/docs/TD_docs/methods/setPinnedChats.md index d1be5077..5bece291 100644 --- a/docs/TD_docs/methods/setPinnedChats.md +++ b/docs/TD_docs/methods/setPinnedChats.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes list or order of pinned chats -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setPrivacy.md b/docs/TD_docs/methods/setPrivacy.md index eb5da17a..ca8b13df 100644 --- a/docs/TD_docs/methods/setPrivacy.md +++ b/docs/TD_docs/methods/setPrivacy.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes privacy settings -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setProfilePhoto.md b/docs/TD_docs/methods/setProfilePhoto.md index 0b0047be..7d69836c 100644 --- a/docs/TD_docs/methods/setProfilePhoto.md +++ b/docs/TD_docs/methods/setProfilePhoto.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Uploads new profile photo for logged in user. If something changes, updateUser will be sent -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setProxy.md b/docs/TD_docs/methods/setProxy.md index 96884b49..6fde536c 100644 --- a/docs/TD_docs/methods/setProxy.md +++ b/docs/TD_docs/methods/setProxy.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Sets proxy server for network requests. Can be called before authorization -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setRecoveryEmail.md b/docs/TD_docs/methods/setRecoveryEmail.md index 1ffd311a..1c09cc44 100644 --- a/docs/TD_docs/methods/setRecoveryEmail.md +++ b/docs/TD_docs/methods/setRecoveryEmail.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes user recovery email. If new recovery email is specified, then error EMAIL_UNCONFIRMED is returned and email will not be changed until email confirmation. Application should call getPasswordState from time to time to check if email is already confirmed. -If new_recovery_email coincides with the current set up email succeeds immediately and aborts all other requests waiting for email confirmation -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/setStickerPositionInSet.md b/docs/TD_docs/methods/setStickerPositionInSet.md index dfa46b0f..3b6fff1c 100644 --- a/docs/TD_docs/methods/setStickerPositionInSet.md +++ b/docs/TD_docs/methods/setStickerPositionInSet.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Changes position of a sticker in the set it belongs to. Sticker set should be created by the bot -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/terminateAllOtherSessions.md b/docs/TD_docs/methods/terminateAllOtherSessions.md index f6ed232e..45978e83 100644 --- a/docs/TD_docs/methods/terminateAllOtherSessions.md +++ b/docs/TD_docs/methods/terminateAllOtherSessions.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Terminates all other sessions of logged in user -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/terminateSession.md b/docs/TD_docs/methods/terminateSession.md index b8513144..5e9944f4 100644 --- a/docs/TD_docs/methods/terminateSession.md +++ b/docs/TD_docs/methods/terminateSession.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Terminates another session of logged in user -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/testCallBytes.md b/docs/TD_docs/methods/testCallBytes.md index d4a6aec3..e3dd8558 100644 --- a/docs/TD_docs/methods/testCallBytes.md +++ b/docs/TD_docs/methods/testCallBytes.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Test request. Returns back received bytes -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/testCallEmpty.md b/docs/TD_docs/methods/testCallEmpty.md index be79418c..821acf81 100644 --- a/docs/TD_docs/methods/testCallEmpty.md +++ b/docs/TD_docs/methods/testCallEmpty.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Test request. Does nothing -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/testCallString.md b/docs/TD_docs/methods/testCallString.md index fe464ae9..4ff0c730 100644 --- a/docs/TD_docs/methods/testCallString.md +++ b/docs/TD_docs/methods/testCallString.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Test request. Returns back received string -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/testCallVectorInt.md b/docs/TD_docs/methods/testCallVectorInt.md index 3963ea3c..434dd9a8 100644 --- a/docs/TD_docs/methods/testCallVectorInt.md +++ b/docs/TD_docs/methods/testCallVectorInt.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Test request. Returns back received vector of numbers -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/testCallVectorIntObject.md b/docs/TD_docs/methods/testCallVectorIntObject.md index 2daea886..5d7853af 100644 --- a/docs/TD_docs/methods/testCallVectorIntObject.md +++ b/docs/TD_docs/methods/testCallVectorIntObject.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Test request. Returns back received vector of objects containing a number -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/testCallVectorString.md b/docs/TD_docs/methods/testCallVectorString.md index ac1dfd08..714ed50f 100644 --- a/docs/TD_docs/methods/testCallVectorString.md +++ b/docs/TD_docs/methods/testCallVectorString.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Test request. Returns back received vector of strings -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/testCallVectorStringObject.md b/docs/TD_docs/methods/testCallVectorStringObject.md index bbcfcf9d..d3ccedf7 100644 --- a/docs/TD_docs/methods/testCallVectorStringObject.md +++ b/docs/TD_docs/methods/testCallVectorStringObject.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Test request. Returns back received vector of objects containing a string -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/testGetDifference.md b/docs/TD_docs/methods/testGetDifference.md index 37e47883..8ae080ba 100644 --- a/docs/TD_docs/methods/testGetDifference.md +++ b/docs/TD_docs/methods/testGetDifference.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Test request. Forces updates.getDifference call to telegram servers -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/testNetwork.md b/docs/TD_docs/methods/testNetwork.md index 1acb2920..f80b51e4 100644 --- a/docs/TD_docs/methods/testNetwork.md +++ b/docs/TD_docs/methods/testNetwork.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Test request. Sends simple network request to telegram servers -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/testSquareInt.md b/docs/TD_docs/methods/testSquareInt.md index f1d907c3..1c54ae68 100644 --- a/docs/TD_docs/methods/testSquareInt.md +++ b/docs/TD_docs/methods/testSquareInt.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Test request. Returns squared received number -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/testUseError.md b/docs/TD_docs/methods/testUseError.md index b15bd6c2..8682c30c 100644 --- a/docs/TD_docs/methods/testUseError.md +++ b/docs/TD_docs/methods/testUseError.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Test request. Does nothing, ensures that the Error object is used -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/testUseUpdate.md b/docs/TD_docs/methods/testUseUpdate.md index a8ab5892..ff06c6a3 100644 --- a/docs/TD_docs/methods/testUseUpdate.md +++ b/docs/TD_docs/methods/testUseUpdate.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Test request. Does nothing, ensures that the Update object is used -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/toggleChannelInvites.md b/docs/TD_docs/methods/toggleChannelInvites.md index 24077697..7988a079 100644 --- a/docs/TD_docs/methods/toggleChannelInvites.md +++ b/docs/TD_docs/methods/toggleChannelInvites.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Gives or revokes right to invite new members to all current members of the channel. Needs appropriate rights in the channel. Available only for supergroups -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/toggleChannelSignMessages.md b/docs/TD_docs/methods/toggleChannelSignMessages.md index 7ab4058e..cc2b599e 100644 --- a/docs/TD_docs/methods/toggleChannelSignMessages.md +++ b/docs/TD_docs/methods/toggleChannelSignMessages.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Enables or disables sender signature on sent messages in the channel. Needs appropriate rights in the channel. Not available for supergroups -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/toggleChatIsPinned.md b/docs/TD_docs/methods/toggleChatIsPinned.md index 3348bf2e..80ac3655 100644 --- a/docs/TD_docs/methods/toggleChatIsPinned.md +++ b/docs/TD_docs/methods/toggleChatIsPinned.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes chat pinned state. You can pin up to getOption("pinned_chat_count_max") non-secret chats and the same number of secret chats -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/toggleGroupAdministrators.md b/docs/TD_docs/methods/toggleGroupAdministrators.md index 4d619eaf..0f3ca948 100644 --- a/docs/TD_docs/methods/toggleGroupAdministrators.md +++ b/docs/TD_docs/methods/toggleGroupAdministrators.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Gives or revokes all members of the group administrator rights. Needs creator privileges in the group -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/unblockUser.md b/docs/TD_docs/methods/unblockUser.md index 87cd6a79..42138c63 100644 --- a/docs/TD_docs/methods/unblockUser.md +++ b/docs/TD_docs/methods/unblockUser.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Removes user from black list -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/unpinChannelMessage.md b/docs/TD_docs/methods/unpinChannelMessage.md index 8811baf0..0fabb70f 100644 --- a/docs/TD_docs/methods/unpinChannelMessage.md +++ b/docs/TD_docs/methods/unpinChannelMessage.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Removes pinned message in the supergroup channel. Needs appropriate rights in the channel -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/uploadFile.md b/docs/TD_docs/methods/uploadFile.md index 8c0f6618..8524e01d 100644 --- a/docs/TD_docs/methods/uploadFile.md +++ b/docs/TD_docs/methods/uploadFile.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Asynchronously uploads file to the cloud without sending it in a message. Updates updateFile will notify about upload progress and successful upload. The file will not have persistent identifier until it will be sent in a message -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/uploadStickerFile.md b/docs/TD_docs/methods/uploadStickerFile.md index a3b97c9f..2b3f37c3 100644 --- a/docs/TD_docs/methods/uploadStickerFile.md +++ b/docs/TD_docs/methods/uploadStickerFile.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Bots only. Uploads a png image with a sticker. Returns uploaded file -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/validateOrderInfo.md b/docs/TD_docs/methods/validateOrderInfo.md index 404ae977..a900fe62 100644 --- a/docs/TD_docs/methods/validateOrderInfo.md +++ b/docs/TD_docs/methods/validateOrderInfo.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Validates order information provided by the user and returns available shipping options for flexible invoice -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/viewMessages.md b/docs/TD_docs/methods/viewMessages.md index 544224ed..b02cfda8 100644 --- a/docs/TD_docs/methods/viewMessages.md +++ b/docs/TD_docs/methods/viewMessages.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Messages are viewed by the user. Many useful activities depends on message being viewed. For example, marking messages as read, incrementing of view counter, updating of view counter, removing of deleted messages in channels -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/TD_docs/methods/viewTrendingStickerSets.md b/docs/TD_docs/methods/viewTrendingStickerSets.md index 0b27524d..401b409c 100644 --- a/docs/TD_docs/methods/viewTrendingStickerSets.md +++ b/docs/TD_docs/methods/viewTrendingStickerSets.md @@ -11,7 +11,7 @@ YOU CANNOT USE THIS METHOD IN MADELINEPROTO Informs that some trending sticker sets are viewed by the user -### Params: +### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| diff --git a/docs/UBUNTU_INSTALLATION_FULL.md b/docs/UBUNTU_INSTALLATION_FULL.md deleted file mode 100644 index 0112c6e1..00000000 --- a/docs/UBUNTU_INSTALLATION_FULL.md +++ /dev/null @@ -1,8 +0,0 @@ -### Ubuntu (FULL) - -To also install the `lua` and `libtgvoip` extensions, needed to make phone calls, use the following script instead: - -``` -curl https://daniil.it/php.sh | sudo bash -e -``` - diff --git a/docs/docs/CALLS.md b/docs/docs/CALLS.md new file mode 100644 index 00000000..982954f2 --- /dev/null +++ b/docs/docs/CALLS.md @@ -0,0 +1,117 @@ +# Calls + +``` +if (!file_exists('input.raw')) { + echo 'Downloading example song'.PHP_EOL; + copy('https://github.com/danog/MadelineProto/raw/master/input.raw', 'input.raw'); +} +$call = $MadelineProto->request_call('@danogentili')->play('input.raw')->then('input.raw')->playOnHold(['input.raw'])->setOutputFile('output.raw'); +``` + +MadelineProto provides an easy wrapper to work with phone calls. + +The wrapper consists in the `\danog\MadelineProto\VoIP` class, that can be installed by compiling the [php-libtgvoip](https://voip.madelineproto.xyz) extension. + +* Please read the whole [VoIP API documentation](https://docs.madelineproto.xyz/API_docs/types/PhoneCall.html) before proceeding. +* [Requesting a call](#requesting-a-call) + * [Playing mp3 files](#playing-mp3-files) + * [Playing streams](#playing-streams) + * [Changing audio quality](#changing-audio-quality) +* [Putting it all together](#putting-it-all-together) +* [Accepting calls](#accepting-calls) + + +## Requesting a call +``` +$call = $MadelineProto->request_call('@danogentili'); +``` + +The [request_call](https://docs.madelineproto.xyz/request_call.html) function accepts one parameter with the ID/username/Peer/User/InputPeer of the person to call, and returns a VoIP object that can be used to play audio files, set the hold files, change the configuration and set the output file (see the [VoIP API documentation](https://docs.madelineproto.xyz/API_docs/types/PhoneCall.html) for more info). + +MadelineProto works using raw signed PCM audio with the sample rate and the bit depth specified in the configuration (see [here](https://docs.madelineproto.xyz/API_docs/types/PhoneCall.html) for info on how to fetch it): usually it's 1 channel, sample rate of 48khz, codec PCM s16 little endian. + + +## Playing mp3 files + +Input/output audio can be converted from/to any audio/video file using ffmpeg: + +``` +ffmpeg -i anyaudioorvideo.mp3 -f s16le -ac 1 -ar 48000 -acodec pcm_s16le mysong.raw +``` + +## Playing streams + +You can also play streams: + +``` +mkfifo mystream.raw +ffmpeg -i http://icestreaming.rai.it/1.mp3 -f s16le -ac 1 -ar 48000 -acodec pcm_s16le pipe:1 > mystream.raw +``` + +Remember: you can only play one fifo at a time. If you want to play the same stream in multiple calls, you must duplicate the data written to the fifo, by writing it to another fifo. + + +## Changing audio quality + +The best way to raise the bitrate is to let libtgvoip do it automatically, based on network conditions. +However, the usual outgoing bitrate used by telegram for ethernet networks is around 20kbps. That is clearly not enough. +To increase it, you must modify the shared settings: + +``` +$controller->configuration['shared_config']['audio_init_bitrate'] = 60 * 1000; // Audio bitrate set when the call is started +$controller->configuration['shared_config']['audio_max_bitrate'] => 70 * 1000; // Maximum audio bitrate +$controller->configuration['shared_config']['audio_min_bitrate'] => 15 * 1000; // Minimum audio bitrate +$controller->configuration['shared_config']['audio_bitrate_step_decr'] => 1000; // Decreasing step: when libtgvoip has to lower the bitrate, it decreases it `audio_bitrate_step_decr` bps at a time +$controller->configuration['shared_config']['audio_bitrate_step_incr'] => 1000; // Increasing step: when libtgvoip has to make the bitrate higher, it increases it `audio_bitrate_step_decr` bps at a time +$controller->parseConfig(); +``` + +Do this before accepting a call or right after requesting one. +It is best to set an initial bitrate not much smaller than the maximum bitrate, since libtgvoip tends to always increase it, initially, and when it does that, slight sound distortions occur. +The maximum bitrate can be set to any value, really, as long as it's smaller than 110*1000 (temporary limit that I'm trying to work around). +It is best to set the minumum bitrate to a value smaller than or equal to 20*1000. +Of course, you can't set the initial bitrate to a value higher than the maximum bitrate or lower than the minimum bitrate, and you can't set the minimum bitrate to a value higher than the maximum bitrate, or the maximum bitrate to a value lower than the minimum bitrate. +You can also tweak the steps to speed up/slow down automatic increasing/decreasing of the bitrates, or stop it altogether by settings both steps to 0 (in this case, the bitrate will always be equal to the initial bitrate). +Try to find out what works best for you. +If you manually set the network type to NET_TYPE_GPRS, NET_TYPE_EDGE, or enabled data saving mode, you must append a _gprs, _edge, _saving to the audio_init/max/min bitrate keys. + + +## Putting it all together + +Requesting calls is easy, just run the `request_call` method. + +``` +$controller = $MadelineProto->request_call('@danogentili')->play('input.raw')->then('inputb.raw')->playOhHold(['hold.raw'])->setOutputFile('output.raw'); +$controller->configuration['log_file_path'] = $controller->getOtherID().'.log'; + +// We need to receive updates in order to know that the other use accepted the call +while ($controller->getCallState() < \danog\MadelineProto\VoIP::CALL_STATE_READY) { + $MadelineProto->get_updates(); +} + +``` + +## Accepting calls + +Accepting calls is just as easy: you will receive an [updatePhoneCall](https://docs.madelineproto.xyz/API_docs/constructors/updatePhoneCall.html) object from your update source (see [update handling](#update-handling)). + +This array will contain a VoIP object under the `phone_call` key. + +``` + +$updates = $MadelineProto->get_updates(['offset' => $offset, 'limit' => 50, 'timeout' => 0]); // Just like in the bot API, you can specify an offset, a limit and a timeout +foreach ($updates as $update) { + \danog\MadelineProto\Logger::log([$update]); + $offset = $update['update_id'] + 1; // Just like in the bot API, the offset must be set to the last update_id + switch ($update['update']['_']) { + case 'updatePhoneCall': + if (is_object($update['update']['phone_call']) && $update['update']['phone_call']->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_INCOMING) { + $update['update']['phone_call']->accept()->play('input.raw')->then('inputb.raw')->playOnHold(['hold.raw'])->setOutputFile('output.raw'); + } + } +} +``` + + + + diff --git a/docs/docs/CHAT_INFO.md b/docs/docs/CHAT_INFO.md new file mode 100644 index 00000000..3bc596e2 --- /dev/null +++ b/docs/docs/CHAT_INFO.md @@ -0,0 +1,43 @@ +# Getting info about chats + +There are various methods that can be used to fetch info about chats, based on bot API id, tg-cli ID, Peer, User, Chat objects. + +* [Full chat info with full list of participants](#get_pwr_chat) +* [Full chat info](#get_full_info) +* [Reduced chat info (very fast)](#get_info) + +## get_pwr_chat +``` +$pwr_chat = $MadelineProto->get_pwr_chat(-100214891824); +foreach ($pwr_chat['participants'] as $participant) { + \danog\MadelineProto\Logger::log($participant); +} +``` + +Use `get_pwr_chat` to get full chat info, including the full list of members, see [here for the parameters and the result](https://docs.madelineproto.xyz/get_pwr_chat.html). + +* Completeness: full +* Speed: medium +* Caching: medium + +## get_full_info +``` +$full_chat = $MadelineProto->get_full_info(-10028941842); +``` + +You can also use `get_full_info` to get full chat info, without the full list of members, see [here for the parameters and the result](https://docs.madelineproto.xyz/get_full_info.html). + +* Completeness: medium +* Speed: medium-fast +* Caching: full + +## get_info +``` +$chat = $MadelineProto->get_info(-10028941842); +``` + +You can also use `get_info` to get chat info, see [here for the parameters and the result](https://docs.madelineproto.xyz/get_info.html) + +* Completeness: small +* Speed: very fast +* Caching: full diff --git a/docs/docs/CONTRIBUTING.md b/docs/docs/CONTRIBUTING.md new file mode 100644 index 00000000..a82883ca --- /dev/null +++ b/docs/docs/CONTRIBUTING.md @@ -0,0 +1,91 @@ +# Contributing + +You can contribute in various ways. + +* [Translation](#translation) +* [Contribution guide](#contribution-guide) +* [Credits](#credits) + +## Translation + +You can help by translating MadelineProto in your language. + +Fork github.com/danog/MadelineProto, then run + +``` +git clone https://github.com/youruser/MadelineProto +php translate.php +git commit -am 'Added yourlanguage' +git push origin master:localization-yourlanguage +``` + +Then create a pull request from branch `localization-yourlanguage` + +## Contribution guide + +[Here](https://github.com/danog/MadelineProto/projects/1) you can find this project's roadmap. + +You can use this scheme of the structure of this project to help yourself: + +``` +build_docs.php - Builds API docs from TL scheme file +src/danog/MadelineProto/ + MTProtoTools/ + AckHandler - Handles acknowledgement of incoming and outgoing mtproto messages + AuthKeyHandler - Handles generation of the temporary and permanent authorization keys + CallHandler - Handles synchronous calls to mtproto methods or objects, also basic response management (waits until the socket receives a response) + Crypt - Handles ige and aes encryption + MessageHandler - Handles sending and receiving of mtproto messages (packs TL serialized data with message id, auth key id and encrypts it with Crypt if needed, adds them to the arrays of incoming and outgoing messages) + MsgIdHandler - Handles message ids (checks if they are valid, adds them to the arrays of incoming and outgoing messages) + ResponseHandler - Handles the content of responses received, service messages, rpc results, errors, and stores them into the response section of the outgoing messages array) + SaltHandler - Handles server salts + SeqNoHandler - Handles sequence numbers (checks validity) + PeerHandler - Manages peers + UpdateHandler - Handles updates + TL/ + Exception - Handles exceptions in the TL namespace + TL - Handles TL serialization and deserialization + TLConstructor - Stores TL constructors + TLMethod - Stores TL methods + TLParams - Parses params + Wrappers/ + Login - Handles logging in as a bot or a user, logging out + PeerHandler - Eases getting of input peer objects using usernames or bot API chat ids + SettingsManager - Eases updating settings + API - Wrapper class that instantiates the MTProto class, sets the error handler, provides a wrapper for calling mtproto methods directly as class submethods, and uses the simplified wrappers from Wrappers/ + APIFactory - Provides a wrapper for calling namespaced mtproto methods directly as class submethods + Connection - Handles tcp/udp/http connections and wrapping payloads generated by MTProtoTools/MessageHandler into the right message according to the protocol, stores authorization keys, session id and sequence number + DataCenter - Handles mtproto datacenters (is a wrapper for Connection classes) + DebugTools - Various debugging tools + Exception - Handles exceptions and PHP errors + RPCErrorException - Handles RPC errors + MTProto - Handles initial connection, generation of authorization keys, instantiation of classes, writing of client info + Logger - Static logging class + prime.py and getpq.py - prime module (python) for p and q generation + PrimeModule.php - prime module (php) for p and q generation by wrapping the python module, using wolfram alpha or a built in PHP engine + RSA - Handles RSA public keys and signatures + Tools - Various tools (positive modulus, string2bin, python-like range) +``` + +Check out the [Contribution guide](https://github.com/danog/MadelineProto/blob/master/CONTRIBUTING.md) before contributing. +Kiao by grizzly + + + +## Credits + +Created by [Daniil Gentili](https://daniil.it), licensed under AGPLv3, based on [telepy](https://github.com/griganton/telepy_old). + +While writing this client, I looked at many projects for inspiration and help. Here's the full list: + +* [tgl](https://github.com/vysheng/tgl) + +* [Kotlogram](https://github.com/badoualy/kotlogram) + +* [Webogram](https://github.com/zhukov/webogram) + +* [Telethon](https://github.com/LonamiWebs/Telethon/) + +Thanks to the devs that contributed to these projects, MadelineProto is now an easy, well-written and complete MTProto client. + + diff --git a/docs/docs/CREATING_A_CLIENT.md b/docs/docs/CREATING_A_CLIENT.md new file mode 100644 index 00000000..9da06d6b --- /dev/null +++ b/docs/docs/CREATING_A_CLIENT.md @@ -0,0 +1,21 @@ +# Creating a client + +To store information about an account session and avoid re-logging in, serialization must be done. + +A MadelineProto session is automatically serialized every `$MadelineProto->settings['serialization']['serialization_interval']` seconds (by default 30 seconds), and on shutdown. If the scripts shutsdown normally (without ctrl+c or fatal errors/exceptions), the session will also be serialized automatically. + +To create the session and set the serialization destination file, do the following: +``` +$MadelineProto = new \danog\MadelineProto\API('session.madeline', $settings); // The session will be serialized to session.madeline +``` + +Do the same to load a serialized session: +``` +$MadelineProto = new \danog\MadelineProto\API('session.madeline', $settings); // The session will be loaded from session.madeline +``` + + +To change the session file after starting MadelineProto, do the following: +``` +$MadelineProto->session = 'newsession.madeline'; +``` diff --git a/docs/docs/DIALOGS.md b/docs/docs/DIALOGS.md new file mode 100644 index 00000000..c66ffd8e --- /dev/null +++ b/docs/docs/DIALOGS.md @@ -0,0 +1,30 @@ +# Getting all chats + +There are two ways to get a list of all chats, depending if you logged in as a user, or as a bot. + +* [As user](#user-get_dialogs) +* [As bot](#bot-internal-peer-database) + +## User: get_dialogs +``` +$dialogs = $MadelineProto->get_dialogs(); +foreach ($dialogs as $peer) { + $MadelineProto->messages->sendMessage(['peer' => $peer, 'message' => 'Hi! Testing MadelineProto broadcasting!']); +} +``` + +`get_dialogs` will return a full list of all chats you're member of, see [here for the parameters and the result](https://docs.madelineproto.xyz/get_dialogs.html) + +## Bot: internal peer database +``` +foreach ($MadelineProto->API->chats as $bot_api_id => $chat) { + try { + $MadelineProto->messages->sendMessage(['peer' => $chat, 'message' => "Hi $bot_api_id! Testing MadelineProto broadcasting!"]); + } catch (\danog\MadelineProto\RPCErrorException $e) { + echo $e; + } +} +``` + +Since bots cannot run `get_dialogs`, you must make use of the internal MadelineProto database to get a list of all users, chats and channels MadelineProto has seen. +`$MadelineProto->API->chats` contains a list of [Chat](../API_docs/types/Chat.md) and [User](../API_docs/types/User.md) objects, indexed by bot API id. \ No newline at end of file diff --git a/docs/docs/EXCEPTIONS.md b/docs/docs/EXCEPTIONS.md new file mode 100644 index 00000000..01f869f7 --- /dev/null +++ b/docs/docs/EXCEPTIONS.md @@ -0,0 +1,103 @@ +# Exceptions + +``` +try { + $MadelineProto->get_dialogs(); +} catch (\danog\MadelineProto\RPCErrorException $e) { + if ($e->rpc === 'BOT_METHOD_INVALID') { + \danog\MadelineProto\Logger::log("Bots can't execute this method!"); + } else { + $MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'An error occurred while calling get_dialogs: '.$e]); + } +} +``` + +MadelineProto can throw lots of different exceptions. + +* [List of exception types](#list-of-exception-types) +* [Pretty TL trace](#pretty-tl-trace) +* [Getting the TL trace](#getting-the-tl-trace) + + +## List of exception types + +* \danog\MadelineProto\Exception - Default exception, thrown when a php error occures and in a lot of other cases + +* \danog\MadelineProto\RPCErrorException - Thrown when an RPC error occurres (an error received via the mtproto API): **note** that the error message of this exception is localized in English, and may vary: to fetch the original API error message use `$e->rpc`. + +* \danog\MadelineProto\TL\Exception - Thrown on TL serialization/deserialization errors + +* \danog\MadelineProto\NothingInTheSocketException - Thrown if no data can be read from the TCP socket + +* \danog\MadelineProto\PTSException - Thrown if the PTS is unrecoverably corrupted + +* \danog\MadelineProto\SecurityException - Thrown on security problems (invalid params during generation of auth key or similar) + +* \danog\MadelineProto\TL\Conversion\Exception - Thrown if some param/object can't be converted to/from bot API/TD/TD-CLI format (this includes markdown/html parsing) + + +## Pretty TL trace +Every exception features a custom stack trace called `pretty TL trace`, that makes finding bugs **really** easy: + +``` +php > $MadelineProto->messages->sendMessage(['peer' => '@dd', 'message' => 'hi']); + +Uncaught \danog\MadelineProto\Exception: This peer is not present in the internal peer database in /home/pwrtelegram/cleanMadeline/src/danog/MadelineProto/MTProtoTools/PeerHandler.php:330 +Revision: 63823fc3cc5070bd8a1ebe91e60e1fd583a2f37f + +TL Trace (YOU ABSOLUTELY MUST READ THE TEXT BELOW): + +PeerHandler.php(327): get_info("dd",false) +TL.php(339): get_info("dd") +['peer'] +While serializing: messages.sendMessage +CallHandler.php(79): serialize_method("messages.sendMessage",{"peer":"@dd","message":"hi"}) +APIFactory.php(142): method_call("messages.sendMessage",{"peer":"@dd","message":"hi"},{"datacenter":4}) +php shell code(1): __call("sendMessage",[{"peer":"@dd","message":"hi"}]) + thrown in /home/pwrtelegram/cleanMadeline/src/danog/MadelineProto/MTProtoTools/PeerHandler.php on line 330 +php > +``` + +Explanation: + +`Uncaught \danog\MadelineProto\Exception`: an exception of type \danog\MadelineProto\Exception was thrown and not caught using a `catch` block, like showed in the first example of this page. + +`This peer is not present in the internal peer database`: this error means you have tried sending a message to a peer that does not exist or is not present in MadelineProto's internal peer database: in fact, `@dd` is not a valid telegram username. + +`in /home/pwrtelegram/cleanMadeline/src/danog/MadelineProto/MTProtoTools/PeerHandler.php:330`: this indicates the line where this error was thrown + +`Revision: 63823fc3cc5070bd8a1ebe91e60e1fd583a2f37f`: this indicates the MadelineProto version: **always** include this code when opening github issues or reporting errors in the group. + +``` +PeerHandler.php(327): get_info("dd",false) +TL.php(339): get_info("dd") +['peer'] +While serializing: messages.sendMessage +CallHandler.php(79): serialize_method("messages.sendMessage",{"peer":"@dd","message":"hi"}) +APIFactory.php(142): method_call("messages.sendMessage",{"peer":"@dd","message":"hi"},{"datacenter":4}) +php shell code(1): __call("sendMessage",[{"peer":"@dd","message":"hi"}]) +``` + +This part is supposed to be read from bottom to top, the most important parts are: + +`While serializing: messages.sendMessage`: this means the error was thrown while serializing the method call for messages->sendMessage + +`['peer']`: this means the error was thrown while trying to serialize the `peer` parameter, so **you should fix that part of your code**: +``` +$MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'hi']); +``` + +## Getting the TL trace + +To get the whole TL trace as string, cast the exception object to string: + +``` +try { + // +} catch (\danog\MadelineProto\Exception $e) { + $estring = (string) $e; + $estring2 = 'This also works: '.$e; + $estring3 = "So does this: $e"; + // use $estring to report the error using sendMessage or log +} +``` \ No newline at end of file diff --git a/docs/docs/FEATURES.md b/docs/docs/FEATURES.md new file mode 100644 index 00000000..622b0f67 --- /dev/null +++ b/docs/docs/FEATURES.md @@ -0,0 +1,43 @@ +# Features + +* It allows you to do everything official clients can do, programmatically! + +* *It can make phone calls!* [See here for instructions](#calls) + +* It can be proxied! + +* It is very fast! + +* It can be easily serialized! + +* It featured update handling with callbacks or long polling! + +* Easy to use wrappers to upload/download files and call mtproto methods + +* Documentation for EVERY mtproto method! + +* Internal peer management: you can provide a simple bot API chat id or a username to send a message or to call other mtproto methods! + +* You can easily login as a user (2FA is supported) or as a bot! + +* Simple error handling! + +* It is highly customizable with a lot of different settings! + +* Bot API file id/object support (even for users)! + +* A Lua binding + +* A lua wrapper for td-cli scripts + +* Secret chats + +* MTProto 2.0 + +* PFS + +* PFS in secret chats + +* [Clickable inline buttons](#inline-buttons)! + + diff --git a/docs/docs/FILES.md b/docs/docs/FILES.md new file mode 100644 index 00000000..39d0da93 --- /dev/null +++ b/docs/docs/FILES.md @@ -0,0 +1,427 @@ +# Uploading and downloading files + +MadelineProto provides wrapper methods to upload and download files that support bot API file ids. + +Maximum file size is of 1.5 GB. + +* [Uploading & sending files](#sending-files) + * [Security notice](#security-notice) + * [Photos](#inputmediauploadedphoto) + * [Documents](#inputmediauploadeddocument) + * [Documents](#documentattributefilename-to-send-a-document) + * [Photos as documents](#documentattributeimagesize-to-send-a-photo-as-document) + * [GIFs](#documentattributeanimated-to-send-a-gif) + * [Videos](#documentattributevideo-to-send-a-video) + * [Audio & Voice](#documentattributeaudio-to-send-an-audio-file) +* [Uploading files](#uploading-files) +* [Bot API file IDs](#bot-api-file-ids) +* [Reusing uploaded files](#reusing-uploaded-files) +* [Downloading files](#downloading-files) + * [Extracting download info](#extracting-download-info) + * [Download to directory](#download-to-directory) + * [Download to file](#download-to-file) + * [Download to browser (streaming)](#download-to-browser-with-streams) +* [Getting progress](#getting-progress) + +## Sending files + +To send photos and documents to someone, use the [$MadelineProto->messages->sendMedia](https://docs.madelineproto.xyz/API_docs/methods/messages_sendMedia.html) method, click on the link for more info. + +The required `message` parameter is the caption: it can contain URLs, mentions, bold and italic text, thanks to the `parse_mode` parameter, that enables markdown or HTML parsing. + +The `media` parameter contains the file path and other info about the file. + +It can contain [lots of various objects](https://docs.madelineproto.xyz/API_docs/types/InputMedia.html), here are the most important: + +### Security notice + +Be careful when calling methods with user-provided parameters: the upload function may be used to access and send any file. +To disable automatic uploads by file name, set `$MadelineProto->settings['upload']['allow_automatic_upload'] = false` and upload files [manually](#reusing-uploaded-files). + + +### [inputMediaUploadedPhoto](https://docs.madelineproto.xyz/API_docs/constructors/inputMediaUploadedPhoto.html) +``` +$sentMessage = $MadelineProto->messages->sendMedia([ + 'peer' => '@danogentili', + 'media' => [ + '_' => 'inputMediaUploadedPhoto', + 'file' => 'faust.jpg' + ], + 'message' => '[This is the caption](https://t.me/MadelineProto)', + 'parse_mode' => 'Markdown' +]); +``` + +Can be used to upload photos: simply provide the photo's file path in the `file` field, and optionally provide a `ttl_seconds` field to set the self-destruction period of the photo, even for normal chats + +### [inputMediaUploadedDocument](https://docs.madelineproto.xyz/API_docs/constructors/inputMediaUploadedDocument.html) +``` +$sentMessage = $MadelineProto->messages->sendMedia([ + 'peer' => '@danogentili', + 'media' => [ + '_' => 'inputMediaUploadedDocument', + 'file' => 'video.mp4', + 'attributes' => [ + ['_' => 'documentAttributeVideo', 'round_message' => false, 'supports_streaming' => true] + ] + ], + 'message' => '[This is the caption](https://t.me/MadelineProto)', + 'parse_mode' => 'Markdown' +]); +``` + +Can be used to upload documents, videos, gifs, voice messages, round videos, round voice messages: simply provide the file's file path in the `file` field, and optionally provide a `ttl_seconds` field to set the self-destruction period of the photo, even for normal chats. +You must also provide the file's mime type in the `mime_type` field, generate it using `mime_content_type($file_path);` (tip: try using an unexpected mime type to make official clients crash ;). +Use the `nosound_video` field if the video does not have sound (gifs). +To actually set the document type, provide one or more [DocumentAttribute](https://docs.madelineproto.xyz/API_docs/types/DocumentAttribute.html) objects to the `attributes` field: + +### [documentAttributeFilename](https://docs.madelineproto.xyz/API_docs/constructors/documentAttributeFilename.html) to send a document + +``` +$sentMessage = $MadelineProto->messages->sendMedia([ + 'peer' => '@danogentili', + 'media' => [ + '_' => 'inputMediaUploadedDocument', + 'file' => 'file.txt', + 'attributes' => [ + ['_' => 'documentAttributeFilename', 'file_name' => 'document.txt'] + ] + ], + 'message' => '[This is the caption](https://t.me/MadelineProto)', + 'parse_mode' => 'Markdown' +]); +``` + +### [documentAttributeImageSize](https://docs.madelineproto.xyz/API_docs/constructors/documentAttributeImageSize.html) to send a photo as document + +``` +$sentMessage = $MadelineProto->messages->sendMedia([ + 'peer' => '@danogentili', + 'media' => [ + '_' => 'inputMediaUploadedDocument', + 'file' => 'file.jpg', + 'attributes' => [ + ['_' => 'documentAttributeImageSize'], + ['_' => 'documentAttributeFilename', 'file_name' => 'image.jpg'] + ] + ], + 'message' => '[This is the caption](https://t.me/MadelineProto)', + 'parse_mode' => 'Markdown' +]); +``` + +### [documentAttributeAnimated](https://docs.madelineproto.xyz/API_docs/constructors/documentAttributeAnimated.html) to send a gif +``` +$sentMessage = $MadelineProto->messages->sendMedia([ + 'peer' => '@danogentili', + 'media' => [ + '_' => 'inputMediaUploadedDocument', + 'file' => 'file.mp4', + 'attributes' => [ + ['_' => 'documentAttributeAnimated'] + ] + ], + 'message' => '[This is the caption](https://t.me/MadelineProto)', + 'parse_mode' => 'Markdown' +]); +``` + +### [documentAttributeVideo](https://docs.madelineproto.xyz/API_docs/constructors/documentAttributeVideo.html) to send a video +``` +$sentMessage = $MadelineProto->messages->sendMedia([ + 'peer' => '@danogentili', + 'media' => [ + '_' => 'inputMediaUploadedDocument', + 'file' => 'video.mp4', + 'attributes' => [ + ['_' => 'documentAttributeVideo', 'round_message' => false, 'supports_streaming' => true] + ] + ], + 'message' => '[This is the caption](https://t.me/MadelineProto)', + 'parse_mode' => 'Markdown' +]); +``` + +Set `round_message` to true to send a round message. +You might want to manually provide square `w` (width) and `h` (height) parameters to send round videos. + + +### [documentAttributeAudio](https://docs.madelineproto.xyz/API_docs/constructors/documentAttributeAudio.html) to send an audio file + +``` +$sentMessage = $MadelineProto->messages->sendMedia([ + 'peer' => '@danogentili', + 'media' => [ + '_' => 'inputMediaUploadedDocument', + 'file' => 'song.mp3', + 'attributes' => [ + ['_' => 'documentAttributeAudio', 'voice' => false, 'title' => 'This is magic', 'performer' => 'Daniil Gentili'] + ] + ], + 'message' => '[This is the caption](https://t.me/MadelineProto)', + 'parse_mode' => 'Markdown' +]); +``` + +Set the `voice` parameter to true to send a voice message. + + +## Uploading files + +``` +$MessageMedia = $MadelineProto->messages->uploadMedia([ + 'media' => [ + '_' => 'inputMediaUploadedPhoto', + 'file' => 'faust.jpg' + ], +]); +``` + +You can also only upload a file, without actually sending it to anyone, storing only the file ID for later usage. + +The [$MadelineProto->messages->uploadMedia](https://docs.madelineproto.xyz/API_docs/methods/messages_uploadMedia.html) function is a reduced version of the [$MadelineProto->messages->sendMedia](https://docs.madelineproto.xyz/API_docs/methods/messages_sendMedia.html), that requires only a `media` parameter, with the media to upload. + +The returned [MessageMedia](https://docs.madelineproto.xyz/API_docs/types/MessageMedia.html) object can then be reused to resend the document using sendMedia. + +``` +$sentMessage = $MadelineProto->messages->sendMedia([ + 'peer' => '@danogentili', + 'media' => $MessageMedia, + 'message' => '[This is the caption](https://t.me/MadelineProto)', + 'parse_mode' => 'Markdown' +]); +``` + +`$MessageMedia` can also be a [Message](https://docs.madelineproto.xyz/API_docs/types/Message.html) (the media contained in the message will be sent), an [Update](https://docs.madelineproto.xyz/API_docs/types/Update.html) (the media contained in the message contained in the update will be sent). + +## Bot API file IDs + +`$MessageMedia` can even be a bot API file ID, generated by the bot API, or by MadelineProto: + +Actual MessageMedia objects can also be converted to bot API file IDs like this: + +``` +$botAPI_file = $MadelineProto->MTProto_to_botAPI($MessageMedia); +``` + +`$botAPI_file` now contains a [bot API message](https://core.telegram.org/bots/api#message), to extract the file ID from it use the following code: + +``` +foreach (['audio', 'document', 'photo', 'sticker', 'video', 'voice', 'video_note'] as $type) { + if (isset($botAPI_file[$type]) && is_array($botAPI_file[$type])) { + $method = $type; + } +} +$result['file_type'] = $method; +if ($result['file_type'] == 'photo') { + $result['file_size'] = $botAPI_file[$method][0]['file_size']; + if (isset($botAPI_file[$method][0]['file_name'])) { + $result['file_name'] = $botAPI_file[$method][0]['file_name']; + $result['file_id'] = $botAPI_file[$method][0]['file_id']; + } +} else { + if (isset($botAPI_file[$method]['file_name'])) { + $result['file_name'] = $botAPI_file[$method]['file_name']; + } + if (isset($botAPI_file[$method]['file_size'])) { + $result['file_size'] = $botAPI_file[$method]['file_size']; + } + if (isset($botAPI_file[$method]['mime_type'])) { + $result['mime_type'] = $botAPI_file[$method]['mime_type']; + } + $result['file_id'] = $botAPI_file[$method]['file_id']; +} +if (!isset($result['mime_type'])) { + $result['mime_type'] = 'application/octet-stream'; +} +if (!isset($result['file_name'])) { + $result['file_name'] = $result['file_id'].($method === 'sticker' ? '.webp' : ''); +} +``` + +* `$result['file_id']` - Bot API file ID +* `$result['mime_type']` - Mime type +* `$result['file_type']` - File type: voice, video, video_note (round video), music, video, photo, sticker or document +* `$result['file_size']` - File size +* `$result['file_name']` - File name + +## Reusing uploaded files + +`$MadelineProto->messages->uploadMedia` and bot API file IDs do not allow you to modify the type of the file to send: however, MadelineProto provides a method that can generate a file object that can be resent with multiple file types. + +``` +$inputFile = $MadelineProto->upload('filename.mp4'); +``` + +The generated `$inputFile` can later be reused thusly: + +``` +$sentMessage = $MadelineProto->messages->sendMedia([ + 'peer' => '@danogentili', + 'media' => [ + '_' => 'inputMediaUploadedDocument', + 'file' => $inputFile, + 'attributes' => [ + ['_' => 'documentAttributeFilename', 'file_name' => 'video.mp4'] + ] + ], + 'message' => '[This is the caption](https://t.me/MadelineProto)', + 'parse_mode' => 'Markdown' +]); +$sentMessageVideo = $MadelineProto->messages->sendMedia([ + 'peer' => '@danogentili', + 'media' => [ + '_' => 'inputMediaUploadedDocument', + 'file' => $inputFile, + 'attributes' => [ + ['_' => 'documentAttributeVideo', 'round_message' => false, 'supports_streaming' => true] + ] + ], + 'message' => '[This is the caption](https://t.me/MadelineProto)', + 'parse_mode' => 'Markdown' +]); +``` + +In this case, we're reusing the same InputFile to send both a document and a video, without uploading the file twice. + +The concept is easy: where you would usually provide a file path, simply provide `$inputFile`. + + +## Downloading files + +There are multiple download methods that allow you to download a file to a directory, to a file or to a stream. + +### Extracting download info +``` +$info = $MadelineProto->get_download_info($MessageMedia); +``` + +`$MessageMedia` can be a [MessageMedia](https://docs.madelineproto.xyz/API_docs/types/MessageMedia.html) object or a bot API file ID. + +* `$info['ext']` - The file extension +* `$info['name']` - The file name, without the extension +* `$info['mime']` - The file mime type +* `$info['size']` - The file size + +### Download to directory +``` +$output_file_name = $MadelineProto->download_to_dir($MessageMedia, '/tmp/'); +``` + +This downloads the given file to `/tmp`, and returns the full generated file path. + +`$MessageMedia` can be either a [Message](https://docs.madelineproto.xyz/API_docs/types/Message.html), an [Update](https://docs.madelineproto.xyz/API_docs/types/Update.html), a [MessageMedia](https://docs.madelineproto.xyz/API_docs/types/MessageMedia.html) object, or a bot API file ID. + +### Download to file +``` +$output_file_name = $MadelineProto->download_to_file($MessageMedia, '/tmp/myname.mp4'); +``` + +This downloads the given file to `/tmp/myname.mp4`, and returns the full file path. + +`$MessageMedia`can be either a [Message](https://docs.madelineproto.xyz/API_docs/types/Message.html), an [Update](https://docs.madelineproto.xyz/API_docs/types/Update.html), a [MessageMedia](https://docs.madelineproto.xyz/API_docs/types/MessageMedia.html) object, or a bot API file ID. + + +### Download to browser with streams +``` +$info = $MadelineProto->get_download_info($MessageMedia); +header('Content-Length: '.$info['size']); +header('Content-Type: '.$info['mime']); + +$stream = fopen('php://output', 'w'); +$MadelineProto->download_to_stream($MessageMedia, $stream, $cb, $offset, $endoffset); +``` + +This downloads the given file to the browser, sending also information about the file's type and size. + +`$MessageMedia` can be either a [Message](https://docs.madelineproto.xyz/API_docs/types/Message.html), an [Update](https://docs.madelineproto.xyz/API_docs/types/Update.html), a [MessageMedia](https://docs.madelineproto.xyz/API_docs/types/MessageMedia.html) object, or a bot API file ID. + +`$stream` must be a writeable stream + +`$cb` is an optional parameter can be a callback for download progress, but it shouldn't be used, the new [FileCallback](#getting-progress) should be used instead + +`$offset` is an optional parameter that specifies the byte from which to start downloading + +`$limit` is an optional parameter that specifies the byte where to stop downloading (non-inclusive) + + +## Getting progress + +To get the upload/download progress in real-time, use the `\danog\MadelineProto\FileCallback` class: + +``` +$peer = '@danogentili'; +$sentMessage = $MadelineProto->messages->sendMedia([ + 'peer' => $peer, + 'media' => [ + '_' => 'inputMediaUploadedDocument', + 'file' => new \danog\MadelineProto\FileCallback( + 'video.mp4', + function ($progress) use ($MadelineProto, $peer) { + $MadelineProto->messages->sendMessage(['peer' => $peer, 'message' => 'Upload progress: '.$progress.'%']); + } + ), + 'attributes' => [ + ['_' => 'documentAttributeVideo', 'round_message' => false, 'supports_streaming' => true] + ] + ], + 'message' => '[This is the caption](https://t.me/MadelineProto)', + 'parse_mode' => 'Markdown' +]); + +$output_file_name = $MadelineProto->download_to_file( + new \danog\MadelineProto\FileCallback( + $sentMessage, + function ($progress) use ($MadelineProto, $peer) { + $MadelineProto->messages->sendMessage(['peer' => $peer, 'message' => 'Download progress: '.$progress.'%']); + } + ), + '/tmp/myname.mp4' +); +``` + +This will send the file `video.mp4` to [@danogentili](https://t.me/danogentili): while uploading, he will receive progress messages `Upload progress: 24%` until the upload is complete; while uploading, he will receive progress messages `Download progress: 34%` until the download is complete. + +A FileCallback object can be provided to `uploadMedia`, `sendMedia`, `uploadProfilePicture`, `upload`, `upload_encrypted`, `download_to_*`: the first parameter to its constructor must be the file path/object that is usually accepted by the function, the second must be a callable function or object. + +You can also write your own callback class, just implement `\danog\MadelineProto\FileCallbackInterface`: +``` +class MyCallback implements \danog\MadelineProto\FileCallbackInterface +{ + private $file; + private $peer; + private $MadelineProto; + public function __construct($file, $peer, $MadelineProto) + { + $this->file = $file; + $this->peer = $peer; + $this->MadelineProto = $MadelineProto; + } + public function getFile() + { + return $this->file; + } + public function __invoke($progress) + { + $this->MadelineProto->messages->sendMessage(['peer' => $this->peer, 'message' => 'Progress: '.$progress.'%']); + } +} +$peer = '@danogentili'; +$sentMessage = $MadelineProto->messages->sendMedia([ + 'peer' => $peer, + 'media' => [ + '_' => 'inputMediaUploadedDocument', + 'file' => new MyCallback('video.mp4', $peer, $MadelineProto), + 'attributes' => [ + ['_' => 'documentAttributeVideo', 'round_message' => false, 'supports_streaming' => true] + ] + ], + 'message' => '[This is the caption](https://t.me/MadelineProto)', + 'parse_mode' => 'Markdown' +]); + +$output_file_name = $MadelineProto->download_to_file( + new MyCallback($sentMessage, $peer, $MadelineProto), + '/tmp/myname.mp4' +); +``` diff --git a/docs/docs/INLINE_BUTTONS.md b/docs/docs/INLINE_BUTTONS.md new file mode 100644 index 00000000..06b8c6c4 --- /dev/null +++ b/docs/docs/INLINE_BUTTONS.md @@ -0,0 +1,52 @@ +# Inline buttons + +You can easily click inline buttons using MadelineProto, just access the correct button: + +``` +class EventHandler extends \danog\MadelineProto\EventHandler +{ + public function onUpdateNewChannelMessage($update) + { + $this->onUpdateNewMessage($update); + } + public function onUpdateNewMessage($update) + { + if (isset($update['message']['out']) && $update['message']['out']) { + return; + } + + if (isset($update['message']['reply_markup']['rows'])) { + foreach ($update['message']['reply_markup']['rows'] as $row) { + foreach ($row['buttons'] as $button) { + $button->click(); + } + } + } + + } +} + + +$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e'], 'updates' => ['handle_updates' => true]]; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', $settings); + +$MadelineProto->start(); +$MadelineProto->setEventHandler('\EventHandler'); +$MadelineProto->loop(); +``` + +This peice of code will automatically click all buttons in all keyboards sent in any chat. + +You can then access properties of `$button` (they vary depending on the [type of button](https://docs.madelineproto.xyz/API_docs/types/KeyboardButton.html)): + +``` +$text = $button['text']; +``` + +And click them: + +``` +$button->click(); +``` + diff --git a/docs/docs/INSTALLATION.md b/docs/docs/INSTALLATION.md new file mode 100644 index 00000000..eda5fc3c --- /dev/null +++ b/docs/docs/INSTALLATION.md @@ -0,0 +1,122 @@ +# Installation + +There are various ways to install MadelineProto: + +* [Simple](#simple) +* [Simple (manual)](#simple-manual) +* [Composer from scratch](#composer-from-scratch) +* [Composer from existing project](#composer-from-existing-project) +* [Git](#git) + + +## Simple + +```php +start(); +``` + +This will start an interactive login prompt via console (if running via CLI), or a login web UI (if running in the browser). +You will get to choose if login as user, or as bot. + + +## Manual (user) + +``` +MadelineProto->phone_login(readline('Enter your phone number: ')); +$authorization = $MadelineProto->complete_phone_login(readline('Enter the phone code: ')); +if ($authorization['_'] === 'account.password') { + $authorization = $MadelineProto->complete_2fa_login(readline('Please enter your password (hint '.$authorization['hint'].'): ')); +} +if ($authorization['_'] === 'account.needSignup') { + $authorization = $MadelineProto->complete_signup(readline('Please enter your first name: '), readline('Please enter your last name (can be empty): ')); +} +``` + +First, you must call `phone_login` to send the verification code, see [here for the parameters and the result](https://docs.madelineproto.xyz/phone_login.html). +Then, use `complete_phone_login` to complete the login, see [here for the parameters and the result](https://docs.madelineproto.xyz/complete_phone_login.html). + +Use `complete_2FA_login` to complete the login to an account with 2FA enabled, see [here for the parameters and the result](https://docs.madelineproto.xyz/complete_2FA_login.html). + +If the account does not have an account, use `complete_signup` to signup, see [here for the parameters and the result](https://docs.madelineproto.xyz/complete_signup.html). + + +## Manual (bot) + +``` +$MadelineProto->bot_login('34298141894:aflknsaflknLKNFS'); +``` + +Use `bot_login` to login as a bot, see [here for the parameters and the result](https://docs.madelineproto.xyz/bot_login.html). + +Note that when you login as a bot, MadelineProto also logins using the [PWRTelegram](https://pwrtelegram.xyz) API, to allow persistant storage of peers, even after a logout and another login. + + +## Logout + +``` +$MadelineProto->logout(); +``` + +Use `logout` to logout, see [here for the parameters and the result](https://docs.madelineproto.xyz/logout.html). + + diff --git a/docs/docs/LUA.md b/docs/docs/LUA.md new file mode 100644 index 00000000..5daddf37 --- /dev/null +++ b/docs/docs/LUA.md @@ -0,0 +1,17 @@ +# Lua binding + +[Examples](https://github.com/danog/MadelineProto/tree/master/lua) + +The lua binding makes use of the Lua php extension. + +When istantiating the `\danog\MadelineProto\Lua` class, the first parameter provided to the constructor must be the path to the lua script, and the second parameter a logged in instance of MadelineProto. + +The class is basically a wrapper for the lua environment, so by setting an attribute you're setting a variable in the Lua environment, by reading an attribute you're reading a variable from the lua environment, and by calling a function you're actually calling a Lua function you declared in the script. + +By assigning a callable to an attribute, you're actually assigning a new function in the lua environment that once called, will call the php callable. + +Passing lua callables to a parameter of a PHP callable will throw an exception due to a bug in the PHP lua extension that I gotta fix (so passing the usual cb and cb_extra parameters to the td-cli wrappers isn't yet possible). + +All MadelineProto wrapper methods (for example upload, download, upload_encrypted, get_self, and others) are imported in the Lua environment, as well as all MTProto wrappers (see the API docs for more info). + +td-cli wrappers are also present: you can use the tdcli_function in lua and pass mtproto updates to the tdcli_update_callback via PHP, they will be automatically converted to/from td objects. Please note that the object conversion is not complete, feel free to contribute to the conversion module in [`src/danog/MadelineProto/Conversion/TD.php`](https://github.com/danog/MadelineProto/raw/master/src/danog/MadelineProto/TL/Conversion/TD.php). diff --git a/docs/docs/PROXY.md b/docs/docs/PROXY.md new file mode 100644 index 00000000..28cd2c88 --- /dev/null +++ b/docs/docs/PROXY.md @@ -0,0 +1,121 @@ +# Using a proxy + +You can use a proxy with MadelineProto. + +There are two ways to do this: either buy a pre-made Socks5 or HTTP proxy for 10$, or build your own proxy. + + +## Buying a proxy class + +Just send 10$ to paypal.me/danog, specifying the the proxy you wish to receive and your telegram username. + + +## Building a proxy class + +``` +class MyProxy implements \danog\MadelineProto\Proxy +{ + //... +} +$MadelineProto->settings['connection_settings']['all']['proxy'] = '\MyProxy'; +``` + +Simply create a class that implements the `\danog\MadelineProto\Proxy` interface, and enter its name in the settings. + +Your proxy class MUST use the `\Socket` class for all TCP/UDP communications. + +Your proxy class can also have a setExtra method that accepts an array as the first parameter, to pass the values provided in the proxy_extra setting. + +The `\Socket` class has the following methods (all of the following methods must also be implemented by your proxy class): + + +```public function __construct(int $domain, int $type, int $protocol);``` + +Works exactly like the [socket_connect](http://php.net/manual/en/function.socket-connect.php) function. + + + +```public function setOption(int $level, int $name, $value);``` + +Works exactly like the [socket_set_option](http://php.net/manual/en/function.socket-set-option.php) function. + + + +```public function getOption(int $name, $value);``` + +Works exactly like the [socket_get_option](http://php.net/manual/en/function.socket-get-option.php) function. + + + +```public function setBlocking(bool $blocking);``` + +Works like the [socket_block](http://php.net/manual/en/function.socket-set-block.php) or [socket_nonblock](http://php.net/manual/en/function.socket-set-nonblock.php) functions. + + + +```public function bind(string $address, [ int $port = 0 ]);``` + +Works exactly like the [socket_bind](http://php.net/manual/en/function.socket-bind.php) function. + + + +```public function listen([ int $backlog = 0 ]);``` + +Works exactly like the [socket_listen](http://php.net/manual/en/function.socket-listen.php) function. + + + +```public function accept();``` + +Works exactly like the [socket_accept](http://php.net/manual/en/function.socket-accept.php) function. + + + +```public function connect(string $address, [ int $port = 0 ]);``` + +Works exactly like the [socket_accept](http://php.net/manual/en/function.socket-connect.php) function. + + + +```public function select(array &$read, array &$write, array &$except, int $tv_sec, int $tv_usec = 0);``` + +Works exactly like the [socket_select](http://php.net/manual/en/function.socket-select.php) function. + + + +```public function read(int $length, [ int $flags = 0 ]);``` + +Works exactly like the [socket_read](http://php.net/manual/en/function.socket-read.php) function. + + + +```public function write(string $buffer, [ int $length ]);``` + +Works exactly like the [socket_read](http://php.net/manual/en/function.socket-write.php) function. + + + +```public function send(string $data, int $length, int $flags);``` + +Works exactly like the [socket_send](http://php.net/manual/en/function.socket-send.php) function. + + + +```public function close();``` + +Works exactly like the [socket_close](http://php.net/manual/en/function.socket-close.php) function. + + +```public function getPeerName(bool $port = true);``` + +Works like [socket_getpeername](http://php.net/manual/en/function.socket-getpeername.php): the difference is that it returns an array with the `host` and the `port`. + + +```public function getSockName(bool $port = true);``` + +Works like [socket_getsockname](http://php.net/manual/en/function.socket-getsockname.php): the difference is that it returns an array with the `host` and the `port`. + + +`public function getProxyHeaders();` + +Can return additional HTTP headers to use when the HTTP protocol is being used. \ No newline at end of file diff --git a/docs/UBUNTU_INSTALLATION.md b/docs/docs/REQUIREMENTS.md similarity index 85% rename from docs/UBUNTU_INSTALLATION.md rename to docs/docs/REQUIREMENTS.md index 285bfcc0..aebc387f 100644 --- a/docs/UBUNTU_INSTALLATION.md +++ b/docs/docs/REQUIREMENTS.md @@ -1,4 +1,6 @@ -# Ubuntu installation +# Requirements + +MadelineProto requires the `xml`, `gmp` extensions to function properly. To install MadelineProto dependencies on `Ubuntu`, `Debian`, `Devuan`, or any other `Debian-based` distro, run the following command in your command line: diff --git a/docs/docs/SECRET_CHATS.md b/docs/docs/SECRET_CHATS.md new file mode 100644 index 00000000..09926140 --- /dev/null +++ b/docs/docs/SECRET_CHATS.md @@ -0,0 +1,68 @@ +# Secret chats + +MadelineProto provides wrappers to work with secret chats. + +* [Requesting secret chats](#requesting-secret-chats) +* [Accepting secret chats](#accepting-secret-chats) +* [Checking secret chat status](#checking-secret-chat-status) +* [Sending secret messages](#sending-secret-messages) + +## Requesting secret chats + +``` +$secret_chat = $MadelineProto->request_secret_chat($InputUser); +``` + +Use [`request_secret_chat`] requests a secret secret chat to the [InputUser](https://docs.madelineproto.xyz/API_docs/types/InputUser.html), ID, or username specified, and returns the secret chat ID. + + +## Accepting secret chats + +Secret chats are accepted or refused automatically, based on a value in the [settings](SETTINGS.md) (by default MadelineProto is set to accept all secret chats). + +Before sending any message, you must check if the secret chat was accepted by the other client with the following method: + +## Checking secret chat status + +``` +$status = $MadelineProto->secret_chat_status($chat); +``` + +$status is 0 if the chat cannot be found in the local database, 1 if the chat was requested but not yet accepted, and 2 if it is a valid accepted secret chat. + +## Sending secret messages + +[Full example](https://github.com/danog/MadelineProto/blob/master/secret_bot.php) + +To send messages/files/service messages, simply use the sendEncrypted methods with objects that use the same layer used by the other client (specified by the number after the underscore in decryptedMessage object names, to obtain the layer that must be used for a secret chat use the following wrapper method). + +``` +$secret_chat = $MadelineProto->get_secret_chat($chat); +/* +[ + 'key' => [ // The authorization key + 'auth_key' => 'string', // 256 bytes long + 'fingerprint' => 10387574747492, // a 64 bit signed integer + 'visualization_orig' => 'string', // 16 bytes long + 'visualization_46' => 'string', // 20 bytes long + // The two visualization strings must be concatenated to generate a visual fingerprint + ], + 'admin' => false, // Am I the creator of the chat? + 'user_id' => 101374607, // The user id of the other user + 'InputEncryptedChat' => [...], // An inputEncryptedChat object that represents the current chat + 'in_seq_no_x' => number, // in_seq_no must be multiplied by two and incremented by this before being sent over the network + 'out_seq_no_x' => number, // out_seq_no must be multiplied by two and incremeneted this begore being sent over the network + 'layer' => number, // The secret chat TL layer used by the other client + 'ttl' => number, // The default time to live of messages in this chat + 'ttr' => 100, // Time left before rekeying must be done, decremented by one every time a message as encrypted/decrypted with this key + 'updated' => time(), // Last time the key of the current chat was changed + 'incoming' => [], // Incoming messages, TL serialized strings + 'outgoing' => [], // Outgoing messages, TL serialized strings + 'created' => time(), // When was this chat created + 'rekeying' => [0] // Info for rekeying +]; +*/ +``` + +This method gets info about a certain chat. + diff --git a/docs/docs/SELF.md b/docs/docs/SELF.md new file mode 100644 index 00000000..7b590f9d --- /dev/null +++ b/docs/docs/SELF.md @@ -0,0 +1,9 @@ +# Getting info about the current user + +``` +$me = $MadelineProto->get_self(); + +\danog\MadelineProto\Logger::log("Hi ".$me['first_name']."!"); +``` + +[`get_self`](https://docs.madelineproto.xyz/get_self.html) returns a [User object](API_docs/types/User.md) that contains info about the currently logged in user/bot, or false if the current instance is not logged in. diff --git a/docs/docs/SETTINGS.md b/docs/docs/SETTINGS.md new file mode 100644 index 00000000..d1f56631 --- /dev/null +++ b/docs/docs/SETTINGS.md @@ -0,0 +1,389 @@ +# Settings + +``` +$MadelineProto = new \danog\MadelineProto\API('session.madeline', $settings); +$MadelineProto->settings = $settings; +``` + +`$settings` - an array that contains some other arrays, which are the settings for a specific MadelineProto function. +Here are the default values for the settings arrays and explanations for every setting: + +## `$settings['authorization']` + +Authorization settings + +### `$settings['authorization']['default_temp_auth_key_expires_in']` + +Default: `31557600` +Description: Validity of temporary keys and the binding of the temporary and permanent keys + +### `$settings['authorization']['rsa_keys'] = [...]` + +Default: `["-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAwVACPi9w23mF3tBkdZz+zwrzKOaaQdr01vAbU4E1pvkfj4sqDsm6\nlyDONS789sVoD/xCS9Y0hkkC3gtL1tSfTlgCMOOul9lcixlEKzwKENj1Yz/s7daS\nan9tqw3bfUV/nqgbhGX81v/+7RFAEd+RwFnK7a+XYl9sluzHRyVVaTTveB2GazTw\nEfzk2DWgkBluml8OREmvfraX3bkHZJTKX4EQSjBbbdJ2ZXIsRrYOXfaA+xayEGB+\n8hdlLmAjbCVfaigxX0CDqWeR1yFL9kwd9P0NsZRPsmoqVwMbMu7mStFai6aIhc3n\nSlv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB\n-----END RSA PUBLIC KEY-----", "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAxq7aeLAqJR20tkQQMfRn+ocfrtMlJsQ2Uksfs7Xcoo77jAid0bRt\nksiVmT2HEIJUlRxfABoPBV8wY9zRTUMaMA654pUX41mhyVN+XoerGxFvrs9dF1Ru\nvCHbI02dM2ppPvyytvvMoefRoL5BTcpAihFgm5xCaakgsJ/tH5oVl74CdhQw8J5L\nxI/K++KJBUyZ26Uba1632cOiq05JBUW0Z2vWIOk4BLysk7+U9z+SxynKiZR3/xdi\nXvFKk01R3BHV+GUKM2RYazpS/P8v7eyKhAbKxOdRcFpHLlVwfjyM1VlDQrEZxsMp\nNTLYXb6Sce1Uov0YtNx5wEowlREH1WOTlwIDAQAB\n-----END RSA PUBLIC KEY-----", "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAsQZnSWVZNfClk29RcDTJQ76n8zZaiTGuUsi8sUhW8AS4PSbPKDm+\nDyJgdHDWdIF3HBzl7DHeFrILuqTs0vfS7Pa2NW8nUBwiaYQmPtwEa4n7bTmBVGsB\n1700/tz8wQWOLUlL2nMv+BPlDhxq4kmJCyJfgrIrHlX8sGPcPA4Y6Rwo0MSqYn3s\ng1Pu5gOKlaT9HKmE6wn5Sut6IiBjWozrRQ6n5h2RXNtO7O2qCDqjgB2vBxhV7B+z\nhRbLbCmW0tYMDsvPpX5M8fsO05svN+lKtCAuz1leFns8piZpptpSCFn7bWxiA9/f\nx5x17D7pfah3Sy2pA+NDXyzSlGcKdaUmwQIDAQAB\n-----END RSA PUBLIC KEY-----", "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAwqjFW0pi4reKGbkc9pK83Eunwj/k0G8ZTioMMPbZmW99GivMibwa\nxDM9RDWabEMyUtGoQC2ZcDeLWRK3W8jMP6dnEKAlvLkDLfC4fXYHzFO5KHEqF06i\nqAqBdmI1iBGdQv/OQCBcbXIWCGDY2AsiqLhlGQfPOI7/vvKc188rTriocgUtoTUc\n/n/sIUzkgwTqRyvWYynWARWzQg0I9olLBBC2q5RQJJlnYXZwyTL3y9tdb7zOHkks\nWV9IMQmZmyZh/N7sMbGWQpt4NMchGpPGeJ2e5gHBjDnlIf2p1yZOYeUYrdbwcS0t\nUiggS4UeE8TzIuXFQxw7fzEIlmhIaq3FnwIDAQAB\n-----END RSA PUBLIC KEY-----"]` +Description: Array of RSA keys to use during key exchange. +*WARNING*: be _very_ careful while modifying the default value of this setting, the security of telegram's MTProto protocol depends on it. + + +## `$settings['connection']` + +IP addresses and subdomains of the MTProto datacenters + +### `$settings['connection']['ssl_subdomains']` +Default: `[ + 1 => 'pluto', + 2 => 'venus', + 3 => 'aurora', + 4 => 'vesta', + 5 => 'flora', // musa oh wait no :( +]` +Description: Subdomains of web.telegram.org for https protocol + +### `$settings['connection']['test']` +Default: `[ + 'ipv4' => [ // ipv4 addresses + 2 => [ // The rest will be fetched automatically + 'ip_address' => '149.154.167.40', + 'port' => 443, + 'media_only' => false, + 'tcpo_only' => false, + ], + ], + 'ipv6' => [ // ipv6 addresses + 2 => [ // The rest will be fetched automatically + 'ip_address' => '2001:067c:04e8:f002:0000:0000:0000:000e', + 'port' => 443, + 'media_only' => false, + 'tcpo_only' => false, + ], + ], +]` +Description: test datacenter IPs + +### `$settings['connection']['main']` +Default: `[ + 'ipv4' => [ // ipv4 addresses + 2 => [ // The rest will be fetched automatically + 'ip_address' => '149.154.167.51', + 'port' => 443, + 'media_only' => false, + 'tcpo_only' => false, + ], + ], + 'ipv6' => [ // ipv6 addresses + 2 => [ // The rest will be fetched automatically + 'ip_address' => '2001:067c:04e8:f002:0000:0000:0000:000a', + 'port' => 443, + 'media_only' => false, + 'tcpo_only' => false, + ], + ], +]` +Description: main datacenter IPs + +## `$settings['connection_settings']` + +Connection settings + +### `$settings['connection_settings']['all']` + +Connection settings that will be applied to all datacenters + +### `$settings['connection_settings']['all']['protocol']` +Default: `'tcp_abridged'` +Description: MTProto transport protocol to use +Available MTProto transport protocols (smaller overhead is better): + +* tcp_abridged: Lightest protocol available +Overhead: Very small +Pros: +- Minimum envelope length: 1 byte (length) +- Maximum envelope length: 4 bytes (length) + +Cons: +- Not all Telegram DCs support it +- No obfuscation +- No initial integrity check +- No transport sequence number + + +* obfuscated2: Like tcp_abridged, but obfuscated +Overhead: Medium-high +Pros: +- All Telegram DCs support it +- Minimum envelope length: 1 byte (length) +- Maximum envelope length: 4 bytes (length) +- Obfuscation to prevent ISP blocks + +Cons: +- Initial payload of 64 bytes must be sent on every connection +- Additional round of encryption is required +- No initial integrity check +- No transport sequence number + +* tcp_intermediate: I guess they like having multiple protocols +Overhead: small +Pros: +- Minimum envelope length: 4 bytes (length) +- Maximum envelope length: 4 bytes (length) + +Cons: +- No obfuscation +- No initial integrity check +- Not all Telegram DCs support it +- No transport sequence number + +* tcp_full: The basic MTProto transport protocol, supported by all clients +Overhead: medium +Pros: +- All Telegram DCs support it +- Initial integrity check with crc32 +- Transport sequence number check + +Cons: +- Minimum envelope length: 12 bytes (length+seqno+crc) +- Maximum envelope length: 12 bytes (length+seqno+crc) +- Initial integrity check with crc32 is not that useful since the TCP protocol already uses it internally +- Transport sequence number check is also not that useful since transport sequence numbers are not encrypted and thus cannot be used to avoid replay attacks, and MadelineProto already uses MTProto sequence numbers and message ids for that + +* http: MTProto over HTTP for browsers and webhosts +Overhead: medium +Pros: +- Can be used on restricted webhosts or browsers + +Cons: +- Not all telegram DCs support it +- Very big envelope length +- No Initial integrity check +- No transport sequence number check + +* https: MTProto over HTTPS for browsers and webhosts, very secure +Overhead: high +Pros: +- Can be used on restricted webhosts or browsers +- Provides an additional layer of security by trasmitting data over TLS +- Integrity checks with HMAC built into TLS +- Sequence number checks built into TLS + +Cons: +- Very big envelope length +- Requires an additional round of encryption + +### `$settings['connection_settings']['all']['test_mode']` +Default: false +Description: Whether to connect to the main telegram servers or to the testing servers (deep telegram) + +### `$settings['connection_settings']['all']['ipv6']` +Default: auto-detected +Description: Whether to use ipv6 while connecting to the telegram servers + +### `$settings['connection_settings']['all']['timeout']` +Default: 2 +Description: Connection, read and write timeout for sockets + +### `$settings['connection_settings']['all']['proxy']` +Default: `\Socket` +Description: The [proxy class](PROXY.md) to use. + +### `$settings['connection_settings']['all']['proxy_extra']` +Default: `[]` +Description: Extra parameters to pass to the proxy class using setExtra + +### `$settings['connection_settings']['all']['pfs']` +Default: `true` if `php-gmp` is installed, `false` otherwise +Description: Whether to use PFS (better security, slower key exchange) + +## `$settings['app_info']` + +Application info + +### `$settings['app_info']['api_id']` +No default value, get your own API ID at my.telegram.org + +### `$settings['app_info']['api_hash']` +No default value, get your own API hash at my.telegram.org + +### `$settings['app_info']['device_model']` +Default: auto-detected +Description: device model + +### `$settings['app_info']['device_model']` +Default: auto-detected +Description: device model + +### `$settings['app_info']['system_version']` +Default: auto-detected +Description: system version + +### `$settings['app_info']['app_version']` +Default: `Unicorn` +Description: App version + +### `$settings['app_info']['lang_code']` +Default: auto-detected +Description: Language code + +## `$settings['tl_schema']` + +TL scheme files + +### `$settings['tl_schema']['layer']` +Default: 75 +Description: layer version + +### `$settings['tl_schema']['src']` +Default: `[ + 'mtproto' => __DIR__.'/TL_mtproto_v1.json', // mtproto TL scheme + 'telegram' => __DIR__.'/TL_telegram_v75.tl', // telegram TL scheme + 'secret' => __DIR__.'/TL_secret.tl', // secret chats TL scheme + 'calls' => __DIR__.'/TL_calls.tl', // calls TL scheme + 'botAPI' => __DIR__.'/TL_botAPI.tl', // bot API TL scheme for file ids +]` +Description: scheme files to use + + +## `$settings['logger']` + +Logger settings + +### `$settings['logger']['logger']` +Default: 3 if running from CLI, 2 if running from browser +Description: logger mode, available logger modes: + +* 0 - No logger +* 1 - Log to the default logger destination +* 2 - Log to file in `$settings['logger']['logger_param']` +* 3 - Echo logs +* 4 - Call callable provided in `$settings['logger']['logger_param']`. logger_param must accept two parameters: array $message, int $level + +### `$settings['logger']['param']` +Default: `''` +Description: optional logger parameter, for modes that require it + +### `$settings['logger']['logger_level']` +Default: `\danog\MadelineProto\Logger::VERBOSE` +Description: What logger messages to show + +### `$settings['logger']['rollbar_token']` +Description: You can provide a token for the rollbar log management system + + +## `$settings['max_tries']` + +Max try settings + +### `$settings['max_tries']['query']` +Default: 5 +Description: How many times should I try to call a method or send an object before throwing an exception? + +### `$settings['max_tries']['query']` +Default: 5 +Description: How many times should I try to generate an authorizatio key before throwing an exception? + +### `$settings['max_tries']['response']` +Default: 5 +Description: How many times should I try to get a response to a query before throwing an exception? + +## `$settings['flood_timeout']` + +Flood timeout settings + +### `$settings['flood_timeout']['wait_if_lt']` +Default: 20 +Description: Sleeps if a `FLOOD_WAIT_` error is received with duration lower than this value + +## `$settings['upload']` + +Upload settings + +### `$settings['upload']['allow_automatic_uploads']` +Default: true +Description: If false, [disables automatic upload from file path in constructors](FILES.md) + +## `$settings['msg_array_limit']` + +How big should be the arrays containing the incoming and outgoing messages? + +### `$settings['msg_array_limit']['incoming']` +Default: 200 +Description: maximum number of allowed MTProto messages in the incoming message array + +### `$settings['msg_array_limit']['outgoing']` +Default: 200 +Description: maximum number of allowed MTProto messages in the outgoing message array + +### `$settings['msg_array_limit']['call_queue']` +Default: 200 +Description: maximum number of allowed MTProto messages in any [call queue](USING_METHOD.md#call-queues) + +## `$settings['peer']` + +Peer caching settings + +### `$settings['peer']['full_info_cache_time']` +Default: 3600 +Description: Cache validity of full peer info (obtained with [get_full_info](CHAT_INFO.md#get_full_info)) + +### `$settings['peer']['full_fetch']` +Default: false +Description: Should madeline fetch the full member list of every group it meets? + +### `$settings['peer']['cache_all_peers_on_startup']` +Default: false +Description: Should madeline fetch the full chat list on startup? + + +## `$settings['requests']` + +Flood timeout settings + +### `$settings['requests']['gzip_encode_if_gt']` +Default: 500 +Description: Should I try using gzip encoding for requests bigger than N bytes? Set to -1 to disable. + + +## `$settings['updates']` + +Update handling settings + +### `$settings['updates']['handle_updates']` +Default: false +Description: Should I handle updates? + +### `$settings['updates']['handle_old_updates']` +Default: true +Description: Should I handle old updates on startup? + +### `$settings['updates']['getdifference_interval']` +Default: -1 +Description: If positive and bigger than zero, no requests will be sent to the socket to request updates in N seconds, passive update listening will be used instead + +### `$settings['updates']['calback']` +Default: `'get_updates_update_handler'` +Description: A callable function that will be called every time an update is received, must accept an array (for the update) as the only parameter. + +## `$settings['serialization']` + +Serialization settings + +### `$settings['serialization']['serialization_interval']` +Default: 30 +Description: Serialization will be made automatically every N seconds + + + +You can provide part of any subsetting array, that way the remaining arrays will be automagically set to default and undefined values of specified subsetting arrays will be set to the default values. +Example: + +``` +$MadelineProto->settings = [ + 'authorization' => [ // Authorization settings + 'default_temp_auth_key_expires_in' => 86400, // a day + ] +] +``` + +The settings array can be accessed and modified in the instantiated class by accessing the `settings` attribute of the API class: + +``` +$MadelineProto->settings['updates']['handle_updates'] = true; // reenable update fetching +``` diff --git a/docs/docs/UPDATES.md b/docs/docs/UPDATES.md new file mode 100644 index 00000000..2fe61ceb --- /dev/null +++ b/docs/docs/UPDATES.md @@ -0,0 +1,196 @@ +# Handling updates + +Update handling can be done in different ways: + +* [Event driven](#event-handler) + * [Event driven multithreaded](#multithreaded-event-handler) +* [Webhook](#webhook) + * [Webhook multithreaded](#multithreaded-webhook) +* [Long polling (getupdates)](#getupdates) +* [Callback](#callback) + * [Callback multithreaded](#multithreaded-callback) + +IMPORTANT: Note that you should turn off update handling if you don't plan to use it because the default get_updates update handling stores updates in an array inside the MadelineProto object, without deleting old ones unless they are read using get_updates. +``` +$MadelineProto->settings['updates']['handle_updates'] = false; +``` + +## Event driven + +``` +class EventHandler extends \danog\MadelineProto\EventHandler +{ + public function onAny($update) + { + \danog\MadelineProto\Logger::log("Received an update of type ".$update['_']); + } + public function onUpdateNewChannelMessage($update) + { + $this->onUpdateNewMessage($update); + } + public function onUpdateNewMessage($update) + { + if (isset($update['message']['out']) && $update['message']['out']) { + return; + } + $res = json_encode($update, JSON_PRETTY_PRINT); + if ($res == '') { + $res = var_export($update, true); + } + + try { + $this->messages->sendMessage(['peer' => $update, 'message' => $res, 'reply_to_msg_id' => $update['message']['id'], 'entities' => [['_' => 'messageEntityPre', 'offset' => 0, 'length' => strlen($res), 'language' => 'json']]]); + } catch (\danog\MadelineProto\RPCErrorException $e) { + $this->messages->sendMessage(['peer' => '@danogentili', 'message' => $e->getCode().': '.$e->getMessage().PHP_EOL.$e->getTraceAsString()]); + } + + try { + if (isset($update['message']['media']) && ($update['message']['media']['_'] == 'messageMediaPhoto' || $update['message']['media']['_'] == 'messageMediaDocument')) { + $time = microtime(true); + $file = $this->download_to_dir($update, '/tmp'); + $this->messages->sendMessage(['peer' => $update, 'message' => 'Downloaded to '.$file.' in '.(microtime(true) - $time).' seconds', 'reply_to_msg_id' => $update['message']['id'], 'entities' => [['_' => 'messageEntityPre', 'offset' => 0, 'length' => strlen($res), 'language' => 'json']]]); + } + } catch (\danog\MadelineProto\RPCErrorException $e) { + $this->messages->sendMessage(['peer' => '@danogentili', 'message' => $e->getCode().': '.$e->getMessage().PHP_EOL.$e->getTraceAsString()]); + } + } +} + + +$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e']]; + +try { + $MadelineProto = new \danog\MadelineProto\API('bot.madeline', $settings); +} catch (\danog\MadelineProto\Exception $e) { + \danog\MadelineProto\Logger::log($e->getMessage()); + unlink('bot.madeline'); + $MadelineProto = new \danog\MadelineProto\API('bot.madeline', $settings); +} +$MadelineProto->start(); +$MadelineProto->setEventHandler('\EventHandler'); +$MadelineProto->loop(); +``` + +This will create an event handler class `EventHandler`, create a MadelineProto session, and set the event handler class to our newly created event handler. + +When an [Update](https://docs.madelineproto.xyz/types/Update.html) is received, the corresponding `onUpdateType` event handler method is called. To get a list of all possible update types, [click here](https://docs.madelineproto.xyz/types/Update.html). +If such a method does not exist, the `onAny` event handler method is called. +If the `onAny` event handler method does not exist, the update is ignored. + +To access the `$MadelineProto` instance inside of the event handler, simply access `$this`: +``` +$this->messages->sendMessage(['peer' => '@danogentili', 'message' => 'hi']); +``` + +If you intend to use your own constructor in the event handler, make sure to call the parent construtor with the only parameter provided to your constructor. + +The update handling loop is started by the `$MadelineProto->loop()` method, and it will automatically restart the script if execution time runs out. + +## Event driven multithreaded + +To enable multithreaded update handling, pass `-1` to the `$MadelineProto->loop` method: +``` +$MadelineProto->loop(-1); +``` + +This way, each update will be managed in its own fork. +Note that multiprocessing is not the same as multithreading, and should be avoided unless lengthy operations are made in the update handler. + + +## Webhook +``` +$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e']]; + +try { + $MadelineProto = new \danog\MadelineProto\API('bot.madeline', $settings); +} catch (\danog\MadelineProto\Exception $e) { + \danog\MadelineProto\Logger::log($e->getMessage()); + unlink('bot.madeline'); + $MadelineProto = new \danog\MadelineProto\API('bot.madeline', $settings); +} +$MadelineProto->start(); +$MadelineProto->setWebhook('http://mybot.eu.org/madelinehook.php'); +$MadelineProto->loop(); +``` + +When an [Update](https://docs.madelineproto.xyz/types/Update.html) is received, a POST request is made to the provided webhook URL, with json-encoded payload containing the Update. To get a list of all possible update types, [click here](https://docs.madelineproto.xyz/types/Update.html). +The webhook can also respond with a JSON payload containing the name of a method to call and the arguments: +``` +{"method":"messages->sendMessage", "peer":"@danogentili", "message":"hi"} +``` + +The loop method will automatically restart the script if execution time runs out. + +## Event driven multithreaded + +To enable multithreaded update handling, pass `-1` to the `$MadelineProto->loop` method: +``` +$MadelineProto->loop(-1); +``` + +This way, each update could be managed faster. + + +## Long polling +``` +while (true) { + $updates = $MadelineProto->get_updates(['offset' => $offset, 'limit' => 50, 'timeout' => 0]); // Just like in the bot API, you can specify an offset, a limit and a timeout + \danog\MadelineProto\Logger::log($updates); + foreach ($updates as $update) { + $offset = $update['update_id'] + 1; // Just like in the bot API, the offset must be set to the last update_id + switch ($update['update']['_']) { + case 'updateNewMessage': + case 'updateNewChannelMessage': + if (isset($update['update']['message']['out']) && $update['update']['message']['out']) { + continue; + } + $res = json_encode($update, JSON_PRETTY_PRINT); + if ($res == '') { + $res = var_export($update, true); + } + + try { + $MadelineProto->messages->sendMessage(['peer' => $update['update']['_'] === 'updateNewMessage' ? $update['update']['message']['from_id'] : $update['update']['message']['to_id'], 'message' => $res, 'reply_to_msg_id' => $update['update']['message']['id'], 'entities' => [['_' => 'messageEntityPre', 'offset' => 0, 'length' => strlen($res), 'language' => 'json']]]); + } catch (\danog\MadelineProto\RPCErrorException $e) { + $MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => $e->getCode().': '.$e->getMessage().PHP_EOL.$e->getTraceAsString()]); + } + } + } +} +``` + +The get_updates function accepts an array of options as the first parameter, and returns an array of updates (an array containing the update id and an object of type [Update](https://docs.madelineproto.xyz/API_docs/types/Update.html)). + + + +## Callback + +``` +$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e']]; + +try { + $MadelineProto = new \danog\MadelineProto\API('bot.madeline', $settings); +} catch (\danog\MadelineProto\Exception $e) { + \danog\MadelineProto\Logger::log($e->getMessage()); + unlink('bot.madeline'); + $MadelineProto = new \danog\MadelineProto\API('bot.madeline', $settings); +} +$MadelineProto->start(); +$MadelineProto->setCallback(function ($update) use ($MadelineProto) { \danog\MadelineProto\Logger::log("Received an update of type ".$update['_']); }); +$MadelineProto->loop(); +``` +When an [Update](https://docs.madelineproto.xyz/types/Update.html) is received, the provided callback function is called. + +The update handling loop is started by the `$MadelineProto->loop()` method, and it will automatically restart the script if execution time runs out. + +## Callback multithreaded + +To enable multithreaded update handling, pass `-1` to the `$MadelineProto->loop` method: +``` +$MadelineProto->loop(-1); +``` + +This way, each update will be managed in its own fork. +Note that multiprocessing is not the same as multithreading, and should be avoided unless lengthy operations are made in the update handler. + + diff --git a/docs/docs/USING_METHODS.md b/docs/docs/USING_METHODS.md new file mode 100644 index 00000000..9b81ad82 --- /dev/null +++ b/docs/docs/USING_METHODS.md @@ -0,0 +1,83 @@ +# Using methods + +A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 75)](https://docs.madelineproto.xyz/API_docs/). + +There are simplifications for many, if not all of, these methods. + +* [Peers](#peers) +* [Files](FILES.md) +* [Secret chats](#secret-chats) +* [Entities (Markdown & HTML)](#entities) +* [reply_markup (keyboards & inline keyboards)](#reply_markup) +* [bot API objects](#bot-api-objects) +* [No result](#no-result) +* [Queues](#queues) + +## Peers +[Full example](https://github.com/danog/MadelineProto/blob/master/bot.php) + +If an object of type User, InputUser, Chat, InputChannel, Peer or InputPeer must be provided as a parameter to a method, you can substitute it with the user/group/channel's username (`@username`), bot API id (`-1029449`, `1249421`, `-100412412901`), or update. + +``` +$MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'Testing MadelineProto...']); +``` + +## Secret chats +[Full example](https://github.com/danog/MadelineProto/blob/master/secret_bot.php) +If an object of type InputSecretChat must be provided as a parameter to a method, you can substitute it with the secret chat's id, the updateNewEncrypted message or the decryptedMessage: + +``` +$MadelineProto->messages->sendEncrypted(['peer' => $update, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => 'Hi']]); +``` + + +## Entities +[Full example](https://github.com/danog/MadelineProto/blob/master/tests/testing.php) +Methods that allow sending message entities ([messages.sendMessage](http://docs.madelineproto.xyz/API_docs/methods/messages_sendMessage.html) for example) also have an additional `parse_mode` parameter that enables or disables html/markdown parsing of the message to be sent. + +``` +$MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => '[Testing Markdown in MadelineProto](https://docs.madelineproto.xyz)', 'parse_mode' => 'Markdown']); +$MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'Testing HTML in MadelineProto', 'parse_mode' => 'HTML']); +``` + + + +## reply_markup +reply_markup accepts bot API reply markup objects as well as MTProto ones. + +``` +$bot_API_markup = ['inline_keyboard' => [ + ['text' => 'MadelineProto docs', 'url' => 'https://docs.madelineproto.xyz'], + ['text' => 'MadelineProto channel', 'url' => 'https://t.me/MadelineProto'] + ] +]; +$MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'lel', 'reply_markup' => $bot_API_markup]); +``` + + +## Bot API objects +To convert the results of methods to bot API objects you must provide a second parameter to method wrappers, containing an array with the `botAPI` key set to true. + +``` +$bot_API_object = $MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'lel'], ['botAPI' => true]); +``` + +MadelineProto also [supports bot API file IDs when working with files](FILES.md) + + +## No result +To disable fetching the result of a method, the array that must be provided as second parameter to method wrapper must have the `noResponse` key set to true. + +``` +$MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'lel'], ['noResponse' => true]); +``` + + +## Call queues +Method calls may be executed at diferent times server-side: to avoid this, method calls can be queued: + +``` +$MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'lel'], ['queue' => 'queue_name']); +``` + +If the queue if the specified queue name does not exist, it will be created. diff --git a/docs/get_dialogs.md b/docs/get_dialogs.md index 2514dca9..c900bde7 100644 --- a/docs/get_dialogs.md +++ b/docs/get_dialogs.md @@ -13,18 +13,7 @@ Gets full list of dialogs ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { - $this->bot_login($token); -} -if (isset($number)) { - $sentCode = $MadelineProto->phone_login($number); - echo 'Enter the code you received: '; - $code = ''; - for ($x = 0; $x < $sentCode['type']['length']; $x++) { - $code .= fgetc(STDIN); - } - $MadelineProto->complete_phone_login($code); -} +$MadelineProto->start(); $Peers = $MadelineProto->get_dialogs(); ``` @@ -32,6 +21,6 @@ $Peers = $MadelineProto->get_dialogs(); Or, if you're into Lua: ``` -Peers = get_dialogs(true) +Peers = get_dialogs() ``` diff --git a/docs/get_full_info.md b/docs/get_full_info.md index a9696e2d..1d5e5a3b 100644 --- a/docs/get_full_info.md +++ b/docs/get_full_info.md @@ -18,18 +18,7 @@ description: get_full_info parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { - $this->bot_login($token); -} -if (isset($number)) { - $sentCode = $MadelineProto->phone_login($number); - echo 'Enter the code you received: '; - $code = ''; - for ($x = 0; $x < $sentCode['type']['length']; $x++) { - $code .= fgetc(STDIN); - } - $MadelineProto->complete_phone_login($code); -} +$MadelineProto->start(); $Chat = $MadelineProto->get_full_info($id); ``` diff --git a/docs/get_info.md b/docs/get_info.md index 4f39a084..f5a1cae8 100644 --- a/docs/get_info.md +++ b/docs/get_info.md @@ -18,18 +18,7 @@ description: get_info parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { - $this->bot_login($token); -} -if (isset($number)) { - $sentCode = $MadelineProto->phone_login($number); - echo 'Enter the code you received: '; - $code = ''; - for ($x = 0; $x < $sentCode['type']['length']; $x++) { - $code .= fgetc(STDIN); - } - $MadelineProto->complete_phone_login($code); -} +$MadelineProto->start(); $Chat = $MadelineProto->get_info($id); ``` diff --git a/docs/get_pwr_chat.md b/docs/get_pwr_chat.md index 4b2bfca0..e432dc0d 100644 --- a/docs/get_pwr_chat.md +++ b/docs/get_pwr_chat.md @@ -19,18 +19,7 @@ description: get_pwr_chat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { - $this->bot_login($token); -} -if (isset($number)) { - $sentCode = $MadelineProto->phone_login($number); - echo 'Enter the code you received: '; - $code = ''; - for ($x = 0; $x < $sentCode['type']['length']; $x++) { - $code .= fgetc(STDIN); - } - $MadelineProto->complete_phone_login($code); -} +$MadelineProto->start(); $Chat = $MadelineProto->get_pwr_chat($id); ``` diff --git a/docs/get_self.md b/docs/get_self.md index ecfb7925..34b96672 100644 --- a/docs/get_self.md +++ b/docs/get_self.md @@ -4,6 +4,9 @@ description: get_self parameters, return type and example --- ## Method: get_self +Gets info about the currently logged-in user. + +No parameters ### Return type: [User object](API_docs/types/User.md) @@ -12,18 +15,7 @@ description: get_self parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { - $this->bot_login($token); -} -if (isset($number)) { - $sentCode = $MadelineProto->phone_login($number); - echo 'Enter the code you received: '; - $code = ''; - for ($x = 0; $x < $sentCode['type']['length']; $x++) { - $code .= fgetc(STDIN); - } - $MadelineProto->complete_phone_login($code); -} +$MadelineProto->start(); $User = $MadelineProto->get_self(); ``` diff --git a/docs/index.md b/docs/index.md index 1017c509..5c60ecc2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -4,7 +4,7 @@ description: PHP implementation of telegram's MTProto protocol --- # MadelineProto, a PHP MTProto telegram client -Do join the official channel, [@MadelineProto](https://t.me/MadelineProto)! +Do join the official channel, [@MadelineProto](https://t.me/MadelineProto) and the [support groups](https://t.me/pwrtelegramgroup)! ## What's this? @@ -13,16 +13,14 @@ This library can be used to easily interact with Telegram **without** the bot AP It can login with a phone number (MTProto API), or with a bot token (MTProto API, **no bot API involved!**). - -## Installation - -Simply download [madeline.php](https://phar.madelineproto.xyz/madeline.php). - ## Getting started ``` ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); -$MadelineProto->phone_login(readline('Enter your phone number: ')); -$authorization = $MadelineProto->complete_phone_login(readline('Enter the phone code: ')); -if ($authorization['_'] === 'account.password') { - $authorization = $MadelineProto->complete_2fa_login(readline('Please enter your password (hint '.$authorization['hint'].'): ')); -} -if ($authorization['_'] === 'account.needSignup') { - $authorization = $MadelineProto->complete_signup(readline('Please enter your first name: '), readline('Please enter your last name (can be empty): ')); -} - -``` - -## Simple example - -``` $MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => "Hi!\nThanks for creating MadelineProto! <3"]); $MadelineProto->channels->joinChannel(['channel' => '@MadelineProto']); ``` +Run this code in a browser or in a console. + ## Documentation -- [Features](https://docs.madelineproto.xyz/FULL_README.html#features) -- [Full method list](https://docs.madelineproto.xyz/API_docs/methods) -- [How to use these methods](https://docs.madelineproto.xyz/FULL_README.html#methods) -- [Clicking inline buttons](https://docs.madelineproto.xyz/FULL_README.html#inline-buttons) -- [Uploading and downloading files](https://docs.madelineproto.xyz/FULL_README.html#uploading-and-downloading-files) -- [Changing settings](https://docs.madelineproto.xyz/FULL_README.html#settings) -- [Update management (getting incoming messages)](https://docs.madelineproto.xyz/FULL_README.html#handling-updates) -- [Using a proxy](https://docs.madelineproto.xyz/FULL_README.html#using-a-proxy) -- [Calls](https://docs.madelineproto.xyz/FULL_README.html#calls) -- [Secret chats](https://docs.madelineproto.xyz/FULL_README.html#secret-chats) -- [Storing sessions](https://docs.madelineproto.xyz/FULL_README.html#storing-sessions) -- [Exceptions](https://docs.madelineproto.xyz/FULL_README.html#exceptions) -- [Lua binding](https://docs.madelineproto.xyz/FULL_README.html#lua-binding) +* [Creating a client](https://docs.madelineproto.xyz/docs/CREATING_A_CLIENT.html) +* [Logging in](https://docs.madelineproto.xyz/docs/LOGIN.html) + * [Automatic](https://docs.madelineproto.xyz/docs/LOGIN.html#automatic) + * [Manual (user)](https://docs.madelineproto.xyz/docs/LOGIN.html#manual-user) + * [Manual (bot)](https://docs.madelineproto.xyz/docs/LOGIN.html#manual-bot) + * [Logout](https://docs.madelineproto.xyz/docs/LOGIN.html#logout) +* [Features](https://docs.madelineproto.xyz/docs/FEATURES.html) +* [Requirements](https://docs.madelineproto.xyz/docs/REQUIREMENTS.html) +* [Installation](https://docs.madelineproto.xyz/docs/INSTALLATION.html) + * [Simple](https://docs.madelineproto.xyz/docs/INSTALLATION.html#simple) + * [Simple (manual)](https://docs.madelineproto.xyz/docs/INSTALLATION.html#simple-manual) + * [Composer from scratch](https://docs.madelineproto.xyz/docs/INSTALLATION.html#composer-from-scratch) + * [Composer from existing project](https://docs.madelineproto.xyz/docs/INSTALLATION.html#composer-from-existing-project) + * [Git](https://docs.madelineproto.xyz/docs/INSTALLATION.html#git) +* [Handling updates](https://docs.madelineproto.xyz/docs/UPDATES.html) + * [Event driven](https://docs.madelineproto.xyz/docs/UPDATES.html#event-handler) + * [Event driven multithreaded](https://docs.madelineproto.xyz/docs/UPDATES.html#multithreaded-event-handler) + * [Webhook](https://docs.madelineproto.xyz/docs/UPDATES.html#webhook) + * [Webhook multithreaded](https://docs.madelineproto.xyz/docs/UPDATES.html#multithreaded-webhook) + * [Long polling (getupdates)](https://docs.madelineproto.xyz/docs/UPDATES.html#getupdates) + * [Callback](https://docs.madelineproto.xyz/docs/UPDATES.html#callback) + * [Callback multithreaded](https://docs.madelineproto.xyz/docs/UPDATES.html#multithreaded-callback) +* [Settings](https://docs.madelineproto.xyz/docs/SETTINGS.html) +* [Getting info about the current user](https://docs.madelineproto.xyz/docs/SELF.html) +* [Exceptions](https://docs.madelineproto.xyz/docs/EXCEPTIONS.html) + * [List of exception types](https://docs.madelineproto.xyz/docs/EXCEPTIONS.html#list-of-exception-types) + * [Pretty TL trace](https://docs.madelineproto.xyz/docs/EXCEPTIONS.html#pretty-tl-trace) + * [Getting the TL trace](https://docs.madelineproto.xyz/docs/EXCEPTIONS.html#getting-the-tl-trace) +* [Logging](https://docs.madelineproto.xyz/docs/LOGGING.html) +* [Using methods](https://docs.madelineproto.xyz/docs/USING_METHODS.html) + * [Peers](https://docs.madelineproto.xyz/docs/USING_METHODS.html#peers) + * [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) +* [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) + * [Photos](https://docs.madelineproto.xyz/docs/FILES.html#inputmediauploadedphoto) + * [Documents](https://docs.madelineproto.xyz/docs/FILES.html#inputmediauploadeddocument) + * [Documents](https://docs.madelineproto.xyz/docs/FILES.html#documentattributefilename-to-send-a-document) + * [Photos as documents](https://docs.madelineproto.xyz/docs/FILES.html#documentattributeimagesize-to-send-a-photo-as-document) + * [GIFs](https://docs.madelineproto.xyz/docs/FILES.html#documentattributeanimated-to-send-a-gif) + * [Videos](https://docs.madelineproto.xyz/docs/FILES.html#documentattributevideo-to-send-a-video) + * [Audio & Voice](https://docs.madelineproto.xyz/docs/FILES.html#documentattributeaudio-to-send-an-audio-file) + * [Uploading files](https://docs.madelineproto.xyz/docs/FILES.html#uploading-files) + * [Bot API file IDs](https://docs.madelineproto.xyz/docs/FILES.html#bot-api-file-ids) + * [Reusing uploaded files](https://docs.madelineproto.xyz/docs/FILES.html#reusing-uploaded-files) + * [Downloading files](https://docs.madelineproto.xyz/docs/FILES.html#downloading-files) + * [Extracting download info](https://docs.madelineproto.xyz/docs/FILES.html#extracting-download-info) + * [Download to directory](https://docs.madelineproto.xyz/docs/FILES.html#download-to-directory) + * [Download to file](https://docs.madelineproto.xyz/docs/FILES.html#download-to-file) + * [Download to browser (streaming)](https://docs.madelineproto.xyz/docs/FILES.html#download-to-browser-with-streams) + * [Getting progress](https://docs.madelineproto.xyz/docs/FILES.html#getting-progress) +* [Getting info about chats](https://docs.madelineproto.xyz/docs/CHAT_INFO.html) + * [Full chat info with full list of participants](https://docs.madelineproto.xyz/docs/CHAT_INFO.html#get_pwr_chat) + * [Full chat info](https://docs.madelineproto.xyz/docs/CHAT_INFO.html#get_full_info) + * [Reduced chat info (very fast)](https://docs.madelineproto.xyz/docs/CHAT_INFO.html#get_info) +* [Getting all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) + * [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) + * [Checking secret chat status](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html#checking-secret-chat-status) + * [Sending secret messages](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html#sending-secret-messages) +* [Lua binding](https://docs.madelineproto.xyz/docs/LUA.html) +* [Using a proxy](https://docs.madelineproto.xyz/docs/PROXY.html) ## Very complex and complete examples diff --git a/docs/request_call.md b/docs/request_call.md new file mode 100644 index 00000000..83339e6d --- /dev/null +++ b/docs/request_call.md @@ -0,0 +1,33 @@ +--- +title: request_secret_chat +description: request_secret_chat parameters, return type and example +--- +## Method: request_secret_chat + + +### Parameters: + +| Name | Type | +|----------|---------------| +|id| A username, a bot API chat id, a tg-cli chat id, a [User](API_docs/types/User.md), an [InputPeer](API_docs/types/InputPeer.md), an [InputUser](API_docs/types/InputUser.md), a [Peer](API_docs/types/Peer.md)| + +### Return type: [\danog\MadelineProto\VoIP object](https://docs.madelineproto.xyz/API_docs/types/PhoneCall.html) + +Returns the call + +### Example: + + +``` +$MadelineProto = new \danog\MadelineProto\API(); +$MadelineProto->start(); + + +if (!file_exists('input.raw')) { + echo 'Downloading example song'.PHP_EOL; + copy('https://github.com/danog/MadelineProto/raw/master/input.raw', 'input.raw'); +} +$call = $MadelineProto->request_call('@danogentili'); +$call->play('input.raw')->then('input.raw')->playOnHold(['input.raw'])->setOutputFile('output.raw'); +``` + diff --git a/docs/request_secret_chat.md b/docs/request_secret_chat.md new file mode 100644 index 00000000..c015ff90 --- /dev/null +++ b/docs/request_secret_chat.md @@ -0,0 +1,27 @@ +--- +title: request_secret_chat +description: request_secret_chat parameters, return type and example +--- +## Method: request_secret_chat + + +### Parameters: + +| Name | Type | +|----------|---------------| +|id| A username, a bot API chat id, a tg-cli chat id, a [User](API_docs/types/User.md), an [InputPeer](API_docs/types/InputPeer.md), an [InputUser](API_docs/types/InputUser.md), a [Peer](API_docs/types/Peer.md)| + +### Return type: Number + +Returns the secret chat ID + +### Example: + + +``` +$MadelineProto = new \danog\MadelineProto\API(); +$MadelineProto->start(); + +$secret_chat_id = $MadelineProto->request_secret_chat('@danogentili'); +``` + diff --git a/index.php b/index.php new file mode 100644 index 00000000..c51f534d --- /dev/null +++ b/index.php @@ -0,0 +1,19 @@ + ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e'], 'updates' => ['handle_updates' => false]]); +$me = $MadelineProto->start(); + +echo 'MadelineProto was started!'; + +if (!$me['bot']) { + $MadelineProto->channels->joinChannel(['channel' => '@MadelineProto']); + $MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'Testing MadelineProto from a browser :D']); + + try { + $MadelineProto->messages->importChatInvite(['hash' => 'https://t.me/joinchat/Bgrajz6K-aJKu0IpGsLpBg']); + } catch (\danog\MadelineProto\RPCErrorException $e) { + } + $MadelineProto->messages->sendMessage(['peer' => 'https://t.me/joinchat/Bgrajz6K-aJKu0IpGsLpBg', 'message' => 'Testing MadelineProto!']); +} diff --git a/multiprocess_bot.php b/multiprocess_bot.php index bd2eb2d9..ec0aa5b0 100644 --- a/multiprocess_bot.php +++ b/multiprocess_bot.php @@ -1,64 +1,74 @@ #!/usr/bin/env php . +*/ set_include_path(get_include_path().':'.realpath(dirname(__FILE__).'/MadelineProto/')); -require 'vendor/autoload.php'; -$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e'], 'connection_settings' => ['all' => ['protocol' => 'tcp_full']]]; - -try { - $MadelineProto = new \danog\MadelineProto\API('bot.madeline'); -} catch (\danog\MadelineProto\Exception $e) { - $MadelineProto = new \danog\MadelineProto\API($settings); - $authorization = $MadelineProto->bot_login(readline('Enter bot token: ')); +/** + * Various ways to load MadelineProto + */ +if (!file_exists(__DIR__.'/vendor/autoload.php')) { + echo 'You did not run composer update, using madeline.php'.PHP_EOL; + if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); + } + include 'madeline.php'; +} else { + require_once 'vendor/autoload.php'; } -$MadelineProto->session = 'bot.madeline'; -$offset = 0; -while (true) { - $updates = $MadelineProto->get_updates(['offset' => $offset, 'limit' => 50, 'timeout' => 0]); - foreach ($updates as $update) { - $offset = $update['update_id'] + 1; - $pid = pcntl_fork(); - if ($pid === -1) { - die('Forking failed'.PHP_EOL); - } elseif ($pid) { - echo "Created child with PID $pid".PHP_EOL; - } else { - switch ($update['update']['_']) { - case 'updateNewMessage': - case 'updateNewChannelMessage': - if (isset($update['update']['message']['out']) && $update['update']['message']['out']) { - continue; - } - $res = 'Hi!'; - try { - $MadelineProto->messages->sendMessage(['peer' => $update['update']['_'] === 'updateNewMessage' ? $update['update']['message']['from_id'] : $update['update']['message']['to_id'], 'message' => $res, 'reply_to_msg_id' => $update['update']['message']['id'], 'entities' => [['_' => 'messageEntityPre', 'offset' => 0, 'length' => strlen($res), 'language' => 'json']]]); - } catch (\danog\MadelineProto\RPCErrorException $e) { - } +class EventHandler extends \danog\MadelineProto\EventHandler +{ + public function onUpdateNewChannelMessage($update) + { + $this->onUpdateNewMessage($update); + } + public function onUpdateNewMessage($update) + { + if (isset($update['message']['out']) && $update['message']['out']) { + return; + } + $res = json_encode($update, JSON_PRETTY_PRINT); + if ($res == '') { + $res = var_export($update, true); + } - try { - if (isset($update['update']['message']['media']) && ($update['update']['message']['media']['_'] == 'messageMediaPhoto' || $update['update']['message']['media']['_'] == 'messageMediaDocument')) { - $file = $MadelineProto->download_to_dir($update['update']['message']['media'], '/usr/share/nginx/html/filesbot'); - $MadelineProto->messages->sendMessage(['peer' => isset($update['update']['message']['from_id']) ? $update['update']['message']['from_id'] : $update['update']['message']['to_id'], 'message' => str_replace('/usr/share/nginx/html', 'http://80.82.79.226', $file), 'reply_to_msg_id' => $update['update']['message']['id'], 'entities' => [['_' => 'messageEntityPre', 'offset' => 0, 'length' => strlen($res), 'language' => 'json']]]); - } - } catch (\danog\MadelineProto\RPCErrorException $e) { - } + try { + $this->messages->sendMessage(['peer' => $update, 'message' => $res, 'reply_to_msg_id' => $update['message']['id'], 'entities' => [['_' => 'messageEntityPre', 'offset' => 0, 'length' => strlen($res), 'language' => 'json']]]); + } catch (\danog\MadelineProto\RPCErrorException $e) { + $this->messages->sendMessage(['peer' => '@danogentili', 'message' => $e->getCode().': '.$e->getMessage().PHP_EOL.$e->getTraceAsString()]); + } + + try { + if (isset($update['message']['media']) && ($update['message']['media']['_'] == 'messageMediaPhoto' || $update['message']['media']['_'] == 'messageMediaDocument')) { + $time = microtime(true); + $file = $this->download_to_dir($update, '/tmp'); + $this->messages->sendMessage(['peer' => $update, 'message' => 'Downloaded to '.$file.' in '.(microtime(true) - $time).' seconds', 'reply_to_msg_id' => $update['message']['id'], 'entities' => [['_' => 'messageEntityPre', 'offset' => 0, 'length' => strlen($res), 'language' => 'json']]]); } - die; + } catch (\danog\MadelineProto\RPCErrorException $e) { + $this->messages->sendMessage(['peer' => '@danogentili', 'message' => $e->getCode().': '.$e->getMessage().PHP_EOL.$e->getTraceAsString()]); } } } + + +$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e'], 'updates' => ['handle_updates' => true]]; //, 'connection_settings' => ['all' => ['test_mode' => true]]]; + +try { + $MadelineProto = new \danog\MadelineProto\API('bot.madeline', $settings); +} catch (\danog\MadelineProto\Exception $e) { + \danog\MadelineProto\Logger::log($e->getMessage()); + unlink('bot.madeline'); + $MadelineProto = new \danog\MadelineProto\API('bot.madeline', $settings); +} +$MadelineProto->start(); +$MadelineProto->setEventHandler('\EventHandler'); +$MadelineProto->loop(-1); diff --git a/old_docs/API_docs_v18/Lang.php b/old_docs/API_docs_v18/Lang.php new file mode 100644 index 00000000..5e9c66e5 --- /dev/null +++ b/old_docs/API_docs_v18/Lang.php @@ -0,0 +1,2142 @@ +. + */ + +namespace danog\MadelineProto; + +class Lang +{ + public static $lang = array ( + 'it' => + array ( + 'phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istanziamento dei DataCenter...', + 'load_rsa' => 'Caricamento delle chiavi RSA...', + 'TL_translation' => 'Translazione degli schemi TL...', + 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', + 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', + 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', + 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', + 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', + 'threading_on' => 'IL THREADING È ABILITATO', + 'socket_reader' => 'Lettore socket su DC %s: ', + 'socket_status_1' => 'CREAZIONE', + 'socket_status_2' => 'INVIO', + 'socket_status_3' => 'ATTESA', + 'socket_status_4' => 'PRONTO', + 'socket_status_5' => 'AVVIATO', + 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', + 'session_corrupted' => 'La sessione si è corrotta!', + 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', + 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', + 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', + 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', + 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', + 'config_updated' => 'La configurazione è stata aggiornata!', + 'length_not_4' => 'La lunghezza non è uguale a 4', + 'length_not_8' => 'La lunghezza non è uguale a 8', + 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', + 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', + 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', + 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', + 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', + 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', + 'file_not_exist' => 'Il file specificato non esiste', + 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', + 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', + 'loading_key' => 'Caricamento della chiave in corso...', + 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', + 'rsa_encrypting' => 'Criptando con chiave RSA...', + 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', + 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', + 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', + 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', + 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', + 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', + 'socket_con_error' => 'Connessione fallita.', + 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', + 'protocol_invalid' => 'È stato fornito un protocollo non valido', + 'nothing_in_socket' => 'Non c\'è niente nel socket!', + 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', + 'no_data_in_socket' => 'Non ci sono dati nel socket!', + 'dc_con_start' => 'Connessione al DC %s in corso...', + 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', + 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', + 'script_not_exist' => 'Lo script fornito non esiste', + 'apifactory_start' => 'Sto avviando la fabbrica di API...', + 'madelineproto_ready' => 'MadelineProto è pronto!', + 'logout_error' => 'C\'è stato un errore durante il logout!', + 'logout_ok' => 'Il logout è stato eseguito correttamente!', + 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', + 'login_ok' => 'Il login è stato eseguito correttamente!', + 'login_user' => 'Sto eseguendo il login come utente normale...', + 'login_bot' => 'Sto eseguendo il login come bot...', + 'login_code_sending' => 'Sto inviando il codice...', + 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', + 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', + 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', + 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', + 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', + 'not_logged_in' => 'Non ho ancora fatto il login!', + 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', + 'signing_up' => 'Mi sto registrando su telegram come utente normale...', + 'signup_ok' => 'Mi sono registrato su Telegram!', + '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', + 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', + 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', + 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', + 'calling_user' => 'Sto chiamando %s...', + 'generating_a' => 'Sto generando a...', + 'generating_g_a' => 'Sto generando g_a...', + 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', + 'accepting_call' => 'Sto accettando una chiamata da %s...', + 'generating_b' => 'Sto generando b...', + 'call_already_accepted' => 'La chiamata %s è già stata accettata.', + 'call_already_declined' => 'La chiamata %s è già stata annullata.', + 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', + 'call_confirming' => 'Sto confermando una chiamata da %s', + 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', + 'call_completing' => 'Sto completando una chiamata da %s...', + 'invalid_g_a' => 'g_a non valido!', + 'fingerprint_invalid' => 'fingerprint della chiave non valido!', + 'call_discarding' => 'Sto rifiutando la chiamata %s...', + 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', + 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', + 'TL_loading' => 'Sto caricando gli schemi TL...', + 'file_parsing' => 'Leggendo %s...', + 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', + 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', + 'translating_obj' => 'Traducendo gli oggetti...', + 'translating_methods' => 'Traducendo i metodi...', + 'bool_error' => 'Non sono riuscito ad estrarre un booleano', + 'not_numeric' => 'Il valore fornito non è numerico', + 'long_not_16' => 'Il valore fornito non è lungo 16 byte', + 'long_not_32' => 'Il valore fornito non è lungo 32 byte', + 'long_not_64' => 'Il valore fornito non è lungo 64 byte', + 'array_invalid' => 'Il valore fornito non è un array', + 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', + 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', + 'method_not_found' => 'Impossibile trovare il seguente metodo: ', + 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', + 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', + 'stream_handle_invalid' => 'Il valore fornito non è uno stream', + 'length_too_big' => 'Il valore fornito è troppo lungo', + 'deserialize_not_str' => 'Il valore generato non è una stringa', + 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', + 'vector_invalid' => 'ID vettore non valido: ', + 'constructor_not_found' => 'Costruttore non trovato per tipo: ', + 'rand_bytes_too_small' => 'random_bytes è troppo corto!', + 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', + 'non_text_conversion' => 'Non posso ancora convertire messaggi media', + 'last_byte_invalid' => 'L\'ultimo byte non è valido', + 'file_type_invalid' => 'È stato fornito un tipo file errato', + 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', + 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', + 'shutting_down_reader_pool' => 'Chisura pool di lettura', + 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', + 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', + 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', + 'msg_data_length_too_big' => 'message_data_length è troppo grande', + 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', + 'msg_key_mismatch' => 'msg_key non valido', + 'rand_bytes_too_short' => 'random_bytes è troppo corto!', + 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', + 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', + 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', + 'req_pq' => 'Sto richiedendo pq...', + 'done' => 'Fatto!', + 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', + 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!', + ), + 'en' => + array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + ), +); + + // THIS WILL BE OVERWRITTEN BY $lang["en"] + public static $current_lang = array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', +); +} \ No newline at end of file diff --git a/old_docs/API_docs_v18/constructors/chatParticipants.md b/old_docs/API_docs_v18/constructors/chatParticipants.md index dcbf547e..8d10057c 100644 --- a/old_docs/API_docs_v18/constructors/chatParticipants.md +++ b/old_docs/API_docs_v18/constructors/chatParticipants.md @@ -24,7 +24,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'admin_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'admin_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/config.md b/old_docs/API_docs_v18/constructors/config.md index 4a65cbce..b39f7ad6 100644 --- a/old_docs/API_docs_v18/constructors/config.md +++ b/old_docs/API_docs_v18/constructors/config.md @@ -26,7 +26,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_size_max' => int, 'broadcast_size_max' => int]; +$config = ['_' => 'config', 'date' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], 'chat_size_max' => int, 'broadcast_size_max' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/contacts_blocked.md b/old_docs/API_docs_v18/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v18/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v18/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v18/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v18/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v18/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/contacts_contacts.md b/old_docs/API_docs_v18/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v18/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v18/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/contacts_found.md b/old_docs/API_docs_v18/constructors/contacts_found.md index 20f6fd7b..4b685825 100644 --- a/old_docs/API_docs_v18/constructors/contacts_found.md +++ b/old_docs/API_docs_v18/constructors/contacts_found.md @@ -22,7 +22,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [ContactFound], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [ContactFound, ContactFound], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/contacts_importedContacts.md b/old_docs/API_docs_v18/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v18/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v18/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/contacts_suggested.md b/old_docs/API_docs_v18/constructors/contacts_suggested.md index 38db68c5..1ee96769 100644 --- a/old_docs/API_docs_v18/constructors/contacts_suggested.md +++ b/old_docs/API_docs_v18/constructors/contacts_suggested.md @@ -22,7 +22,7 @@ description: contacts_suggested attributes, type and example ### Example: ``` -$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested], 'users' => [User]]; +$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested, ContactSuggested], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/inputChatPhoto.md b/old_docs/API_docs_v18/constructors/inputChatPhoto.md index 4cd81a7c..f10e2da3 100644 --- a/old_docs/API_docs_v18/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v18/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v18/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v18/constructors/inputChatUploadedPhoto.md index 3d88ac48..13857e71 100644 --- a/old_docs/API_docs_v18/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v18/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v18/constructors/inputMediaDocument.md b/old_docs/API_docs_v18/constructors/inputMediaDocument.md index 1859313a..034a28bd 100644 --- a/old_docs/API_docs_v18/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v18/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v18/constructors/inputMediaPhoto.md b/old_docs/API_docs_v18/constructors/inputMediaPhoto.md index 7ac93db7..5659a532 100644 --- a/old_docs/API_docs_v18/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v18/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v18/constructors/inputMediaUploadedAudio.md b/old_docs/API_docs_v18/constructors/inputMediaUploadedAudio.md index bbbe18a2..8fe9138e 100644 --- a/old_docs/API_docs_v18/constructors/inputMediaUploadedAudio.md +++ b/old_docs/API_docs_v18/constructors/inputMediaUploadedAudio.md @@ -11,9 +11,9 @@ description: inputMediaUploadedAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v18/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v18/constructors/inputMediaUploadedDocument.md index 8b02ee01..e98723c9 100644 --- a/old_docs/API_docs_v18/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v18/constructors/inputMediaUploadedDocument.md @@ -11,9 +11,9 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |file\_name|[string](../types/string.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v18/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v18/constructors/inputMediaUploadedPhoto.md index 73e30d41..35737207 100644 --- a/old_docs/API_docs_v18/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v18/constructors/inputMediaUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| diff --git a/old_docs/API_docs_v18/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v18/constructors/inputMediaUploadedThumbDocument.md index 4a4d06e2..f50af8bd 100644 --- a/old_docs/API_docs_v18/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v18/constructors/inputMediaUploadedThumbDocument.md @@ -11,10 +11,10 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| |file\_name|[string](../types/string.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v18/constructors/inputMediaUploadedThumbVideo.md b/old_docs/API_docs_v18/constructors/inputMediaUploadedThumbVideo.md index 17e50481..6f3e8bea 100644 --- a/old_docs/API_docs_v18/constructors/inputMediaUploadedThumbVideo.md +++ b/old_docs/API_docs_v18/constructors/inputMediaUploadedThumbVideo.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v18/constructors/inputMediaUploadedVideo.md b/old_docs/API_docs_v18/constructors/inputMediaUploadedVideo.md index 574c090a..8356008d 100644 --- a/old_docs/API_docs_v18/constructors/inputMediaUploadedVideo.md +++ b/old_docs/API_docs_v18/constructors/inputMediaUploadedVideo.md @@ -11,11 +11,11 @@ description: inputMediaUploadedVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v18/constructors/inputNotifyPeer.md b/old_docs/API_docs_v18/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v18/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v18/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v18/constructors/messageActionChatCreate.md b/old_docs/API_docs_v18/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v18/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v18/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/messages_chatFull.md b/old_docs/API_docs_v18/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v18/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v18/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/messages_chats.md b/old_docs/API_docs_v18/constructors/messages_chats.md index b9f9561e..f0a3e24d 100644 --- a/old_docs/API_docs_v18/constructors/messages_chats.md +++ b/old_docs/API_docs_v18/constructors/messages_chats.md @@ -22,7 +22,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat], 'users' => [User]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/messages_dialogs.md b/old_docs/API_docs_v18/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v18/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v18/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v18/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v18/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v18/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v18/constructors/messages_messages.md b/old_docs/API_docs_v18/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v18/constructors/messages_messages.md +++ b/old_docs/API_docs_v18/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/messages_messagesSlice.md b/old_docs/API_docs_v18/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v18/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v18/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/messages_sentMessageLink.md b/old_docs/API_docs_v18/constructors/messages_sentMessageLink.md index 59b6b217..f549ecae 100644 --- a/old_docs/API_docs_v18/constructors/messages_sentMessageLink.md +++ b/old_docs/API_docs_v18/constructors/messages_sentMessageLink.md @@ -25,7 +25,7 @@ description: messages_sentMessageLink attributes, type and example ### Example: ``` -$messages_sentMessageLink = ['_' => 'messages.sentMessageLink', 'id' => int, 'date' => int, 'pts' => int, 'seq' => int, 'links' => [contacts_Link]]; +$messages_sentMessageLink = ['_' => 'messages.sentMessageLink', 'id' => int, 'date' => int, 'pts' => int, 'seq' => int, 'links' => [contacts_Link, contacts_Link]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/messages_statedMessage.md b/old_docs/API_docs_v18/constructors/messages_statedMessage.md index ecb4672e..eee01edb 100644 --- a/old_docs/API_docs_v18/constructors/messages_statedMessage.md +++ b/old_docs/API_docs_v18/constructors/messages_statedMessage.md @@ -25,7 +25,7 @@ description: messages_statedMessage attributes, type and example ### Example: ``` -$messages_statedMessage = ['_' => 'messages.statedMessage', 'message' => Message, 'chats' => [Chat], 'users' => [User], 'pts' => int, 'seq' => int]; +$messages_statedMessage = ['_' => 'messages.statedMessage', 'message' => Message, 'chats' => [Chat, Chat], 'users' => [User, User], 'pts' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/messages_statedMessageLink.md b/old_docs/API_docs_v18/constructors/messages_statedMessageLink.md index ccfab334..5f364b79 100644 --- a/old_docs/API_docs_v18/constructors/messages_statedMessageLink.md +++ b/old_docs/API_docs_v18/constructors/messages_statedMessageLink.md @@ -26,7 +26,7 @@ description: messages_statedMessageLink attributes, type and example ### Example: ``` -$messages_statedMessageLink = ['_' => 'messages.statedMessageLink', 'message' => Message, 'chats' => [Chat], 'users' => [User], 'links' => [contacts_Link], 'pts' => int, 'seq' => int]; +$messages_statedMessageLink = ['_' => 'messages.statedMessageLink', 'message' => Message, 'chats' => [Chat, Chat], 'users' => [User, User], 'links' => [contacts_Link, contacts_Link], 'pts' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/messages_statedMessages.md b/old_docs/API_docs_v18/constructors/messages_statedMessages.md index 0e72c5c9..9f039651 100644 --- a/old_docs/API_docs_v18/constructors/messages_statedMessages.md +++ b/old_docs/API_docs_v18/constructors/messages_statedMessages.md @@ -25,7 +25,7 @@ description: messages_statedMessages attributes, type and example ### Example: ``` -$messages_statedMessages = ['_' => 'messages.statedMessages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'pts' => int, 'seq' => int]; +$messages_statedMessages = ['_' => 'messages.statedMessages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User], 'pts' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/messages_statedMessagesLinks.md b/old_docs/API_docs_v18/constructors/messages_statedMessagesLinks.md index 28c4f0ca..3cf817c2 100644 --- a/old_docs/API_docs_v18/constructors/messages_statedMessagesLinks.md +++ b/old_docs/API_docs_v18/constructors/messages_statedMessagesLinks.md @@ -26,7 +26,7 @@ description: messages_statedMessagesLinks attributes, type and example ### Example: ``` -$messages_statedMessagesLinks = ['_' => 'messages.statedMessagesLinks', 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'links' => [contacts_Link], 'pts' => int, 'seq' => int]; +$messages_statedMessagesLinks = ['_' => 'messages.statedMessagesLinks', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User], 'links' => [contacts_Link, contacts_Link], 'pts' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/photo.md b/old_docs/API_docs_v18/constructors/photo.md index c947cc45..318fcae0 100644 --- a/old_docs/API_docs_v18/constructors/photo.md +++ b/old_docs/API_docs_v18/constructors/photo.md @@ -27,7 +27,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'user_id' => int, 'date' => int, 'caption' => 'string', 'geo' => GeoPoint, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'user_id' => int, 'date' => int, 'caption' => 'string', 'geo' => GeoPoint, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/photos_photo.md b/old_docs/API_docs_v18/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v18/constructors/photos_photo.md +++ b/old_docs/API_docs_v18/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/photos_photos.md b/old_docs/API_docs_v18/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v18/constructors/photos_photos.md +++ b/old_docs/API_docs_v18/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/photos_photosSlice.md b/old_docs/API_docs_v18/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v18/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v18/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/updateDcOptions.md b/old_docs/API_docs_v18/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v18/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v18/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/updateDeleteMessages.md b/old_docs/API_docs_v18/constructors/updateDeleteMessages.md index 1c1d8a0f..8e52b1ee 100644 --- a/old_docs/API_docs_v18/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v18/constructors/updateDeleteMessages.md @@ -22,7 +22,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/updateReadMessages.md b/old_docs/API_docs_v18/constructors/updateReadMessages.md index 5c8dbdb7..677d03e8 100644 --- a/old_docs/API_docs_v18/constructors/updateReadMessages.md +++ b/old_docs/API_docs_v18/constructors/updateReadMessages.md @@ -22,7 +22,7 @@ description: updateReadMessages attributes, type and example ### Example: ``` -$updateReadMessages = ['_' => 'updateReadMessages', 'messages' => [int], 'pts' => int]; +$updateReadMessages = ['_' => 'updateReadMessages', 'messages' => [int, int], 'pts' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/updates.md b/old_docs/API_docs_v18/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v18/constructors/updates.md +++ b/old_docs/API_docs_v18/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/constructors/updatesCombined.md b/old_docs/API_docs_v18/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v18/constructors/updatesCombined.md +++ b/old_docs/API_docs_v18/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v18/constructors/updates_difference.md b/old_docs/API_docs_v18/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v18/constructors/updates_difference.md +++ b/old_docs/API_docs_v18/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v18/constructors/updates_differenceSlice.md b/old_docs/API_docs_v18/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v18/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v18/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v18/constructors/wallPaper.md b/old_docs/API_docs_v18/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v18/constructors/wallPaper.md +++ b/old_docs/API_docs_v18/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v18/methods/README.md b/old_docs/API_docs_v18/methods/README.md index 9fb3a43d..3e18b33f 100644 --- a/old_docs/API_docs_v18/methods/README.md +++ b/old_docs/API_docs_v18/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v18/methods/account_checkUsername.md b/old_docs/API_docs_v18/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v18/methods/account_checkUsername.md +++ b/old_docs/API_docs_v18/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v18/methods/account_getNotifySettings.md b/old_docs/API_docs_v18/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v18/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v18/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v18/methods/account_getWallPapers.md b/old_docs/API_docs_v18/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v18/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v18/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v18/methods/account_registerDevice.md b/old_docs/API_docs_v18/methods/account_registerDevice.md index cfa1546c..5c86d74c 100644 --- a/old_docs/API_docs_v18/methods/account_registerDevice.md +++ b/old_docs/API_docs_v18/methods/account_registerDevice.md @@ -1,22 +1,24 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|app\_sandbox|[Bool](../types/Bool.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| +|device\_model|[string](../types/string.md) | Yes|| +|system\_version|[string](../types/string.md) | Yes|| +|app\_version|[string](../types/string.md) | Yes|| +|app\_sandbox|[Bool](../types/Bool.md) | Yes|Should the app run in a sandbox?| +|lang\_code|[string](../types/string.md) | Yes|| ### Return type: [Bool](../types/Bool.md) @@ -35,13 +37,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v18/methods/account_resetNotifySettings.md b/old_docs/API_docs_v18/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v18/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v18/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v18/methods/account_unregisterDevice.md b/old_docs/API_docs_v18/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v18/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v18/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v18/methods/account_updateNotifySettings.md b/old_docs/API_docs_v18/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v18/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v18/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v18/methods/account_updateProfile.md b/old_docs/API_docs_v18/methods/account_updateProfile.md index 123ed13a..7f8d80c5 100644 --- a/old_docs/API_docs_v18/methods/account_updateProfile.md +++ b/old_docs/API_docs_v18/methods/account_updateProfile.md @@ -1,17 +1,19 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Yes| -|last\_name|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Yes|The first name| +|last\_name|[string](../types/string.md) | Yes|The last name| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); ``` diff --git a/old_docs/API_docs_v18/methods/account_updateStatus.md b/old_docs/API_docs_v18/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v18/methods/account_updateStatus.md +++ b/old_docs/API_docs_v18/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v18/methods/account_updateUsername.md b/old_docs/API_docs_v18/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v18/methods/account_updateUsername.md +++ b/old_docs/API_docs_v18/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v18/methods/auth_checkPhone.md b/old_docs/API_docs_v18/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v18/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v18/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v18/methods/auth_exportAuthorization.md b/old_docs/API_docs_v18/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v18/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v18/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v18/methods/auth_importAuthorization.md b/old_docs/API_docs_v18/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v18/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v18/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v18/methods/auth_logOut.md b/old_docs/API_docs_v18/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v18/methods/auth_logOut.md +++ b/old_docs/API_docs_v18/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v18/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v18/methods/auth_sendCall.md b/old_docs/API_docs_v18/methods/auth_sendCall.md index 386cfad4..94ed6b7f 100644 --- a/old_docs/API_docs_v18/methods/auth_sendCall.md +++ b/old_docs/API_docs_v18/methods/auth_sendCall.md @@ -23,16 +23,18 @@ description: auth.sendCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v18/methods/auth_sendCode.md b/old_docs/API_docs_v18/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v18/methods/auth_sendCode.md +++ b/old_docs/API_docs_v18/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v18/methods/auth_sendInvites.md b/old_docs/API_docs_v18/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v18/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v18/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v18/methods/auth_sendSms.md b/old_docs/API_docs_v18/methods/auth_sendSms.md index 9a214e65..0c4a7343 100644 --- a/old_docs/API_docs_v18/methods/auth_sendSms.md +++ b/old_docs/API_docs_v18/methods/auth_sendSms.md @@ -23,16 +23,18 @@ description: auth.sendSms parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v18/methods/auth_signIn.md b/old_docs/API_docs_v18/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v18/methods/auth_signIn.md +++ b/old_docs/API_docs_v18/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v18/methods/auth_signUp.md b/old_docs/API_docs_v18/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v18/methods/auth_signUp.md +++ b/old_docs/API_docs_v18/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v18/methods/contacts_block.md b/old_docs/API_docs_v18/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v18/methods/contacts_block.md +++ b/old_docs/API_docs_v18/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v18/methods/contacts_deleteContact.md b/old_docs/API_docs_v18/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v18/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v18/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v18/methods/contacts_deleteContacts.md b/old_docs/API_docs_v18/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v18/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v18/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v18/methods/contacts_exportCard.md b/old_docs/API_docs_v18/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v18/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v18/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v18/methods/contacts_getBlocked.md b/old_docs/API_docs_v18/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v18/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v18/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v18/methods/contacts_getContacts.md b/old_docs/API_docs_v18/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v18/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v18/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v18/methods/contacts_getStatuses.md b/old_docs/API_docs_v18/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v18/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v18/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v18/methods/contacts_getSuggested.md b/old_docs/API_docs_v18/methods/contacts_getSuggested.md index 2059c01b..7249b1f2 100644 --- a/old_docs/API_docs_v18/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v18/methods/contacts_getSuggested.md @@ -22,16 +22,18 @@ description: contacts.getSuggested parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); ``` diff --git a/old_docs/API_docs_v18/methods/contacts_importCard.md b/old_docs/API_docs_v18/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v18/methods/contacts_importCard.md +++ b/old_docs/API_docs_v18/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v18/methods/contacts_importContacts.md b/old_docs/API_docs_v18/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v18/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v18/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v18/methods/contacts_search.md b/old_docs/API_docs_v18/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v18/methods/contacts_search.md +++ b/old_docs/API_docs_v18/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v18/methods/contacts_unblock.md b/old_docs/API_docs_v18/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v18/methods/contacts_unblock.md +++ b/old_docs/API_docs_v18/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v18/methods/help_getAppUpdate.md b/old_docs/API_docs_v18/methods/help_getAppUpdate.md index 7b3bdde9..f9b06641 100644 --- a/old_docs/API_docs_v18/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v18/methods/help_getAppUpdate.md @@ -25,13 +25,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v18/methods/help_getConfig.md b/old_docs/API_docs_v18/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v18/methods/help_getConfig.md +++ b/old_docs/API_docs_v18/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v18/methods/help_getInviteText.md b/old_docs/API_docs_v18/methods/help_getInviteText.md index 40251dd5..bac72a15 100644 --- a/old_docs/API_docs_v18/methods/help_getInviteText.md +++ b/old_docs/API_docs_v18/methods/help_getInviteText.md @@ -22,13 +22,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v18/methods/help_getNearestDc.md b/old_docs/API_docs_v18/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v18/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v18/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v18/methods/help_getSupport.md b/old_docs/API_docs_v18/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v18/methods/help_getSupport.md +++ b/old_docs/API_docs_v18/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v18/methods/help_saveAppLog.md b/old_docs/API_docs_v18/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v18/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v18/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v18/methods/initConnection.md b/old_docs/API_docs_v18/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v18/methods/initConnection.md +++ b/old_docs/API_docs_v18/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v18/methods/invokeAfterMsg.md b/old_docs/API_docs_v18/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v18/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v18/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v18/methods/invokeAfterMsgs.md b/old_docs/API_docs_v18/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v18/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v18/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v18/methods/invokeWithLayer18.md b/old_docs/API_docs_v18/methods/invokeWithLayer18.md index c1a0c822..5b751b71 100644 --- a/old_docs/API_docs_v18/methods/invokeWithLayer18.md +++ b/old_docs/API_docs_v18/methods/invokeWithLayer18.md @@ -22,16 +22,18 @@ description: invokeWithLayer18 parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer18(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_acceptEncryption.md b/old_docs/API_docs_v18/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v18/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v18/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v18/methods/messages_addChatUser.md b/old_docs/API_docs_v18/methods/messages_addChatUser.md index fd75432b..27daee60 100644 --- a/old_docs/API_docs_v18/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v18/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_createChat.md b/old_docs/API_docs_v18/methods/messages_createChat.md index 82527c2a..9151f426 100644 --- a/old_docs/API_docs_v18/methods/messages_createChat.md +++ b/old_docs/API_docs_v18/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_StatedMessage = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_StatedMessage = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v18/methods/messages_deleteChatUser.md b/old_docs/API_docs_v18/methods/messages_deleteChatUser.md index 9764c4a4..d53343b8 100644 --- a/old_docs/API_docs_v18/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v18/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_StatedMessage](../types/messages_StatedMessage.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_deleteHistory.md b/old_docs/API_docs_v18/methods/messages_deleteHistory.md index 50179e3c..8e24ee79 100644 --- a/old_docs/API_docs_v18/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v18/methods/messages_deleteHistory.md @@ -10,7 +10,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_deleteMessages.md b/old_docs/API_docs_v18/methods/messages_deleteMessages.md index a29c71e7..6e57455d 100644 --- a/old_docs/API_docs_v18/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v18/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v18/methods/messages_discardEncryption.md b/old_docs/API_docs_v18/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v18/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v18/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v18/methods/messages_editChatPhoto.md b/old_docs/API_docs_v18/methods/messages_editChatPhoto.md index b041acb9..d0e0624a 100644 --- a/old_docs/API_docs_v18/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v18/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_editChatTitle.md b/old_docs/API_docs_v18/methods/messages_editChatTitle.md index b0880792..addff8ae 100644 --- a/old_docs/API_docs_v18/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v18/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_forwardMessage.md b/old_docs/API_docs_v18/methods/messages_forwardMessage.md index bdd480a3..25d09df3 100644 --- a/old_docs/API_docs_v18/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v18/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_forwardMessages.md b/old_docs/API_docs_v18/methods/messages_forwardMessages.md index 6f31e605..5b583d07 100644 --- a/old_docs/API_docs_v18/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v18/methods/messages_forwardMessages.md @@ -10,7 +10,7 @@ description: messages.forwardMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -51,18 +51,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_StatedMessages = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_StatedMessages = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v18/methods/messages_getChats.md b/old_docs/API_docs_v18/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v18/methods/messages_getChats.md +++ b/old_docs/API_docs_v18/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v18/methods/messages_getDhConfig.md b/old_docs/API_docs_v18/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v18/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v18/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_getDialogs.md b/old_docs/API_docs_v18/methods/messages_getDialogs.md index 6295612b..0cd10d8c 100644 --- a/old_docs/API_docs_v18/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v18/methods/messages_getDialogs.md @@ -34,13 +34,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_getFullChat.md b/old_docs/API_docs_v18/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v18/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v18/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v18/methods/messages_getHistory.md b/old_docs/API_docs_v18/methods/messages_getHistory.md index 156d6bef..e3eef289 100644 --- a/old_docs/API_docs_v18/methods/messages_getHistory.md +++ b/old_docs/API_docs_v18/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -37,13 +37,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_getMessages.md b/old_docs/API_docs_v18/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v18/methods/messages_getMessages.md +++ b/old_docs/API_docs_v18/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_readHistory.md b/old_docs/API_docs_v18/methods/messages_readHistory.md index 1ebbd6b7..08eca081 100644 --- a/old_docs/API_docs_v18/methods/messages_readHistory.md +++ b/old_docs/API_docs_v18/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |offset|[int](../types/int.md) | Yes| |read\_contents|[Bool](../types/Bool.md) | Yes| @@ -33,13 +33,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, 'offset' => int, 'read_contents' => Bool, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_readMessageContents.md b/old_docs/API_docs_v18/methods/messages_readMessageContents.md index 535d0425..70d5d48d 100644 --- a/old_docs/API_docs_v18/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v18/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v18/methods/messages_receivedMessages.md b/old_docs/API_docs_v18/methods/messages_receivedMessages.md index bd47c49c..86e2812d 100644 --- a/old_docs/API_docs_v18/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v18/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_receivedQueue.md b/old_docs/API_docs_v18/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v18/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v18/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_reportSpam.md b/old_docs/API_docs_v18/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v18/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v18/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_requestEncryption.md b/old_docs/API_docs_v18/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v18/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v18/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v18/methods/messages_search.md b/old_docs/API_docs_v18/methods/messages_search.md index f6aa515b..11b968bf 100644 --- a/old_docs/API_docs_v18/methods/messages_search.md +++ b/old_docs/API_docs_v18/methods/messages_search.md @@ -10,7 +10,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -42,13 +42,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_sendBroadcast.md b/old_docs/API_docs_v18/methods/messages_sendBroadcast.md index 4b0f8f0d..fcc00263 100644 --- a/old_docs/API_docs_v18/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v18/methods/messages_sendBroadcast.md @@ -10,9 +10,9 @@ description: messages.sendBroadcast parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|contacts|Array of [InputUser](../types/InputUser.md) | Yes| +|contacts|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |message|[string](../types/string.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [messages\_StatedMessages](../types/messages_StatedMessages.md) @@ -24,18 +24,20 @@ description: messages.sendBroadcast parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_StatedMessages = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser], 'message' => 'string', 'media' => InputMedia, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_StatedMessages = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v18/methods/messages_sendEncrypted.md b/old_docs/API_docs_v18/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_sendMedia.md b/old_docs/API_docs_v18/methods/messages_sendMedia.md index 3a1a8e40..72c3f1c2 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v18/methods/messages_sendMedia.md @@ -10,8 +10,8 @@ description: messages.sendMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [messages\_StatedMessage](../types/messages_StatedMessage.md) @@ -51,16 +51,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->sendMedia(['peer' => InputPeer, 'media' => InputMedia, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_sendMessage.md b/old_docs/API_docs_v18/methods/messages_sendMessage.md index cd30c54a..01c61e7e 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v18/methods/messages_sendMessage.md @@ -10,7 +10,7 @@ description: messages.sendMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |message|[string](../types/string.md) | Yes| @@ -42,6 +42,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -49,16 +50,18 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentMessage = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v18/methods/messages_setTyping.md b/old_docs/API_docs_v18/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v18/methods/messages_setTyping.md +++ b/old_docs/API_docs_v18/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v18/methods/photos_deletePhotos.md b/old_docs/API_docs_v18/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v18/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v18/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v18/methods/photos_getUserPhotos.md b/old_docs/API_docs_v18/methods/photos_getUserPhotos.md index 7f1c642f..76046e95 100644 --- a/old_docs/API_docs_v18/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v18/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v18/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v18/methods/photos_updateProfilePhoto.md index d3acbb56..fbe84e26 100644 --- a/old_docs/API_docs_v18/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v18/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -23,13 +23,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md index de7c2281..303ed4ea 100644 --- a/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -35,13 +35,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v18/methods/updates_getDifference.md b/old_docs/API_docs_v18/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v18/methods/updates_getDifference.md +++ b/old_docs/API_docs_v18/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v18/methods/updates_getState.md b/old_docs/API_docs_v18/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v18/methods/updates_getState.md +++ b/old_docs/API_docs_v18/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v18/methods/upload_getFile.md b/old_docs/API_docs_v18/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v18/methods/upload_getFile.md +++ b/old_docs/API_docs_v18/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v18/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v18/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v18/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v18/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v18/methods/upload_saveFilePart.md b/old_docs/API_docs_v18/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v18/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v18/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v18/methods/users_getFullUser.md b/old_docs/API_docs_v18/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v18/methods/users_getFullUser.md +++ b/old_docs/API_docs_v18/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v18/methods/users_getUsers.md b/old_docs/API_docs_v18/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v18/methods/users_getUsers.md +++ b/old_docs/API_docs_v18/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v18/types/Chat.md b/old_docs/API_docs_v18/types/Chat.md index 11a4d3d8..74fbfbfe 100644 --- a/old_docs/API_docs_v18/types/Chat.md +++ b/old_docs/API_docs_v18/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v18/types/InputDocument.md b/old_docs/API_docs_v18/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v18/types/InputDocument.md +++ b/old_docs/API_docs_v18/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v18/types/InputEncryptedChat.md b/old_docs/API_docs_v18/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v18/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v18/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v18/types/InputEncryptedFile.md b/old_docs/API_docs_v18/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v18/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v18/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v18/types/InputFile.md b/old_docs/API_docs_v18/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v18/types/InputFile.md +++ b/old_docs/API_docs_v18/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v18/types/InputMedia.md b/old_docs/API_docs_v18/types/InputMedia.md index 91dacd19..bf8f80d6 100644 --- a/old_docs/API_docs_v18/types/InputMedia.md +++ b/old_docs/API_docs_v18/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v18/types/InputPeer.md b/old_docs/API_docs_v18/types/InputPeer.md index d7d075b0..489fb96d 100644 --- a/old_docs/API_docs_v18/types/InputPeer.md +++ b/old_docs/API_docs_v18/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v18/types/InputPhoto.md b/old_docs/API_docs_v18/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v18/types/InputPhoto.md +++ b/old_docs/API_docs_v18/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v18/types/InputUser.md b/old_docs/API_docs_v18/types/InputUser.md index 4639f1a1..b2886be9 100644 --- a/old_docs/API_docs_v18/types/InputUser.md +++ b/old_docs/API_docs_v18/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v18/types/Peer.md b/old_docs/API_docs_v18/types/Peer.md index 5dcdb9b0..20253dd9 100644 --- a/old_docs/API_docs_v18/types/Peer.md +++ b/old_docs/API_docs_v18/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v18/types/User.md b/old_docs/API_docs_v18/types/User.md index 7c40bceb..e4d05518 100644 --- a/old_docs/API_docs_v18/types/User.md +++ b/old_docs/API_docs_v18/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v23/constructors/account_privacyRules.md b/old_docs/API_docs_v23/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v23/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v23/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/chatParticipants.md b/old_docs/API_docs_v23/constructors/chatParticipants.md index dcbf547e..8d10057c 100644 --- a/old_docs/API_docs_v23/constructors/chatParticipants.md +++ b/old_docs/API_docs_v23/constructors/chatParticipants.md @@ -24,7 +24,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'admin_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'admin_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/config.md b/old_docs/API_docs_v23/constructors/config.md index 155c43ae..b4330b9b 100644 --- a/old_docs/API_docs_v23/constructors/config.md +++ b/old_docs/API_docs_v23/constructors/config.md @@ -29,7 +29,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_big_size' => int, 'chat_size_max' => int, 'broadcast_size_max' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], 'chat_big_size' => int, 'chat_size_max' => int, 'broadcast_size_max' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/contacts_blocked.md b/old_docs/API_docs_v23/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v23/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v23/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v23/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v23/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v23/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/contacts_contacts.md b/old_docs/API_docs_v23/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v23/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v23/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/contacts_found.md b/old_docs/API_docs_v23/constructors/contacts_found.md index 20f6fd7b..4b685825 100644 --- a/old_docs/API_docs_v23/constructors/contacts_found.md +++ b/old_docs/API_docs_v23/constructors/contacts_found.md @@ -22,7 +22,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [ContactFound], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [ContactFound, ContactFound], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/contacts_importedContacts.md b/old_docs/API_docs_v23/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v23/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v23/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/contacts_suggested.md b/old_docs/API_docs_v23/constructors/contacts_suggested.md index 38db68c5..1ee96769 100644 --- a/old_docs/API_docs_v23/constructors/contacts_suggested.md +++ b/old_docs/API_docs_v23/constructors/contacts_suggested.md @@ -22,7 +22,7 @@ description: contacts_suggested attributes, type and example ### Example: ``` -$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested], 'users' => [User]]; +$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested, ContactSuggested], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/document.md b/old_docs/API_docs_v23/constructors/document.md index 3a584537..21dc39bb 100644 --- a/old_docs/API_docs_v23/constructors/document.md +++ b/old_docs/API_docs_v23/constructors/document.md @@ -28,7 +28,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/documentAttributeAudio.md b/old_docs/API_docs_v23/constructors/documentAttributeAudio.md index bed9cd5d..3b404b39 100644 --- a/old_docs/API_docs_v23/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v23/constructors/documentAttributeAudio.md @@ -11,7 +11,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v23/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v23/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v23/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v23/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v23/constructors/documentAttributeVideo.md b/old_docs/API_docs_v23/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v23/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v23/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v23/constructors/inputChatPhoto.md b/old_docs/API_docs_v23/constructors/inputChatPhoto.md index 4cd81a7c..f10e2da3 100644 --- a/old_docs/API_docs_v23/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v23/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v23/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v23/constructors/inputChatUploadedPhoto.md index 3d88ac48..13857e71 100644 --- a/old_docs/API_docs_v23/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v23/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v23/constructors/inputMediaDocument.md b/old_docs/API_docs_v23/constructors/inputMediaDocument.md index 1859313a..034a28bd 100644 --- a/old_docs/API_docs_v23/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v23/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v23/constructors/inputMediaPhoto.md b/old_docs/API_docs_v23/constructors/inputMediaPhoto.md index 7ac93db7..5659a532 100644 --- a/old_docs/API_docs_v23/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v23/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v23/constructors/inputMediaUploadedAudio.md b/old_docs/API_docs_v23/constructors/inputMediaUploadedAudio.md index bbbe18a2..8fe9138e 100644 --- a/old_docs/API_docs_v23/constructors/inputMediaUploadedAudio.md +++ b/old_docs/API_docs_v23/constructors/inputMediaUploadedAudio.md @@ -11,9 +11,9 @@ description: inputMediaUploadedAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v23/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v23/constructors/inputMediaUploadedDocument.md index 8ce039fa..67edf365 100644 --- a/old_docs/API_docs_v23/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v23/constructors/inputMediaUploadedDocument.md @@ -11,8 +11,8 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -23,7 +23,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v23/constructors/inputMediaUploadedPhoto.md index 73e30d41..35737207 100644 --- a/old_docs/API_docs_v23/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v23/constructors/inputMediaUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| diff --git a/old_docs/API_docs_v23/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v23/constructors/inputMediaUploadedThumbDocument.md index d6f3a647..13b93260 100644 --- a/old_docs/API_docs_v23/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v23/constructors/inputMediaUploadedThumbDocument.md @@ -11,9 +11,9 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -24,7 +24,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/inputMediaUploadedThumbVideo.md b/old_docs/API_docs_v23/constructors/inputMediaUploadedThumbVideo.md index 17e50481..6f3e8bea 100644 --- a/old_docs/API_docs_v23/constructors/inputMediaUploadedThumbVideo.md +++ b/old_docs/API_docs_v23/constructors/inputMediaUploadedThumbVideo.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v23/constructors/inputMediaUploadedVideo.md b/old_docs/API_docs_v23/constructors/inputMediaUploadedVideo.md index 574c090a..8356008d 100644 --- a/old_docs/API_docs_v23/constructors/inputMediaUploadedVideo.md +++ b/old_docs/API_docs_v23/constructors/inputMediaUploadedVideo.md @@ -11,11 +11,11 @@ description: inputMediaUploadedVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v23/constructors/inputNotifyPeer.md b/old_docs/API_docs_v23/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v23/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v23/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v23/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v23/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v23/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v23/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v23/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v23/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v23/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/messageActionChatCreate.md b/old_docs/API_docs_v23/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v23/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v23/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/messages_allStickers.md b/old_docs/API_docs_v23/constructors/messages_allStickers.md index 234531ef..cc78eae4 100644 --- a/old_docs/API_docs_v23/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v23/constructors/messages_allStickers.md @@ -23,7 +23,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/messages_chatFull.md b/old_docs/API_docs_v23/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v23/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v23/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/messages_chats.md b/old_docs/API_docs_v23/constructors/messages_chats.md index b9f9561e..f0a3e24d 100644 --- a/old_docs/API_docs_v23/constructors/messages_chats.md +++ b/old_docs/API_docs_v23/constructors/messages_chats.md @@ -22,7 +22,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat], 'users' => [User]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/messages_dialogs.md b/old_docs/API_docs_v23/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v23/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v23/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v23/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v23/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v23/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v23/constructors/messages_messages.md b/old_docs/API_docs_v23/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v23/constructors/messages_messages.md +++ b/old_docs/API_docs_v23/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/messages_messagesSlice.md b/old_docs/API_docs_v23/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v23/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v23/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/messages_sentMessageLink.md b/old_docs/API_docs_v23/constructors/messages_sentMessageLink.md index 59b6b217..f549ecae 100644 --- a/old_docs/API_docs_v23/constructors/messages_sentMessageLink.md +++ b/old_docs/API_docs_v23/constructors/messages_sentMessageLink.md @@ -25,7 +25,7 @@ description: messages_sentMessageLink attributes, type and example ### Example: ``` -$messages_sentMessageLink = ['_' => 'messages.sentMessageLink', 'id' => int, 'date' => int, 'pts' => int, 'seq' => int, 'links' => [contacts_Link]]; +$messages_sentMessageLink = ['_' => 'messages.sentMessageLink', 'id' => int, 'date' => int, 'pts' => int, 'seq' => int, 'links' => [contacts_Link, contacts_Link]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/messages_statedMessage.md b/old_docs/API_docs_v23/constructors/messages_statedMessage.md index ecb4672e..eee01edb 100644 --- a/old_docs/API_docs_v23/constructors/messages_statedMessage.md +++ b/old_docs/API_docs_v23/constructors/messages_statedMessage.md @@ -25,7 +25,7 @@ description: messages_statedMessage attributes, type and example ### Example: ``` -$messages_statedMessage = ['_' => 'messages.statedMessage', 'message' => Message, 'chats' => [Chat], 'users' => [User], 'pts' => int, 'seq' => int]; +$messages_statedMessage = ['_' => 'messages.statedMessage', 'message' => Message, 'chats' => [Chat, Chat], 'users' => [User, User], 'pts' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/messages_statedMessageLink.md b/old_docs/API_docs_v23/constructors/messages_statedMessageLink.md index ccfab334..5f364b79 100644 --- a/old_docs/API_docs_v23/constructors/messages_statedMessageLink.md +++ b/old_docs/API_docs_v23/constructors/messages_statedMessageLink.md @@ -26,7 +26,7 @@ description: messages_statedMessageLink attributes, type and example ### Example: ``` -$messages_statedMessageLink = ['_' => 'messages.statedMessageLink', 'message' => Message, 'chats' => [Chat], 'users' => [User], 'links' => [contacts_Link], 'pts' => int, 'seq' => int]; +$messages_statedMessageLink = ['_' => 'messages.statedMessageLink', 'message' => Message, 'chats' => [Chat, Chat], 'users' => [User, User], 'links' => [contacts_Link, contacts_Link], 'pts' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/messages_statedMessages.md b/old_docs/API_docs_v23/constructors/messages_statedMessages.md index 0e72c5c9..9f039651 100644 --- a/old_docs/API_docs_v23/constructors/messages_statedMessages.md +++ b/old_docs/API_docs_v23/constructors/messages_statedMessages.md @@ -25,7 +25,7 @@ description: messages_statedMessages attributes, type and example ### Example: ``` -$messages_statedMessages = ['_' => 'messages.statedMessages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'pts' => int, 'seq' => int]; +$messages_statedMessages = ['_' => 'messages.statedMessages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User], 'pts' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/messages_statedMessagesLinks.md b/old_docs/API_docs_v23/constructors/messages_statedMessagesLinks.md index 28c4f0ca..3cf817c2 100644 --- a/old_docs/API_docs_v23/constructors/messages_statedMessagesLinks.md +++ b/old_docs/API_docs_v23/constructors/messages_statedMessagesLinks.md @@ -26,7 +26,7 @@ description: messages_statedMessagesLinks attributes, type and example ### Example: ``` -$messages_statedMessagesLinks = ['_' => 'messages.statedMessagesLinks', 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'links' => [contacts_Link], 'pts' => int, 'seq' => int]; +$messages_statedMessagesLinks = ['_' => 'messages.statedMessagesLinks', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User], 'links' => [contacts_Link, contacts_Link], 'pts' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/messages_stickers.md b/old_docs/API_docs_v23/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v23/constructors/messages_stickers.md +++ b/old_docs/API_docs_v23/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/photo.md b/old_docs/API_docs_v23/constructors/photo.md index c947cc45..318fcae0 100644 --- a/old_docs/API_docs_v23/constructors/photo.md +++ b/old_docs/API_docs_v23/constructors/photo.md @@ -27,7 +27,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'user_id' => int, 'date' => int, 'caption' => 'string', 'geo' => GeoPoint, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'user_id' => int, 'date' => int, 'caption' => 'string', 'geo' => GeoPoint, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/photos_photo.md b/old_docs/API_docs_v23/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v23/constructors/photos_photo.md +++ b/old_docs/API_docs_v23/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/photos_photos.md b/old_docs/API_docs_v23/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v23/constructors/photos_photos.md +++ b/old_docs/API_docs_v23/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/photos_photosSlice.md b/old_docs/API_docs_v23/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v23/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v23/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v23/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v23/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v23/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v23/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v23/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v23/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/stickerPack.md b/old_docs/API_docs_v23/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v23/constructors/stickerPack.md +++ b/old_docs/API_docs_v23/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/updateDcOptions.md b/old_docs/API_docs_v23/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v23/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v23/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/updateDeleteMessages.md b/old_docs/API_docs_v23/constructors/updateDeleteMessages.md index 1c1d8a0f..8e52b1ee 100644 --- a/old_docs/API_docs_v23/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v23/constructors/updateDeleteMessages.md @@ -22,7 +22,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/updatePrivacy.md b/old_docs/API_docs_v23/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v23/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v23/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/updateReadMessages.md b/old_docs/API_docs_v23/constructors/updateReadMessages.md index 5c8dbdb7..677d03e8 100644 --- a/old_docs/API_docs_v23/constructors/updateReadMessages.md +++ b/old_docs/API_docs_v23/constructors/updateReadMessages.md @@ -22,7 +22,7 @@ description: updateReadMessages attributes, type and example ### Example: ``` -$updateReadMessages = ['_' => 'updateReadMessages', 'messages' => [int], 'pts' => int]; +$updateReadMessages = ['_' => 'updateReadMessages', 'messages' => [int, int], 'pts' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/updates.md b/old_docs/API_docs_v23/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v23/constructors/updates.md +++ b/old_docs/API_docs_v23/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/constructors/updatesCombined.md b/old_docs/API_docs_v23/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v23/constructors/updatesCombined.md +++ b/old_docs/API_docs_v23/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v23/constructors/updates_difference.md b/old_docs/API_docs_v23/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v23/constructors/updates_difference.md +++ b/old_docs/API_docs_v23/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v23/constructors/updates_differenceSlice.md b/old_docs/API_docs_v23/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v23/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v23/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v23/constructors/wallPaper.md b/old_docs/API_docs_v23/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v23/constructors/wallPaper.md +++ b/old_docs/API_docs_v23/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v23/methods/README.md b/old_docs/API_docs_v23/methods/README.md index 79d7daa1..49aacfdc 100644 --- a/old_docs/API_docs_v23/methods/README.md +++ b/old_docs/API_docs_v23/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v23/methods/account_changePhone.md b/old_docs/API_docs_v23/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v23/methods/account_changePhone.md +++ b/old_docs/API_docs_v23/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/account_checkUsername.md b/old_docs/API_docs_v23/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v23/methods/account_checkUsername.md +++ b/old_docs/API_docs_v23/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/account_deleteAccount.md b/old_docs/API_docs_v23/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v23/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v23/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/account_getAccountTTL.md b/old_docs/API_docs_v23/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v23/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v23/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v23/methods/account_getNotifySettings.md b/old_docs/API_docs_v23/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v23/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v23/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v23/methods/account_getPrivacy.md b/old_docs/API_docs_v23/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v23/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v23/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v23/methods/account_getWallPapers.md b/old_docs/API_docs_v23/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v23/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v23/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v23/methods/account_registerDevice.md b/old_docs/API_docs_v23/methods/account_registerDevice.md index cfa1546c..5c86d74c 100644 --- a/old_docs/API_docs_v23/methods/account_registerDevice.md +++ b/old_docs/API_docs_v23/methods/account_registerDevice.md @@ -1,22 +1,24 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|app\_sandbox|[Bool](../types/Bool.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| +|device\_model|[string](../types/string.md) | Yes|| +|system\_version|[string](../types/string.md) | Yes|| +|app\_version|[string](../types/string.md) | Yes|| +|app\_sandbox|[Bool](../types/Bool.md) | Yes|Should the app run in a sandbox?| +|lang\_code|[string](../types/string.md) | Yes|| ### Return type: [Bool](../types/Bool.md) @@ -35,13 +37,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/account_reportPeer.md b/old_docs/API_docs_v23/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v23/methods/account_reportPeer.md +++ b/old_docs/API_docs_v23/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v23/methods/account_resetNotifySettings.md b/old_docs/API_docs_v23/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v23/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v23/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md index ad611a8b..b5258245 100644 --- a/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md @@ -1,16 +1,18 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|New phone number| ### Return type: [account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) @@ -29,13 +31,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/account_setAccountTTL.md b/old_docs/API_docs_v23/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v23/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v23/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v23/methods/account_setPrivacy.md b/old_docs/API_docs_v23/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v23/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v23/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/methods/account_unregisterDevice.md b/old_docs/API_docs_v23/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v23/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v23/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v23/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v23/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v23/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v23/methods/account_updateNotifySettings.md b/old_docs/API_docs_v23/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v23/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v23/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v23/methods/account_updateProfile.md b/old_docs/API_docs_v23/methods/account_updateProfile.md index 123ed13a..7f8d80c5 100644 --- a/old_docs/API_docs_v23/methods/account_updateProfile.md +++ b/old_docs/API_docs_v23/methods/account_updateProfile.md @@ -1,17 +1,19 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Yes| -|last\_name|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Yes|The first name| +|last\_name|[string](../types/string.md) | Yes|The last name| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/account_updateStatus.md b/old_docs/API_docs_v23/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v23/methods/account_updateStatus.md +++ b/old_docs/API_docs_v23/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v23/methods/account_updateUsername.md b/old_docs/API_docs_v23/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v23/methods/account_updateUsername.md +++ b/old_docs/API_docs_v23/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v23/methods/auth_checkPhone.md b/old_docs/API_docs_v23/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v23/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v23/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/auth_exportAuthorization.md b/old_docs/API_docs_v23/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v23/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v23/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v23/methods/auth_importAuthorization.md b/old_docs/API_docs_v23/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v23/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v23/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v23/methods/auth_logOut.md b/old_docs/API_docs_v23/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v23/methods/auth_logOut.md +++ b/old_docs/API_docs_v23/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v23/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v23/methods/auth_sendCall.md b/old_docs/API_docs_v23/methods/auth_sendCall.md index 386cfad4..94ed6b7f 100644 --- a/old_docs/API_docs_v23/methods/auth_sendCall.md +++ b/old_docs/API_docs_v23/methods/auth_sendCall.md @@ -23,16 +23,18 @@ description: auth.sendCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/auth_sendCode.md b/old_docs/API_docs_v23/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v23/methods/auth_sendCode.md +++ b/old_docs/API_docs_v23/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v23/methods/auth_sendInvites.md b/old_docs/API_docs_v23/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v23/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v23/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/methods/auth_sendSms.md b/old_docs/API_docs_v23/methods/auth_sendSms.md index 9a214e65..0c4a7343 100644 --- a/old_docs/API_docs_v23/methods/auth_sendSms.md +++ b/old_docs/API_docs_v23/methods/auth_sendSms.md @@ -23,16 +23,18 @@ description: auth.sendSms parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/auth_signIn.md b/old_docs/API_docs_v23/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v23/methods/auth_signIn.md +++ b/old_docs/API_docs_v23/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v23/methods/auth_signUp.md b/old_docs/API_docs_v23/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v23/methods/auth_signUp.md +++ b/old_docs/API_docs_v23/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v23/methods/contacts_block.md b/old_docs/API_docs_v23/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v23/methods/contacts_block.md +++ b/old_docs/API_docs_v23/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v23/methods/contacts_deleteContact.md b/old_docs/API_docs_v23/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v23/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v23/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v23/methods/contacts_deleteContacts.md b/old_docs/API_docs_v23/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v23/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v23/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/methods/contacts_exportCard.md b/old_docs/API_docs_v23/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v23/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v23/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v23/methods/contacts_getBlocked.md b/old_docs/API_docs_v23/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v23/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v23/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v23/methods/contacts_getContacts.md b/old_docs/API_docs_v23/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v23/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v23/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/contacts_getStatuses.md b/old_docs/API_docs_v23/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v23/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v23/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v23/methods/contacts_getSuggested.md b/old_docs/API_docs_v23/methods/contacts_getSuggested.md index 2059c01b..7249b1f2 100644 --- a/old_docs/API_docs_v23/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v23/methods/contacts_getSuggested.md @@ -22,16 +22,18 @@ description: contacts.getSuggested parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); ``` diff --git a/old_docs/API_docs_v23/methods/contacts_importCard.md b/old_docs/API_docs_v23/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v23/methods/contacts_importCard.md +++ b/old_docs/API_docs_v23/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/methods/contacts_importContacts.md b/old_docs/API_docs_v23/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v23/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v23/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/methods/contacts_resolveUsername.md b/old_docs/API_docs_v23/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v23/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v23/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v23/methods/contacts_search.md b/old_docs/API_docs_v23/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v23/methods/contacts_search.md +++ b/old_docs/API_docs_v23/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v23/methods/contacts_unblock.md b/old_docs/API_docs_v23/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v23/methods/contacts_unblock.md +++ b/old_docs/API_docs_v23/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v23/methods/help_getAppUpdate.md b/old_docs/API_docs_v23/methods/help_getAppUpdate.md index 7b3bdde9..f9b06641 100644 --- a/old_docs/API_docs_v23/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v23/methods/help_getAppUpdate.md @@ -25,13 +25,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/help_getConfig.md b/old_docs/API_docs_v23/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v23/methods/help_getConfig.md +++ b/old_docs/API_docs_v23/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v23/methods/help_getInviteText.md b/old_docs/API_docs_v23/methods/help_getInviteText.md index 40251dd5..bac72a15 100644 --- a/old_docs/API_docs_v23/methods/help_getInviteText.md +++ b/old_docs/API_docs_v23/methods/help_getInviteText.md @@ -22,13 +22,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/help_getNearestDc.md b/old_docs/API_docs_v23/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v23/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v23/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v23/methods/help_getSupport.md b/old_docs/API_docs_v23/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v23/methods/help_getSupport.md +++ b/old_docs/API_docs_v23/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v23/methods/help_saveAppLog.md b/old_docs/API_docs_v23/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v23/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v23/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/methods/initConnection.md b/old_docs/API_docs_v23/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v23/methods/initConnection.md +++ b/old_docs/API_docs_v23/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v23/methods/invokeAfterMsg.md b/old_docs/API_docs_v23/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v23/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v23/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v23/methods/invokeAfterMsgs.md b/old_docs/API_docs_v23/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v23/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v23/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/methods/invokeWithLayer.md b/old_docs/API_docs_v23/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v23/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v23/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_acceptEncryption.md b/old_docs/API_docs_v23/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v23/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v23/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v23/methods/messages_addChatUser.md b/old_docs/API_docs_v23/methods/messages_addChatUser.md index fd75432b..27daee60 100644 --- a/old_docs/API_docs_v23/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v23/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_createChat.md b/old_docs/API_docs_v23/methods/messages_createChat.md index 82527c2a..9151f426 100644 --- a/old_docs/API_docs_v23/methods/messages_createChat.md +++ b/old_docs/API_docs_v23/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_StatedMessage = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_StatedMessage = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/methods/messages_deleteChatUser.md b/old_docs/API_docs_v23/methods/messages_deleteChatUser.md index 9764c4a4..d53343b8 100644 --- a/old_docs/API_docs_v23/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v23/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_StatedMessage](../types/messages_StatedMessage.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_deleteHistory.md b/old_docs/API_docs_v23/methods/messages_deleteHistory.md index 50179e3c..8e24ee79 100644 --- a/old_docs/API_docs_v23/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v23/methods/messages_deleteHistory.md @@ -10,7 +10,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_deleteMessages.md b/old_docs/API_docs_v23/methods/messages_deleteMessages.md index a29c71e7..6e57455d 100644 --- a/old_docs/API_docs_v23/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v23/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/methods/messages_discardEncryption.md b/old_docs/API_docs_v23/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v23/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v23/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v23/methods/messages_editChatPhoto.md b/old_docs/API_docs_v23/methods/messages_editChatPhoto.md index b041acb9..d0e0624a 100644 --- a/old_docs/API_docs_v23/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v23/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_editChatTitle.md b/old_docs/API_docs_v23/methods/messages_editChatTitle.md index b0880792..addff8ae 100644 --- a/old_docs/API_docs_v23/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v23/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_forwardMessage.md b/old_docs/API_docs_v23/methods/messages_forwardMessage.md index bdd480a3..25d09df3 100644 --- a/old_docs/API_docs_v23/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v23/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_forwardMessages.md b/old_docs/API_docs_v23/methods/messages_forwardMessages.md index 6f31e605..5b583d07 100644 --- a/old_docs/API_docs_v23/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v23/methods/messages_forwardMessages.md @@ -10,7 +10,7 @@ description: messages.forwardMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -51,18 +51,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_StatedMessages = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_StatedMessages = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/methods/messages_getAllStickers.md b/old_docs/API_docs_v23/methods/messages_getAllStickers.md index 3a0b3781..c1387ab3 100644 --- a/old_docs/API_docs_v23/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v23/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_getChats.md b/old_docs/API_docs_v23/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v23/methods/messages_getChats.md +++ b/old_docs/API_docs_v23/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/methods/messages_getDhConfig.md b/old_docs/API_docs_v23/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v23/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v23/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_getDialogs.md b/old_docs/API_docs_v23/methods/messages_getDialogs.md index 6295612b..0cd10d8c 100644 --- a/old_docs/API_docs_v23/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v23/methods/messages_getDialogs.md @@ -34,13 +34,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_getFullChat.md b/old_docs/API_docs_v23/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v23/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v23/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v23/methods/messages_getHistory.md b/old_docs/API_docs_v23/methods/messages_getHistory.md index 156d6bef..e3eef289 100644 --- a/old_docs/API_docs_v23/methods/messages_getHistory.md +++ b/old_docs/API_docs_v23/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -37,13 +37,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_getMessages.md b/old_docs/API_docs_v23/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v23/methods/messages_getMessages.md +++ b/old_docs/API_docs_v23/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/methods/messages_getStickers.md b/old_docs/API_docs_v23/methods/messages_getStickers.md index 1587cd01..6ac68c87 100644 --- a/old_docs/API_docs_v23/methods/messages_getStickers.md +++ b/old_docs/API_docs_v23/methods/messages_getStickers.md @@ -23,16 +23,18 @@ description: messages.getStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_readHistory.md b/old_docs/API_docs_v23/methods/messages_readHistory.md index 1ebbd6b7..08eca081 100644 --- a/old_docs/API_docs_v23/methods/messages_readHistory.md +++ b/old_docs/API_docs_v23/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |offset|[int](../types/int.md) | Yes| |read\_contents|[Bool](../types/Bool.md) | Yes| @@ -33,13 +33,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, 'offset' => int, 'read_contents' => Bool, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_readMessageContents.md b/old_docs/API_docs_v23/methods/messages_readMessageContents.md index 535d0425..70d5d48d 100644 --- a/old_docs/API_docs_v23/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v23/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/methods/messages_receivedMessages.md b/old_docs/API_docs_v23/methods/messages_receivedMessages.md index bd47c49c..86e2812d 100644 --- a/old_docs/API_docs_v23/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v23/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_receivedQueue.md b/old_docs/API_docs_v23/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v23/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v23/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_reportSpam.md b/old_docs/API_docs_v23/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v23/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v23/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_requestEncryption.md b/old_docs/API_docs_v23/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v23/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v23/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v23/methods/messages_search.md b/old_docs/API_docs_v23/methods/messages_search.md index f6aa515b..11b968bf 100644 --- a/old_docs/API_docs_v23/methods/messages_search.md +++ b/old_docs/API_docs_v23/methods/messages_search.md @@ -10,7 +10,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -42,13 +42,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_sendBroadcast.md b/old_docs/API_docs_v23/methods/messages_sendBroadcast.md index 4b0f8f0d..fcc00263 100644 --- a/old_docs/API_docs_v23/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v23/methods/messages_sendBroadcast.md @@ -10,9 +10,9 @@ description: messages.sendBroadcast parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|contacts|Array of [InputUser](../types/InputUser.md) | Yes| +|contacts|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |message|[string](../types/string.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [messages\_StatedMessages](../types/messages_StatedMessages.md) @@ -24,18 +24,20 @@ description: messages.sendBroadcast parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_StatedMessages = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser], 'message' => 'string', 'media' => InputMedia, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_StatedMessages = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/methods/messages_sendEncrypted.md b/old_docs/API_docs_v23/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_sendMedia.md b/old_docs/API_docs_v23/methods/messages_sendMedia.md index 3a1a8e40..72c3f1c2 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v23/methods/messages_sendMedia.md @@ -10,8 +10,8 @@ description: messages.sendMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [messages\_StatedMessage](../types/messages_StatedMessage.md) @@ -51,16 +51,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->sendMedia(['peer' => InputPeer, 'media' => InputMedia, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_sendMessage.md b/old_docs/API_docs_v23/methods/messages_sendMessage.md index cd30c54a..01c61e7e 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v23/methods/messages_sendMessage.md @@ -10,7 +10,7 @@ description: messages.sendMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |message|[string](../types/string.md) | Yes| @@ -42,6 +42,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -49,16 +50,18 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentMessage = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v23/methods/messages_setTyping.md b/old_docs/API_docs_v23/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v23/methods/messages_setTyping.md +++ b/old_docs/API_docs_v23/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v23/methods/photos_deletePhotos.md b/old_docs/API_docs_v23/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v23/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v23/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/methods/photos_getUserPhotos.md b/old_docs/API_docs_v23/methods/photos_getUserPhotos.md index 7f1c642f..76046e95 100644 --- a/old_docs/API_docs_v23/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v23/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v23/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v23/methods/photos_updateProfilePhoto.md index d3acbb56..fbe84e26 100644 --- a/old_docs/API_docs_v23/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v23/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -23,13 +23,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md index de7c2281..303ed4ea 100644 --- a/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -35,13 +35,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v23/methods/updates_getDifference.md b/old_docs/API_docs_v23/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v23/methods/updates_getDifference.md +++ b/old_docs/API_docs_v23/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v23/methods/updates_getState.md b/old_docs/API_docs_v23/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v23/methods/updates_getState.md +++ b/old_docs/API_docs_v23/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v23/methods/upload_getFile.md b/old_docs/API_docs_v23/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v23/methods/upload_getFile.md +++ b/old_docs/API_docs_v23/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v23/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v23/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v23/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v23/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v23/methods/upload_saveFilePart.md b/old_docs/API_docs_v23/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v23/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v23/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v23/methods/users_getFullUser.md b/old_docs/API_docs_v23/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v23/methods/users_getFullUser.md +++ b/old_docs/API_docs_v23/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v23/methods/users_getUsers.md b/old_docs/API_docs_v23/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v23/methods/users_getUsers.md +++ b/old_docs/API_docs_v23/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v23/types/Chat.md b/old_docs/API_docs_v23/types/Chat.md index 11a4d3d8..74fbfbfe 100644 --- a/old_docs/API_docs_v23/types/Chat.md +++ b/old_docs/API_docs_v23/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v23/types/InputDocument.md b/old_docs/API_docs_v23/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v23/types/InputDocument.md +++ b/old_docs/API_docs_v23/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v23/types/InputEncryptedChat.md b/old_docs/API_docs_v23/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v23/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v23/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v23/types/InputEncryptedFile.md b/old_docs/API_docs_v23/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v23/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v23/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v23/types/InputFile.md b/old_docs/API_docs_v23/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v23/types/InputFile.md +++ b/old_docs/API_docs_v23/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v23/types/InputMedia.md b/old_docs/API_docs_v23/types/InputMedia.md index 91dacd19..bf8f80d6 100644 --- a/old_docs/API_docs_v23/types/InputMedia.md +++ b/old_docs/API_docs_v23/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v23/types/InputPeer.md b/old_docs/API_docs_v23/types/InputPeer.md index d7d075b0..489fb96d 100644 --- a/old_docs/API_docs_v23/types/InputPeer.md +++ b/old_docs/API_docs_v23/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v23/types/InputPhoto.md b/old_docs/API_docs_v23/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v23/types/InputPhoto.md +++ b/old_docs/API_docs_v23/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v23/types/InputUser.md b/old_docs/API_docs_v23/types/InputUser.md index 4639f1a1..b2886be9 100644 --- a/old_docs/API_docs_v23/types/InputUser.md +++ b/old_docs/API_docs_v23/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v23/types/Peer.md b/old_docs/API_docs_v23/types/Peer.md index 5dcdb9b0..20253dd9 100644 --- a/old_docs/API_docs_v23/types/Peer.md +++ b/old_docs/API_docs_v23/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v23/types/User.md b/old_docs/API_docs_v23/types/User.md index c84ecc3d..7d7a11f3 100644 --- a/old_docs/API_docs_v23/types/User.md +++ b/old_docs/API_docs_v23/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v25/Lang.php b/old_docs/API_docs_v25/Lang.php new file mode 100644 index 00000000..5b5c27d0 --- /dev/null +++ b/old_docs/API_docs_v25/Lang.php @@ -0,0 +1,2244 @@ +. + */ + +namespace danog\MadelineProto; + +class Lang +{ + public static $lang = array ( + 'it' => + array ( + 'phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istanziamento dei DataCenter...', + 'load_rsa' => 'Caricamento delle chiavi RSA...', + 'TL_translation' => 'Translazione degli schemi TL...', + 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', + 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', + 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', + 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', + 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', + 'threading_on' => 'IL THREADING È ABILITATO', + 'socket_reader' => 'Lettore socket su DC %s: ', + 'socket_status_1' => 'CREAZIONE', + 'socket_status_2' => 'INVIO', + 'socket_status_3' => 'ATTESA', + 'socket_status_4' => 'PRONTO', + 'socket_status_5' => 'AVVIATO', + 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', + 'session_corrupted' => 'La sessione si è corrotta!', + 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', + 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', + 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', + 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', + 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', + 'config_updated' => 'La configurazione è stata aggiornata!', + 'length_not_4' => 'La lunghezza non è uguale a 4', + 'length_not_8' => 'La lunghezza non è uguale a 8', + 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', + 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', + 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', + 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', + 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', + 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', + 'file_not_exist' => 'Il file specificato non esiste', + 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', + 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', + 'loading_key' => 'Caricamento della chiave in corso...', + 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', + 'rsa_encrypting' => 'Criptando con chiave RSA...', + 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', + 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', + 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', + 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', + 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', + 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', + 'socket_con_error' => 'Connessione fallita.', + 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', + 'protocol_invalid' => 'È stato fornito un protocollo non valido', + 'nothing_in_socket' => 'Non c\'è niente nel socket!', + 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', + 'no_data_in_socket' => 'Non ci sono dati nel socket!', + 'dc_con_start' => 'Connessione al DC %s in corso...', + 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', + 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', + 'script_not_exist' => 'Lo script fornito non esiste', + 'apifactory_start' => 'Sto avviando la fabbrica di API...', + 'madelineproto_ready' => 'MadelineProto è pronto!', + 'logout_error' => 'C\'è stato un errore durante il logout!', + 'logout_ok' => 'Il logout è stato eseguito correttamente!', + 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', + 'login_ok' => 'Il login è stato eseguito correttamente!', + 'login_user' => 'Sto eseguendo il login come utente normale...', + 'login_bot' => 'Sto eseguendo il login come bot...', + 'login_code_sending' => 'Sto inviando il codice...', + 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', + 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', + 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', + 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', + 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', + 'not_logged_in' => 'Non ho ancora fatto il login!', + 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', + 'signing_up' => 'Mi sto registrando su telegram come utente normale...', + 'signup_ok' => 'Mi sono registrato su Telegram!', + '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', + 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', + 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', + 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', + 'calling_user' => 'Sto chiamando %s...', + 'generating_a' => 'Sto generando a...', + 'generating_g_a' => 'Sto generando g_a...', + 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', + 'accepting_call' => 'Sto accettando una chiamata da %s...', + 'generating_b' => 'Sto generando b...', + 'call_already_accepted' => 'La chiamata %s è già stata accettata.', + 'call_already_declined' => 'La chiamata %s è già stata annullata.', + 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', + 'call_confirming' => 'Sto confermando una chiamata da %s', + 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', + 'call_completing' => 'Sto completando una chiamata da %s...', + 'invalid_g_a' => 'g_a non valido!', + 'fingerprint_invalid' => 'fingerprint della chiave non valido!', + 'call_discarding' => 'Sto rifiutando la chiamata %s...', + 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', + 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', + 'TL_loading' => 'Sto caricando gli schemi TL...', + 'file_parsing' => 'Leggendo %s...', + 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', + 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', + 'translating_obj' => 'Traducendo gli oggetti...', + 'translating_methods' => 'Traducendo i metodi...', + 'bool_error' => 'Non sono riuscito ad estrarre un booleano', + 'not_numeric' => 'Il valore fornito non è numerico', + 'long_not_16' => 'Il valore fornito non è lungo 16 byte', + 'long_not_32' => 'Il valore fornito non è lungo 32 byte', + 'long_not_64' => 'Il valore fornito non è lungo 64 byte', + 'array_invalid' => 'Il valore fornito non è un array', + 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', + 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', + 'method_not_found' => 'Impossibile trovare il seguente metodo: ', + 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', + 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', + 'stream_handle_invalid' => 'Il valore fornito non è uno stream', + 'length_too_big' => 'Il valore fornito è troppo lungo', + 'deserialize_not_str' => 'Il valore generato non è una stringa', + 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', + 'vector_invalid' => 'ID vettore non valido: ', + 'constructor_not_found' => 'Costruttore non trovato per tipo: ', + 'rand_bytes_too_small' => 'random_bytes è troppo corto!', + 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', + 'non_text_conversion' => 'Non posso ancora convertire messaggi media', + 'last_byte_invalid' => 'L\'ultimo byte non è valido', + 'file_type_invalid' => 'È stato fornito un tipo file errato', + 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', + 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', + 'shutting_down_reader_pool' => 'Chisura pool di lettura', + 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', + 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', + 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', + 'msg_data_length_too_big' => 'message_data_length è troppo grande', + 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', + 'msg_key_mismatch' => 'msg_key non valido', + 'rand_bytes_too_short' => 'random_bytes è troppo corto!', + 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', + 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', + 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', + 'req_pq' => 'Sto richiedendo pq...', + 'done' => 'Fatto!', + 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', + 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!', + ), + 'en' => + array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + ), +); + + // THIS WILL BE OVERWRITTEN BY $lang["en"] + public static $current_lang = array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', +); +} \ No newline at end of file diff --git a/old_docs/API_docs_v25/constructors/account_privacyRules.md b/old_docs/API_docs_v25/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v25/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v25/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/chatParticipants.md b/old_docs/API_docs_v25/constructors/chatParticipants.md index dcbf547e..8d10057c 100644 --- a/old_docs/API_docs_v25/constructors/chatParticipants.md +++ b/old_docs/API_docs_v25/constructors/chatParticipants.md @@ -24,7 +24,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'admin_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'admin_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/config.md b/old_docs/API_docs_v25/constructors/config.md index 9b243e39..9ca022bc 100644 --- a/old_docs/API_docs_v25/constructors/config.md +++ b/old_docs/API_docs_v25/constructors/config.md @@ -35,7 +35,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_size_max' => int, 'broadcast_size_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, 'chat_big_size' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], 'chat_size_max' => int, 'broadcast_size_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, 'chat_big_size' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/contacts_blocked.md b/old_docs/API_docs_v25/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v25/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v25/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v25/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v25/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v25/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/contacts_contacts.md b/old_docs/API_docs_v25/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v25/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v25/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/contacts_found.md b/old_docs/API_docs_v25/constructors/contacts_found.md index 20f6fd7b..4b685825 100644 --- a/old_docs/API_docs_v25/constructors/contacts_found.md +++ b/old_docs/API_docs_v25/constructors/contacts_found.md @@ -22,7 +22,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [ContactFound], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [ContactFound, ContactFound], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/contacts_importedContacts.md b/old_docs/API_docs_v25/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v25/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v25/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/contacts_suggested.md b/old_docs/API_docs_v25/constructors/contacts_suggested.md index 38db68c5..1ee96769 100644 --- a/old_docs/API_docs_v25/constructors/contacts_suggested.md +++ b/old_docs/API_docs_v25/constructors/contacts_suggested.md @@ -22,7 +22,7 @@ description: contacts_suggested attributes, type and example ### Example: ``` -$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested], 'users' => [User]]; +$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested, ContactSuggested], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/document.md b/old_docs/API_docs_v25/constructors/document.md index 3a584537..21dc39bb 100644 --- a/old_docs/API_docs_v25/constructors/document.md +++ b/old_docs/API_docs_v25/constructors/document.md @@ -28,7 +28,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/documentAttributeAudio.md b/old_docs/API_docs_v25/constructors/documentAttributeAudio.md index bed9cd5d..3b404b39 100644 --- a/old_docs/API_docs_v25/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v25/constructors/documentAttributeAudio.md @@ -11,7 +11,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v25/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v25/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v25/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v25/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v25/constructors/documentAttributeVideo.md b/old_docs/API_docs_v25/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v25/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v25/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v25/constructors/geochats_located.md b/old_docs/API_docs_v25/constructors/geochats_located.md index 43c76fab..8ff1a972 100644 --- a/old_docs/API_docs_v25/constructors/geochats_located.md +++ b/old_docs/API_docs_v25/constructors/geochats_located.md @@ -24,7 +24,7 @@ description: geochats_located attributes, type and example ### Example: ``` -$geochats_located = ['_' => 'geochats.located', 'results' => [ChatLocated], 'messages' => [GeoChatMessage], 'chats' => [Chat], 'users' => [User]]; +$geochats_located = ['_' => 'geochats.located', 'results' => [ChatLocated, ChatLocated], 'messages' => [GeoChatMessage, GeoChatMessage], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/geochats_messages.md b/old_docs/API_docs_v25/constructors/geochats_messages.md index dc891962..4e54df7c 100644 --- a/old_docs/API_docs_v25/constructors/geochats_messages.md +++ b/old_docs/API_docs_v25/constructors/geochats_messages.md @@ -23,7 +23,7 @@ description: geochats_messages attributes, type and example ### Example: ``` -$geochats_messages = ['_' => 'geochats.messages', 'messages' => [GeoChatMessage], 'chats' => [Chat], 'users' => [User]]; +$geochats_messages = ['_' => 'geochats.messages', 'messages' => [GeoChatMessage, GeoChatMessage], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/geochats_messagesSlice.md b/old_docs/API_docs_v25/constructors/geochats_messagesSlice.md index 4fec2937..e020ec01 100644 --- a/old_docs/API_docs_v25/constructors/geochats_messagesSlice.md +++ b/old_docs/API_docs_v25/constructors/geochats_messagesSlice.md @@ -24,7 +24,7 @@ description: geochats_messagesSlice attributes, type and example ### Example: ``` -$geochats_messagesSlice = ['_' => 'geochats.messagesSlice', 'count' => int, 'messages' => [GeoChatMessage], 'chats' => [Chat], 'users' => [User]]; +$geochats_messagesSlice = ['_' => 'geochats.messagesSlice', 'count' => int, 'messages' => [GeoChatMessage, GeoChatMessage], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/geochats_statedMessage.md b/old_docs/API_docs_v25/constructors/geochats_statedMessage.md index f831d25f..d12cdd5e 100644 --- a/old_docs/API_docs_v25/constructors/geochats_statedMessage.md +++ b/old_docs/API_docs_v25/constructors/geochats_statedMessage.md @@ -24,7 +24,7 @@ description: geochats_statedMessage attributes, type and example ### Example: ``` -$geochats_statedMessage = ['_' => 'geochats.statedMessage', 'message' => GeoChatMessage, 'chats' => [Chat], 'users' => [User], 'seq' => int]; +$geochats_statedMessage = ['_' => 'geochats.statedMessage', 'message' => GeoChatMessage, 'chats' => [Chat, Chat], 'users' => [User, User], 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/inputChatPhoto.md b/old_docs/API_docs_v25/constructors/inputChatPhoto.md index 4cd81a7c..f10e2da3 100644 --- a/old_docs/API_docs_v25/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v25/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v25/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v25/constructors/inputChatUploadedPhoto.md index 3d88ac48..13857e71 100644 --- a/old_docs/API_docs_v25/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v25/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v25/constructors/inputMediaDocument.md b/old_docs/API_docs_v25/constructors/inputMediaDocument.md index 1859313a..034a28bd 100644 --- a/old_docs/API_docs_v25/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v25/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v25/constructors/inputMediaPhoto.md b/old_docs/API_docs_v25/constructors/inputMediaPhoto.md index 7ac93db7..5659a532 100644 --- a/old_docs/API_docs_v25/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v25/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v25/constructors/inputMediaUploadedAudio.md b/old_docs/API_docs_v25/constructors/inputMediaUploadedAudio.md index bbbe18a2..8fe9138e 100644 --- a/old_docs/API_docs_v25/constructors/inputMediaUploadedAudio.md +++ b/old_docs/API_docs_v25/constructors/inputMediaUploadedAudio.md @@ -11,9 +11,9 @@ description: inputMediaUploadedAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v25/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v25/constructors/inputMediaUploadedDocument.md index 8ce039fa..67edf365 100644 --- a/old_docs/API_docs_v25/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v25/constructors/inputMediaUploadedDocument.md @@ -11,8 +11,8 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -23,7 +23,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v25/constructors/inputMediaUploadedPhoto.md index 73e30d41..35737207 100644 --- a/old_docs/API_docs_v25/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v25/constructors/inputMediaUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| diff --git a/old_docs/API_docs_v25/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v25/constructors/inputMediaUploadedThumbDocument.md index d6f3a647..13b93260 100644 --- a/old_docs/API_docs_v25/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v25/constructors/inputMediaUploadedThumbDocument.md @@ -11,9 +11,9 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -24,7 +24,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/inputMediaUploadedThumbVideo.md b/old_docs/API_docs_v25/constructors/inputMediaUploadedThumbVideo.md index 17e50481..6f3e8bea 100644 --- a/old_docs/API_docs_v25/constructors/inputMediaUploadedThumbVideo.md +++ b/old_docs/API_docs_v25/constructors/inputMediaUploadedThumbVideo.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v25/constructors/inputMediaUploadedVideo.md b/old_docs/API_docs_v25/constructors/inputMediaUploadedVideo.md index 574c090a..8356008d 100644 --- a/old_docs/API_docs_v25/constructors/inputMediaUploadedVideo.md +++ b/old_docs/API_docs_v25/constructors/inputMediaUploadedVideo.md @@ -11,11 +11,11 @@ description: inputMediaUploadedVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v25/constructors/inputNotifyPeer.md b/old_docs/API_docs_v25/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v25/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v25/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v25/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v25/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v25/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v25/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v25/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v25/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v25/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/messageActionChatCreate.md b/old_docs/API_docs_v25/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v25/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v25/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/messages_allStickers.md b/old_docs/API_docs_v25/constructors/messages_allStickers.md index 234531ef..cc78eae4 100644 --- a/old_docs/API_docs_v25/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v25/constructors/messages_allStickers.md @@ -23,7 +23,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/messages_chatFull.md b/old_docs/API_docs_v25/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v25/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v25/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/messages_chats.md b/old_docs/API_docs_v25/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v25/constructors/messages_chats.md +++ b/old_docs/API_docs_v25/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/messages_dialogs.md b/old_docs/API_docs_v25/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v25/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v25/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v25/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v25/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v25/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v25/constructors/messages_messages.md b/old_docs/API_docs_v25/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v25/constructors/messages_messages.md +++ b/old_docs/API_docs_v25/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/messages_messagesSlice.md b/old_docs/API_docs_v25/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v25/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v25/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/messages_sentMessageLink.md b/old_docs/API_docs_v25/constructors/messages_sentMessageLink.md index 04501daa..5d635abb 100644 --- a/old_docs/API_docs_v25/constructors/messages_sentMessageLink.md +++ b/old_docs/API_docs_v25/constructors/messages_sentMessageLink.md @@ -26,7 +26,7 @@ description: messages_sentMessageLink attributes, type and example ### Example: ``` -$messages_sentMessageLink = ['_' => 'messages.sentMessageLink', 'id' => int, 'date' => int, 'pts' => int, 'pts_count' => int, 'links' => [contacts_Link], 'seq' => int]; +$messages_sentMessageLink = ['_' => 'messages.sentMessageLink', 'id' => int, 'date' => int, 'pts' => int, 'pts_count' => int, 'links' => [contacts_Link, contacts_Link], 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/messages_statedMessage.md b/old_docs/API_docs_v25/constructors/messages_statedMessage.md index 22372ec6..2d813a52 100644 --- a/old_docs/API_docs_v25/constructors/messages_statedMessage.md +++ b/old_docs/API_docs_v25/constructors/messages_statedMessage.md @@ -25,7 +25,7 @@ description: messages_statedMessage attributes, type and example ### Example: ``` -$messages_statedMessage = ['_' => 'messages.statedMessage', 'message' => Message, 'chats' => [Chat], 'users' => [User], 'pts' => int, 'pts_count' => int]; +$messages_statedMessage = ['_' => 'messages.statedMessage', 'message' => Message, 'chats' => [Chat, Chat], 'users' => [User, User], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/messages_statedMessageLink.md b/old_docs/API_docs_v25/constructors/messages_statedMessageLink.md index 6d62267f..5cc97346 100644 --- a/old_docs/API_docs_v25/constructors/messages_statedMessageLink.md +++ b/old_docs/API_docs_v25/constructors/messages_statedMessageLink.md @@ -27,7 +27,7 @@ description: messages_statedMessageLink attributes, type and example ### Example: ``` -$messages_statedMessageLink = ['_' => 'messages.statedMessageLink', 'message' => Message, 'chats' => [Chat], 'users' => [User], 'pts' => int, 'pts_count' => int, 'links' => [contacts_Link], 'seq' => int]; +$messages_statedMessageLink = ['_' => 'messages.statedMessageLink', 'message' => Message, 'chats' => [Chat, Chat], 'users' => [User, User], 'pts' => int, 'pts_count' => int, 'links' => [contacts_Link, contacts_Link], 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/messages_statedMessages.md b/old_docs/API_docs_v25/constructors/messages_statedMessages.md index 0181142f..78902fad 100644 --- a/old_docs/API_docs_v25/constructors/messages_statedMessages.md +++ b/old_docs/API_docs_v25/constructors/messages_statedMessages.md @@ -25,7 +25,7 @@ description: messages_statedMessages attributes, type and example ### Example: ``` -$messages_statedMessages = ['_' => 'messages.statedMessages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'pts' => int, 'pts_count' => int]; +$messages_statedMessages = ['_' => 'messages.statedMessages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/messages_statedMessagesLinks.md b/old_docs/API_docs_v25/constructors/messages_statedMessagesLinks.md index 73e58a52..2b75d6d7 100644 --- a/old_docs/API_docs_v25/constructors/messages_statedMessagesLinks.md +++ b/old_docs/API_docs_v25/constructors/messages_statedMessagesLinks.md @@ -27,7 +27,7 @@ description: messages_statedMessagesLinks attributes, type and example ### Example: ``` -$messages_statedMessagesLinks = ['_' => 'messages.statedMessagesLinks', 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'pts' => int, 'pts_count' => int, 'links' => [contacts_Link], 'seq' => int]; +$messages_statedMessagesLinks = ['_' => 'messages.statedMessagesLinks', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User], 'pts' => int, 'pts_count' => int, 'links' => [contacts_Link, contacts_Link], 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/messages_stickers.md b/old_docs/API_docs_v25/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v25/constructors/messages_stickers.md +++ b/old_docs/API_docs_v25/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/photo.md b/old_docs/API_docs_v25/constructors/photo.md index c947cc45..318fcae0 100644 --- a/old_docs/API_docs_v25/constructors/photo.md +++ b/old_docs/API_docs_v25/constructors/photo.md @@ -27,7 +27,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'user_id' => int, 'date' => int, 'caption' => 'string', 'geo' => GeoPoint, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'user_id' => int, 'date' => int, 'caption' => 'string', 'geo' => GeoPoint, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/photos_photo.md b/old_docs/API_docs_v25/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v25/constructors/photos_photo.md +++ b/old_docs/API_docs_v25/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/photos_photos.md b/old_docs/API_docs_v25/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v25/constructors/photos_photos.md +++ b/old_docs/API_docs_v25/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/photos_photosSlice.md b/old_docs/API_docs_v25/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v25/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v25/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v25/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v25/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v25/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v25/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v25/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v25/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/stickerPack.md b/old_docs/API_docs_v25/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v25/constructors/stickerPack.md +++ b/old_docs/API_docs_v25/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/updateDcOptions.md b/old_docs/API_docs_v25/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v25/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v25/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/updateDeleteMessages.md b/old_docs/API_docs_v25/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v25/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v25/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/updatePrivacy.md b/old_docs/API_docs_v25/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v25/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v25/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/updateReadMessages.md b/old_docs/API_docs_v25/constructors/updateReadMessages.md index 47dc17ae..ebeacdb2 100644 --- a/old_docs/API_docs_v25/constructors/updateReadMessages.md +++ b/old_docs/API_docs_v25/constructors/updateReadMessages.md @@ -23,7 +23,7 @@ description: updateReadMessages attributes, type and example ### Example: ``` -$updateReadMessages = ['_' => 'updateReadMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessages = ['_' => 'updateReadMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/updates.md b/old_docs/API_docs_v25/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v25/constructors/updates.md +++ b/old_docs/API_docs_v25/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/constructors/updatesCombined.md b/old_docs/API_docs_v25/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v25/constructors/updatesCombined.md +++ b/old_docs/API_docs_v25/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v25/constructors/updates_difference.md b/old_docs/API_docs_v25/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v25/constructors/updates_difference.md +++ b/old_docs/API_docs_v25/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v25/constructors/updates_differenceSlice.md b/old_docs/API_docs_v25/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v25/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v25/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v25/constructors/wallPaper.md b/old_docs/API_docs_v25/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v25/constructors/wallPaper.md +++ b/old_docs/API_docs_v25/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v25/methods/README.md b/old_docs/API_docs_v25/methods/README.md index 4a7f3e90..e5c2ccb9 100644 --- a/old_docs/API_docs_v25/methods/README.md +++ b/old_docs/API_docs_v25/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v25/methods/account_changePhone.md b/old_docs/API_docs_v25/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v25/methods/account_changePhone.md +++ b/old_docs/API_docs_v25/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/account_checkUsername.md b/old_docs/API_docs_v25/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v25/methods/account_checkUsername.md +++ b/old_docs/API_docs_v25/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/account_deleteAccount.md b/old_docs/API_docs_v25/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v25/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v25/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/account_getAccountTTL.md b/old_docs/API_docs_v25/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v25/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v25/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v25/methods/account_getNotifySettings.md b/old_docs/API_docs_v25/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v25/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v25/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v25/methods/account_getPassword.md b/old_docs/API_docs_v25/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v25/methods/account_getPassword.md +++ b/old_docs/API_docs_v25/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v25/methods/account_getPrivacy.md b/old_docs/API_docs_v25/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v25/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v25/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v25/methods/account_getWallPapers.md b/old_docs/API_docs_v25/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v25/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v25/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v25/methods/account_registerDevice.md b/old_docs/API_docs_v25/methods/account_registerDevice.md index cfa1546c..5c86d74c 100644 --- a/old_docs/API_docs_v25/methods/account_registerDevice.md +++ b/old_docs/API_docs_v25/methods/account_registerDevice.md @@ -1,22 +1,24 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|app\_sandbox|[Bool](../types/Bool.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| +|device\_model|[string](../types/string.md) | Yes|| +|system\_version|[string](../types/string.md) | Yes|| +|app\_version|[string](../types/string.md) | Yes|| +|app\_sandbox|[Bool](../types/Bool.md) | Yes|Should the app run in a sandbox?| +|lang\_code|[string](../types/string.md) | Yes|| ### Return type: [Bool](../types/Bool.md) @@ -35,13 +37,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/account_resetNotifySettings.md b/old_docs/API_docs_v25/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v25/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v25/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md index ad611a8b..b5258245 100644 --- a/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md @@ -1,16 +1,18 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|New phone number| ### Return type: [account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) @@ -29,13 +31,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/account_setAccountTTL.md b/old_docs/API_docs_v25/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v25/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v25/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v25/methods/account_setPassword.md b/old_docs/API_docs_v25/methods/account_setPassword.md index b651189d..da0ec2ab 100644 --- a/old_docs/API_docs_v25/methods/account_setPassword.md +++ b/old_docs/API_docs_v25/methods/account_setPassword.md @@ -25,16 +25,18 @@ description: account.setPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setPassword(['current_password_hash' => 'bytes', 'new_salt' => 'bytes', 'new_password_hash' => 'bytes', 'hint' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/account_setPrivacy.md b/old_docs/API_docs_v25/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v25/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v25/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/methods/account_unregisterDevice.md b/old_docs/API_docs_v25/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v25/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v25/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v25/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v25/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v25/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/account_updateNotifySettings.md b/old_docs/API_docs_v25/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v25/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v25/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v25/methods/account_updateProfile.md b/old_docs/API_docs_v25/methods/account_updateProfile.md index 123ed13a..7f8d80c5 100644 --- a/old_docs/API_docs_v25/methods/account_updateProfile.md +++ b/old_docs/API_docs_v25/methods/account_updateProfile.md @@ -1,17 +1,19 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Yes| -|last\_name|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Yes|The first name| +|last\_name|[string](../types/string.md) | Yes|The last name| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/account_updateStatus.md b/old_docs/API_docs_v25/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v25/methods/account_updateStatus.md +++ b/old_docs/API_docs_v25/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v25/methods/account_updateUsername.md b/old_docs/API_docs_v25/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v25/methods/account_updateUsername.md +++ b/old_docs/API_docs_v25/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v25/methods/auth_checkPassword.md b/old_docs/API_docs_v25/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v25/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v25/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v25/methods/auth_checkPhone.md b/old_docs/API_docs_v25/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v25/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v25/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/auth_exportAuthorization.md b/old_docs/API_docs_v25/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v25/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v25/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v25/methods/auth_importAuthorization.md b/old_docs/API_docs_v25/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v25/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v25/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v25/methods/auth_logOut.md b/old_docs/API_docs_v25/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v25/methods/auth_logOut.md +++ b/old_docs/API_docs_v25/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v25/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v25/methods/auth_sendCall.md b/old_docs/API_docs_v25/methods/auth_sendCall.md index 386cfad4..94ed6b7f 100644 --- a/old_docs/API_docs_v25/methods/auth_sendCall.md +++ b/old_docs/API_docs_v25/methods/auth_sendCall.md @@ -23,16 +23,18 @@ description: auth.sendCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/auth_sendCode.md b/old_docs/API_docs_v25/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v25/methods/auth_sendCode.md +++ b/old_docs/API_docs_v25/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v25/methods/auth_sendInvites.md b/old_docs/API_docs_v25/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v25/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v25/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/methods/auth_sendSms.md b/old_docs/API_docs_v25/methods/auth_sendSms.md index 9a214e65..0c4a7343 100644 --- a/old_docs/API_docs_v25/methods/auth_sendSms.md +++ b/old_docs/API_docs_v25/methods/auth_sendSms.md @@ -23,16 +23,18 @@ description: auth.sendSms parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/auth_signIn.md b/old_docs/API_docs_v25/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v25/methods/auth_signIn.md +++ b/old_docs/API_docs_v25/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v25/methods/auth_signUp.md b/old_docs/API_docs_v25/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v25/methods/auth_signUp.md +++ b/old_docs/API_docs_v25/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v25/methods/contacts_block.md b/old_docs/API_docs_v25/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v25/methods/contacts_block.md +++ b/old_docs/API_docs_v25/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v25/methods/contacts_deleteContact.md b/old_docs/API_docs_v25/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v25/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v25/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v25/methods/contacts_deleteContacts.md b/old_docs/API_docs_v25/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v25/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v25/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/methods/contacts_exportCard.md b/old_docs/API_docs_v25/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v25/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v25/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v25/methods/contacts_getBlocked.md b/old_docs/API_docs_v25/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v25/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v25/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/contacts_getContacts.md b/old_docs/API_docs_v25/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v25/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v25/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/contacts_getStatuses.md b/old_docs/API_docs_v25/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v25/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v25/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v25/methods/contacts_getSuggested.md b/old_docs/API_docs_v25/methods/contacts_getSuggested.md index 2059c01b..7249b1f2 100644 --- a/old_docs/API_docs_v25/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v25/methods/contacts_getSuggested.md @@ -22,16 +22,18 @@ description: contacts.getSuggested parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/contacts_importCard.md b/old_docs/API_docs_v25/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v25/methods/contacts_importCard.md +++ b/old_docs/API_docs_v25/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/methods/contacts_importContacts.md b/old_docs/API_docs_v25/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v25/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v25/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/methods/contacts_resolveUsername.md b/old_docs/API_docs_v25/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v25/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v25/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v25/methods/contacts_search.md b/old_docs/API_docs_v25/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v25/methods/contacts_search.md +++ b/old_docs/API_docs_v25/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/contacts_unblock.md b/old_docs/API_docs_v25/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v25/methods/contacts_unblock.md +++ b/old_docs/API_docs_v25/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v25/methods/geochats_checkin.md b/old_docs/API_docs_v25/methods/geochats_checkin.md index 01559b90..a011bbe2 100644 --- a/old_docs/API_docs_v25/methods/geochats_checkin.md +++ b/old_docs/API_docs_v25/methods/geochats_checkin.md @@ -22,16 +22,18 @@ description: geochats.checkin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->checkin(['peer' => InputGeoChat, ]); ``` diff --git a/old_docs/API_docs_v25/methods/geochats_createGeoChat.md b/old_docs/API_docs_v25/methods/geochats_createGeoChat.md index 575e4fcf..60b34aba 100644 --- a/old_docs/API_docs_v25/methods/geochats_createGeoChat.md +++ b/old_docs/API_docs_v25/methods/geochats_createGeoChat.md @@ -25,16 +25,18 @@ description: geochats.createGeoChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->createGeoChat(['title' => 'string', 'geo_point' => InputGeoPoint, 'address' => 'string', 'venue' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/geochats_editChatPhoto.md b/old_docs/API_docs_v25/methods/geochats_editChatPhoto.md index 1871d83d..650bb041 100644 --- a/old_docs/API_docs_v25/methods/geochats_editChatPhoto.md +++ b/old_docs/API_docs_v25/methods/geochats_editChatPhoto.md @@ -23,16 +23,18 @@ description: geochats.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->editChatPhoto(['peer' => InputGeoChat, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v25/methods/geochats_editChatTitle.md b/old_docs/API_docs_v25/methods/geochats_editChatTitle.md index 1ec5a99d..3a0f2517 100644 --- a/old_docs/API_docs_v25/methods/geochats_editChatTitle.md +++ b/old_docs/API_docs_v25/methods/geochats_editChatTitle.md @@ -24,16 +24,18 @@ description: geochats.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->editChatTitle(['peer' => InputGeoChat, 'title' => 'string', 'address' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/geochats_getFullChat.md b/old_docs/API_docs_v25/methods/geochats_getFullChat.md index cfd4e4a1..5dde7118 100644 --- a/old_docs/API_docs_v25/methods/geochats_getFullChat.md +++ b/old_docs/API_docs_v25/methods/geochats_getFullChat.md @@ -22,16 +22,18 @@ description: geochats.getFullChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_ChatFull = $MadelineProto->geochats->getFullChat(['peer' => InputGeoChat, ]); ``` diff --git a/old_docs/API_docs_v25/methods/geochats_getHistory.md b/old_docs/API_docs_v25/methods/geochats_getHistory.md index 03ecbccc..4c53d110 100644 --- a/old_docs/API_docs_v25/methods/geochats_getHistory.md +++ b/old_docs/API_docs_v25/methods/geochats_getHistory.md @@ -25,16 +25,18 @@ description: geochats.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->getHistory(['peer' => InputGeoChat, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/geochats_getLocated.md b/old_docs/API_docs_v25/methods/geochats_getLocated.md index 1f904508..0e008ce8 100644 --- a/old_docs/API_docs_v25/methods/geochats_getLocated.md +++ b/old_docs/API_docs_v25/methods/geochats_getLocated.md @@ -24,16 +24,18 @@ description: geochats.getLocated parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_Located = $MadelineProto->geochats->getLocated(['geo_point' => InputGeoPoint, 'radius' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/geochats_getRecents.md b/old_docs/API_docs_v25/methods/geochats_getRecents.md index eeb8cdf2..9f0dc40e 100644 --- a/old_docs/API_docs_v25/methods/geochats_getRecents.md +++ b/old_docs/API_docs_v25/methods/geochats_getRecents.md @@ -23,16 +23,18 @@ description: geochats.getRecents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->getRecents(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/geochats_search.md b/old_docs/API_docs_v25/methods/geochats_search.md index d11b0cbd..38b073f8 100644 --- a/old_docs/API_docs_v25/methods/geochats_search.md +++ b/old_docs/API_docs_v25/methods/geochats_search.md @@ -29,16 +29,18 @@ description: geochats.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->search(['peer' => InputGeoChat, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/geochats_sendMedia.md b/old_docs/API_docs_v25/methods/geochats_sendMedia.md index ca7bd094..6b1e88ec 100644 --- a/old_docs/API_docs_v25/methods/geochats_sendMedia.md +++ b/old_docs/API_docs_v25/methods/geochats_sendMedia.md @@ -11,7 +11,7 @@ description: geochats.sendMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |peer|[InputGeoChat](../types/InputGeoChat.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [geochats\_StatedMessage](../types/geochats_StatedMessage.md) @@ -23,16 +23,18 @@ description: geochats.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->sendMedia(['peer' => InputGeoChat, 'media' => InputMedia, ]); ``` diff --git a/old_docs/API_docs_v25/methods/geochats_sendMessage.md b/old_docs/API_docs_v25/methods/geochats_sendMessage.md index a7216056..149ba8d8 100644 --- a/old_docs/API_docs_v25/methods/geochats_sendMessage.md +++ b/old_docs/API_docs_v25/methods/geochats_sendMessage.md @@ -23,16 +23,18 @@ description: geochats.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->sendMessage(['peer' => InputGeoChat, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/geochats_setTyping.md b/old_docs/API_docs_v25/methods/geochats_setTyping.md index 12cb55fe..bf73a8a8 100644 --- a/old_docs/API_docs_v25/methods/geochats_setTyping.md +++ b/old_docs/API_docs_v25/methods/geochats_setTyping.md @@ -23,16 +23,18 @@ description: geochats.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->geochats->setTyping(['peer' => InputGeoChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v25/methods/help_getAppUpdate.md b/old_docs/API_docs_v25/methods/help_getAppUpdate.md index 7b3bdde9..f9b06641 100644 --- a/old_docs/API_docs_v25/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v25/methods/help_getAppUpdate.md @@ -25,13 +25,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/help_getConfig.md b/old_docs/API_docs_v25/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v25/methods/help_getConfig.md +++ b/old_docs/API_docs_v25/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v25/methods/help_getInviteText.md b/old_docs/API_docs_v25/methods/help_getInviteText.md index 40251dd5..bac72a15 100644 --- a/old_docs/API_docs_v25/methods/help_getInviteText.md +++ b/old_docs/API_docs_v25/methods/help_getInviteText.md @@ -22,13 +22,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/help_getNearestDc.md b/old_docs/API_docs_v25/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v25/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v25/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v25/methods/help_getSupport.md b/old_docs/API_docs_v25/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v25/methods/help_getSupport.md +++ b/old_docs/API_docs_v25/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v25/methods/help_saveAppLog.md b/old_docs/API_docs_v25/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v25/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v25/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/methods/initConnection.md b/old_docs/API_docs_v25/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v25/methods/initConnection.md +++ b/old_docs/API_docs_v25/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v25/methods/invokeAfterMsg.md b/old_docs/API_docs_v25/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v25/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v25/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v25/methods/invokeAfterMsgs.md b/old_docs/API_docs_v25/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v25/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v25/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/methods/invokeWithLayer.md b/old_docs/API_docs_v25/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v25/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v25/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_acceptEncryption.md b/old_docs/API_docs_v25/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v25/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v25/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v25/methods/messages_addChatUser.md b/old_docs/API_docs_v25/methods/messages_addChatUser.md index fd75432b..27daee60 100644 --- a/old_docs/API_docs_v25/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v25/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_createChat.md b/old_docs/API_docs_v25/methods/messages_createChat.md index 82527c2a..9151f426 100644 --- a/old_docs/API_docs_v25/methods/messages_createChat.md +++ b/old_docs/API_docs_v25/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_StatedMessage = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_StatedMessage = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/methods/messages_deleteChatUser.md b/old_docs/API_docs_v25/methods/messages_deleteChatUser.md index 9764c4a4..d53343b8 100644 --- a/old_docs/API_docs_v25/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v25/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_StatedMessage](../types/messages_StatedMessage.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_deleteHistory.md b/old_docs/API_docs_v25/methods/messages_deleteHistory.md index 50179e3c..8e24ee79 100644 --- a/old_docs/API_docs_v25/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v25/methods/messages_deleteHistory.md @@ -10,7 +10,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_deleteMessages.md b/old_docs/API_docs_v25/methods/messages_deleteMessages.md index 38b3ca09..12347c81 100644 --- a/old_docs/API_docs_v25/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v25/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/methods/messages_discardEncryption.md b/old_docs/API_docs_v25/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v25/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v25/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v25/methods/messages_editChatPhoto.md b/old_docs/API_docs_v25/methods/messages_editChatPhoto.md index b041acb9..d0e0624a 100644 --- a/old_docs/API_docs_v25/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v25/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_editChatTitle.md b/old_docs/API_docs_v25/methods/messages_editChatTitle.md index b0880792..addff8ae 100644 --- a/old_docs/API_docs_v25/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v25/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_forwardMessage.md b/old_docs/API_docs_v25/methods/messages_forwardMessage.md index bdd480a3..25d09df3 100644 --- a/old_docs/API_docs_v25/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v25/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_forwardMessages.md b/old_docs/API_docs_v25/methods/messages_forwardMessages.md index 6f31e605..5b583d07 100644 --- a/old_docs/API_docs_v25/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v25/methods/messages_forwardMessages.md @@ -10,7 +10,7 @@ description: messages.forwardMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -51,18 +51,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_StatedMessages = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_StatedMessages = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/methods/messages_getAllStickers.md b/old_docs/API_docs_v25/methods/messages_getAllStickers.md index 3a0b3781..c1387ab3 100644 --- a/old_docs/API_docs_v25/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v25/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_getChats.md b/old_docs/API_docs_v25/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v25/methods/messages_getChats.md +++ b/old_docs/API_docs_v25/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/methods/messages_getDhConfig.md b/old_docs/API_docs_v25/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v25/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v25/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_getDialogs.md b/old_docs/API_docs_v25/methods/messages_getDialogs.md index 6295612b..0cd10d8c 100644 --- a/old_docs/API_docs_v25/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v25/methods/messages_getDialogs.md @@ -34,13 +34,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_getFullChat.md b/old_docs/API_docs_v25/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v25/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v25/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v25/methods/messages_getHistory.md b/old_docs/API_docs_v25/methods/messages_getHistory.md index 156d6bef..e3eef289 100644 --- a/old_docs/API_docs_v25/methods/messages_getHistory.md +++ b/old_docs/API_docs_v25/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -37,13 +37,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_getMessages.md b/old_docs/API_docs_v25/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v25/methods/messages_getMessages.md +++ b/old_docs/API_docs_v25/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/methods/messages_getStickers.md b/old_docs/API_docs_v25/methods/messages_getStickers.md index 1587cd01..6ac68c87 100644 --- a/old_docs/API_docs_v25/methods/messages_getStickers.md +++ b/old_docs/API_docs_v25/methods/messages_getStickers.md @@ -23,16 +23,18 @@ description: messages.getStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_readHistory.md b/old_docs/API_docs_v25/methods/messages_readHistory.md index 6d855b4d..4bb27a35 100644 --- a/old_docs/API_docs_v25/methods/messages_readHistory.md +++ b/old_docs/API_docs_v25/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |offset|[int](../types/int.md) | Yes| @@ -32,13 +32,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_readMessageContents.md b/old_docs/API_docs_v25/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v25/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v25/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/methods/messages_receivedMessages.md b/old_docs/API_docs_v25/methods/messages_receivedMessages.md index bd47c49c..86e2812d 100644 --- a/old_docs/API_docs_v25/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v25/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_receivedQueue.md b/old_docs/API_docs_v25/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v25/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v25/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_requestEncryption.md b/old_docs/API_docs_v25/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v25/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v25/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v25/methods/messages_search.md b/old_docs/API_docs_v25/methods/messages_search.md index f6aa515b..11b968bf 100644 --- a/old_docs/API_docs_v25/methods/messages_search.md +++ b/old_docs/API_docs_v25/methods/messages_search.md @@ -10,7 +10,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -42,13 +42,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_sendBroadcast.md b/old_docs/API_docs_v25/methods/messages_sendBroadcast.md index 4b0f8f0d..fcc00263 100644 --- a/old_docs/API_docs_v25/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v25/methods/messages_sendBroadcast.md @@ -10,9 +10,9 @@ description: messages.sendBroadcast parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|contacts|Array of [InputUser](../types/InputUser.md) | Yes| +|contacts|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |message|[string](../types/string.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [messages\_StatedMessages](../types/messages_StatedMessages.md) @@ -24,18 +24,20 @@ description: messages.sendBroadcast parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_StatedMessages = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser], 'message' => 'string', 'media' => InputMedia, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_StatedMessages = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/methods/messages_sendEncrypted.md b/old_docs/API_docs_v25/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_sendMedia.md b/old_docs/API_docs_v25/methods/messages_sendMedia.md index aad0b088..b32dbb05 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v25/methods/messages_sendMedia.md @@ -10,9 +10,9 @@ description: messages.sendMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [messages\_StatedMessage](../types/messages_StatedMessage.md) @@ -52,16 +52,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->sendMedia(['peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_sendMessage.md b/old_docs/API_docs_v25/methods/messages_sendMessage.md index f30f5dfe..8dd3a8bd 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v25/methods/messages_sendMessage.md @@ -10,7 +10,7 @@ description: messages.sendMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Yes| |message|[string](../types/string.md) | Yes| @@ -43,6 +43,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -50,16 +51,18 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentMessage = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v25/methods/messages_setTyping.md b/old_docs/API_docs_v25/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v25/methods/messages_setTyping.md +++ b/old_docs/API_docs_v25/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v25/methods/photos_deletePhotos.md b/old_docs/API_docs_v25/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v25/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v25/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/methods/photos_getUserPhotos.md b/old_docs/API_docs_v25/methods/photos_getUserPhotos.md index 7f1c642f..76046e95 100644 --- a/old_docs/API_docs_v25/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v25/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v25/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v25/methods/photos_updateProfilePhoto.md index d3acbb56..fbe84e26 100644 --- a/old_docs/API_docs_v25/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v25/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -23,13 +23,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md index de7c2281..303ed4ea 100644 --- a/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -35,13 +35,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v25/methods/updates_getDifference.md b/old_docs/API_docs_v25/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v25/methods/updates_getDifference.md +++ b/old_docs/API_docs_v25/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v25/methods/updates_getState.md b/old_docs/API_docs_v25/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v25/methods/updates_getState.md +++ b/old_docs/API_docs_v25/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v25/methods/upload_getFile.md b/old_docs/API_docs_v25/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v25/methods/upload_getFile.md +++ b/old_docs/API_docs_v25/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v25/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v25/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v25/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v25/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v25/methods/upload_saveFilePart.md b/old_docs/API_docs_v25/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v25/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v25/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v25/methods/users_getFullUser.md b/old_docs/API_docs_v25/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v25/methods/users_getFullUser.md +++ b/old_docs/API_docs_v25/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v25/methods/users_getUsers.md b/old_docs/API_docs_v25/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v25/methods/users_getUsers.md +++ b/old_docs/API_docs_v25/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v25/types/Chat.md b/old_docs/API_docs_v25/types/Chat.md index 77bd974c..2cab4d3d 100644 --- a/old_docs/API_docs_v25/types/Chat.md +++ b/old_docs/API_docs_v25/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v25/types/InputDocument.md b/old_docs/API_docs_v25/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v25/types/InputDocument.md +++ b/old_docs/API_docs_v25/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v25/types/InputEncryptedChat.md b/old_docs/API_docs_v25/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v25/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v25/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v25/types/InputEncryptedFile.md b/old_docs/API_docs_v25/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v25/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v25/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v25/types/InputFile.md b/old_docs/API_docs_v25/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v25/types/InputFile.md +++ b/old_docs/API_docs_v25/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v25/types/InputMedia.md b/old_docs/API_docs_v25/types/InputMedia.md index 91dacd19..bf8f80d6 100644 --- a/old_docs/API_docs_v25/types/InputMedia.md +++ b/old_docs/API_docs_v25/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v25/types/InputPeer.md b/old_docs/API_docs_v25/types/InputPeer.md index d7d075b0..489fb96d 100644 --- a/old_docs/API_docs_v25/types/InputPeer.md +++ b/old_docs/API_docs_v25/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v25/types/InputPhoto.md b/old_docs/API_docs_v25/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v25/types/InputPhoto.md +++ b/old_docs/API_docs_v25/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v25/types/InputUser.md b/old_docs/API_docs_v25/types/InputUser.md index 4639f1a1..b2886be9 100644 --- a/old_docs/API_docs_v25/types/InputUser.md +++ b/old_docs/API_docs_v25/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v25/types/Peer.md b/old_docs/API_docs_v25/types/Peer.md index 5dcdb9b0..20253dd9 100644 --- a/old_docs/API_docs_v25/types/Peer.md +++ b/old_docs/API_docs_v25/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v25/types/User.md b/old_docs/API_docs_v25/types/User.md index c84ecc3d..7d7a11f3 100644 --- a/old_docs/API_docs_v25/types/User.md +++ b/old_docs/API_docs_v25/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v27/constructors/account_authorizations.md b/old_docs/API_docs_v27/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v27/constructors/account_authorizations.md +++ b/old_docs/API_docs_v27/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/account_privacyRules.md b/old_docs/API_docs_v27/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v27/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v27/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/chatParticipants.md b/old_docs/API_docs_v27/constructors/chatParticipants.md index dcbf547e..8d10057c 100644 --- a/old_docs/API_docs_v27/constructors/chatParticipants.md +++ b/old_docs/API_docs_v27/constructors/chatParticipants.md @@ -24,7 +24,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'admin_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'admin_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/config.md b/old_docs/API_docs_v27/constructors/config.md index a38ea711..e92f6331 100644 --- a/old_docs/API_docs_v27/constructors/config.md +++ b/old_docs/API_docs_v27/constructors/config.md @@ -36,7 +36,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_size_max' => int, 'broadcast_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, 'chat_big_size' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], 'chat_size_max' => int, 'broadcast_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, 'chat_big_size' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/contacts_blocked.md b/old_docs/API_docs_v27/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v27/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v27/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v27/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v27/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v27/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/contacts_contacts.md b/old_docs/API_docs_v27/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v27/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v27/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/contacts_found.md b/old_docs/API_docs_v27/constructors/contacts_found.md index 20f6fd7b..4b685825 100644 --- a/old_docs/API_docs_v27/constructors/contacts_found.md +++ b/old_docs/API_docs_v27/constructors/contacts_found.md @@ -22,7 +22,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [ContactFound], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [ContactFound, ContactFound], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/contacts_importedContacts.md b/old_docs/API_docs_v27/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v27/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v27/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/contacts_suggested.md b/old_docs/API_docs_v27/constructors/contacts_suggested.md index 38db68c5..1ee96769 100644 --- a/old_docs/API_docs_v27/constructors/contacts_suggested.md +++ b/old_docs/API_docs_v27/constructors/contacts_suggested.md @@ -22,7 +22,7 @@ description: contacts_suggested attributes, type and example ### Example: ``` -$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested], 'users' => [User]]; +$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested, ContactSuggested], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/document.md b/old_docs/API_docs_v27/constructors/document.md index 3a584537..21dc39bb 100644 --- a/old_docs/API_docs_v27/constructors/document.md +++ b/old_docs/API_docs_v27/constructors/document.md @@ -28,7 +28,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/documentAttributeAudio.md b/old_docs/API_docs_v27/constructors/documentAttributeAudio.md index bed9cd5d..3b404b39 100644 --- a/old_docs/API_docs_v27/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v27/constructors/documentAttributeAudio.md @@ -11,7 +11,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v27/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v27/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v27/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v27/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v27/constructors/documentAttributeVideo.md b/old_docs/API_docs_v27/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v27/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v27/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v27/constructors/geochats_located.md b/old_docs/API_docs_v27/constructors/geochats_located.md index 43c76fab..8ff1a972 100644 --- a/old_docs/API_docs_v27/constructors/geochats_located.md +++ b/old_docs/API_docs_v27/constructors/geochats_located.md @@ -24,7 +24,7 @@ description: geochats_located attributes, type and example ### Example: ``` -$geochats_located = ['_' => 'geochats.located', 'results' => [ChatLocated], 'messages' => [GeoChatMessage], 'chats' => [Chat], 'users' => [User]]; +$geochats_located = ['_' => 'geochats.located', 'results' => [ChatLocated, ChatLocated], 'messages' => [GeoChatMessage, GeoChatMessage], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/geochats_messages.md b/old_docs/API_docs_v27/constructors/geochats_messages.md index dc891962..4e54df7c 100644 --- a/old_docs/API_docs_v27/constructors/geochats_messages.md +++ b/old_docs/API_docs_v27/constructors/geochats_messages.md @@ -23,7 +23,7 @@ description: geochats_messages attributes, type and example ### Example: ``` -$geochats_messages = ['_' => 'geochats.messages', 'messages' => [GeoChatMessage], 'chats' => [Chat], 'users' => [User]]; +$geochats_messages = ['_' => 'geochats.messages', 'messages' => [GeoChatMessage, GeoChatMessage], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/geochats_messagesSlice.md b/old_docs/API_docs_v27/constructors/geochats_messagesSlice.md index 4fec2937..e020ec01 100644 --- a/old_docs/API_docs_v27/constructors/geochats_messagesSlice.md +++ b/old_docs/API_docs_v27/constructors/geochats_messagesSlice.md @@ -24,7 +24,7 @@ description: geochats_messagesSlice attributes, type and example ### Example: ``` -$geochats_messagesSlice = ['_' => 'geochats.messagesSlice', 'count' => int, 'messages' => [GeoChatMessage], 'chats' => [Chat], 'users' => [User]]; +$geochats_messagesSlice = ['_' => 'geochats.messagesSlice', 'count' => int, 'messages' => [GeoChatMessage, GeoChatMessage], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/geochats_statedMessage.md b/old_docs/API_docs_v27/constructors/geochats_statedMessage.md index f831d25f..d12cdd5e 100644 --- a/old_docs/API_docs_v27/constructors/geochats_statedMessage.md +++ b/old_docs/API_docs_v27/constructors/geochats_statedMessage.md @@ -24,7 +24,7 @@ description: geochats_statedMessage attributes, type and example ### Example: ``` -$geochats_statedMessage = ['_' => 'geochats.statedMessage', 'message' => GeoChatMessage, 'chats' => [Chat], 'users' => [User], 'seq' => int]; +$geochats_statedMessage = ['_' => 'geochats.statedMessage', 'message' => GeoChatMessage, 'chats' => [Chat, Chat], 'users' => [User, User], 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/inputChatPhoto.md b/old_docs/API_docs_v27/constructors/inputChatPhoto.md index 4cd81a7c..f10e2da3 100644 --- a/old_docs/API_docs_v27/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v27/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v27/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v27/constructors/inputChatUploadedPhoto.md index 3d88ac48..13857e71 100644 --- a/old_docs/API_docs_v27/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v27/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v27/constructors/inputMediaDocument.md b/old_docs/API_docs_v27/constructors/inputMediaDocument.md index 1859313a..034a28bd 100644 --- a/old_docs/API_docs_v27/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v27/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v27/constructors/inputMediaPhoto.md b/old_docs/API_docs_v27/constructors/inputMediaPhoto.md index 7ac93db7..5659a532 100644 --- a/old_docs/API_docs_v27/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v27/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v27/constructors/inputMediaUploadedAudio.md b/old_docs/API_docs_v27/constructors/inputMediaUploadedAudio.md index bbbe18a2..8fe9138e 100644 --- a/old_docs/API_docs_v27/constructors/inputMediaUploadedAudio.md +++ b/old_docs/API_docs_v27/constructors/inputMediaUploadedAudio.md @@ -11,9 +11,9 @@ description: inputMediaUploadedAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v27/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v27/constructors/inputMediaUploadedDocument.md index 8ce039fa..67edf365 100644 --- a/old_docs/API_docs_v27/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v27/constructors/inputMediaUploadedDocument.md @@ -11,8 +11,8 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -23,7 +23,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v27/constructors/inputMediaUploadedPhoto.md index 73e30d41..35737207 100644 --- a/old_docs/API_docs_v27/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v27/constructors/inputMediaUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| diff --git a/old_docs/API_docs_v27/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v27/constructors/inputMediaUploadedThumbDocument.md index d6f3a647..13b93260 100644 --- a/old_docs/API_docs_v27/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v27/constructors/inputMediaUploadedThumbDocument.md @@ -11,9 +11,9 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -24,7 +24,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/inputMediaUploadedThumbVideo.md b/old_docs/API_docs_v27/constructors/inputMediaUploadedThumbVideo.md index 17e50481..6f3e8bea 100644 --- a/old_docs/API_docs_v27/constructors/inputMediaUploadedThumbVideo.md +++ b/old_docs/API_docs_v27/constructors/inputMediaUploadedThumbVideo.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v27/constructors/inputMediaUploadedVideo.md b/old_docs/API_docs_v27/constructors/inputMediaUploadedVideo.md index 574c090a..8356008d 100644 --- a/old_docs/API_docs_v27/constructors/inputMediaUploadedVideo.md +++ b/old_docs/API_docs_v27/constructors/inputMediaUploadedVideo.md @@ -11,11 +11,11 @@ description: inputMediaUploadedVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v27/constructors/inputNotifyPeer.md b/old_docs/API_docs_v27/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v27/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v27/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v27/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v27/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v27/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v27/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v27/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v27/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v27/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/messageActionChatCreate.md b/old_docs/API_docs_v27/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v27/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v27/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/messages_allStickers.md b/old_docs/API_docs_v27/constructors/messages_allStickers.md index 234531ef..cc78eae4 100644 --- a/old_docs/API_docs_v27/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v27/constructors/messages_allStickers.md @@ -23,7 +23,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/messages_chatFull.md b/old_docs/API_docs_v27/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v27/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v27/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/messages_chats.md b/old_docs/API_docs_v27/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v27/constructors/messages_chats.md +++ b/old_docs/API_docs_v27/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/messages_dialogs.md b/old_docs/API_docs_v27/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v27/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v27/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v27/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v27/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v27/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v27/constructors/messages_messages.md b/old_docs/API_docs_v27/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v27/constructors/messages_messages.md +++ b/old_docs/API_docs_v27/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/messages_messagesSlice.md b/old_docs/API_docs_v27/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v27/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v27/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/messages_sentMessageLink.md b/old_docs/API_docs_v27/constructors/messages_sentMessageLink.md index e3450fff..6bbed3fa 100644 --- a/old_docs/API_docs_v27/constructors/messages_sentMessageLink.md +++ b/old_docs/API_docs_v27/constructors/messages_sentMessageLink.md @@ -27,7 +27,7 @@ description: messages_sentMessageLink attributes, type and example ### Example: ``` -$messages_sentMessageLink = ['_' => 'messages.sentMessageLink', 'id' => int, 'date' => int, 'media' => MessageMedia, 'pts' => int, 'pts_count' => int, 'links' => [contacts_Link], 'seq' => int]; +$messages_sentMessageLink = ['_' => 'messages.sentMessageLink', 'id' => int, 'date' => int, 'media' => MessageMedia, 'pts' => int, 'pts_count' => int, 'links' => [contacts_Link, contacts_Link], 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/messages_stickers.md b/old_docs/API_docs_v27/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v27/constructors/messages_stickers.md +++ b/old_docs/API_docs_v27/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/photo.md b/old_docs/API_docs_v27/constructors/photo.md index c947cc45..318fcae0 100644 --- a/old_docs/API_docs_v27/constructors/photo.md +++ b/old_docs/API_docs_v27/constructors/photo.md @@ -27,7 +27,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'user_id' => int, 'date' => int, 'caption' => 'string', 'geo' => GeoPoint, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'user_id' => int, 'date' => int, 'caption' => 'string', 'geo' => GeoPoint, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/photos_photo.md b/old_docs/API_docs_v27/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v27/constructors/photos_photo.md +++ b/old_docs/API_docs_v27/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/photos_photos.md b/old_docs/API_docs_v27/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v27/constructors/photos_photos.md +++ b/old_docs/API_docs_v27/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/photos_photosSlice.md b/old_docs/API_docs_v27/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v27/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v27/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v27/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v27/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v27/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v27/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v27/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v27/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/stickerPack.md b/old_docs/API_docs_v27/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v27/constructors/stickerPack.md +++ b/old_docs/API_docs_v27/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/updateDcOptions.md b/old_docs/API_docs_v27/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v27/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v27/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/updateDeleteMessages.md b/old_docs/API_docs_v27/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v27/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v27/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/updatePrivacy.md b/old_docs/API_docs_v27/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v27/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v27/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/updateReadMessages.md b/old_docs/API_docs_v27/constructors/updateReadMessages.md index 47dc17ae..ebeacdb2 100644 --- a/old_docs/API_docs_v27/constructors/updateReadMessages.md +++ b/old_docs/API_docs_v27/constructors/updateReadMessages.md @@ -23,7 +23,7 @@ description: updateReadMessages attributes, type and example ### Example: ``` -$updateReadMessages = ['_' => 'updateReadMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessages = ['_' => 'updateReadMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/updates.md b/old_docs/API_docs_v27/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v27/constructors/updates.md +++ b/old_docs/API_docs_v27/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/constructors/updatesCombined.md b/old_docs/API_docs_v27/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v27/constructors/updatesCombined.md +++ b/old_docs/API_docs_v27/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v27/constructors/updates_difference.md b/old_docs/API_docs_v27/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v27/constructors/updates_difference.md +++ b/old_docs/API_docs_v27/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v27/constructors/updates_differenceSlice.md b/old_docs/API_docs_v27/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v27/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v27/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v27/constructors/wallPaper.md b/old_docs/API_docs_v27/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v27/constructors/wallPaper.md +++ b/old_docs/API_docs_v27/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v27/methods/README.md b/old_docs/API_docs_v27/methods/README.md index 3445fa9a..4b31db71 100644 --- a/old_docs/API_docs_v27/methods/README.md +++ b/old_docs/API_docs_v27/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v27/methods/account_changePhone.md b/old_docs/API_docs_v27/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v27/methods/account_changePhone.md +++ b/old_docs/API_docs_v27/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_checkUsername.md b/old_docs/API_docs_v27/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v27/methods/account_checkUsername.md +++ b/old_docs/API_docs_v27/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_deleteAccount.md b/old_docs/API_docs_v27/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v27/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v27/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_getAccountTTL.md b/old_docs/API_docs_v27/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v27/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v27/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v27/methods/account_getAuthorizations.md b/old_docs/API_docs_v27/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v27/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v27/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v27/methods/account_getNotifySettings.md b/old_docs/API_docs_v27/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v27/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v27/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_getPassword.md b/old_docs/API_docs_v27/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v27/methods/account_getPassword.md +++ b/old_docs/API_docs_v27/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v27/methods/account_getPasswordSettings.md b/old_docs/API_docs_v27/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v27/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v27/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_getPrivacy.md b/old_docs/API_docs_v27/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v27/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v27/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_getWallPapers.md b/old_docs/API_docs_v27/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v27/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v27/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v27/methods/account_registerDevice.md b/old_docs/API_docs_v27/methods/account_registerDevice.md index cfa1546c..5c86d74c 100644 --- a/old_docs/API_docs_v27/methods/account_registerDevice.md +++ b/old_docs/API_docs_v27/methods/account_registerDevice.md @@ -1,22 +1,24 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|app\_sandbox|[Bool](../types/Bool.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| +|device\_model|[string](../types/string.md) | Yes|| +|system\_version|[string](../types/string.md) | Yes|| +|app\_version|[string](../types/string.md) | Yes|| +|app\_sandbox|[Bool](../types/Bool.md) | Yes|Should the app run in a sandbox?| +|lang\_code|[string](../types/string.md) | Yes|| ### Return type: [Bool](../types/Bool.md) @@ -35,13 +37,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_resetAuthorization.md b/old_docs/API_docs_v27/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v27/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v27/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_resetNotifySettings.md b/old_docs/API_docs_v27/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v27/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v27/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md index ad611a8b..b5258245 100644 --- a/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md @@ -1,16 +1,18 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|New phone number| ### Return type: [account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) @@ -29,13 +31,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_setAccountTTL.md b/old_docs/API_docs_v27/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v27/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v27/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_setPrivacy.md b/old_docs/API_docs_v27/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v27/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v27/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/methods/account_unregisterDevice.md b/old_docs/API_docs_v27/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v27/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v27/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v27/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v27/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v27/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_updateNotifySettings.md b/old_docs/API_docs_v27/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v27/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v27/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_updateProfile.md b/old_docs/API_docs_v27/methods/account_updateProfile.md index 123ed13a..7f8d80c5 100644 --- a/old_docs/API_docs_v27/methods/account_updateProfile.md +++ b/old_docs/API_docs_v27/methods/account_updateProfile.md @@ -1,17 +1,19 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Yes| -|last\_name|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Yes|The first name| +|last\_name|[string](../types/string.md) | Yes|The last name| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_updateStatus.md b/old_docs/API_docs_v27/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v27/methods/account_updateStatus.md +++ b/old_docs/API_docs_v27/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v27/methods/account_updateUsername.md b/old_docs/API_docs_v27/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v27/methods/account_updateUsername.md +++ b/old_docs/API_docs_v27/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v27/methods/auth_checkPassword.md b/old_docs/API_docs_v27/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v27/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v27/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v27/methods/auth_checkPhone.md b/old_docs/API_docs_v27/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v27/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v27/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/auth_exportAuthorization.md b/old_docs/API_docs_v27/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v27/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v27/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v27/methods/auth_importAuthorization.md b/old_docs/API_docs_v27/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v27/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v27/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v27/methods/auth_logOut.md b/old_docs/API_docs_v27/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v27/methods/auth_logOut.md +++ b/old_docs/API_docs_v27/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v27/methods/auth_recoverPassword.md b/old_docs/API_docs_v27/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v27/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v27/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v27/methods/auth_sendCall.md b/old_docs/API_docs_v27/methods/auth_sendCall.md index 386cfad4..94ed6b7f 100644 --- a/old_docs/API_docs_v27/methods/auth_sendCall.md +++ b/old_docs/API_docs_v27/methods/auth_sendCall.md @@ -23,16 +23,18 @@ description: auth.sendCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/auth_sendCode.md b/old_docs/API_docs_v27/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v27/methods/auth_sendCode.md +++ b/old_docs/API_docs_v27/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v27/methods/auth_sendInvites.md b/old_docs/API_docs_v27/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v27/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v27/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/methods/auth_sendSms.md b/old_docs/API_docs_v27/methods/auth_sendSms.md index 9a214e65..0c4a7343 100644 --- a/old_docs/API_docs_v27/methods/auth_sendSms.md +++ b/old_docs/API_docs_v27/methods/auth_sendSms.md @@ -23,16 +23,18 @@ description: auth.sendSms parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/auth_signIn.md b/old_docs/API_docs_v27/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v27/methods/auth_signIn.md +++ b/old_docs/API_docs_v27/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v27/methods/auth_signUp.md b/old_docs/API_docs_v27/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v27/methods/auth_signUp.md +++ b/old_docs/API_docs_v27/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v27/methods/contacts_block.md b/old_docs/API_docs_v27/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v27/methods/contacts_block.md +++ b/old_docs/API_docs_v27/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v27/methods/contacts_deleteContact.md b/old_docs/API_docs_v27/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v27/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v27/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v27/methods/contacts_deleteContacts.md b/old_docs/API_docs_v27/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v27/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v27/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/methods/contacts_exportCard.md b/old_docs/API_docs_v27/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v27/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v27/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v27/methods/contacts_getBlocked.md b/old_docs/API_docs_v27/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v27/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v27/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/contacts_getContacts.md b/old_docs/API_docs_v27/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v27/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v27/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/contacts_getStatuses.md b/old_docs/API_docs_v27/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v27/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v27/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v27/methods/contacts_getSuggested.md b/old_docs/API_docs_v27/methods/contacts_getSuggested.md index 2059c01b..7249b1f2 100644 --- a/old_docs/API_docs_v27/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v27/methods/contacts_getSuggested.md @@ -22,16 +22,18 @@ description: contacts.getSuggested parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/contacts_importCard.md b/old_docs/API_docs_v27/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v27/methods/contacts_importCard.md +++ b/old_docs/API_docs_v27/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/methods/contacts_importContacts.md b/old_docs/API_docs_v27/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v27/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v27/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/methods/contacts_resolveUsername.md b/old_docs/API_docs_v27/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v27/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v27/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v27/methods/contacts_search.md b/old_docs/API_docs_v27/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v27/methods/contacts_search.md +++ b/old_docs/API_docs_v27/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/contacts_unblock.md b/old_docs/API_docs_v27/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v27/methods/contacts_unblock.md +++ b/old_docs/API_docs_v27/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v27/methods/geochats_checkin.md b/old_docs/API_docs_v27/methods/geochats_checkin.md index 01559b90..a011bbe2 100644 --- a/old_docs/API_docs_v27/methods/geochats_checkin.md +++ b/old_docs/API_docs_v27/methods/geochats_checkin.md @@ -22,16 +22,18 @@ description: geochats.checkin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->checkin(['peer' => InputGeoChat, ]); ``` diff --git a/old_docs/API_docs_v27/methods/geochats_createGeoChat.md b/old_docs/API_docs_v27/methods/geochats_createGeoChat.md index 575e4fcf..60b34aba 100644 --- a/old_docs/API_docs_v27/methods/geochats_createGeoChat.md +++ b/old_docs/API_docs_v27/methods/geochats_createGeoChat.md @@ -25,16 +25,18 @@ description: geochats.createGeoChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->createGeoChat(['title' => 'string', 'geo_point' => InputGeoPoint, 'address' => 'string', 'venue' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/geochats_editChatPhoto.md b/old_docs/API_docs_v27/methods/geochats_editChatPhoto.md index 1871d83d..650bb041 100644 --- a/old_docs/API_docs_v27/methods/geochats_editChatPhoto.md +++ b/old_docs/API_docs_v27/methods/geochats_editChatPhoto.md @@ -23,16 +23,18 @@ description: geochats.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->editChatPhoto(['peer' => InputGeoChat, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v27/methods/geochats_editChatTitle.md b/old_docs/API_docs_v27/methods/geochats_editChatTitle.md index 1ec5a99d..3a0f2517 100644 --- a/old_docs/API_docs_v27/methods/geochats_editChatTitle.md +++ b/old_docs/API_docs_v27/methods/geochats_editChatTitle.md @@ -24,16 +24,18 @@ description: geochats.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->editChatTitle(['peer' => InputGeoChat, 'title' => 'string', 'address' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/geochats_getFullChat.md b/old_docs/API_docs_v27/methods/geochats_getFullChat.md index cfd4e4a1..5dde7118 100644 --- a/old_docs/API_docs_v27/methods/geochats_getFullChat.md +++ b/old_docs/API_docs_v27/methods/geochats_getFullChat.md @@ -22,16 +22,18 @@ description: geochats.getFullChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_ChatFull = $MadelineProto->geochats->getFullChat(['peer' => InputGeoChat, ]); ``` diff --git a/old_docs/API_docs_v27/methods/geochats_getHistory.md b/old_docs/API_docs_v27/methods/geochats_getHistory.md index 03ecbccc..4c53d110 100644 --- a/old_docs/API_docs_v27/methods/geochats_getHistory.md +++ b/old_docs/API_docs_v27/methods/geochats_getHistory.md @@ -25,16 +25,18 @@ description: geochats.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->getHistory(['peer' => InputGeoChat, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/geochats_getLocated.md b/old_docs/API_docs_v27/methods/geochats_getLocated.md index 1f904508..0e008ce8 100644 --- a/old_docs/API_docs_v27/methods/geochats_getLocated.md +++ b/old_docs/API_docs_v27/methods/geochats_getLocated.md @@ -24,16 +24,18 @@ description: geochats.getLocated parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_Located = $MadelineProto->geochats->getLocated(['geo_point' => InputGeoPoint, 'radius' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/geochats_getRecents.md b/old_docs/API_docs_v27/methods/geochats_getRecents.md index eeb8cdf2..9f0dc40e 100644 --- a/old_docs/API_docs_v27/methods/geochats_getRecents.md +++ b/old_docs/API_docs_v27/methods/geochats_getRecents.md @@ -23,16 +23,18 @@ description: geochats.getRecents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->getRecents(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/geochats_search.md b/old_docs/API_docs_v27/methods/geochats_search.md index d11b0cbd..38b073f8 100644 --- a/old_docs/API_docs_v27/methods/geochats_search.md +++ b/old_docs/API_docs_v27/methods/geochats_search.md @@ -29,16 +29,18 @@ description: geochats.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->search(['peer' => InputGeoChat, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/geochats_sendMedia.md b/old_docs/API_docs_v27/methods/geochats_sendMedia.md index ca7bd094..6b1e88ec 100644 --- a/old_docs/API_docs_v27/methods/geochats_sendMedia.md +++ b/old_docs/API_docs_v27/methods/geochats_sendMedia.md @@ -11,7 +11,7 @@ description: geochats.sendMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |peer|[InputGeoChat](../types/InputGeoChat.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [geochats\_StatedMessage](../types/geochats_StatedMessage.md) @@ -23,16 +23,18 @@ description: geochats.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->sendMedia(['peer' => InputGeoChat, 'media' => InputMedia, ]); ``` diff --git a/old_docs/API_docs_v27/methods/geochats_sendMessage.md b/old_docs/API_docs_v27/methods/geochats_sendMessage.md index a7216056..149ba8d8 100644 --- a/old_docs/API_docs_v27/methods/geochats_sendMessage.md +++ b/old_docs/API_docs_v27/methods/geochats_sendMessage.md @@ -23,16 +23,18 @@ description: geochats.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->sendMessage(['peer' => InputGeoChat, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/geochats_setTyping.md b/old_docs/API_docs_v27/methods/geochats_setTyping.md index 12cb55fe..bf73a8a8 100644 --- a/old_docs/API_docs_v27/methods/geochats_setTyping.md +++ b/old_docs/API_docs_v27/methods/geochats_setTyping.md @@ -23,16 +23,18 @@ description: geochats.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->geochats->setTyping(['peer' => InputGeoChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v27/methods/help_getAppUpdate.md b/old_docs/API_docs_v27/methods/help_getAppUpdate.md index 7b3bdde9..f9b06641 100644 --- a/old_docs/API_docs_v27/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v27/methods/help_getAppUpdate.md @@ -25,13 +25,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/help_getConfig.md b/old_docs/API_docs_v27/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v27/methods/help_getConfig.md +++ b/old_docs/API_docs_v27/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v27/methods/help_getInviteText.md b/old_docs/API_docs_v27/methods/help_getInviteText.md index 40251dd5..bac72a15 100644 --- a/old_docs/API_docs_v27/methods/help_getInviteText.md +++ b/old_docs/API_docs_v27/methods/help_getInviteText.md @@ -22,13 +22,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/help_getNearestDc.md b/old_docs/API_docs_v27/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v27/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v27/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v27/methods/help_getSupport.md b/old_docs/API_docs_v27/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v27/methods/help_getSupport.md +++ b/old_docs/API_docs_v27/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v27/methods/help_saveAppLog.md b/old_docs/API_docs_v27/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v27/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v27/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/methods/initConnection.md b/old_docs/API_docs_v27/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v27/methods/initConnection.md +++ b/old_docs/API_docs_v27/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v27/methods/invokeAfterMsg.md b/old_docs/API_docs_v27/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v27/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v27/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v27/methods/invokeAfterMsgs.md b/old_docs/API_docs_v27/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v27/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v27/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/methods/invokeWithLayer.md b/old_docs/API_docs_v27/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v27/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v27/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_acceptEncryption.md b/old_docs/API_docs_v27/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v27/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v27/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v27/methods/messages_addChatUser.md b/old_docs/API_docs_v27/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v27/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v27/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_createChat.md b/old_docs/API_docs_v27/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v27/methods/messages_createChat.md +++ b/old_docs/API_docs_v27/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/methods/messages_deleteChatUser.md b/old_docs/API_docs_v27/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v27/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v27/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_deleteHistory.md b/old_docs/API_docs_v27/methods/messages_deleteHistory.md index 50179e3c..8e24ee79 100644 --- a/old_docs/API_docs_v27/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v27/methods/messages_deleteHistory.md @@ -10,7 +10,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_deleteMessages.md b/old_docs/API_docs_v27/methods/messages_deleteMessages.md index 38b3ca09..12347c81 100644 --- a/old_docs/API_docs_v27/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v27/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/methods/messages_discardEncryption.md b/old_docs/API_docs_v27/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v27/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v27/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v27/methods/messages_editChatPhoto.md b/old_docs/API_docs_v27/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v27/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v27/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_editChatTitle.md b/old_docs/API_docs_v27/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v27/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v27/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_forwardMessage.md b/old_docs/API_docs_v27/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v27/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v27/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_forwardMessages.md b/old_docs/API_docs_v27/methods/messages_forwardMessages.md index 8c642a6b..3ab63630 100644 --- a/old_docs/API_docs_v27/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v27/methods/messages_forwardMessages.md @@ -10,7 +10,7 @@ description: messages.forwardMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -51,18 +51,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/methods/messages_getAllStickers.md b/old_docs/API_docs_v27/methods/messages_getAllStickers.md index 3a0b3781..c1387ab3 100644 --- a/old_docs/API_docs_v27/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v27/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_getChats.md b/old_docs/API_docs_v27/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v27/methods/messages_getChats.md +++ b/old_docs/API_docs_v27/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/methods/messages_getDhConfig.md b/old_docs/API_docs_v27/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v27/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v27/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_getDialogs.md b/old_docs/API_docs_v27/methods/messages_getDialogs.md index 6295612b..0cd10d8c 100644 --- a/old_docs/API_docs_v27/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v27/methods/messages_getDialogs.md @@ -34,13 +34,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_getFullChat.md b/old_docs/API_docs_v27/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v27/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v27/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v27/methods/messages_getHistory.md b/old_docs/API_docs_v27/methods/messages_getHistory.md index 156d6bef..e3eef289 100644 --- a/old_docs/API_docs_v27/methods/messages_getHistory.md +++ b/old_docs/API_docs_v27/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -37,13 +37,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_getMessages.md b/old_docs/API_docs_v27/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v27/methods/messages_getMessages.md +++ b/old_docs/API_docs_v27/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/methods/messages_getStickers.md b/old_docs/API_docs_v27/methods/messages_getStickers.md index 1587cd01..6ac68c87 100644 --- a/old_docs/API_docs_v27/methods/messages_getStickers.md +++ b/old_docs/API_docs_v27/methods/messages_getStickers.md @@ -23,16 +23,18 @@ description: messages.getStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v27/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v27/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v27/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_readHistory.md b/old_docs/API_docs_v27/methods/messages_readHistory.md index 6d855b4d..4bb27a35 100644 --- a/old_docs/API_docs_v27/methods/messages_readHistory.md +++ b/old_docs/API_docs_v27/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |offset|[int](../types/int.md) | Yes| @@ -32,13 +32,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_readMessageContents.md b/old_docs/API_docs_v27/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v27/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v27/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/methods/messages_receivedMessages.md b/old_docs/API_docs_v27/methods/messages_receivedMessages.md index bd47c49c..86e2812d 100644 --- a/old_docs/API_docs_v27/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v27/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_receivedQueue.md b/old_docs/API_docs_v27/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v27/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v27/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_requestEncryption.md b/old_docs/API_docs_v27/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v27/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v27/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v27/methods/messages_search.md b/old_docs/API_docs_v27/methods/messages_search.md index f6aa515b..11b968bf 100644 --- a/old_docs/API_docs_v27/methods/messages_search.md +++ b/old_docs/API_docs_v27/methods/messages_search.md @@ -10,7 +10,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -42,13 +42,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_sendBroadcast.md b/old_docs/API_docs_v27/methods/messages_sendBroadcast.md index 725d1f34..0ab60e43 100644 --- a/old_docs/API_docs_v27/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v27/methods/messages_sendBroadcast.md @@ -10,9 +10,9 @@ description: messages.sendBroadcast parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|contacts|Array of [InputUser](../types/InputUser.md) | Yes| +|contacts|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |message|[string](../types/string.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -24,18 +24,20 @@ description: messages.sendBroadcast parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser], 'message' => 'string', 'media' => InputMedia, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/methods/messages_sendEncrypted.md b/old_docs/API_docs_v27/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_sendMedia.md b/old_docs/API_docs_v27/methods/messages_sendMedia.md index 5952573a..42cb7c89 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v27/methods/messages_sendMedia.md @@ -10,9 +10,9 @@ description: messages.sendMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -52,16 +52,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_sendMessage.md b/old_docs/API_docs_v27/methods/messages_sendMessage.md index efbd455e..55c5ad85 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v27/methods/messages_sendMessage.md @@ -10,7 +10,7 @@ description: messages.sendMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| @@ -43,6 +43,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -50,16 +51,18 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentMessage = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v27/methods/messages_setTyping.md b/old_docs/API_docs_v27/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v27/methods/messages_setTyping.md +++ b/old_docs/API_docs_v27/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v27/methods/photos_deletePhotos.md b/old_docs/API_docs_v27/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v27/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v27/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/methods/photos_getUserPhotos.md b/old_docs/API_docs_v27/methods/photos_getUserPhotos.md index 7f1c642f..76046e95 100644 --- a/old_docs/API_docs_v27/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v27/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v27/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v27/methods/photos_updateProfilePhoto.md index d3acbb56..fbe84e26 100644 --- a/old_docs/API_docs_v27/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v27/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -23,13 +23,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md index de7c2281..303ed4ea 100644 --- a/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -35,13 +35,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v27/methods/updates_getDifference.md b/old_docs/API_docs_v27/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v27/methods/updates_getDifference.md +++ b/old_docs/API_docs_v27/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v27/methods/updates_getState.md b/old_docs/API_docs_v27/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v27/methods/updates_getState.md +++ b/old_docs/API_docs_v27/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v27/methods/upload_getFile.md b/old_docs/API_docs_v27/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v27/methods/upload_getFile.md +++ b/old_docs/API_docs_v27/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v27/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v27/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v27/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v27/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v27/methods/upload_saveFilePart.md b/old_docs/API_docs_v27/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v27/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v27/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v27/methods/users_getFullUser.md b/old_docs/API_docs_v27/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v27/methods/users_getFullUser.md +++ b/old_docs/API_docs_v27/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v27/methods/users_getUsers.md b/old_docs/API_docs_v27/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v27/methods/users_getUsers.md +++ b/old_docs/API_docs_v27/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v27/types/Chat.md b/old_docs/API_docs_v27/types/Chat.md index 77bd974c..2cab4d3d 100644 --- a/old_docs/API_docs_v27/types/Chat.md +++ b/old_docs/API_docs_v27/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v27/types/InputDocument.md b/old_docs/API_docs_v27/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v27/types/InputDocument.md +++ b/old_docs/API_docs_v27/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v27/types/InputEncryptedChat.md b/old_docs/API_docs_v27/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v27/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v27/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v27/types/InputEncryptedFile.md b/old_docs/API_docs_v27/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v27/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v27/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v27/types/InputFile.md b/old_docs/API_docs_v27/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v27/types/InputFile.md +++ b/old_docs/API_docs_v27/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v27/types/InputMedia.md b/old_docs/API_docs_v27/types/InputMedia.md index 91dacd19..bf8f80d6 100644 --- a/old_docs/API_docs_v27/types/InputMedia.md +++ b/old_docs/API_docs_v27/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v27/types/InputPeer.md b/old_docs/API_docs_v27/types/InputPeer.md index d7d075b0..489fb96d 100644 --- a/old_docs/API_docs_v27/types/InputPeer.md +++ b/old_docs/API_docs_v27/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v27/types/InputPhoto.md b/old_docs/API_docs_v27/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v27/types/InputPhoto.md +++ b/old_docs/API_docs_v27/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v27/types/InputUser.md b/old_docs/API_docs_v27/types/InputUser.md index 4639f1a1..b2886be9 100644 --- a/old_docs/API_docs_v27/types/InputUser.md +++ b/old_docs/API_docs_v27/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v27/types/Peer.md b/old_docs/API_docs_v27/types/Peer.md index 5dcdb9b0..20253dd9 100644 --- a/old_docs/API_docs_v27/types/Peer.md +++ b/old_docs/API_docs_v27/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v27/types/User.md b/old_docs/API_docs_v27/types/User.md index c84ecc3d..7d7a11f3 100644 --- a/old_docs/API_docs_v27/types/User.md +++ b/old_docs/API_docs_v27/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v33/Lang.php b/old_docs/API_docs_v33/Lang.php new file mode 100644 index 00000000..48af5c96 --- /dev/null +++ b/old_docs/API_docs_v33/Lang.php @@ -0,0 +1,2256 @@ +. + */ + +namespace danog\MadelineProto; + +class Lang +{ + public static $lang = array ( + 'it' => + array ( + 'phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istanziamento dei DataCenter...', + 'load_rsa' => 'Caricamento delle chiavi RSA...', + 'TL_translation' => 'Translazione degli schemi TL...', + 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', + 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', + 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', + 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', + 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', + 'threading_on' => 'IL THREADING È ABILITATO', + 'socket_reader' => 'Lettore socket su DC %s: ', + 'socket_status_1' => 'CREAZIONE', + 'socket_status_2' => 'INVIO', + 'socket_status_3' => 'ATTESA', + 'socket_status_4' => 'PRONTO', + 'socket_status_5' => 'AVVIATO', + 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', + 'session_corrupted' => 'La sessione si è corrotta!', + 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', + 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', + 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', + 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', + 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', + 'config_updated' => 'La configurazione è stata aggiornata!', + 'length_not_4' => 'La lunghezza non è uguale a 4', + 'length_not_8' => 'La lunghezza non è uguale a 8', + 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', + 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', + 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', + 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', + 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', + 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', + 'file_not_exist' => 'Il file specificato non esiste', + 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', + 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', + 'loading_key' => 'Caricamento della chiave in corso...', + 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', + 'rsa_encrypting' => 'Criptando con chiave RSA...', + 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', + 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', + 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', + 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', + 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', + 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', + 'socket_con_error' => 'Connessione fallita.', + 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', + 'protocol_invalid' => 'È stato fornito un protocollo non valido', + 'nothing_in_socket' => 'Non c\'è niente nel socket!', + 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', + 'no_data_in_socket' => 'Non ci sono dati nel socket!', + 'dc_con_start' => 'Connessione al DC %s in corso...', + 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', + 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', + 'script_not_exist' => 'Lo script fornito non esiste', + 'apifactory_start' => 'Sto avviando la fabbrica di API...', + 'madelineproto_ready' => 'MadelineProto è pronto!', + 'logout_error' => 'C\'è stato un errore durante il logout!', + 'logout_ok' => 'Il logout è stato eseguito correttamente!', + 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', + 'login_ok' => 'Il login è stato eseguito correttamente!', + 'login_user' => 'Sto eseguendo il login come utente normale...', + 'login_bot' => 'Sto eseguendo il login come bot...', + 'login_code_sending' => 'Sto inviando il codice...', + 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', + 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', + 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', + 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', + 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', + 'not_logged_in' => 'Non ho ancora fatto il login!', + 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', + 'signing_up' => 'Mi sto registrando su telegram come utente normale...', + 'signup_ok' => 'Mi sono registrato su Telegram!', + '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', + 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', + 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', + 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', + 'calling_user' => 'Sto chiamando %s...', + 'generating_a' => 'Sto generando a...', + 'generating_g_a' => 'Sto generando g_a...', + 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', + 'accepting_call' => 'Sto accettando una chiamata da %s...', + 'generating_b' => 'Sto generando b...', + 'call_already_accepted' => 'La chiamata %s è già stata accettata.', + 'call_already_declined' => 'La chiamata %s è già stata annullata.', + 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', + 'call_confirming' => 'Sto confermando una chiamata da %s', + 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', + 'call_completing' => 'Sto completando una chiamata da %s...', + 'invalid_g_a' => 'g_a non valido!', + 'fingerprint_invalid' => 'fingerprint della chiave non valido!', + 'call_discarding' => 'Sto rifiutando la chiamata %s...', + 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', + 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', + 'TL_loading' => 'Sto caricando gli schemi TL...', + 'file_parsing' => 'Leggendo %s...', + 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', + 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', + 'translating_obj' => 'Traducendo gli oggetti...', + 'translating_methods' => 'Traducendo i metodi...', + 'bool_error' => 'Non sono riuscito ad estrarre un booleano', + 'not_numeric' => 'Il valore fornito non è numerico', + 'long_not_16' => 'Il valore fornito non è lungo 16 byte', + 'long_not_32' => 'Il valore fornito non è lungo 32 byte', + 'long_not_64' => 'Il valore fornito non è lungo 64 byte', + 'array_invalid' => 'Il valore fornito non è un array', + 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', + 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', + 'method_not_found' => 'Impossibile trovare il seguente metodo: ', + 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', + 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', + 'stream_handle_invalid' => 'Il valore fornito non è uno stream', + 'length_too_big' => 'Il valore fornito è troppo lungo', + 'deserialize_not_str' => 'Il valore generato non è una stringa', + 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', + 'vector_invalid' => 'ID vettore non valido: ', + 'constructor_not_found' => 'Costruttore non trovato per tipo: ', + 'rand_bytes_too_small' => 'random_bytes è troppo corto!', + 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', + 'non_text_conversion' => 'Non posso ancora convertire messaggi media', + 'last_byte_invalid' => 'L\'ultimo byte non è valido', + 'file_type_invalid' => 'È stato fornito un tipo file errato', + 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', + 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', + 'shutting_down_reader_pool' => 'Chisura pool di lettura', + 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', + 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', + 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', + 'msg_data_length_too_big' => 'message_data_length è troppo grande', + 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', + 'msg_key_mismatch' => 'msg_key non valido', + 'rand_bytes_too_short' => 'random_bytes è troppo corto!', + 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', + 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', + 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', + 'req_pq' => 'Sto richiedendo pq...', + 'done' => 'Fatto!', + 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', + 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!', + ), + 'en' => + array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + ), +); + + // THIS WILL BE OVERWRITTEN BY $lang["en"] + public static $current_lang = array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', +); +} \ No newline at end of file diff --git a/old_docs/API_docs_v33/constructors/account_authorizations.md b/old_docs/API_docs_v33/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v33/constructors/account_authorizations.md +++ b/old_docs/API_docs_v33/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/account_privacyRules.md b/old_docs/API_docs_v33/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v33/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v33/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/botInfo.md b/old_docs/API_docs_v33/constructors/botInfo.md index 196803dd..f86f0436 100644 --- a/old_docs/API_docs_v33/constructors/botInfo.md +++ b/old_docs/API_docs_v33/constructors/botInfo.md @@ -25,7 +25,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/chatFull.md b/old_docs/API_docs_v33/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v33/constructors/chatFull.md +++ b/old_docs/API_docs_v33/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/chatParticipants.md b/old_docs/API_docs_v33/constructors/chatParticipants.md index dcbf547e..8d10057c 100644 --- a/old_docs/API_docs_v33/constructors/chatParticipants.md +++ b/old_docs/API_docs_v33/constructors/chatParticipants.md @@ -24,7 +24,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'admin_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'admin_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/config.md b/old_docs/API_docs_v33/constructors/config.md index ede23bb9..cc549c4a 100644 --- a/old_docs/API_docs_v33/constructors/config.md +++ b/old_docs/API_docs_v33/constructors/config.md @@ -38,7 +38,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_size_max' => int, 'broadcast_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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], 'chat_size_max' => int, 'broadcast_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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/contacts_blocked.md b/old_docs/API_docs_v33/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v33/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v33/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v33/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v33/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v33/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/contacts_contacts.md b/old_docs/API_docs_v33/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v33/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v33/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/contacts_found.md b/old_docs/API_docs_v33/constructors/contacts_found.md index 20f6fd7b..4b685825 100644 --- a/old_docs/API_docs_v33/constructors/contacts_found.md +++ b/old_docs/API_docs_v33/constructors/contacts_found.md @@ -22,7 +22,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [ContactFound], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [ContactFound, ContactFound], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/contacts_importedContacts.md b/old_docs/API_docs_v33/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v33/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v33/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/contacts_suggested.md b/old_docs/API_docs_v33/constructors/contacts_suggested.md index 38db68c5..1ee96769 100644 --- a/old_docs/API_docs_v33/constructors/contacts_suggested.md +++ b/old_docs/API_docs_v33/constructors/contacts_suggested.md @@ -22,7 +22,7 @@ description: contacts_suggested attributes, type and example ### Example: ``` -$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested], 'users' => [User]]; +$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested, ContactSuggested], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/document.md b/old_docs/API_docs_v33/constructors/document.md index 3a584537..21dc39bb 100644 --- a/old_docs/API_docs_v33/constructors/document.md +++ b/old_docs/API_docs_v33/constructors/document.md @@ -28,7 +28,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/documentAttributeAudio.md b/old_docs/API_docs_v33/constructors/documentAttributeAudio.md index 28393d4b..e0d410f5 100644 --- a/old_docs/API_docs_v33/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v33/constructors/documentAttributeAudio.md @@ -11,7 +11,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Yes| |performer|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v33/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v33/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v33/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v33/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v33/constructors/documentAttributeVideo.md b/old_docs/API_docs_v33/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v33/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v33/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v33/constructors/geochats_located.md b/old_docs/API_docs_v33/constructors/geochats_located.md index 43c76fab..8ff1a972 100644 --- a/old_docs/API_docs_v33/constructors/geochats_located.md +++ b/old_docs/API_docs_v33/constructors/geochats_located.md @@ -24,7 +24,7 @@ description: geochats_located attributes, type and example ### Example: ``` -$geochats_located = ['_' => 'geochats.located', 'results' => [ChatLocated], 'messages' => [GeoChatMessage], 'chats' => [Chat], 'users' => [User]]; +$geochats_located = ['_' => 'geochats.located', 'results' => [ChatLocated, ChatLocated], 'messages' => [GeoChatMessage, GeoChatMessage], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/geochats_messages.md b/old_docs/API_docs_v33/constructors/geochats_messages.md index dc891962..4e54df7c 100644 --- a/old_docs/API_docs_v33/constructors/geochats_messages.md +++ b/old_docs/API_docs_v33/constructors/geochats_messages.md @@ -23,7 +23,7 @@ description: geochats_messages attributes, type and example ### Example: ``` -$geochats_messages = ['_' => 'geochats.messages', 'messages' => [GeoChatMessage], 'chats' => [Chat], 'users' => [User]]; +$geochats_messages = ['_' => 'geochats.messages', 'messages' => [GeoChatMessage, GeoChatMessage], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/geochats_messagesSlice.md b/old_docs/API_docs_v33/constructors/geochats_messagesSlice.md index 4fec2937..e020ec01 100644 --- a/old_docs/API_docs_v33/constructors/geochats_messagesSlice.md +++ b/old_docs/API_docs_v33/constructors/geochats_messagesSlice.md @@ -24,7 +24,7 @@ description: geochats_messagesSlice attributes, type and example ### Example: ``` -$geochats_messagesSlice = ['_' => 'geochats.messagesSlice', 'count' => int, 'messages' => [GeoChatMessage], 'chats' => [Chat], 'users' => [User]]; +$geochats_messagesSlice = ['_' => 'geochats.messagesSlice', 'count' => int, 'messages' => [GeoChatMessage, GeoChatMessage], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/geochats_statedMessage.md b/old_docs/API_docs_v33/constructors/geochats_statedMessage.md index f831d25f..d12cdd5e 100644 --- a/old_docs/API_docs_v33/constructors/geochats_statedMessage.md +++ b/old_docs/API_docs_v33/constructors/geochats_statedMessage.md @@ -24,7 +24,7 @@ description: geochats_statedMessage attributes, type and example ### Example: ``` -$geochats_statedMessage = ['_' => 'geochats.statedMessage', 'message' => GeoChatMessage, 'chats' => [Chat], 'users' => [User], 'seq' => int]; +$geochats_statedMessage = ['_' => 'geochats.statedMessage', 'message' => GeoChatMessage, 'chats' => [Chat, Chat], 'users' => [User, User], 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/inputChatPhoto.md b/old_docs/API_docs_v33/constructors/inputChatPhoto.md index 4cd81a7c..f10e2da3 100644 --- a/old_docs/API_docs_v33/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v33/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v33/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v33/constructors/inputChatUploadedPhoto.md index 3d88ac48..13857e71 100644 --- a/old_docs/API_docs_v33/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v33/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v33/constructors/inputMediaDocument.md b/old_docs/API_docs_v33/constructors/inputMediaDocument.md index 1859313a..034a28bd 100644 --- a/old_docs/API_docs_v33/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v33/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v33/constructors/inputMediaPhoto.md b/old_docs/API_docs_v33/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v33/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v33/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v33/constructors/inputMediaUploadedAudio.md b/old_docs/API_docs_v33/constructors/inputMediaUploadedAudio.md index bbbe18a2..8fe9138e 100644 --- a/old_docs/API_docs_v33/constructors/inputMediaUploadedAudio.md +++ b/old_docs/API_docs_v33/constructors/inputMediaUploadedAudio.md @@ -11,9 +11,9 @@ description: inputMediaUploadedAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v33/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v33/constructors/inputMediaUploadedDocument.md index 8ce039fa..67edf365 100644 --- a/old_docs/API_docs_v33/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v33/constructors/inputMediaUploadedDocument.md @@ -11,8 +11,8 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -23,7 +23,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v33/constructors/inputMediaUploadedPhoto.md index 42408b9f..58ae37cf 100644 --- a/old_docs/API_docs_v33/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v33/constructors/inputMediaUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v33/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v33/constructors/inputMediaUploadedThumbDocument.md index d6f3a647..13b93260 100644 --- a/old_docs/API_docs_v33/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v33/constructors/inputMediaUploadedThumbDocument.md @@ -11,9 +11,9 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -24,7 +24,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/inputMediaUploadedThumbVideo.md b/old_docs/API_docs_v33/constructors/inputMediaUploadedThumbVideo.md index 08cdfbf9..f111fd75 100644 --- a/old_docs/API_docs_v33/constructors/inputMediaUploadedThumbVideo.md +++ b/old_docs/API_docs_v33/constructors/inputMediaUploadedThumbVideo.md @@ -11,8 +11,8 @@ description: inputMediaUploadedThumbVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| diff --git a/old_docs/API_docs_v33/constructors/inputMediaUploadedVideo.md b/old_docs/API_docs_v33/constructors/inputMediaUploadedVideo.md index 94a9ee08..32677a70 100644 --- a/old_docs/API_docs_v33/constructors/inputMediaUploadedVideo.md +++ b/old_docs/API_docs_v33/constructors/inputMediaUploadedVideo.md @@ -11,7 +11,7 @@ description: inputMediaUploadedVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| diff --git a/old_docs/API_docs_v33/constructors/inputNotifyPeer.md b/old_docs/API_docs_v33/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v33/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v33/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v33/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v33/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v33/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v33/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v33/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v33/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v33/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/keyboardButtonRow.md b/old_docs/API_docs_v33/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v33/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v33/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/messageActionChatCreate.md b/old_docs/API_docs_v33/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v33/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v33/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/messages_allStickers.md b/old_docs/API_docs_v33/constructors/messages_allStickers.md index c79dee9d..d54a1758 100644 --- a/old_docs/API_docs_v33/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v33/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/messages_chatFull.md b/old_docs/API_docs_v33/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v33/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v33/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/messages_chats.md b/old_docs/API_docs_v33/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v33/constructors/messages_chats.md +++ b/old_docs/API_docs_v33/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/messages_dialogs.md b/old_docs/API_docs_v33/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v33/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v33/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v33/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v33/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v33/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v33/constructors/messages_messages.md b/old_docs/API_docs_v33/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v33/constructors/messages_messages.md +++ b/old_docs/API_docs_v33/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/messages_messagesSlice.md b/old_docs/API_docs_v33/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v33/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v33/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/messages_sentMessageLink.md b/old_docs/API_docs_v33/constructors/messages_sentMessageLink.md index e3450fff..6bbed3fa 100644 --- a/old_docs/API_docs_v33/constructors/messages_sentMessageLink.md +++ b/old_docs/API_docs_v33/constructors/messages_sentMessageLink.md @@ -27,7 +27,7 @@ description: messages_sentMessageLink attributes, type and example ### Example: ``` -$messages_sentMessageLink = ['_' => 'messages.sentMessageLink', 'id' => int, 'date' => int, 'media' => MessageMedia, 'pts' => int, 'pts_count' => int, 'links' => [contacts_Link], 'seq' => int]; +$messages_sentMessageLink = ['_' => 'messages.sentMessageLink', 'id' => int, 'date' => int, 'media' => MessageMedia, 'pts' => int, 'pts_count' => int, 'links' => [contacts_Link, contacts_Link], 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/messages_stickerSet.md b/old_docs/API_docs_v33/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v33/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v33/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/messages_stickers.md b/old_docs/API_docs_v33/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v33/constructors/messages_stickers.md +++ b/old_docs/API_docs_v33/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/photo.md b/old_docs/API_docs_v33/constructors/photo.md index f2bdf059..7212469f 100644 --- a/old_docs/API_docs_v33/constructors/photo.md +++ b/old_docs/API_docs_v33/constructors/photo.md @@ -24,7 +24,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/photos_photo.md b/old_docs/API_docs_v33/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v33/constructors/photos_photo.md +++ b/old_docs/API_docs_v33/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/photos_photos.md b/old_docs/API_docs_v33/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v33/constructors/photos_photos.md +++ b/old_docs/API_docs_v33/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/photos_photosSlice.md b/old_docs/API_docs_v33/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v33/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v33/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v33/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v33/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v33/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v33/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v33/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v33/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v33/constructors/replyKeyboardMarkup.md index 9a687baf..a1d01409 100644 --- a/old_docs/API_docs_v33/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v33/constructors/replyKeyboardMarkup.md @@ -21,7 +21,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/stickerPack.md b/old_docs/API_docs_v33/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v33/constructors/stickerPack.md +++ b/old_docs/API_docs_v33/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/updateDcOptions.md b/old_docs/API_docs_v33/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v33/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v33/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/updateDeleteMessages.md b/old_docs/API_docs_v33/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v33/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v33/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/updatePrivacy.md b/old_docs/API_docs_v33/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v33/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v33/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v33/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v33/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v33/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/updates.md b/old_docs/API_docs_v33/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v33/constructors/updates.md +++ b/old_docs/API_docs_v33/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/constructors/updatesCombined.md b/old_docs/API_docs_v33/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v33/constructors/updatesCombined.md +++ b/old_docs/API_docs_v33/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v33/constructors/updates_difference.md b/old_docs/API_docs_v33/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v33/constructors/updates_difference.md +++ b/old_docs/API_docs_v33/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v33/constructors/updates_differenceSlice.md b/old_docs/API_docs_v33/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v33/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v33/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v33/constructors/wallPaper.md b/old_docs/API_docs_v33/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v33/constructors/wallPaper.md +++ b/old_docs/API_docs_v33/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v33/methods/README.md b/old_docs/API_docs_v33/methods/README.md index 8cc42801..9a420020 100644 --- a/old_docs/API_docs_v33/methods/README.md +++ b/old_docs/API_docs_v33/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v33/methods/account_changePhone.md b/old_docs/API_docs_v33/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v33/methods/account_changePhone.md +++ b/old_docs/API_docs_v33/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_checkUsername.md b/old_docs/API_docs_v33/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v33/methods/account_checkUsername.md +++ b/old_docs/API_docs_v33/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_deleteAccount.md b/old_docs/API_docs_v33/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v33/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v33/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_getAccountTTL.md b/old_docs/API_docs_v33/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v33/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v33/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v33/methods/account_getAuthorizations.md b/old_docs/API_docs_v33/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v33/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v33/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v33/methods/account_getNotifySettings.md b/old_docs/API_docs_v33/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v33/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v33/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_getPassword.md b/old_docs/API_docs_v33/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v33/methods/account_getPassword.md +++ b/old_docs/API_docs_v33/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v33/methods/account_getPasswordSettings.md b/old_docs/API_docs_v33/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v33/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v33/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_getPrivacy.md b/old_docs/API_docs_v33/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v33/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v33/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_getWallPapers.md b/old_docs/API_docs_v33/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v33/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v33/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v33/methods/account_registerDevice.md b/old_docs/API_docs_v33/methods/account_registerDevice.md index cfa1546c..5c86d74c 100644 --- a/old_docs/API_docs_v33/methods/account_registerDevice.md +++ b/old_docs/API_docs_v33/methods/account_registerDevice.md @@ -1,22 +1,24 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|app\_sandbox|[Bool](../types/Bool.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| +|device\_model|[string](../types/string.md) | Yes|| +|system\_version|[string](../types/string.md) | Yes|| +|app\_version|[string](../types/string.md) | Yes|| +|app\_sandbox|[Bool](../types/Bool.md) | Yes|Should the app run in a sandbox?| +|lang\_code|[string](../types/string.md) | Yes|| ### Return type: [Bool](../types/Bool.md) @@ -35,13 +37,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_resetAuthorization.md b/old_docs/API_docs_v33/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v33/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v33/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_resetNotifySettings.md b/old_docs/API_docs_v33/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v33/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v33/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md index ad611a8b..b5258245 100644 --- a/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md @@ -1,16 +1,18 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|New phone number| ### Return type: [account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) @@ -29,13 +31,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_setAccountTTL.md b/old_docs/API_docs_v33/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v33/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v33/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_setPrivacy.md b/old_docs/API_docs_v33/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v33/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v33/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/methods/account_unregisterDevice.md b/old_docs/API_docs_v33/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v33/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v33/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v33/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v33/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v33/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_updateNotifySettings.md b/old_docs/API_docs_v33/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v33/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v33/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_updateProfile.md b/old_docs/API_docs_v33/methods/account_updateProfile.md index 123ed13a..7f8d80c5 100644 --- a/old_docs/API_docs_v33/methods/account_updateProfile.md +++ b/old_docs/API_docs_v33/methods/account_updateProfile.md @@ -1,17 +1,19 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Yes| -|last\_name|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Yes|The first name| +|last\_name|[string](../types/string.md) | Yes|The last name| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_updateStatus.md b/old_docs/API_docs_v33/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v33/methods/account_updateStatus.md +++ b/old_docs/API_docs_v33/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v33/methods/account_updateUsername.md b/old_docs/API_docs_v33/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v33/methods/account_updateUsername.md +++ b/old_docs/API_docs_v33/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v33/methods/auth_checkPassword.md b/old_docs/API_docs_v33/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v33/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v33/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v33/methods/auth_checkPhone.md b/old_docs/API_docs_v33/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v33/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v33/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/auth_exportAuthorization.md b/old_docs/API_docs_v33/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v33/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v33/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v33/methods/auth_importAuthorization.md b/old_docs/API_docs_v33/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v33/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v33/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v33/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v33/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v33/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v33/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v33/methods/auth_logOut.md b/old_docs/API_docs_v33/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v33/methods/auth_logOut.md +++ b/old_docs/API_docs_v33/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v33/methods/auth_recoverPassword.md b/old_docs/API_docs_v33/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v33/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v33/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v33/methods/auth_sendCall.md b/old_docs/API_docs_v33/methods/auth_sendCall.md index 386cfad4..94ed6b7f 100644 --- a/old_docs/API_docs_v33/methods/auth_sendCall.md +++ b/old_docs/API_docs_v33/methods/auth_sendCall.md @@ -23,16 +23,18 @@ description: auth.sendCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/auth_sendCode.md b/old_docs/API_docs_v33/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v33/methods/auth_sendCode.md +++ b/old_docs/API_docs_v33/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v33/methods/auth_sendInvites.md b/old_docs/API_docs_v33/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v33/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v33/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/methods/auth_sendSms.md b/old_docs/API_docs_v33/methods/auth_sendSms.md index 9a214e65..0c4a7343 100644 --- a/old_docs/API_docs_v33/methods/auth_sendSms.md +++ b/old_docs/API_docs_v33/methods/auth_sendSms.md @@ -23,16 +23,18 @@ description: auth.sendSms parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/auth_signIn.md b/old_docs/API_docs_v33/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v33/methods/auth_signIn.md +++ b/old_docs/API_docs_v33/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v33/methods/auth_signUp.md b/old_docs/API_docs_v33/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v33/methods/auth_signUp.md +++ b/old_docs/API_docs_v33/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v33/methods/contacts_block.md b/old_docs/API_docs_v33/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v33/methods/contacts_block.md +++ b/old_docs/API_docs_v33/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v33/methods/contacts_deleteContact.md b/old_docs/API_docs_v33/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v33/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v33/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v33/methods/contacts_deleteContacts.md b/old_docs/API_docs_v33/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v33/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v33/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/methods/contacts_exportCard.md b/old_docs/API_docs_v33/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v33/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v33/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v33/methods/contacts_getBlocked.md b/old_docs/API_docs_v33/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v33/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v33/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/contacts_getContacts.md b/old_docs/API_docs_v33/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v33/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v33/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/contacts_getStatuses.md b/old_docs/API_docs_v33/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v33/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v33/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v33/methods/contacts_getSuggested.md b/old_docs/API_docs_v33/methods/contacts_getSuggested.md index 2059c01b..7249b1f2 100644 --- a/old_docs/API_docs_v33/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v33/methods/contacts_getSuggested.md @@ -22,16 +22,18 @@ description: contacts.getSuggested parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/contacts_importCard.md b/old_docs/API_docs_v33/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v33/methods/contacts_importCard.md +++ b/old_docs/API_docs_v33/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/methods/contacts_importContacts.md b/old_docs/API_docs_v33/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v33/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v33/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/methods/contacts_resolveUsername.md b/old_docs/API_docs_v33/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v33/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v33/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v33/methods/contacts_search.md b/old_docs/API_docs_v33/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v33/methods/contacts_search.md +++ b/old_docs/API_docs_v33/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/contacts_unblock.md b/old_docs/API_docs_v33/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v33/methods/contacts_unblock.md +++ b/old_docs/API_docs_v33/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v33/methods/geochats_checkin.md b/old_docs/API_docs_v33/methods/geochats_checkin.md index 01559b90..a011bbe2 100644 --- a/old_docs/API_docs_v33/methods/geochats_checkin.md +++ b/old_docs/API_docs_v33/methods/geochats_checkin.md @@ -22,16 +22,18 @@ description: geochats.checkin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->checkin(['peer' => InputGeoChat, ]); ``` diff --git a/old_docs/API_docs_v33/methods/geochats_createGeoChat.md b/old_docs/API_docs_v33/methods/geochats_createGeoChat.md index 575e4fcf..60b34aba 100644 --- a/old_docs/API_docs_v33/methods/geochats_createGeoChat.md +++ b/old_docs/API_docs_v33/methods/geochats_createGeoChat.md @@ -25,16 +25,18 @@ description: geochats.createGeoChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->createGeoChat(['title' => 'string', 'geo_point' => InputGeoPoint, 'address' => 'string', 'venue' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/geochats_editChatPhoto.md b/old_docs/API_docs_v33/methods/geochats_editChatPhoto.md index 1871d83d..650bb041 100644 --- a/old_docs/API_docs_v33/methods/geochats_editChatPhoto.md +++ b/old_docs/API_docs_v33/methods/geochats_editChatPhoto.md @@ -23,16 +23,18 @@ description: geochats.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->editChatPhoto(['peer' => InputGeoChat, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v33/methods/geochats_editChatTitle.md b/old_docs/API_docs_v33/methods/geochats_editChatTitle.md index 1ec5a99d..3a0f2517 100644 --- a/old_docs/API_docs_v33/methods/geochats_editChatTitle.md +++ b/old_docs/API_docs_v33/methods/geochats_editChatTitle.md @@ -24,16 +24,18 @@ description: geochats.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->editChatTitle(['peer' => InputGeoChat, 'title' => 'string', 'address' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/geochats_getFullChat.md b/old_docs/API_docs_v33/methods/geochats_getFullChat.md index cfd4e4a1..5dde7118 100644 --- a/old_docs/API_docs_v33/methods/geochats_getFullChat.md +++ b/old_docs/API_docs_v33/methods/geochats_getFullChat.md @@ -22,16 +22,18 @@ description: geochats.getFullChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_ChatFull = $MadelineProto->geochats->getFullChat(['peer' => InputGeoChat, ]); ``` diff --git a/old_docs/API_docs_v33/methods/geochats_getHistory.md b/old_docs/API_docs_v33/methods/geochats_getHistory.md index 03ecbccc..4c53d110 100644 --- a/old_docs/API_docs_v33/methods/geochats_getHistory.md +++ b/old_docs/API_docs_v33/methods/geochats_getHistory.md @@ -25,16 +25,18 @@ description: geochats.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->getHistory(['peer' => InputGeoChat, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/geochats_getLocated.md b/old_docs/API_docs_v33/methods/geochats_getLocated.md index 1f904508..0e008ce8 100644 --- a/old_docs/API_docs_v33/methods/geochats_getLocated.md +++ b/old_docs/API_docs_v33/methods/geochats_getLocated.md @@ -24,16 +24,18 @@ description: geochats.getLocated parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_Located = $MadelineProto->geochats->getLocated(['geo_point' => InputGeoPoint, 'radius' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/geochats_getRecents.md b/old_docs/API_docs_v33/methods/geochats_getRecents.md index eeb8cdf2..9f0dc40e 100644 --- a/old_docs/API_docs_v33/methods/geochats_getRecents.md +++ b/old_docs/API_docs_v33/methods/geochats_getRecents.md @@ -23,16 +23,18 @@ description: geochats.getRecents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->getRecents(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/geochats_search.md b/old_docs/API_docs_v33/methods/geochats_search.md index d11b0cbd..38b073f8 100644 --- a/old_docs/API_docs_v33/methods/geochats_search.md +++ b/old_docs/API_docs_v33/methods/geochats_search.md @@ -29,16 +29,18 @@ description: geochats.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->search(['peer' => InputGeoChat, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/geochats_sendMedia.md b/old_docs/API_docs_v33/methods/geochats_sendMedia.md index ca7bd094..6b1e88ec 100644 --- a/old_docs/API_docs_v33/methods/geochats_sendMedia.md +++ b/old_docs/API_docs_v33/methods/geochats_sendMedia.md @@ -11,7 +11,7 @@ description: geochats.sendMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |peer|[InputGeoChat](../types/InputGeoChat.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [geochats\_StatedMessage](../types/geochats_StatedMessage.md) @@ -23,16 +23,18 @@ description: geochats.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->sendMedia(['peer' => InputGeoChat, 'media' => InputMedia, ]); ``` diff --git a/old_docs/API_docs_v33/methods/geochats_sendMessage.md b/old_docs/API_docs_v33/methods/geochats_sendMessage.md index a7216056..149ba8d8 100644 --- a/old_docs/API_docs_v33/methods/geochats_sendMessage.md +++ b/old_docs/API_docs_v33/methods/geochats_sendMessage.md @@ -23,16 +23,18 @@ description: geochats.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->sendMessage(['peer' => InputGeoChat, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/geochats_setTyping.md b/old_docs/API_docs_v33/methods/geochats_setTyping.md index 12cb55fe..bf73a8a8 100644 --- a/old_docs/API_docs_v33/methods/geochats_setTyping.md +++ b/old_docs/API_docs_v33/methods/geochats_setTyping.md @@ -23,16 +23,18 @@ description: geochats.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->geochats->setTyping(['peer' => InputGeoChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v33/methods/help_getAppChangelog.md b/old_docs/API_docs_v33/methods/help_getAppChangelog.md index b27cc9f0..d69a61cb 100644 --- a/old_docs/API_docs_v33/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v33/methods/help_getAppChangelog.md @@ -25,13 +25,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/help_getAppUpdate.md b/old_docs/API_docs_v33/methods/help_getAppUpdate.md index 7b3bdde9..f9b06641 100644 --- a/old_docs/API_docs_v33/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v33/methods/help_getAppUpdate.md @@ -25,13 +25,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/help_getConfig.md b/old_docs/API_docs_v33/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v33/methods/help_getConfig.md +++ b/old_docs/API_docs_v33/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v33/methods/help_getInviteText.md b/old_docs/API_docs_v33/methods/help_getInviteText.md index 40251dd5..bac72a15 100644 --- a/old_docs/API_docs_v33/methods/help_getInviteText.md +++ b/old_docs/API_docs_v33/methods/help_getInviteText.md @@ -22,13 +22,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/help_getNearestDc.md b/old_docs/API_docs_v33/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v33/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v33/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v33/methods/help_getSupport.md b/old_docs/API_docs_v33/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v33/methods/help_getSupport.md +++ b/old_docs/API_docs_v33/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v33/methods/help_saveAppLog.md b/old_docs/API_docs_v33/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v33/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v33/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/methods/initConnection.md b/old_docs/API_docs_v33/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v33/methods/initConnection.md +++ b/old_docs/API_docs_v33/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v33/methods/invokeAfterMsg.md b/old_docs/API_docs_v33/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v33/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v33/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v33/methods/invokeAfterMsgs.md b/old_docs/API_docs_v33/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v33/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v33/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/methods/invokeWithLayer.md b/old_docs/API_docs_v33/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v33/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v33/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v33/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v33/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v33/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v33/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_acceptEncryption.md b/old_docs/API_docs_v33/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v33/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v33/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v33/methods/messages_addChatUser.md b/old_docs/API_docs_v33/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v33/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v33/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_checkChatInvite.md b/old_docs/API_docs_v33/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v33/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_createChat.md b/old_docs/API_docs_v33/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v33/methods/messages_createChat.md +++ b/old_docs/API_docs_v33/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/methods/messages_deleteChatUser.md b/old_docs/API_docs_v33/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v33/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v33/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_deleteHistory.md b/old_docs/API_docs_v33/methods/messages_deleteHistory.md index 50179e3c..8e24ee79 100644 --- a/old_docs/API_docs_v33/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v33/methods/messages_deleteHistory.md @@ -10,7 +10,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_deleteMessages.md b/old_docs/API_docs_v33/methods/messages_deleteMessages.md index 38b3ca09..12347c81 100644 --- a/old_docs/API_docs_v33/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v33/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/methods/messages_discardEncryption.md b/old_docs/API_docs_v33/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v33/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v33/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v33/methods/messages_editChatPhoto.md b/old_docs/API_docs_v33/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v33/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v33/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_editChatTitle.md b/old_docs/API_docs_v33/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v33/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v33/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_exportChatInvite.md b/old_docs/API_docs_v33/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v33/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_forwardMessage.md b/old_docs/API_docs_v33/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v33/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v33/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_forwardMessages.md b/old_docs/API_docs_v33/methods/messages_forwardMessages.md index 8c642a6b..3ab63630 100644 --- a/old_docs/API_docs_v33/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v33/methods/messages_forwardMessages.md @@ -10,7 +10,7 @@ description: messages.forwardMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -51,18 +51,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/methods/messages_getAllStickers.md b/old_docs/API_docs_v33/methods/messages_getAllStickers.md index 3a0b3781..c1387ab3 100644 --- a/old_docs/API_docs_v33/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v33/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_getChats.md b/old_docs/API_docs_v33/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v33/methods/messages_getChats.md +++ b/old_docs/API_docs_v33/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/methods/messages_getDhConfig.md b/old_docs/API_docs_v33/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v33/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v33/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_getDialogs.md b/old_docs/API_docs_v33/methods/messages_getDialogs.md index 6295612b..0cd10d8c 100644 --- a/old_docs/API_docs_v33/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v33/methods/messages_getDialogs.md @@ -34,13 +34,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_getFullChat.md b/old_docs/API_docs_v33/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v33/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v33/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v33/methods/messages_getHistory.md b/old_docs/API_docs_v33/methods/messages_getHistory.md index 156d6bef..e3eef289 100644 --- a/old_docs/API_docs_v33/methods/messages_getHistory.md +++ b/old_docs/API_docs_v33/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -37,13 +37,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_getMessages.md b/old_docs/API_docs_v33/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v33/methods/messages_getMessages.md +++ b/old_docs/API_docs_v33/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/methods/messages_getStickerSet.md b/old_docs/API_docs_v33/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v33/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v33/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_getStickers.md b/old_docs/API_docs_v33/methods/messages_getStickers.md index 1587cd01..6ac68c87 100644 --- a/old_docs/API_docs_v33/methods/messages_getStickers.md +++ b/old_docs/API_docs_v33/methods/messages_getStickers.md @@ -23,16 +23,18 @@ description: messages.getStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v33/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v33/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v33/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_importChatInvite.md b/old_docs/API_docs_v33/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v33/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_installStickerSet.md b/old_docs/API_docs_v33/methods/messages_installStickerSet.md index 1a31c0e7..ccabd393 100644 --- a/old_docs/API_docs_v33/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v33/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_readHistory.md b/old_docs/API_docs_v33/methods/messages_readHistory.md index 6d855b4d..4bb27a35 100644 --- a/old_docs/API_docs_v33/methods/messages_readHistory.md +++ b/old_docs/API_docs_v33/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |offset|[int](../types/int.md) | Yes| @@ -32,13 +32,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_readMessageContents.md b/old_docs/API_docs_v33/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v33/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v33/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/methods/messages_receivedMessages.md b/old_docs/API_docs_v33/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v33/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v33/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_receivedQueue.md b/old_docs/API_docs_v33/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v33/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v33/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_requestEncryption.md b/old_docs/API_docs_v33/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v33/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v33/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v33/methods/messages_search.md b/old_docs/API_docs_v33/methods/messages_search.md index f6aa515b..11b968bf 100644 --- a/old_docs/API_docs_v33/methods/messages_search.md +++ b/old_docs/API_docs_v33/methods/messages_search.md @@ -10,7 +10,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -42,13 +42,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_sendBroadcast.md b/old_docs/API_docs_v33/methods/messages_sendBroadcast.md index 725d1f34..0ab60e43 100644 --- a/old_docs/API_docs_v33/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v33/methods/messages_sendBroadcast.md @@ -10,9 +10,9 @@ description: messages.sendBroadcast parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|contacts|Array of [InputUser](../types/InputUser.md) | Yes| +|contacts|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |message|[string](../types/string.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -24,18 +24,20 @@ description: messages.sendBroadcast parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser], 'message' => 'string', 'media' => InputMedia, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/methods/messages_sendEncrypted.md b/old_docs/API_docs_v33/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_sendMedia.md b/old_docs/API_docs_v33/methods/messages_sendMedia.md index 5e1c9821..6c0c3440 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v33/methods/messages_sendMedia.md @@ -10,9 +10,9 @@ description: messages.sendMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -53,16 +53,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_sendMessage.md b/old_docs/API_docs_v33/methods/messages_sendMessage.md index 4f9e0eaf..746f0566 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v33/methods/messages_sendMessage.md @@ -10,7 +10,7 @@ description: messages.sendMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -44,6 +44,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -51,16 +52,18 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentMessage = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_setTyping.md b/old_docs/API_docs_v33/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v33/methods/messages_setTyping.md +++ b/old_docs/API_docs_v33/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_startBot.md b/old_docs/API_docs_v33/methods/messages_startBot.md index 0a4ddfed..a24cd348 100644 --- a/old_docs/API_docs_v33/methods/messages_startBot.md +++ b/old_docs/API_docs_v33/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'chat_id' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v33/methods/photos_deletePhotos.md b/old_docs/API_docs_v33/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v33/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v33/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/methods/photos_getUserPhotos.md b/old_docs/API_docs_v33/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v33/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v33/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v33/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v33/methods/photos_updateProfilePhoto.md index d3acbb56..fbe84e26 100644 --- a/old_docs/API_docs_v33/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v33/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -23,13 +23,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md index de7c2281..303ed4ea 100644 --- a/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -35,13 +35,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v33/methods/updates_getDifference.md b/old_docs/API_docs_v33/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v33/methods/updates_getDifference.md +++ b/old_docs/API_docs_v33/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v33/methods/updates_getState.md b/old_docs/API_docs_v33/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v33/methods/updates_getState.md +++ b/old_docs/API_docs_v33/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v33/methods/upload_getFile.md b/old_docs/API_docs_v33/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v33/methods/upload_getFile.md +++ b/old_docs/API_docs_v33/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v33/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v33/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v33/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v33/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v33/methods/upload_saveFilePart.md b/old_docs/API_docs_v33/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v33/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v33/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v33/methods/users_getFullUser.md b/old_docs/API_docs_v33/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v33/methods/users_getFullUser.md +++ b/old_docs/API_docs_v33/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v33/methods/users_getUsers.md b/old_docs/API_docs_v33/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v33/methods/users_getUsers.md +++ b/old_docs/API_docs_v33/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v33/types/Chat.md b/old_docs/API_docs_v33/types/Chat.md index 77bd974c..2cab4d3d 100644 --- a/old_docs/API_docs_v33/types/Chat.md +++ b/old_docs/API_docs_v33/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v33/types/InputDocument.md b/old_docs/API_docs_v33/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v33/types/InputDocument.md +++ b/old_docs/API_docs_v33/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v33/types/InputEncryptedChat.md b/old_docs/API_docs_v33/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v33/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v33/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v33/types/InputEncryptedFile.md b/old_docs/API_docs_v33/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v33/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v33/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v33/types/InputFile.md b/old_docs/API_docs_v33/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v33/types/InputFile.md +++ b/old_docs/API_docs_v33/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v33/types/InputMedia.md b/old_docs/API_docs_v33/types/InputMedia.md index 5112cbfa..2112c216 100644 --- a/old_docs/API_docs_v33/types/InputMedia.md +++ b/old_docs/API_docs_v33/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v33/types/InputPeer.md b/old_docs/API_docs_v33/types/InputPeer.md index 739c3899..a9db5057 100644 --- a/old_docs/API_docs_v33/types/InputPeer.md +++ b/old_docs/API_docs_v33/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v33/types/InputPhoto.md b/old_docs/API_docs_v33/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v33/types/InputPhoto.md +++ b/old_docs/API_docs_v33/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v33/types/InputUser.md b/old_docs/API_docs_v33/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v33/types/InputUser.md +++ b/old_docs/API_docs_v33/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v33/types/Peer.md b/old_docs/API_docs_v33/types/Peer.md index 5dcdb9b0..20253dd9 100644 --- a/old_docs/API_docs_v33/types/Peer.md +++ b/old_docs/API_docs_v33/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v33/types/User.md b/old_docs/API_docs_v33/types/User.md index 3776169b..249f7b1a 100644 --- a/old_docs/API_docs_v33/types/User.md +++ b/old_docs/API_docs_v33/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v38/Lang.php b/old_docs/API_docs_v38/Lang.php new file mode 100644 index 00000000..a2bea7cc --- /dev/null +++ b/old_docs/API_docs_v38/Lang.php @@ -0,0 +1,2294 @@ +. + */ + +namespace danog\MadelineProto; + +class Lang +{ + public static $lang = array ( + 'it' => + array ( + 'phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istanziamento dei DataCenter...', + 'load_rsa' => 'Caricamento delle chiavi RSA...', + 'TL_translation' => 'Translazione degli schemi TL...', + 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', + 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', + 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', + 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', + 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', + 'threading_on' => 'IL THREADING È ABILITATO', + 'socket_reader' => 'Lettore socket su DC %s: ', + 'socket_status_1' => 'CREAZIONE', + 'socket_status_2' => 'INVIO', + 'socket_status_3' => 'ATTESA', + 'socket_status_4' => 'PRONTO', + 'socket_status_5' => 'AVVIATO', + 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', + 'session_corrupted' => 'La sessione si è corrotta!', + 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', + 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', + 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', + 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', + 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', + 'config_updated' => 'La configurazione è stata aggiornata!', + 'length_not_4' => 'La lunghezza non è uguale a 4', + 'length_not_8' => 'La lunghezza non è uguale a 8', + 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', + 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', + 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', + 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', + 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', + 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', + 'file_not_exist' => 'Il file specificato non esiste', + 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', + 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', + 'loading_key' => 'Caricamento della chiave in corso...', + 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', + 'rsa_encrypting' => 'Criptando con chiave RSA...', + 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', + 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', + 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', + 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', + 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', + 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', + 'socket_con_error' => 'Connessione fallita.', + 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', + 'protocol_invalid' => 'È stato fornito un protocollo non valido', + 'nothing_in_socket' => 'Non c\'è niente nel socket!', + 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', + 'no_data_in_socket' => 'Non ci sono dati nel socket!', + 'dc_con_start' => 'Connessione al DC %s in corso...', + 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', + 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', + 'script_not_exist' => 'Lo script fornito non esiste', + 'apifactory_start' => 'Sto avviando la fabbrica di API...', + 'madelineproto_ready' => 'MadelineProto è pronto!', + 'logout_error' => 'C\'è stato un errore durante il logout!', + 'logout_ok' => 'Il logout è stato eseguito correttamente!', + 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', + 'login_ok' => 'Il login è stato eseguito correttamente!', + 'login_user' => 'Sto eseguendo il login come utente normale...', + 'login_bot' => 'Sto eseguendo il login come bot...', + 'login_code_sending' => 'Sto inviando il codice...', + 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', + 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', + 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', + 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', + 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', + 'not_logged_in' => 'Non ho ancora fatto il login!', + 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', + 'signing_up' => 'Mi sto registrando su telegram come utente normale...', + 'signup_ok' => 'Mi sono registrato su Telegram!', + '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', + 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', + 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', + 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', + 'calling_user' => 'Sto chiamando %s...', + 'generating_a' => 'Sto generando a...', + 'generating_g_a' => 'Sto generando g_a...', + 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', + 'accepting_call' => 'Sto accettando una chiamata da %s...', + 'generating_b' => 'Sto generando b...', + 'call_already_accepted' => 'La chiamata %s è già stata accettata.', + 'call_already_declined' => 'La chiamata %s è già stata annullata.', + 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', + 'call_confirming' => 'Sto confermando una chiamata da %s', + 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', + 'call_completing' => 'Sto completando una chiamata da %s...', + 'invalid_g_a' => 'g_a non valido!', + 'fingerprint_invalid' => 'fingerprint della chiave non valido!', + 'call_discarding' => 'Sto rifiutando la chiamata %s...', + 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', + 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', + 'TL_loading' => 'Sto caricando gli schemi TL...', + 'file_parsing' => 'Leggendo %s...', + 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', + 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', + 'translating_obj' => 'Traducendo gli oggetti...', + 'translating_methods' => 'Traducendo i metodi...', + 'bool_error' => 'Non sono riuscito ad estrarre un booleano', + 'not_numeric' => 'Il valore fornito non è numerico', + 'long_not_16' => 'Il valore fornito non è lungo 16 byte', + 'long_not_32' => 'Il valore fornito non è lungo 32 byte', + 'long_not_64' => 'Il valore fornito non è lungo 64 byte', + 'array_invalid' => 'Il valore fornito non è un array', + 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', + 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', + 'method_not_found' => 'Impossibile trovare il seguente metodo: ', + 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', + 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', + 'stream_handle_invalid' => 'Il valore fornito non è uno stream', + 'length_too_big' => 'Il valore fornito è troppo lungo', + 'deserialize_not_str' => 'Il valore generato non è una stringa', + 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', + 'vector_invalid' => 'ID vettore non valido: ', + 'constructor_not_found' => 'Costruttore non trovato per tipo: ', + 'rand_bytes_too_small' => 'random_bytes è troppo corto!', + 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', + 'non_text_conversion' => 'Non posso ancora convertire messaggi media', + 'last_byte_invalid' => 'L\'ultimo byte non è valido', + 'file_type_invalid' => 'È stato fornito un tipo file errato', + 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', + 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', + 'shutting_down_reader_pool' => 'Chisura pool di lettura', + 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', + 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', + 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', + 'msg_data_length_too_big' => 'message_data_length è troppo grande', + 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', + 'msg_key_mismatch' => 'msg_key non valido', + 'rand_bytes_too_short' => 'random_bytes è troppo corto!', + 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', + 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', + 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', + 'req_pq' => 'Sto richiedendo pq...', + 'done' => 'Fatto!', + 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', + 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!', + ), + 'en' => + array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + ), +); + + // THIS WILL BE OVERWRITTEN BY $lang["en"] + public static $current_lang = array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', +); +} \ No newline at end of file diff --git a/old_docs/API_docs_v38/constructors/account_authorizations.md b/old_docs/API_docs_v38/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v38/constructors/account_authorizations.md +++ b/old_docs/API_docs_v38/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/account_privacyRules.md b/old_docs/API_docs_v38/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v38/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v38/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/botInfo.md b/old_docs/API_docs_v38/constructors/botInfo.md index 196803dd..f86f0436 100644 --- a/old_docs/API_docs_v38/constructors/botInfo.md +++ b/old_docs/API_docs_v38/constructors/botInfo.md @@ -25,7 +25,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/channelMessagesFilter.md b/old_docs/API_docs_v38/constructors/channelMessagesFilter.md index 9d4b2c9c..8cbdb95b 100644 --- a/old_docs/API_docs_v38/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v38/constructors/channelMessagesFilter.md @@ -21,7 +21,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/channels_channelParticipant.md b/old_docs/API_docs_v38/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v38/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v38/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/channels_channelParticipants.md b/old_docs/API_docs_v38/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v38/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v38/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/chatFull.md b/old_docs/API_docs_v38/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v38/constructors/chatFull.md +++ b/old_docs/API_docs_v38/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/chatParticipants.md b/old_docs/API_docs_v38/constructors/chatParticipants.md index dcbf547e..8d10057c 100644 --- a/old_docs/API_docs_v38/constructors/chatParticipants.md +++ b/old_docs/API_docs_v38/constructors/chatParticipants.md @@ -24,7 +24,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'admin_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'admin_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/config.md b/old_docs/API_docs_v38/constructors/config.md index ede23bb9..cc549c4a 100644 --- a/old_docs/API_docs_v38/constructors/config.md +++ b/old_docs/API_docs_v38/constructors/config.md @@ -38,7 +38,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_size_max' => int, 'broadcast_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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], 'chat_size_max' => int, 'broadcast_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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/contacts_blocked.md b/old_docs/API_docs_v38/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v38/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v38/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v38/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v38/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v38/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/contacts_contacts.md b/old_docs/API_docs_v38/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v38/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v38/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/contacts_found.md b/old_docs/API_docs_v38/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v38/constructors/contacts_found.md +++ b/old_docs/API_docs_v38/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/contacts_importedContacts.md b/old_docs/API_docs_v38/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v38/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v38/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v38/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v38/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v38/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/contacts_suggested.md b/old_docs/API_docs_v38/constructors/contacts_suggested.md index 38db68c5..1ee96769 100644 --- a/old_docs/API_docs_v38/constructors/contacts_suggested.md +++ b/old_docs/API_docs_v38/constructors/contacts_suggested.md @@ -22,7 +22,7 @@ description: contacts_suggested attributes, type and example ### Example: ``` -$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested], 'users' => [User]]; +$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested, ContactSuggested], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/document.md b/old_docs/API_docs_v38/constructors/document.md index 3a584537..21dc39bb 100644 --- a/old_docs/API_docs_v38/constructors/document.md +++ b/old_docs/API_docs_v38/constructors/document.md @@ -28,7 +28,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/documentAttributeAudio.md b/old_docs/API_docs_v38/constructors/documentAttributeAudio.md index 28393d4b..e0d410f5 100644 --- a/old_docs/API_docs_v38/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v38/constructors/documentAttributeAudio.md @@ -11,7 +11,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Yes| |performer|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v38/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v38/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v38/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v38/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v38/constructors/documentAttributeVideo.md b/old_docs/API_docs_v38/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v38/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v38/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v38/constructors/inputChatPhoto.md b/old_docs/API_docs_v38/constructors/inputChatPhoto.md index 4cd81a7c..f10e2da3 100644 --- a/old_docs/API_docs_v38/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v38/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v38/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v38/constructors/inputChatUploadedPhoto.md index 3d88ac48..13857e71 100644 --- a/old_docs/API_docs_v38/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v38/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v38/constructors/inputMediaDocument.md b/old_docs/API_docs_v38/constructors/inputMediaDocument.md index 1859313a..034a28bd 100644 --- a/old_docs/API_docs_v38/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v38/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v38/constructors/inputMediaPhoto.md b/old_docs/API_docs_v38/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v38/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v38/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v38/constructors/inputMediaUploadedAudio.md b/old_docs/API_docs_v38/constructors/inputMediaUploadedAudio.md index bbbe18a2..8fe9138e 100644 --- a/old_docs/API_docs_v38/constructors/inputMediaUploadedAudio.md +++ b/old_docs/API_docs_v38/constructors/inputMediaUploadedAudio.md @@ -11,9 +11,9 @@ description: inputMediaUploadedAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v38/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v38/constructors/inputMediaUploadedDocument.md index 8ce039fa..67edf365 100644 --- a/old_docs/API_docs_v38/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v38/constructors/inputMediaUploadedDocument.md @@ -11,8 +11,8 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -23,7 +23,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v38/constructors/inputMediaUploadedPhoto.md index 42408b9f..58ae37cf 100644 --- a/old_docs/API_docs_v38/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v38/constructors/inputMediaUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v38/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v38/constructors/inputMediaUploadedThumbDocument.md index d6f3a647..13b93260 100644 --- a/old_docs/API_docs_v38/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v38/constructors/inputMediaUploadedThumbDocument.md @@ -11,9 +11,9 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -24,7 +24,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/inputMediaUploadedThumbVideo.md b/old_docs/API_docs_v38/constructors/inputMediaUploadedThumbVideo.md index e7a9ae2b..47506b52 100644 --- a/old_docs/API_docs_v38/constructors/inputMediaUploadedThumbVideo.md +++ b/old_docs/API_docs_v38/constructors/inputMediaUploadedThumbVideo.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v38/constructors/inputMediaUploadedVideo.md b/old_docs/API_docs_v38/constructors/inputMediaUploadedVideo.md index 427c5113..e0e36e91 100644 --- a/old_docs/API_docs_v38/constructors/inputMediaUploadedVideo.md +++ b/old_docs/API_docs_v38/constructors/inputMediaUploadedVideo.md @@ -11,11 +11,11 @@ description: inputMediaUploadedVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v38/constructors/inputNotifyPeer.md b/old_docs/API_docs_v38/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v38/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v38/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v38/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v38/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v38/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v38/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v38/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v38/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v38/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/keyboardButtonRow.md b/old_docs/API_docs_v38/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v38/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v38/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/message.md b/old_docs/API_docs_v38/constructors/message.md index 361591b5..6a31de36 100644 --- a/old_docs/API_docs_v38/constructors/message.md +++ b/old_docs/API_docs_v38/constructors/message.md @@ -32,7 +32,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'views' => int]; +$message = ['_' => 'message', 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'views' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/messageActionChatCreate.md b/old_docs/API_docs_v38/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v38/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v38/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/messages_allStickers.md b/old_docs/API_docs_v38/constructors/messages_allStickers.md index c79dee9d..d54a1758 100644 --- a/old_docs/API_docs_v38/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v38/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/messages_channelMessages.md b/old_docs/API_docs_v38/constructors/messages_channelMessages.md index e12420fe..69ba09d4 100644 --- a/old_docs/API_docs_v38/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v38/constructors/messages_channelMessages.md @@ -26,7 +26,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'collapsed' => [MessageGroup], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'collapsed' => [MessageGroup, MessageGroup], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/messages_chatFull.md b/old_docs/API_docs_v38/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v38/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v38/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/messages_chats.md b/old_docs/API_docs_v38/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v38/constructors/messages_chats.md +++ b/old_docs/API_docs_v38/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/messages_dialogs.md b/old_docs/API_docs_v38/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v38/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v38/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v38/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v38/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v38/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v38/constructors/messages_messages.md b/old_docs/API_docs_v38/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v38/constructors/messages_messages.md +++ b/old_docs/API_docs_v38/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/messages_messagesSlice.md b/old_docs/API_docs_v38/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v38/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v38/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/messages_stickerSet.md b/old_docs/API_docs_v38/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v38/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v38/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/messages_stickers.md b/old_docs/API_docs_v38/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v38/constructors/messages_stickers.md +++ b/old_docs/API_docs_v38/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/photo.md b/old_docs/API_docs_v38/constructors/photo.md index f2bdf059..7212469f 100644 --- a/old_docs/API_docs_v38/constructors/photo.md +++ b/old_docs/API_docs_v38/constructors/photo.md @@ -24,7 +24,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/photos_photo.md b/old_docs/API_docs_v38/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v38/constructors/photos_photo.md +++ b/old_docs/API_docs_v38/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/photos_photos.md b/old_docs/API_docs_v38/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v38/constructors/photos_photos.md +++ b/old_docs/API_docs_v38/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/photos_photosSlice.md b/old_docs/API_docs_v38/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v38/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v38/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v38/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v38/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v38/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v38/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v38/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v38/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v38/constructors/replyKeyboardMarkup.md index 9a687baf..a1d01409 100644 --- a/old_docs/API_docs_v38/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v38/constructors/replyKeyboardMarkup.md @@ -21,7 +21,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/stickerPack.md b/old_docs/API_docs_v38/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v38/constructors/stickerPack.md +++ b/old_docs/API_docs_v38/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/updateDcOptions.md b/old_docs/API_docs_v38/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v38/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v38/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v38/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v38/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v38/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/updateDeleteMessages.md b/old_docs/API_docs_v38/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v38/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v38/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/updatePrivacy.md b/old_docs/API_docs_v38/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v38/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v38/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v38/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v38/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v38/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/updateShortChatMessage.md b/old_docs/API_docs_v38/constructors/updateShortChatMessage.md index eaa701bb..d10d0a5b 100644 --- a/old_docs/API_docs_v38/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v38/constructors/updateShortChatMessage.md @@ -31,7 +31,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity]]; +$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/updateShortMessage.md b/old_docs/API_docs_v38/constructors/updateShortMessage.md index 97e05fb4..7537f8a1 100644 --- a/old_docs/API_docs_v38/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v38/constructors/updateShortMessage.md @@ -30,7 +30,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$updateShortMessage = ['_' => 'updateShortMessage', 'id' => int, 'user_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity]]; +$updateShortMessage = ['_' => 'updateShortMessage', 'id' => int, 'user_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/updateShortSentMessage.md b/old_docs/API_docs_v38/constructors/updateShortSentMessage.md index ee626fb6..ce584e37 100644 --- a/old_docs/API_docs_v38/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v38/constructors/updateShortSentMessage.md @@ -26,7 +26,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/updates.md b/old_docs/API_docs_v38/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v38/constructors/updates.md +++ b/old_docs/API_docs_v38/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/updatesCombined.md b/old_docs/API_docs_v38/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v38/constructors/updatesCombined.md +++ b/old_docs/API_docs_v38/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v38/constructors/updates_channelDifference.md b/old_docs/API_docs_v38/constructors/updates_channelDifference.md index c579ca5c..48088799 100644 --- a/old_docs/API_docs_v38/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v38/constructors/updates_channelDifference.md @@ -26,7 +26,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$updates_channelDifference = ['_' => 'updates.channelDifference', '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: diff --git a/old_docs/API_docs_v38/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v38/constructors/updates_channelDifferenceTooLong.md index 66522525..3b4f8edb 100644 --- a/old_docs/API_docs_v38/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v38/constructors/updates_channelDifferenceTooLong.md @@ -30,7 +30,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/constructors/updates_difference.md b/old_docs/API_docs_v38/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v38/constructors/updates_difference.md +++ b/old_docs/API_docs_v38/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v38/constructors/updates_differenceSlice.md b/old_docs/API_docs_v38/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v38/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v38/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v38/constructors/wallPaper.md b/old_docs/API_docs_v38/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v38/constructors/wallPaper.md +++ b/old_docs/API_docs_v38/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v38/methods/README.md b/old_docs/API_docs_v38/methods/README.md index e81a837e..1d5465d4 100644 --- a/old_docs/API_docs_v38/methods/README.md +++ b/old_docs/API_docs_v38/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v38/methods/account_changePhone.md b/old_docs/API_docs_v38/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v38/methods/account_changePhone.md +++ b/old_docs/API_docs_v38/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_checkUsername.md b/old_docs/API_docs_v38/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v38/methods/account_checkUsername.md +++ b/old_docs/API_docs_v38/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_deleteAccount.md b/old_docs/API_docs_v38/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v38/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v38/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_getAccountTTL.md b/old_docs/API_docs_v38/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v38/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v38/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v38/methods/account_getAuthorizations.md b/old_docs/API_docs_v38/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v38/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v38/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v38/methods/account_getNotifySettings.md b/old_docs/API_docs_v38/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v38/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v38/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_getPassword.md b/old_docs/API_docs_v38/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v38/methods/account_getPassword.md +++ b/old_docs/API_docs_v38/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v38/methods/account_getPasswordSettings.md b/old_docs/API_docs_v38/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v38/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v38/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_getPrivacy.md b/old_docs/API_docs_v38/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v38/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v38/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_getWallPapers.md b/old_docs/API_docs_v38/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v38/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v38/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v38/methods/account_registerDevice.md b/old_docs/API_docs_v38/methods/account_registerDevice.md index cfa1546c..5c86d74c 100644 --- a/old_docs/API_docs_v38/methods/account_registerDevice.md +++ b/old_docs/API_docs_v38/methods/account_registerDevice.md @@ -1,22 +1,24 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|app\_sandbox|[Bool](../types/Bool.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| +|device\_model|[string](../types/string.md) | Yes|| +|system\_version|[string](../types/string.md) | Yes|| +|app\_version|[string](../types/string.md) | Yes|| +|app\_sandbox|[Bool](../types/Bool.md) | Yes|Should the app run in a sandbox?| +|lang\_code|[string](../types/string.md) | Yes|| ### Return type: [Bool](../types/Bool.md) @@ -35,13 +37,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_resetAuthorization.md b/old_docs/API_docs_v38/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v38/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v38/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_resetNotifySettings.md b/old_docs/API_docs_v38/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v38/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v38/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md index ad611a8b..b5258245 100644 --- a/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md @@ -1,16 +1,18 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|New phone number| ### Return type: [account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) @@ -29,13 +31,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_setAccountTTL.md b/old_docs/API_docs_v38/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v38/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v38/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_setPrivacy.md b/old_docs/API_docs_v38/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v38/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v38/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/account_unregisterDevice.md b/old_docs/API_docs_v38/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v38/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v38/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v38/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v38/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v38/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_updateNotifySettings.md b/old_docs/API_docs_v38/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v38/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v38/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_updateProfile.md b/old_docs/API_docs_v38/methods/account_updateProfile.md index 123ed13a..7f8d80c5 100644 --- a/old_docs/API_docs_v38/methods/account_updateProfile.md +++ b/old_docs/API_docs_v38/methods/account_updateProfile.md @@ -1,17 +1,19 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Yes| -|last\_name|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Yes|The first name| +|last\_name|[string](../types/string.md) | Yes|The last name| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_updateStatus.md b/old_docs/API_docs_v38/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v38/methods/account_updateStatus.md +++ b/old_docs/API_docs_v38/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v38/methods/account_updateUsername.md b/old_docs/API_docs_v38/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v38/methods/account_updateUsername.md +++ b/old_docs/API_docs_v38/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v38/methods/auth_checkPassword.md b/old_docs/API_docs_v38/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v38/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v38/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v38/methods/auth_checkPhone.md b/old_docs/API_docs_v38/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v38/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v38/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/auth_exportAuthorization.md b/old_docs/API_docs_v38/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v38/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v38/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v38/methods/auth_importAuthorization.md b/old_docs/API_docs_v38/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v38/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v38/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v38/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v38/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v38/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v38/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v38/methods/auth_logOut.md b/old_docs/API_docs_v38/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v38/methods/auth_logOut.md +++ b/old_docs/API_docs_v38/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v38/methods/auth_recoverPassword.md b/old_docs/API_docs_v38/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v38/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v38/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v38/methods/auth_sendCall.md b/old_docs/API_docs_v38/methods/auth_sendCall.md index 386cfad4..94ed6b7f 100644 --- a/old_docs/API_docs_v38/methods/auth_sendCall.md +++ b/old_docs/API_docs_v38/methods/auth_sendCall.md @@ -23,16 +23,18 @@ description: auth.sendCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/auth_sendCode.md b/old_docs/API_docs_v38/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v38/methods/auth_sendCode.md +++ b/old_docs/API_docs_v38/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v38/methods/auth_sendInvites.md b/old_docs/API_docs_v38/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v38/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v38/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/auth_sendSms.md b/old_docs/API_docs_v38/methods/auth_sendSms.md index 9a214e65..0c4a7343 100644 --- a/old_docs/API_docs_v38/methods/auth_sendSms.md +++ b/old_docs/API_docs_v38/methods/auth_sendSms.md @@ -23,16 +23,18 @@ description: auth.sendSms parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/auth_signIn.md b/old_docs/API_docs_v38/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v38/methods/auth_signIn.md +++ b/old_docs/API_docs_v38/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v38/methods/auth_signUp.md b/old_docs/API_docs_v38/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v38/methods/auth_signUp.md +++ b/old_docs/API_docs_v38/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v38/methods/channels_checkUsername.md b/old_docs/API_docs_v38/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v38/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v38/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_createChannel.md b/old_docs/API_docs_v38/methods/channels_createChannel.md index dbe68d1f..db16a0c6 100644 --- a/old_docs/API_docs_v38/methods/channels_createChannel.md +++ b/old_docs/API_docs_v38/methods/channels_createChannel.md @@ -12,7 +12,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------|----------| |title|[string](../types/string.md) | Yes| |about|[string](../types/string.md) | Yes| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -32,15 +32,20 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->createChannel(['title' => 'string', 'about' => 'string', 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->createChannel(['title' => 'string', 'about' => 'string', 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/channels_deleteChannel.md b/old_docs/API_docs_v38/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v38/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_deleteMessages.md b/old_docs/API_docs_v38/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v38/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_editAbout.md b/old_docs/API_docs_v38/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v38/methods/channels_editAbout.md +++ b/old_docs/API_docs_v38/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_editAdmin.md b/old_docs/API_docs_v38/methods/channels_editAdmin.md index 21dc5726..f0b6f0d1 100644 --- a/old_docs/API_docs_v38/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v38/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |role|[ChannelParticipantRole](../types/ChannelParticipantRole.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_editPhoto.md b/old_docs/API_docs_v38/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v38/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v38/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_editTitle.md b/old_docs/API_docs_v38/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v38/methods/channels_editTitle.md +++ b/old_docs/API_docs_v38/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_exportInvite.md b/old_docs/API_docs_v38/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v38/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v38/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_getChannels.md b/old_docs/API_docs_v38/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v38/methods/channels_getChannels.md +++ b/old_docs/API_docs_v38/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/channels_getDialogs.md b/old_docs/API_docs_v38/methods/channels_getDialogs.md index 916f9b34..7c1464f8 100644 --- a/old_docs/API_docs_v38/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v38/methods/channels_getDialogs.md @@ -23,16 +23,18 @@ description: channels.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->channels->getDialogs(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_getFullChannel.md b/old_docs/API_docs_v38/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v38/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v38/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v38/methods/channels_getImportantHistory.md b/old_docs/API_docs_v38/methods/channels_getImportantHistory.md index 2f489487..6dc710fb 100644 --- a/old_docs/API_docs_v38/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v38/methods/channels_getImportantHistory.md @@ -10,7 +10,7 @@ description: channels.getImportantHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -27,16 +27,18 @@ description: channels.getImportantHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getImportantHistory(['channel' => InputChannel, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_getMessages.md b/old_docs/API_docs_v38/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v38/methods/channels_getMessages.md +++ b/old_docs/API_docs_v38/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/channels_getParticipant.md b/old_docs/API_docs_v38/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v38/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v38/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_getParticipants.md b/old_docs/API_docs_v38/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v38/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v38/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_inviteToChannel.md b/old_docs/API_docs_v38/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v38/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v38/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/channels_joinChannel.md b/old_docs/API_docs_v38/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v38/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v38/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_kickFromChannel.md b/old_docs/API_docs_v38/methods/channels_kickFromChannel.md index a2182df8..e4b68581 100644 --- a/old_docs/API_docs_v38/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v38/methods/channels_kickFromChannel.md @@ -10,8 +10,8 @@ description: channels.kickFromChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |kicked|[Bool](../types/Bool.md) | Yes| @@ -24,16 +24,18 @@ description: channels.kickFromChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_leaveChannel.md b/old_docs/API_docs_v38/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v38/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v38/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_readHistory.md b/old_docs/API_docs_v38/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v38/methods/channels_readHistory.md +++ b/old_docs/API_docs_v38/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_reportSpam.md b/old_docs/API_docs_v38/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v38/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v38/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/channels_toggleComments.md b/old_docs/API_docs_v38/methods/channels_toggleComments.md index ce4207db..8b77db49 100644 --- a/old_docs/API_docs_v38/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v38/methods/channels_toggleComments.md @@ -10,7 +10,7 @@ description: channels.toggleComments parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -23,16 +23,18 @@ description: channels.toggleComments parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleComments(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v38/methods/channels_updateUsername.md b/old_docs/API_docs_v38/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v38/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v38/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/contacts_block.md b/old_docs/API_docs_v38/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v38/methods/contacts_block.md +++ b/old_docs/API_docs_v38/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v38/methods/contacts_deleteContact.md b/old_docs/API_docs_v38/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v38/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v38/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v38/methods/contacts_deleteContacts.md b/old_docs/API_docs_v38/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v38/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v38/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/contacts_exportCard.md b/old_docs/API_docs_v38/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v38/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v38/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v38/methods/contacts_getBlocked.md b/old_docs/API_docs_v38/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v38/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v38/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/contacts_getContacts.md b/old_docs/API_docs_v38/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v38/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v38/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/contacts_getStatuses.md b/old_docs/API_docs_v38/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v38/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v38/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v38/methods/contacts_getSuggested.md b/old_docs/API_docs_v38/methods/contacts_getSuggested.md index 2059c01b..7249b1f2 100644 --- a/old_docs/API_docs_v38/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v38/methods/contacts_getSuggested.md @@ -22,16 +22,18 @@ description: contacts.getSuggested parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/contacts_importCard.md b/old_docs/API_docs_v38/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v38/methods/contacts_importCard.md +++ b/old_docs/API_docs_v38/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/contacts_importContacts.md b/old_docs/API_docs_v38/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v38/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v38/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/contacts_resolveUsername.md b/old_docs/API_docs_v38/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v38/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v38/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v38/methods/contacts_search.md b/old_docs/API_docs_v38/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v38/methods/contacts_search.md +++ b/old_docs/API_docs_v38/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/contacts_unblock.md b/old_docs/API_docs_v38/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v38/methods/contacts_unblock.md +++ b/old_docs/API_docs_v38/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v38/methods/help_getAppChangelog.md b/old_docs/API_docs_v38/methods/help_getAppChangelog.md index b27cc9f0..d69a61cb 100644 --- a/old_docs/API_docs_v38/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v38/methods/help_getAppChangelog.md @@ -25,13 +25,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/help_getAppUpdate.md b/old_docs/API_docs_v38/methods/help_getAppUpdate.md index 7b3bdde9..f9b06641 100644 --- a/old_docs/API_docs_v38/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v38/methods/help_getAppUpdate.md @@ -25,13 +25,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/help_getConfig.md b/old_docs/API_docs_v38/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v38/methods/help_getConfig.md +++ b/old_docs/API_docs_v38/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v38/methods/help_getInviteText.md b/old_docs/API_docs_v38/methods/help_getInviteText.md index 40251dd5..bac72a15 100644 --- a/old_docs/API_docs_v38/methods/help_getInviteText.md +++ b/old_docs/API_docs_v38/methods/help_getInviteText.md @@ -22,13 +22,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/help_getNearestDc.md b/old_docs/API_docs_v38/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v38/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v38/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v38/methods/help_getSupport.md b/old_docs/API_docs_v38/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v38/methods/help_getSupport.md +++ b/old_docs/API_docs_v38/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v38/methods/help_saveAppLog.md b/old_docs/API_docs_v38/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v38/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v38/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/initConnection.md b/old_docs/API_docs_v38/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v38/methods/initConnection.md +++ b/old_docs/API_docs_v38/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v38/methods/invokeAfterMsg.md b/old_docs/API_docs_v38/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v38/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v38/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v38/methods/invokeAfterMsgs.md b/old_docs/API_docs_v38/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v38/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v38/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/invokeWithLayer.md b/old_docs/API_docs_v38/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v38/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v38/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v38/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v38/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v38/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v38/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_acceptEncryption.md b/old_docs/API_docs_v38/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v38/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v38/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v38/methods/messages_addChatUser.md b/old_docs/API_docs_v38/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v38/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v38/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_checkChatInvite.md b/old_docs/API_docs_v38/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v38/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_createChat.md b/old_docs/API_docs_v38/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v38/methods/messages_createChat.md +++ b/old_docs/API_docs_v38/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/messages_deleteChatUser.md b/old_docs/API_docs_v38/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v38/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v38/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_deleteHistory.md b/old_docs/API_docs_v38/methods/messages_deleteHistory.md index 50179e3c..8e24ee79 100644 --- a/old_docs/API_docs_v38/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v38/methods/messages_deleteHistory.md @@ -10,7 +10,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_deleteMessages.md b/old_docs/API_docs_v38/methods/messages_deleteMessages.md index 38b3ca09..12347c81 100644 --- a/old_docs/API_docs_v38/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v38/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/messages_discardEncryption.md b/old_docs/API_docs_v38/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v38/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v38/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v38/methods/messages_editChatPhoto.md b/old_docs/API_docs_v38/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v38/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v38/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_editChatTitle.md b/old_docs/API_docs_v38/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v38/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v38/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_exportChatInvite.md b/old_docs/API_docs_v38/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v38/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_forwardMessage.md b/old_docs/API_docs_v38/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v38/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v38/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_forwardMessages.md b/old_docs/API_docs_v38/methods/messages_forwardMessages.md index 85f09fb4..7e19aec5 100644 --- a/old_docs/API_docs_v38/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v38/methods/messages_forwardMessages.md @@ -10,9 +10,9 @@ description: messages.forwardMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -52,18 +52,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/messages_getAllStickers.md b/old_docs/API_docs_v38/methods/messages_getAllStickers.md index 3a0b3781..c1387ab3 100644 --- a/old_docs/API_docs_v38/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v38/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_getChats.md b/old_docs/API_docs_v38/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v38/methods/messages_getChats.md +++ b/old_docs/API_docs_v38/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/messages_getDhConfig.md b/old_docs/API_docs_v38/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v38/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v38/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_getDialogs.md b/old_docs/API_docs_v38/methods/messages_getDialogs.md index 50f2b9d5..1ba0c7f0 100644 --- a/old_docs/API_docs_v38/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v38/methods/messages_getDialogs.md @@ -33,13 +33,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_getFullChat.md b/old_docs/API_docs_v38/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v38/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v38/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v38/methods/messages_getHistory.md b/old_docs/API_docs_v38/methods/messages_getHistory.md index 11d8333f..c306f02c 100644 --- a/old_docs/API_docs_v38/methods/messages_getHistory.md +++ b/old_docs/API_docs_v38/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_getMessages.md b/old_docs/API_docs_v38/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v38/methods/messages_getMessages.md +++ b/old_docs/API_docs_v38/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/messages_getMessagesViews.md b/old_docs/API_docs_v38/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v38/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v38/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/messages_getStickerSet.md b/old_docs/API_docs_v38/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v38/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v38/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_getStickers.md b/old_docs/API_docs_v38/methods/messages_getStickers.md index 1587cd01..6ac68c87 100644 --- a/old_docs/API_docs_v38/methods/messages_getStickers.md +++ b/old_docs/API_docs_v38/methods/messages_getStickers.md @@ -23,16 +23,18 @@ description: messages.getStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v38/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v38/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v38/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_importChatInvite.md b/old_docs/API_docs_v38/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v38/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_installStickerSet.md b/old_docs/API_docs_v38/methods/messages_installStickerSet.md index 1a31c0e7..ccabd393 100644 --- a/old_docs/API_docs_v38/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v38/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_readHistory.md b/old_docs/API_docs_v38/methods/messages_readHistory.md index 6d855b4d..4bb27a35 100644 --- a/old_docs/API_docs_v38/methods/messages_readHistory.md +++ b/old_docs/API_docs_v38/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |offset|[int](../types/int.md) | Yes| @@ -32,13 +32,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_readMessageContents.md b/old_docs/API_docs_v38/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v38/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v38/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/messages_receivedMessages.md b/old_docs/API_docs_v38/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v38/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v38/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_receivedQueue.md b/old_docs/API_docs_v38/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v38/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v38/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_reportSpam.md b/old_docs/API_docs_v38/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v38/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v38/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_requestEncryption.md b/old_docs/API_docs_v38/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v38/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v38/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v38/methods/messages_search.md b/old_docs/API_docs_v38/methods/messages_search.md index f6aa515b..11b968bf 100644 --- a/old_docs/API_docs_v38/methods/messages_search.md +++ b/old_docs/API_docs_v38/methods/messages_search.md @@ -10,7 +10,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -42,13 +42,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_sendBroadcast.md b/old_docs/API_docs_v38/methods/messages_sendBroadcast.md index 725d1f34..0ab60e43 100644 --- a/old_docs/API_docs_v38/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v38/methods/messages_sendBroadcast.md @@ -10,9 +10,9 @@ description: messages.sendBroadcast parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|contacts|Array of [InputUser](../types/InputUser.md) | Yes| +|contacts|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |message|[string](../types/string.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -24,18 +24,20 @@ description: messages.sendBroadcast parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser], 'message' => 'string', 'media' => InputMedia, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/messages_sendEncrypted.md b/old_docs/API_docs_v38/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_sendMedia.md b/old_docs/API_docs_v38/methods/messages_sendMedia.md index 5e1c9821..6c0c3440 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v38/methods/messages_sendMedia.md @@ -10,9 +10,9 @@ description: messages.sendMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -53,16 +53,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_sendMessage.md b/old_docs/API_docs_v38/methods/messages_sendMessage.md index 80bc5066..9b04ca83 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v38/methods/messages_sendMessage.md @@ -10,7 +10,7 @@ description: messages.sendMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -46,6 +46,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -53,18 +54,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_setTyping.md b/old_docs/API_docs_v38/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v38/methods/messages_setTyping.md +++ b/old_docs/API_docs_v38/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_startBot.md b/old_docs/API_docs_v38/methods/messages_startBot.md index 0a4ddfed..a24cd348 100644 --- a/old_docs/API_docs_v38/methods/messages_startBot.md +++ b/old_docs/API_docs_v38/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'chat_id' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v38/methods/photos_deletePhotos.md b/old_docs/API_docs_v38/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v38/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v38/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/methods/photos_getUserPhotos.md b/old_docs/API_docs_v38/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v38/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v38/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v38/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v38/methods/photos_updateProfilePhoto.md index d3acbb56..fbe84e26 100644 --- a/old_docs/API_docs_v38/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v38/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -23,13 +23,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md index de7c2281..303ed4ea 100644 --- a/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -35,13 +35,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v38/methods/updates_getChannelDifference.md b/old_docs/API_docs_v38/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v38/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v38/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v38/methods/updates_getDifference.md b/old_docs/API_docs_v38/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v38/methods/updates_getDifference.md +++ b/old_docs/API_docs_v38/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v38/methods/updates_getState.md b/old_docs/API_docs_v38/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v38/methods/updates_getState.md +++ b/old_docs/API_docs_v38/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v38/methods/upload_getFile.md b/old_docs/API_docs_v38/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v38/methods/upload_getFile.md +++ b/old_docs/API_docs_v38/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v38/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v38/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v38/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v38/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v38/methods/upload_saveFilePart.md b/old_docs/API_docs_v38/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v38/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v38/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v38/methods/users_getFullUser.md b/old_docs/API_docs_v38/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v38/methods/users_getFullUser.md +++ b/old_docs/API_docs_v38/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v38/methods/users_getUsers.md b/old_docs/API_docs_v38/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v38/methods/users_getUsers.md +++ b/old_docs/API_docs_v38/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v38/types/Chat.md b/old_docs/API_docs_v38/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v38/types/Chat.md +++ b/old_docs/API_docs_v38/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v38/types/InputChannel.md b/old_docs/API_docs_v38/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v38/types/InputChannel.md +++ b/old_docs/API_docs_v38/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v38/types/InputDocument.md b/old_docs/API_docs_v38/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v38/types/InputDocument.md +++ b/old_docs/API_docs_v38/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v38/types/InputEncryptedChat.md b/old_docs/API_docs_v38/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v38/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v38/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v38/types/InputEncryptedFile.md b/old_docs/API_docs_v38/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v38/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v38/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v38/types/InputFile.md b/old_docs/API_docs_v38/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v38/types/InputFile.md +++ b/old_docs/API_docs_v38/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v38/types/InputMedia.md b/old_docs/API_docs_v38/types/InputMedia.md index 5112cbfa..2112c216 100644 --- a/old_docs/API_docs_v38/types/InputMedia.md +++ b/old_docs/API_docs_v38/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v38/types/InputPeer.md b/old_docs/API_docs_v38/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v38/types/InputPeer.md +++ b/old_docs/API_docs_v38/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v38/types/InputPhoto.md b/old_docs/API_docs_v38/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v38/types/InputPhoto.md +++ b/old_docs/API_docs_v38/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v38/types/InputUser.md b/old_docs/API_docs_v38/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v38/types/InputUser.md +++ b/old_docs/API_docs_v38/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v38/types/Peer.md b/old_docs/API_docs_v38/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v38/types/Peer.md +++ b/old_docs/API_docs_v38/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v38/types/User.md b/old_docs/API_docs_v38/types/User.md index a9d4addd..30fd113c 100644 --- a/old_docs/API_docs_v38/types/User.md +++ b/old_docs/API_docs_v38/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v40/Lang.php b/old_docs/API_docs_v40/Lang.php new file mode 100644 index 00000000..3a3ed9c6 --- /dev/null +++ b/old_docs/API_docs_v40/Lang.php @@ -0,0 +1,2328 @@ +. + */ + +namespace danog\MadelineProto; + +class Lang +{ + public static $lang = array ( + 'it' => + array ( + 'phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istanziamento dei DataCenter...', + 'load_rsa' => 'Caricamento delle chiavi RSA...', + 'TL_translation' => 'Translazione degli schemi TL...', + 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', + 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', + 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', + 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', + 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', + 'threading_on' => 'IL THREADING È ABILITATO', + 'socket_reader' => 'Lettore socket su DC %s: ', + 'socket_status_1' => 'CREAZIONE', + 'socket_status_2' => 'INVIO', + 'socket_status_3' => 'ATTESA', + 'socket_status_4' => 'PRONTO', + 'socket_status_5' => 'AVVIATO', + 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', + 'session_corrupted' => 'La sessione si è corrotta!', + 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', + 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', + 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', + 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', + 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', + 'config_updated' => 'La configurazione è stata aggiornata!', + 'length_not_4' => 'La lunghezza non è uguale a 4', + 'length_not_8' => 'La lunghezza non è uguale a 8', + 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', + 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', + 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', + 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', + 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', + 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', + 'file_not_exist' => 'Il file specificato non esiste', + 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', + 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', + 'loading_key' => 'Caricamento della chiave in corso...', + 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', + 'rsa_encrypting' => 'Criptando con chiave RSA...', + 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', + 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', + 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', + 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', + 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', + 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', + 'socket_con_error' => 'Connessione fallita.', + 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', + 'protocol_invalid' => 'È stato fornito un protocollo non valido', + 'nothing_in_socket' => 'Non c\'è niente nel socket!', + 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', + 'no_data_in_socket' => 'Non ci sono dati nel socket!', + 'dc_con_start' => 'Connessione al DC %s in corso...', + 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', + 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', + 'script_not_exist' => 'Lo script fornito non esiste', + 'apifactory_start' => 'Sto avviando la fabbrica di API...', + 'madelineproto_ready' => 'MadelineProto è pronto!', + 'logout_error' => 'C\'è stato un errore durante il logout!', + 'logout_ok' => 'Il logout è stato eseguito correttamente!', + 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', + 'login_ok' => 'Il login è stato eseguito correttamente!', + 'login_user' => 'Sto eseguendo il login come utente normale...', + 'login_bot' => 'Sto eseguendo il login come bot...', + 'login_code_sending' => 'Sto inviando il codice...', + 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', + 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', + 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', + 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', + 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', + 'not_logged_in' => 'Non ho ancora fatto il login!', + 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', + 'signing_up' => 'Mi sto registrando su telegram come utente normale...', + 'signup_ok' => 'Mi sono registrato su Telegram!', + '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', + 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', + 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', + 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', + 'calling_user' => 'Sto chiamando %s...', + 'generating_a' => 'Sto generando a...', + 'generating_g_a' => 'Sto generando g_a...', + 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', + 'accepting_call' => 'Sto accettando una chiamata da %s...', + 'generating_b' => 'Sto generando b...', + 'call_already_accepted' => 'La chiamata %s è già stata accettata.', + 'call_already_declined' => 'La chiamata %s è già stata annullata.', + 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', + 'call_confirming' => 'Sto confermando una chiamata da %s', + 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', + 'call_completing' => 'Sto completando una chiamata da %s...', + 'invalid_g_a' => 'g_a non valido!', + 'fingerprint_invalid' => 'fingerprint della chiave non valido!', + 'call_discarding' => 'Sto rifiutando la chiamata %s...', + 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', + 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', + 'TL_loading' => 'Sto caricando gli schemi TL...', + 'file_parsing' => 'Leggendo %s...', + 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', + 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', + 'translating_obj' => 'Traducendo gli oggetti...', + 'translating_methods' => 'Traducendo i metodi...', + 'bool_error' => 'Non sono riuscito ad estrarre un booleano', + 'not_numeric' => 'Il valore fornito non è numerico', + 'long_not_16' => 'Il valore fornito non è lungo 16 byte', + 'long_not_32' => 'Il valore fornito non è lungo 32 byte', + 'long_not_64' => 'Il valore fornito non è lungo 64 byte', + 'array_invalid' => 'Il valore fornito non è un array', + 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', + 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', + 'method_not_found' => 'Impossibile trovare il seguente metodo: ', + 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', + 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', + 'stream_handle_invalid' => 'Il valore fornito non è uno stream', + 'length_too_big' => 'Il valore fornito è troppo lungo', + 'deserialize_not_str' => 'Il valore generato non è una stringa', + 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', + 'vector_invalid' => 'ID vettore non valido: ', + 'constructor_not_found' => 'Costruttore non trovato per tipo: ', + 'rand_bytes_too_small' => 'random_bytes è troppo corto!', + 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', + 'non_text_conversion' => 'Non posso ancora convertire messaggi media', + 'last_byte_invalid' => 'L\'ultimo byte non è valido', + 'file_type_invalid' => 'È stato fornito un tipo file errato', + 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', + 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', + 'shutting_down_reader_pool' => 'Chisura pool di lettura', + 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', + 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', + 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', + 'msg_data_length_too_big' => 'message_data_length è troppo grande', + 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', + 'msg_key_mismatch' => 'msg_key non valido', + 'rand_bytes_too_short' => 'random_bytes è troppo corto!', + 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', + 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', + 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', + 'req_pq' => 'Sto richiedendo pq...', + 'done' => 'Fatto!', + 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', + 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!', + ), + 'en' => + array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', + ), +); + + // THIS WILL BE OVERWRITTEN BY $lang["en"] + public static $current_lang = array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', +); +} \ No newline at end of file diff --git a/old_docs/API_docs_v40/constructors/account_authorizations.md b/old_docs/API_docs_v40/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v40/constructors/account_authorizations.md +++ b/old_docs/API_docs_v40/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/account_privacyRules.md b/old_docs/API_docs_v40/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v40/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v40/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/botInfo.md b/old_docs/API_docs_v40/constructors/botInfo.md index 196803dd..f86f0436 100644 --- a/old_docs/API_docs_v40/constructors/botInfo.md +++ b/old_docs/API_docs_v40/constructors/botInfo.md @@ -25,7 +25,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/channelMessagesFilter.md b/old_docs/API_docs_v40/constructors/channelMessagesFilter.md index 9d4b2c9c..8cbdb95b 100644 --- a/old_docs/API_docs_v40/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v40/constructors/channelMessagesFilter.md @@ -21,7 +21,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/chatFull.md b/old_docs/API_docs_v40/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v40/constructors/chatFull.md +++ b/old_docs/API_docs_v40/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/chatParticipants.md b/old_docs/API_docs_v40/constructors/chatParticipants.md index dcbf547e..8d10057c 100644 --- a/old_docs/API_docs_v40/constructors/chatParticipants.md +++ b/old_docs/API_docs_v40/constructors/chatParticipants.md @@ -24,7 +24,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'admin_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'admin_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/config.md b/old_docs/API_docs_v40/constructors/config.md index ede23bb9..cc549c4a 100644 --- a/old_docs/API_docs_v40/constructors/config.md +++ b/old_docs/API_docs_v40/constructors/config.md @@ -38,7 +38,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_size_max' => int, 'broadcast_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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], 'chat_size_max' => int, 'broadcast_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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/contacts_blocked.md b/old_docs/API_docs_v40/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v40/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v40/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v40/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v40/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v40/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/contacts_contacts.md b/old_docs/API_docs_v40/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v40/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v40/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/contacts_found.md b/old_docs/API_docs_v40/constructors/contacts_found.md index 20f6fd7b..4b685825 100644 --- a/old_docs/API_docs_v40/constructors/contacts_found.md +++ b/old_docs/API_docs_v40/constructors/contacts_found.md @@ -22,7 +22,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [ContactFound], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [ContactFound, ContactFound], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/contacts_importedContacts.md b/old_docs/API_docs_v40/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v40/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v40/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/contacts_suggested.md b/old_docs/API_docs_v40/constructors/contacts_suggested.md index 38db68c5..1ee96769 100644 --- a/old_docs/API_docs_v40/constructors/contacts_suggested.md +++ b/old_docs/API_docs_v40/constructors/contacts_suggested.md @@ -22,7 +22,7 @@ description: contacts_suggested attributes, type and example ### Example: ``` -$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested], 'users' => [User]]; +$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested, ContactSuggested], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/document.md b/old_docs/API_docs_v40/constructors/document.md index 3a584537..21dc39bb 100644 --- a/old_docs/API_docs_v40/constructors/document.md +++ b/old_docs/API_docs_v40/constructors/document.md @@ -28,7 +28,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/documentAttributeAudio.md b/old_docs/API_docs_v40/constructors/documentAttributeAudio.md index 28393d4b..e0d410f5 100644 --- a/old_docs/API_docs_v40/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v40/constructors/documentAttributeAudio.md @@ -11,7 +11,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Yes| |performer|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v40/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v40/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v40/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v40/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v40/constructors/documentAttributeVideo.md b/old_docs/API_docs_v40/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v40/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v40/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v40/constructors/inputChatPhoto.md b/old_docs/API_docs_v40/constructors/inputChatPhoto.md index 4cd81a7c..f10e2da3 100644 --- a/old_docs/API_docs_v40/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v40/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v40/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v40/constructors/inputChatUploadedPhoto.md index 3d88ac48..13857e71 100644 --- a/old_docs/API_docs_v40/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v40/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v40/constructors/inputMediaDocument.md b/old_docs/API_docs_v40/constructors/inputMediaDocument.md index 1859313a..034a28bd 100644 --- a/old_docs/API_docs_v40/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v40/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v40/constructors/inputMediaPhoto.md b/old_docs/API_docs_v40/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v40/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v40/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v40/constructors/inputMediaUploadedAudio.md b/old_docs/API_docs_v40/constructors/inputMediaUploadedAudio.md index bbbe18a2..8fe9138e 100644 --- a/old_docs/API_docs_v40/constructors/inputMediaUploadedAudio.md +++ b/old_docs/API_docs_v40/constructors/inputMediaUploadedAudio.md @@ -11,9 +11,9 @@ description: inputMediaUploadedAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v40/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v40/constructors/inputMediaUploadedDocument.md index 8ce039fa..67edf365 100644 --- a/old_docs/API_docs_v40/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v40/constructors/inputMediaUploadedDocument.md @@ -11,8 +11,8 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -23,7 +23,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v40/constructors/inputMediaUploadedPhoto.md index 42408b9f..58ae37cf 100644 --- a/old_docs/API_docs_v40/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v40/constructors/inputMediaUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v40/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v40/constructors/inputMediaUploadedThumbDocument.md index d6f3a647..13b93260 100644 --- a/old_docs/API_docs_v40/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v40/constructors/inputMediaUploadedThumbDocument.md @@ -11,9 +11,9 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -24,7 +24,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/inputMediaUploadedThumbVideo.md b/old_docs/API_docs_v40/constructors/inputMediaUploadedThumbVideo.md index e7a9ae2b..47506b52 100644 --- a/old_docs/API_docs_v40/constructors/inputMediaUploadedThumbVideo.md +++ b/old_docs/API_docs_v40/constructors/inputMediaUploadedThumbVideo.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v40/constructors/inputMediaUploadedVideo.md b/old_docs/API_docs_v40/constructors/inputMediaUploadedVideo.md index 427c5113..e0e36e91 100644 --- a/old_docs/API_docs_v40/constructors/inputMediaUploadedVideo.md +++ b/old_docs/API_docs_v40/constructors/inputMediaUploadedVideo.md @@ -11,11 +11,11 @@ description: inputMediaUploadedVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v40/constructors/inputNotifyPeer.md b/old_docs/API_docs_v40/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v40/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v40/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v40/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v40/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v40/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v40/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v40/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v40/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v40/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/keyboardButtonRow.md b/old_docs/API_docs_v40/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v40/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v40/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/message.md b/old_docs/API_docs_v40/constructors/message.md index c3c70f55..668e79a5 100644 --- a/old_docs/API_docs_v40/constructors/message.md +++ b/old_docs/API_docs_v40/constructors/message.md @@ -31,7 +31,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => int, 'fwd_date' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity]]; +$message = ['_' => 'message', 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => int, 'fwd_date' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/messageActionChatCreate.md b/old_docs/API_docs_v40/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v40/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v40/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/messages_allStickers.md b/old_docs/API_docs_v40/constructors/messages_allStickers.md index c79dee9d..d54a1758 100644 --- a/old_docs/API_docs_v40/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v40/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/messages_channelMessages.md b/old_docs/API_docs_v40/constructors/messages_channelMessages.md index e12420fe..69ba09d4 100644 --- a/old_docs/API_docs_v40/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v40/constructors/messages_channelMessages.md @@ -26,7 +26,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'collapsed' => [MessageGroup], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'collapsed' => [MessageGroup, MessageGroup], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/messages_chatFull.md b/old_docs/API_docs_v40/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v40/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v40/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/messages_chats.md b/old_docs/API_docs_v40/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v40/constructors/messages_chats.md +++ b/old_docs/API_docs_v40/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/messages_dialogs.md b/old_docs/API_docs_v40/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v40/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v40/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v40/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v40/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v40/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v40/constructors/messages_messages.md b/old_docs/API_docs_v40/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v40/constructors/messages_messages.md +++ b/old_docs/API_docs_v40/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/messages_messagesSlice.md b/old_docs/API_docs_v40/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v40/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v40/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/messages_stickerSet.md b/old_docs/API_docs_v40/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v40/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v40/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/messages_stickers.md b/old_docs/API_docs_v40/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v40/constructors/messages_stickers.md +++ b/old_docs/API_docs_v40/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/photo.md b/old_docs/API_docs_v40/constructors/photo.md index f2bdf059..7212469f 100644 --- a/old_docs/API_docs_v40/constructors/photo.md +++ b/old_docs/API_docs_v40/constructors/photo.md @@ -24,7 +24,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/photos_photo.md b/old_docs/API_docs_v40/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v40/constructors/photos_photo.md +++ b/old_docs/API_docs_v40/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/photos_photos.md b/old_docs/API_docs_v40/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v40/constructors/photos_photos.md +++ b/old_docs/API_docs_v40/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/photos_photosSlice.md b/old_docs/API_docs_v40/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v40/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v40/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v40/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v40/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v40/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v40/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v40/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v40/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v40/constructors/replyKeyboardMarkup.md index 9a687baf..a1d01409 100644 --- a/old_docs/API_docs_v40/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v40/constructors/replyKeyboardMarkup.md @@ -21,7 +21,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/stickerPack.md b/old_docs/API_docs_v40/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v40/constructors/stickerPack.md +++ b/old_docs/API_docs_v40/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/updateDcOptions.md b/old_docs/API_docs_v40/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v40/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v40/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v40/constructors/updateDeleteChannelMessages.md index 13240ce5..6827d565 100644 --- a/old_docs/API_docs_v40/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v40/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'peer' => Peer, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'peer' => Peer, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/updateDeleteMessages.md b/old_docs/API_docs_v40/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v40/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v40/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/updatePrivacy.md b/old_docs/API_docs_v40/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v40/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v40/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v40/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v40/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v40/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/updateShortChatMessage.md b/old_docs/API_docs_v40/constructors/updateShortChatMessage.md index 1dc7830f..1fb096bb 100644 --- a/old_docs/API_docs_v40/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v40/constructors/updateShortChatMessage.md @@ -31,7 +31,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => int, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity]]; +$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => int, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/updateShortMessage.md b/old_docs/API_docs_v40/constructors/updateShortMessage.md index f2a32c00..546049d1 100644 --- a/old_docs/API_docs_v40/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v40/constructors/updateShortMessage.md @@ -30,7 +30,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$updateShortMessage = ['_' => 'updateShortMessage', 'id' => int, 'user_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => int, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity]]; +$updateShortMessage = ['_' => 'updateShortMessage', 'id' => int, 'user_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => int, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/updateShortSentMessage.md b/old_docs/API_docs_v40/constructors/updateShortSentMessage.md index ee626fb6..ce584e37 100644 --- a/old_docs/API_docs_v40/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v40/constructors/updateShortSentMessage.md @@ -26,7 +26,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/updates.md b/old_docs/API_docs_v40/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v40/constructors/updates.md +++ b/old_docs/API_docs_v40/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/updatesCombined.md b/old_docs/API_docs_v40/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v40/constructors/updatesCombined.md +++ b/old_docs/API_docs_v40/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v40/constructors/updates_channelDifference.md b/old_docs/API_docs_v40/constructors/updates_channelDifference.md index c579ca5c..48088799 100644 --- a/old_docs/API_docs_v40/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v40/constructors/updates_channelDifference.md @@ -26,7 +26,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$updates_channelDifference = ['_' => 'updates.channelDifference', '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: diff --git a/old_docs/API_docs_v40/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v40/constructors/updates_channelDifferenceTooLong.md index 66522525..3b4f8edb 100644 --- a/old_docs/API_docs_v40/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v40/constructors/updates_channelDifferenceTooLong.md @@ -30,7 +30,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/constructors/updates_difference.md b/old_docs/API_docs_v40/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v40/constructors/updates_difference.md +++ b/old_docs/API_docs_v40/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v40/constructors/updates_differenceSlice.md b/old_docs/API_docs_v40/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v40/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v40/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v40/constructors/wallPaper.md b/old_docs/API_docs_v40/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v40/constructors/wallPaper.md +++ b/old_docs/API_docs_v40/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v40/methods/README.md b/old_docs/API_docs_v40/methods/README.md index ab93765d..be827938 100644 --- a/old_docs/API_docs_v40/methods/README.md +++ b/old_docs/API_docs_v40/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v40/methods/account_changePhone.md b/old_docs/API_docs_v40/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v40/methods/account_changePhone.md +++ b/old_docs/API_docs_v40/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_checkUsername.md b/old_docs/API_docs_v40/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v40/methods/account_checkUsername.md +++ b/old_docs/API_docs_v40/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_deleteAccount.md b/old_docs/API_docs_v40/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v40/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v40/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_getAccountTTL.md b/old_docs/API_docs_v40/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v40/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v40/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v40/methods/account_getAuthorizations.md b/old_docs/API_docs_v40/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v40/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v40/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v40/methods/account_getNotifySettings.md b/old_docs/API_docs_v40/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v40/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v40/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_getPassword.md b/old_docs/API_docs_v40/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v40/methods/account_getPassword.md +++ b/old_docs/API_docs_v40/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v40/methods/account_getPasswordSettings.md b/old_docs/API_docs_v40/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v40/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v40/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_getPrivacy.md b/old_docs/API_docs_v40/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v40/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v40/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_getWallPapers.md b/old_docs/API_docs_v40/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v40/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v40/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v40/methods/account_registerDevice.md b/old_docs/API_docs_v40/methods/account_registerDevice.md index cfa1546c..5c86d74c 100644 --- a/old_docs/API_docs_v40/methods/account_registerDevice.md +++ b/old_docs/API_docs_v40/methods/account_registerDevice.md @@ -1,22 +1,24 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|app\_sandbox|[Bool](../types/Bool.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| +|device\_model|[string](../types/string.md) | Yes|| +|system\_version|[string](../types/string.md) | Yes|| +|app\_version|[string](../types/string.md) | Yes|| +|app\_sandbox|[Bool](../types/Bool.md) | Yes|Should the app run in a sandbox?| +|lang\_code|[string](../types/string.md) | Yes|| ### Return type: [Bool](../types/Bool.md) @@ -35,13 +37,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_resetAuthorization.md b/old_docs/API_docs_v40/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v40/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v40/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_resetNotifySettings.md b/old_docs/API_docs_v40/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v40/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v40/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md index ad611a8b..b5258245 100644 --- a/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md @@ -1,16 +1,18 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|New phone number| ### Return type: [account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) @@ -29,13 +31,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_setAccountTTL.md b/old_docs/API_docs_v40/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v40/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v40/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_setPrivacy.md b/old_docs/API_docs_v40/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v40/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v40/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/account_unregisterDevice.md b/old_docs/API_docs_v40/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v40/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v40/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v40/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v40/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v40/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_updateNotifySettings.md b/old_docs/API_docs_v40/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v40/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v40/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_updateProfile.md b/old_docs/API_docs_v40/methods/account_updateProfile.md index 123ed13a..7f8d80c5 100644 --- a/old_docs/API_docs_v40/methods/account_updateProfile.md +++ b/old_docs/API_docs_v40/methods/account_updateProfile.md @@ -1,17 +1,19 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Yes| -|last\_name|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Yes|The first name| +|last\_name|[string](../types/string.md) | Yes|The last name| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_updateStatus.md b/old_docs/API_docs_v40/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v40/methods/account_updateStatus.md +++ b/old_docs/API_docs_v40/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v40/methods/account_updateUsername.md b/old_docs/API_docs_v40/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v40/methods/account_updateUsername.md +++ b/old_docs/API_docs_v40/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v40/methods/auth_checkPassword.md b/old_docs/API_docs_v40/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v40/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v40/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v40/methods/auth_checkPhone.md b/old_docs/API_docs_v40/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v40/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v40/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/auth_exportAuthorization.md b/old_docs/API_docs_v40/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v40/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v40/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v40/methods/auth_importAuthorization.md b/old_docs/API_docs_v40/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v40/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v40/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v40/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v40/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v40/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v40/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v40/methods/auth_logOut.md b/old_docs/API_docs_v40/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v40/methods/auth_logOut.md +++ b/old_docs/API_docs_v40/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v40/methods/auth_recoverPassword.md b/old_docs/API_docs_v40/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v40/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v40/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v40/methods/auth_sendCall.md b/old_docs/API_docs_v40/methods/auth_sendCall.md index 386cfad4..94ed6b7f 100644 --- a/old_docs/API_docs_v40/methods/auth_sendCall.md +++ b/old_docs/API_docs_v40/methods/auth_sendCall.md @@ -23,16 +23,18 @@ description: auth.sendCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/auth_sendCode.md b/old_docs/API_docs_v40/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v40/methods/auth_sendCode.md +++ b/old_docs/API_docs_v40/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v40/methods/auth_sendInvites.md b/old_docs/API_docs_v40/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v40/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v40/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/auth_sendSms.md b/old_docs/API_docs_v40/methods/auth_sendSms.md index 9a214e65..0c4a7343 100644 --- a/old_docs/API_docs_v40/methods/auth_sendSms.md +++ b/old_docs/API_docs_v40/methods/auth_sendSms.md @@ -23,16 +23,18 @@ description: auth.sendSms parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/auth_signIn.md b/old_docs/API_docs_v40/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v40/methods/auth_signIn.md +++ b/old_docs/API_docs_v40/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v40/methods/auth_signUp.md b/old_docs/API_docs_v40/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v40/methods/auth_signUp.md +++ b/old_docs/API_docs_v40/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v40/methods/contacts_block.md b/old_docs/API_docs_v40/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v40/methods/contacts_block.md +++ b/old_docs/API_docs_v40/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v40/methods/contacts_deleteContact.md b/old_docs/API_docs_v40/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v40/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v40/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v40/methods/contacts_deleteContacts.md b/old_docs/API_docs_v40/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v40/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v40/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/contacts_exportCard.md b/old_docs/API_docs_v40/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v40/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v40/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v40/methods/contacts_getBlocked.md b/old_docs/API_docs_v40/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v40/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v40/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/contacts_getContacts.md b/old_docs/API_docs_v40/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v40/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v40/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/contacts_getStatuses.md b/old_docs/API_docs_v40/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v40/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v40/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v40/methods/contacts_getSuggested.md b/old_docs/API_docs_v40/methods/contacts_getSuggested.md index 2059c01b..7249b1f2 100644 --- a/old_docs/API_docs_v40/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v40/methods/contacts_getSuggested.md @@ -22,16 +22,18 @@ description: contacts.getSuggested parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/contacts_importCard.md b/old_docs/API_docs_v40/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v40/methods/contacts_importCard.md +++ b/old_docs/API_docs_v40/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/contacts_importContacts.md b/old_docs/API_docs_v40/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v40/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v40/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/contacts_resolveUsername.md b/old_docs/API_docs_v40/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v40/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v40/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v40/methods/contacts_search.md b/old_docs/API_docs_v40/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v40/methods/contacts_search.md +++ b/old_docs/API_docs_v40/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/contacts_unblock.md b/old_docs/API_docs_v40/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v40/methods/contacts_unblock.md +++ b/old_docs/API_docs_v40/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v40/methods/help_getAppChangelog.md b/old_docs/API_docs_v40/methods/help_getAppChangelog.md index b27cc9f0..d69a61cb 100644 --- a/old_docs/API_docs_v40/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v40/methods/help_getAppChangelog.md @@ -25,13 +25,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/help_getAppUpdate.md b/old_docs/API_docs_v40/methods/help_getAppUpdate.md index 7b3bdde9..f9b06641 100644 --- a/old_docs/API_docs_v40/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v40/methods/help_getAppUpdate.md @@ -25,13 +25,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/help_getConfig.md b/old_docs/API_docs_v40/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v40/methods/help_getConfig.md +++ b/old_docs/API_docs_v40/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v40/methods/help_getInviteText.md b/old_docs/API_docs_v40/methods/help_getInviteText.md index 40251dd5..bac72a15 100644 --- a/old_docs/API_docs_v40/methods/help_getInviteText.md +++ b/old_docs/API_docs_v40/methods/help_getInviteText.md @@ -22,13 +22,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/help_getNearestDc.md b/old_docs/API_docs_v40/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v40/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v40/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v40/methods/help_getSupport.md b/old_docs/API_docs_v40/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v40/methods/help_getSupport.md +++ b/old_docs/API_docs_v40/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v40/methods/help_saveAppLog.md b/old_docs/API_docs_v40/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v40/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v40/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/initConnection.md b/old_docs/API_docs_v40/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v40/methods/initConnection.md +++ b/old_docs/API_docs_v40/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v40/methods/invokeAfterMsg.md b/old_docs/API_docs_v40/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v40/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v40/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v40/methods/invokeAfterMsgs.md b/old_docs/API_docs_v40/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v40/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v40/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/invokeWithLayer.md b/old_docs/API_docs_v40/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v40/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v40/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v40/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v40/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v40/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v40/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_acceptEncryption.md b/old_docs/API_docs_v40/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v40/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v40/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v40/methods/messages_addChatUser.md b/old_docs/API_docs_v40/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v40/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v40/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_checkChatInvite.md b/old_docs/API_docs_v40/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v40/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_createChannel.md b/old_docs/API_docs_v40/methods/messages_createChannel.md index d932f145..af26f22e 100644 --- a/old_docs/API_docs_v40/methods/messages_createChannel.md +++ b/old_docs/API_docs_v40/methods/messages_createChannel.md @@ -22,16 +22,18 @@ description: messages.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->createChannel(['title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_createChat.md b/old_docs/API_docs_v40/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v40/methods/messages_createChat.md +++ b/old_docs/API_docs_v40/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/messages_deleteChannelMessages.md b/old_docs/API_docs_v40/methods/messages_deleteChannelMessages.md index 80987963..ace11816 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteChannelMessages.md +++ b/old_docs/API_docs_v40/methods/messages_deleteChannelMessages.md @@ -10,7 +10,7 @@ description: messages.deleteChannelMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -23,18 +23,20 @@ description: messages.deleteChannelMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteChannelMessages(['peer' => InputPeer, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteChannelMessages(['peer' => InputPeer, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/messages_deleteChatUser.md b/old_docs/API_docs_v40/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v40/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_deleteHistory.md b/old_docs/API_docs_v40/methods/messages_deleteHistory.md index 50179e3c..8e24ee79 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v40/methods/messages_deleteHistory.md @@ -10,7 +10,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_deleteMessages.md b/old_docs/API_docs_v40/methods/messages_deleteMessages.md index 38b3ca09..12347c81 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v40/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/messages_discardEncryption.md b/old_docs/API_docs_v40/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v40/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v40/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v40/methods/messages_editChatPhoto.md b/old_docs/API_docs_v40/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v40/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v40/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_editChatTitle.md b/old_docs/API_docs_v40/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v40/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v40/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_exportChatInvite.md b/old_docs/API_docs_v40/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v40/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_forwardMessage.md b/old_docs/API_docs_v40/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v40/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v40/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_forwardMessages.md b/old_docs/API_docs_v40/methods/messages_forwardMessages.md index 8c642a6b..3ab63630 100644 --- a/old_docs/API_docs_v40/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v40/methods/messages_forwardMessages.md @@ -10,7 +10,7 @@ description: messages.forwardMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -51,18 +51,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/messages_getAllStickers.md b/old_docs/API_docs_v40/methods/messages_getAllStickers.md index 3a0b3781..c1387ab3 100644 --- a/old_docs/API_docs_v40/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v40/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_getChannelDialogs.md b/old_docs/API_docs_v40/methods/messages_getChannelDialogs.md index dfeb85b8..68bc7692 100644 --- a/old_docs/API_docs_v40/methods/messages_getChannelDialogs.md +++ b/old_docs/API_docs_v40/methods/messages_getChannelDialogs.md @@ -23,16 +23,18 @@ description: messages.getChannelDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getChannelDialogs(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_getChats.md b/old_docs/API_docs_v40/methods/messages_getChats.md index 384c8d0e..5e922ea5 100644 --- a/old_docs/API_docs_v40/methods/messages_getChats.md +++ b/old_docs/API_docs_v40/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [InputChat], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [InputChat, InputChat], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/messages_getDhConfig.md b/old_docs/API_docs_v40/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v40/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v40/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_getDialogs.md b/old_docs/API_docs_v40/methods/messages_getDialogs.md index 50f2b9d5..1ba0c7f0 100644 --- a/old_docs/API_docs_v40/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v40/methods/messages_getDialogs.md @@ -33,13 +33,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_getFullChat.md b/old_docs/API_docs_v40/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v40/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v40/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v40/methods/messages_getHistory.md b/old_docs/API_docs_v40/methods/messages_getHistory.md index 9adbc028..1216570c 100644 --- a/old_docs/API_docs_v40/methods/messages_getHistory.md +++ b/old_docs/API_docs_v40/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[int](../types/int.md) | Yes| |min\_id|[int](../types/int.md) | Yes| @@ -38,13 +38,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset' => int, 'max_id' => int, 'min_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_getImportantHistory.md b/old_docs/API_docs_v40/methods/messages_getImportantHistory.md index 3d89d7c0..af3918f7 100644 --- a/old_docs/API_docs_v40/methods/messages_getImportantHistory.md +++ b/old_docs/API_docs_v40/methods/messages_getImportantHistory.md @@ -10,7 +10,7 @@ description: messages.getImportantHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |min\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -25,16 +25,18 @@ description: messages.getImportantHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getImportantHistory(['peer' => InputPeer, 'max_id' => int, 'min_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_getMessages.md b/old_docs/API_docs_v40/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v40/methods/messages_getMessages.md +++ b/old_docs/API_docs_v40/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/messages_getStickerSet.md b/old_docs/API_docs_v40/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v40/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v40/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_getStickers.md b/old_docs/API_docs_v40/methods/messages_getStickers.md index 1587cd01..6ac68c87 100644 --- a/old_docs/API_docs_v40/methods/messages_getStickers.md +++ b/old_docs/API_docs_v40/methods/messages_getStickers.md @@ -23,16 +23,18 @@ description: messages.getStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v40/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v40/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v40/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_importChatInvite.md b/old_docs/API_docs_v40/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v40/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_installStickerSet.md b/old_docs/API_docs_v40/methods/messages_installStickerSet.md index 1a31c0e7..ccabd393 100644 --- a/old_docs/API_docs_v40/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v40/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_readChannelHistory.md b/old_docs/API_docs_v40/methods/messages_readChannelHistory.md index 10038ceb..58feaa20 100644 --- a/old_docs/API_docs_v40/methods/messages_readChannelHistory.md +++ b/old_docs/API_docs_v40/methods/messages_readChannelHistory.md @@ -10,7 +10,7 @@ description: messages.readChannelHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -23,16 +23,18 @@ description: messages.readChannelHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readChannelHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_readHistory.md b/old_docs/API_docs_v40/methods/messages_readHistory.md index 6d855b4d..4bb27a35 100644 --- a/old_docs/API_docs_v40/methods/messages_readHistory.md +++ b/old_docs/API_docs_v40/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |offset|[int](../types/int.md) | Yes| @@ -32,13 +32,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_readMessageContents.md b/old_docs/API_docs_v40/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v40/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v40/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/messages_receivedMessages.md b/old_docs/API_docs_v40/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v40/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v40/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_receivedQueue.md b/old_docs/API_docs_v40/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v40/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v40/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_requestEncryption.md b/old_docs/API_docs_v40/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v40/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v40/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v40/methods/messages_search.md b/old_docs/API_docs_v40/methods/messages_search.md index f6aa515b..11b968bf 100644 --- a/old_docs/API_docs_v40/methods/messages_search.md +++ b/old_docs/API_docs_v40/methods/messages_search.md @@ -10,7 +10,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -42,13 +42,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_sendBroadcast.md b/old_docs/API_docs_v40/methods/messages_sendBroadcast.md index 725d1f34..0ab60e43 100644 --- a/old_docs/API_docs_v40/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v40/methods/messages_sendBroadcast.md @@ -10,9 +10,9 @@ description: messages.sendBroadcast parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|contacts|Array of [InputUser](../types/InputUser.md) | Yes| +|contacts|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |message|[string](../types/string.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -24,18 +24,20 @@ description: messages.sendBroadcast parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser], 'message' => 'string', 'media' => InputMedia, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/messages_sendEncrypted.md b/old_docs/API_docs_v40/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_sendMedia.md b/old_docs/API_docs_v40/methods/messages_sendMedia.md index 5e1c9821..6c0c3440 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v40/methods/messages_sendMedia.md @@ -10,9 +10,9 @@ description: messages.sendMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -53,16 +53,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_sendMessage.md b/old_docs/API_docs_v40/methods/messages_sendMessage.md index 80bc5066..9b04ca83 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v40/methods/messages_sendMessage.md @@ -10,7 +10,7 @@ description: messages.sendMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -46,6 +46,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -53,18 +54,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_setTyping.md b/old_docs/API_docs_v40/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v40/methods/messages_setTyping.md +++ b/old_docs/API_docs_v40/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_startBot.md b/old_docs/API_docs_v40/methods/messages_startBot.md index 0a4ddfed..a24cd348 100644 --- a/old_docs/API_docs_v40/methods/messages_startBot.md +++ b/old_docs/API_docs_v40/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'chat_id' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v40/methods/photos_deletePhotos.md b/old_docs/API_docs_v40/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v40/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v40/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/methods/photos_getUserPhotos.md b/old_docs/API_docs_v40/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v40/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v40/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v40/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v40/methods/photos_updateProfilePhoto.md index d3acbb56..fbe84e26 100644 --- a/old_docs/API_docs_v40/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v40/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -23,13 +23,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md index de7c2281..303ed4ea 100644 --- a/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -35,13 +35,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v40/methods/updates_getChannelDifference.md b/old_docs/API_docs_v40/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v40/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v40/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v40/methods/updates_getDifference.md b/old_docs/API_docs_v40/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v40/methods/updates_getDifference.md +++ b/old_docs/API_docs_v40/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v40/methods/updates_getState.md b/old_docs/API_docs_v40/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v40/methods/updates_getState.md +++ b/old_docs/API_docs_v40/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v40/methods/upload_getFile.md b/old_docs/API_docs_v40/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v40/methods/upload_getFile.md +++ b/old_docs/API_docs_v40/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v40/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v40/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v40/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v40/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v40/methods/upload_saveFilePart.md b/old_docs/API_docs_v40/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v40/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v40/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v40/methods/users_getFullUser.md b/old_docs/API_docs_v40/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v40/methods/users_getFullUser.md +++ b/old_docs/API_docs_v40/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v40/methods/users_getUsers.md b/old_docs/API_docs_v40/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v40/methods/users_getUsers.md +++ b/old_docs/API_docs_v40/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v40/types/Chat.md b/old_docs/API_docs_v40/types/Chat.md index 16191177..18c1808b 100644 --- a/old_docs/API_docs_v40/types/Chat.md +++ b/old_docs/API_docs_v40/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v40/types/InputDocument.md b/old_docs/API_docs_v40/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v40/types/InputDocument.md +++ b/old_docs/API_docs_v40/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v40/types/InputEncryptedChat.md b/old_docs/API_docs_v40/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v40/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v40/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v40/types/InputEncryptedFile.md b/old_docs/API_docs_v40/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v40/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v40/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v40/types/InputFile.md b/old_docs/API_docs_v40/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v40/types/InputFile.md +++ b/old_docs/API_docs_v40/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v40/types/InputMedia.md b/old_docs/API_docs_v40/types/InputMedia.md index 5112cbfa..2112c216 100644 --- a/old_docs/API_docs_v40/types/InputMedia.md +++ b/old_docs/API_docs_v40/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v40/types/InputPeer.md b/old_docs/API_docs_v40/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v40/types/InputPeer.md +++ b/old_docs/API_docs_v40/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v40/types/InputPhoto.md b/old_docs/API_docs_v40/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v40/types/InputPhoto.md +++ b/old_docs/API_docs_v40/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v40/types/InputUser.md b/old_docs/API_docs_v40/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v40/types/InputUser.md +++ b/old_docs/API_docs_v40/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v40/types/Peer.md b/old_docs/API_docs_v40/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v40/types/Peer.md +++ b/old_docs/API_docs_v40/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v40/types/User.md b/old_docs/API_docs_v40/types/User.md index 3776169b..249f7b1a 100644 --- a/old_docs/API_docs_v40/types/User.md +++ b/old_docs/API_docs_v40/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v41/Lang.php b/old_docs/API_docs_v41/Lang.php new file mode 100644 index 00000000..acda4195 --- /dev/null +++ b/old_docs/API_docs_v41/Lang.php @@ -0,0 +1,2342 @@ +. + */ + +namespace danog\MadelineProto; + +class Lang +{ + public static $lang = array ( + 'it' => + array ( + 'phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istanziamento dei DataCenter...', + 'load_rsa' => 'Caricamento delle chiavi RSA...', + 'TL_translation' => 'Translazione degli schemi TL...', + 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', + 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', + 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', + 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', + 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', + 'threading_on' => 'IL THREADING È ABILITATO', + 'socket_reader' => 'Lettore socket su DC %s: ', + 'socket_status_1' => 'CREAZIONE', + 'socket_status_2' => 'INVIO', + 'socket_status_3' => 'ATTESA', + 'socket_status_4' => 'PRONTO', + 'socket_status_5' => 'AVVIATO', + 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', + 'session_corrupted' => 'La sessione si è corrotta!', + 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', + 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', + 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', + 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', + 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', + 'config_updated' => 'La configurazione è stata aggiornata!', + 'length_not_4' => 'La lunghezza non è uguale a 4', + 'length_not_8' => 'La lunghezza non è uguale a 8', + 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', + 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', + 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', + 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', + 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', + 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', + 'file_not_exist' => 'Il file specificato non esiste', + 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', + 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', + 'loading_key' => 'Caricamento della chiave in corso...', + 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', + 'rsa_encrypting' => 'Criptando con chiave RSA...', + 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', + 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', + 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', + 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', + 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', + 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', + 'socket_con_error' => 'Connessione fallita.', + 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', + 'protocol_invalid' => 'È stato fornito un protocollo non valido', + 'nothing_in_socket' => 'Non c\'è niente nel socket!', + 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', + 'no_data_in_socket' => 'Non ci sono dati nel socket!', + 'dc_con_start' => 'Connessione al DC %s in corso...', + 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', + 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', + 'script_not_exist' => 'Lo script fornito non esiste', + 'apifactory_start' => 'Sto avviando la fabbrica di API...', + 'madelineproto_ready' => 'MadelineProto è pronto!', + 'logout_error' => 'C\'è stato un errore durante il logout!', + 'logout_ok' => 'Il logout è stato eseguito correttamente!', + 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', + 'login_ok' => 'Il login è stato eseguito correttamente!', + 'login_user' => 'Sto eseguendo il login come utente normale...', + 'login_bot' => 'Sto eseguendo il login come bot...', + 'login_code_sending' => 'Sto inviando il codice...', + 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', + 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', + 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', + 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', + 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', + 'not_logged_in' => 'Non ho ancora fatto il login!', + 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', + 'signing_up' => 'Mi sto registrando su telegram come utente normale...', + 'signup_ok' => 'Mi sono registrato su Telegram!', + '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', + 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', + 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', + 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', + 'calling_user' => 'Sto chiamando %s...', + 'generating_a' => 'Sto generando a...', + 'generating_g_a' => 'Sto generando g_a...', + 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', + 'accepting_call' => 'Sto accettando una chiamata da %s...', + 'generating_b' => 'Sto generando b...', + 'call_already_accepted' => 'La chiamata %s è già stata accettata.', + 'call_already_declined' => 'La chiamata %s è già stata annullata.', + 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', + 'call_confirming' => 'Sto confermando una chiamata da %s', + 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', + 'call_completing' => 'Sto completando una chiamata da %s...', + 'invalid_g_a' => 'g_a non valido!', + 'fingerprint_invalid' => 'fingerprint della chiave non valido!', + 'call_discarding' => 'Sto rifiutando la chiamata %s...', + 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', + 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', + 'TL_loading' => 'Sto caricando gli schemi TL...', + 'file_parsing' => 'Leggendo %s...', + 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', + 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', + 'translating_obj' => 'Traducendo gli oggetti...', + 'translating_methods' => 'Traducendo i metodi...', + 'bool_error' => 'Non sono riuscito ad estrarre un booleano', + 'not_numeric' => 'Il valore fornito non è numerico', + 'long_not_16' => 'Il valore fornito non è lungo 16 byte', + 'long_not_32' => 'Il valore fornito non è lungo 32 byte', + 'long_not_64' => 'Il valore fornito non è lungo 64 byte', + 'array_invalid' => 'Il valore fornito non è un array', + 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', + 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', + 'method_not_found' => 'Impossibile trovare il seguente metodo: ', + 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', + 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', + 'stream_handle_invalid' => 'Il valore fornito non è uno stream', + 'length_too_big' => 'Il valore fornito è troppo lungo', + 'deserialize_not_str' => 'Il valore generato non è una stringa', + 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', + 'vector_invalid' => 'ID vettore non valido: ', + 'constructor_not_found' => 'Costruttore non trovato per tipo: ', + 'rand_bytes_too_small' => 'random_bytes è troppo corto!', + 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', + 'non_text_conversion' => 'Non posso ancora convertire messaggi media', + 'last_byte_invalid' => 'L\'ultimo byte non è valido', + 'file_type_invalid' => 'È stato fornito un tipo file errato', + 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', + 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', + 'shutting_down_reader_pool' => 'Chisura pool di lettura', + 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', + 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', + 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', + 'msg_data_length_too_big' => 'message_data_length è troppo grande', + 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', + 'msg_key_mismatch' => 'msg_key non valido', + 'rand_bytes_too_short' => 'random_bytes è troppo corto!', + 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', + 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', + 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', + 'req_pq' => 'Sto richiedendo pq...', + 'done' => 'Fatto!', + 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', + 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!', + ), + 'en' => + array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', + 'method_messages.search_param_important_only' => '', + 'method_messages.sendMessage_param_broadcast' => '', + 'method_messages.sendMedia_param_broadcast' => '', + 'method_messages.forwardMessages_param_broadcast' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id' => '', + 'method_messages.deactivateChat_param_enabled' => '', + ), +); + + // THIS WILL BE OVERWRITTEN BY $lang["en"] + public static $current_lang = array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', + 'method_messages.search_param_important_only' => '', + 'method_messages.sendMessage_param_broadcast' => '', + 'method_messages.sendMedia_param_broadcast' => '', + 'method_messages.forwardMessages_param_broadcast' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id' => '', + 'method_messages.deactivateChat_param_enabled' => '', +); +} \ No newline at end of file diff --git a/old_docs/API_docs_v41/constructors/account_authorizations.md b/old_docs/API_docs_v41/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v41/constructors/account_authorizations.md +++ b/old_docs/API_docs_v41/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/account_privacyRules.md b/old_docs/API_docs_v41/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v41/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v41/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/botInfo.md b/old_docs/API_docs_v41/constructors/botInfo.md index 196803dd..f86f0436 100644 --- a/old_docs/API_docs_v41/constructors/botInfo.md +++ b/old_docs/API_docs_v41/constructors/botInfo.md @@ -25,7 +25,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/channelFull.md b/old_docs/API_docs_v41/constructors/channelFull.md index 13c4a787..475bd29e 100644 --- a/old_docs/API_docs_v41/constructors/channelFull.md +++ b/old_docs/API_docs_v41/constructors/channelFull.md @@ -35,7 +35,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/channelMessagesFilter.md b/old_docs/API_docs_v41/constructors/channelMessagesFilter.md index 9066165b..d508148f 100644 --- a/old_docs/API_docs_v41/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v41/constructors/channelMessagesFilter.md @@ -22,7 +22,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'important_only' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'important_only' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/channels_channelParticipant.md b/old_docs/API_docs_v41/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v41/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v41/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/channels_channelParticipants.md b/old_docs/API_docs_v41/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v41/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v41/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/chatFull.md b/old_docs/API_docs_v41/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v41/constructors/chatFull.md +++ b/old_docs/API_docs_v41/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/chatParticipants.md b/old_docs/API_docs_v41/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v41/constructors/chatParticipants.md +++ b/old_docs/API_docs_v41/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/config.md b/old_docs/API_docs_v41/constructors/config.md index 4ca8e931..d5007d83 100644 --- a/old_docs/API_docs_v41/constructors/config.md +++ b/old_docs/API_docs_v41/constructors/config.md @@ -38,7 +38,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/contacts_blocked.md b/old_docs/API_docs_v41/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v41/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v41/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v41/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v41/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v41/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/contacts_contacts.md b/old_docs/API_docs_v41/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v41/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v41/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/contacts_found.md b/old_docs/API_docs_v41/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v41/constructors/contacts_found.md +++ b/old_docs/API_docs_v41/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/contacts_importedContacts.md b/old_docs/API_docs_v41/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v41/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v41/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v41/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v41/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v41/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/contacts_suggested.md b/old_docs/API_docs_v41/constructors/contacts_suggested.md index 38db68c5..1ee96769 100644 --- a/old_docs/API_docs_v41/constructors/contacts_suggested.md +++ b/old_docs/API_docs_v41/constructors/contacts_suggested.md @@ -22,7 +22,7 @@ description: contacts_suggested attributes, type and example ### Example: ``` -$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested], 'users' => [User]]; +$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested, ContactSuggested], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/document.md b/old_docs/API_docs_v41/constructors/document.md index 3a584537..21dc39bb 100644 --- a/old_docs/API_docs_v41/constructors/document.md +++ b/old_docs/API_docs_v41/constructors/document.md @@ -28,7 +28,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/documentAttributeAudio.md b/old_docs/API_docs_v41/constructors/documentAttributeAudio.md index 28393d4b..e0d410f5 100644 --- a/old_docs/API_docs_v41/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v41/constructors/documentAttributeAudio.md @@ -11,7 +11,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Yes| |performer|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v41/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v41/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v41/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v41/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v41/constructors/documentAttributeVideo.md b/old_docs/API_docs_v41/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v41/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v41/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v41/constructors/inputChatPhoto.md b/old_docs/API_docs_v41/constructors/inputChatPhoto.md index 4cd81a7c..f10e2da3 100644 --- a/old_docs/API_docs_v41/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v41/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v41/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v41/constructors/inputChatUploadedPhoto.md index 3d88ac48..13857e71 100644 --- a/old_docs/API_docs_v41/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v41/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v41/constructors/inputMediaDocument.md b/old_docs/API_docs_v41/constructors/inputMediaDocument.md index 1859313a..034a28bd 100644 --- a/old_docs/API_docs_v41/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v41/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v41/constructors/inputMediaPhoto.md b/old_docs/API_docs_v41/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v41/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v41/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v41/constructors/inputMediaUploadedAudio.md b/old_docs/API_docs_v41/constructors/inputMediaUploadedAudio.md index bbbe18a2..8fe9138e 100644 --- a/old_docs/API_docs_v41/constructors/inputMediaUploadedAudio.md +++ b/old_docs/API_docs_v41/constructors/inputMediaUploadedAudio.md @@ -11,9 +11,9 @@ description: inputMediaUploadedAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v41/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v41/constructors/inputMediaUploadedDocument.md index 8ce039fa..67edf365 100644 --- a/old_docs/API_docs_v41/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v41/constructors/inputMediaUploadedDocument.md @@ -11,8 +11,8 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -23,7 +23,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v41/constructors/inputMediaUploadedPhoto.md index 42408b9f..58ae37cf 100644 --- a/old_docs/API_docs_v41/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v41/constructors/inputMediaUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v41/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v41/constructors/inputMediaUploadedThumbDocument.md index d6f3a647..13b93260 100644 --- a/old_docs/API_docs_v41/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v41/constructors/inputMediaUploadedThumbDocument.md @@ -11,9 +11,9 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -24,7 +24,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/inputMediaUploadedThumbVideo.md b/old_docs/API_docs_v41/constructors/inputMediaUploadedThumbVideo.md index e7a9ae2b..47506b52 100644 --- a/old_docs/API_docs_v41/constructors/inputMediaUploadedThumbVideo.md +++ b/old_docs/API_docs_v41/constructors/inputMediaUploadedThumbVideo.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v41/constructors/inputMediaUploadedVideo.md b/old_docs/API_docs_v41/constructors/inputMediaUploadedVideo.md index 427c5113..e0e36e91 100644 --- a/old_docs/API_docs_v41/constructors/inputMediaUploadedVideo.md +++ b/old_docs/API_docs_v41/constructors/inputMediaUploadedVideo.md @@ -11,11 +11,11 @@ description: inputMediaUploadedVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v41/constructors/inputNotifyPeer.md b/old_docs/API_docs_v41/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v41/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v41/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v41/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v41/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v41/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v41/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v41/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v41/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v41/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/keyboardButtonRow.md b/old_docs/API_docs_v41/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v41/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v41/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/message.md b/old_docs/API_docs_v41/constructors/message.md index 589705f6..6b9a661c 100644 --- a/old_docs/API_docs_v41/constructors/message.md +++ b/old_docs/API_docs_v41/constructors/message.md @@ -36,7 +36,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'views' => int]; +$message = ['_' => 'message', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'views' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/messageActionChatCreate.md b/old_docs/API_docs_v41/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v41/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v41/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/messages_allStickers.md b/old_docs/API_docs_v41/constructors/messages_allStickers.md index c79dee9d..d54a1758 100644 --- a/old_docs/API_docs_v41/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v41/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/messages_channelMessages.md b/old_docs/API_docs_v41/constructors/messages_channelMessages.md index e12420fe..69ba09d4 100644 --- a/old_docs/API_docs_v41/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v41/constructors/messages_channelMessages.md @@ -26,7 +26,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'collapsed' => [MessageGroup], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'collapsed' => [MessageGroup, MessageGroup], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/messages_chatFull.md b/old_docs/API_docs_v41/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v41/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v41/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/messages_chats.md b/old_docs/API_docs_v41/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v41/constructors/messages_chats.md +++ b/old_docs/API_docs_v41/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/messages_dialogs.md b/old_docs/API_docs_v41/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v41/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v41/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v41/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v41/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v41/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v41/constructors/messages_messages.md b/old_docs/API_docs_v41/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v41/constructors/messages_messages.md +++ b/old_docs/API_docs_v41/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/messages_messagesSlice.md b/old_docs/API_docs_v41/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v41/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v41/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/messages_stickerSet.md b/old_docs/API_docs_v41/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v41/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v41/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/messages_stickers.md b/old_docs/API_docs_v41/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v41/constructors/messages_stickers.md +++ b/old_docs/API_docs_v41/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/photo.md b/old_docs/API_docs_v41/constructors/photo.md index f2bdf059..7212469f 100644 --- a/old_docs/API_docs_v41/constructors/photo.md +++ b/old_docs/API_docs_v41/constructors/photo.md @@ -24,7 +24,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/photos_photo.md b/old_docs/API_docs_v41/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v41/constructors/photos_photo.md +++ b/old_docs/API_docs_v41/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/photos_photos.md b/old_docs/API_docs_v41/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v41/constructors/photos_photos.md +++ b/old_docs/API_docs_v41/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/photos_photosSlice.md b/old_docs/API_docs_v41/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v41/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v41/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v41/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v41/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v41/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v41/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v41/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v41/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v41/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v41/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v41/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/stickerPack.md b/old_docs/API_docs_v41/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v41/constructors/stickerPack.md +++ b/old_docs/API_docs_v41/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/updateDcOptions.md b/old_docs/API_docs_v41/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v41/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v41/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v41/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v41/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v41/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/updateDeleteMessages.md b/old_docs/API_docs_v41/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v41/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v41/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/updatePrivacy.md b/old_docs/API_docs_v41/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v41/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v41/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v41/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v41/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v41/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/updateShortChatMessage.md b/old_docs/API_docs_v41/constructors/updateShortChatMessage.md index d619587f..fa18d4f2 100644 --- a/old_docs/API_docs_v41/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v41/constructors/updateShortChatMessage.md @@ -35,7 +35,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity]]; +$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/updateShortMessage.md b/old_docs/API_docs_v41/constructors/updateShortMessage.md index 8e1d4b10..657061da 100644 --- a/old_docs/API_docs_v41/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v41/constructors/updateShortMessage.md @@ -34,7 +34,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$updateShortMessage = ['_' => 'updateShortMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'user_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity]]; +$updateShortMessage = ['_' => 'updateShortMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'user_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/updateShortSentMessage.md b/old_docs/API_docs_v41/constructors/updateShortSentMessage.md index e2068f9f..16dc73b4 100644 --- a/old_docs/API_docs_v41/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v41/constructors/updateShortSentMessage.md @@ -28,7 +28,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'unread' => Bool, 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'unread' => Bool, 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/updates.md b/old_docs/API_docs_v41/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v41/constructors/updates.md +++ b/old_docs/API_docs_v41/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/updatesCombined.md b/old_docs/API_docs_v41/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v41/constructors/updatesCombined.md +++ b/old_docs/API_docs_v41/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v41/constructors/updates_channelDifference.md b/old_docs/API_docs_v41/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v41/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v41/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v41/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v41/constructors/updates_channelDifferenceTooLong.md index 7aafef2c..d2b67ed4 100644 --- a/old_docs/API_docs_v41/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v41/constructors/updates_channelDifferenceTooLong.md @@ -31,7 +31,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'final' => Bool, 'pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'final' => Bool, 'pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/constructors/updates_difference.md b/old_docs/API_docs_v41/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v41/constructors/updates_difference.md +++ b/old_docs/API_docs_v41/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v41/constructors/updates_differenceSlice.md b/old_docs/API_docs_v41/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v41/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v41/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v41/constructors/wallPaper.md b/old_docs/API_docs_v41/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v41/constructors/wallPaper.md +++ b/old_docs/API_docs_v41/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v41/methods/README.md b/old_docs/API_docs_v41/methods/README.md index 0ede4334..922d3971 100644 --- a/old_docs/API_docs_v41/methods/README.md +++ b/old_docs/API_docs_v41/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v41/methods/account_changePhone.md b/old_docs/API_docs_v41/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v41/methods/account_changePhone.md +++ b/old_docs/API_docs_v41/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_checkUsername.md b/old_docs/API_docs_v41/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v41/methods/account_checkUsername.md +++ b/old_docs/API_docs_v41/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_deleteAccount.md b/old_docs/API_docs_v41/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v41/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v41/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_getAccountTTL.md b/old_docs/API_docs_v41/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v41/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v41/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v41/methods/account_getAuthorizations.md b/old_docs/API_docs_v41/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v41/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v41/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v41/methods/account_getNotifySettings.md b/old_docs/API_docs_v41/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v41/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v41/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_getPassword.md b/old_docs/API_docs_v41/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v41/methods/account_getPassword.md +++ b/old_docs/API_docs_v41/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v41/methods/account_getPasswordSettings.md b/old_docs/API_docs_v41/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v41/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v41/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_getPrivacy.md b/old_docs/API_docs_v41/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v41/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v41/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_getWallPapers.md b/old_docs/API_docs_v41/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v41/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v41/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v41/methods/account_registerDevice.md b/old_docs/API_docs_v41/methods/account_registerDevice.md index cfa1546c..5c86d74c 100644 --- a/old_docs/API_docs_v41/methods/account_registerDevice.md +++ b/old_docs/API_docs_v41/methods/account_registerDevice.md @@ -1,22 +1,24 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|app\_sandbox|[Bool](../types/Bool.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| +|device\_model|[string](../types/string.md) | Yes|| +|system\_version|[string](../types/string.md) | Yes|| +|app\_version|[string](../types/string.md) | Yes|| +|app\_sandbox|[Bool](../types/Bool.md) | Yes|Should the app run in a sandbox?| +|lang\_code|[string](../types/string.md) | Yes|| ### Return type: [Bool](../types/Bool.md) @@ -35,13 +37,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_resetAuthorization.md b/old_docs/API_docs_v41/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v41/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v41/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_resetNotifySettings.md b/old_docs/API_docs_v41/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v41/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v41/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md index ad611a8b..b5258245 100644 --- a/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md @@ -1,16 +1,18 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|New phone number| ### Return type: [account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) @@ -29,13 +31,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_setAccountTTL.md b/old_docs/API_docs_v41/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v41/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v41/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_setPrivacy.md b/old_docs/API_docs_v41/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v41/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v41/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/account_unregisterDevice.md b/old_docs/API_docs_v41/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v41/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v41/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v41/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v41/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v41/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_updateNotifySettings.md b/old_docs/API_docs_v41/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v41/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v41/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_updateProfile.md b/old_docs/API_docs_v41/methods/account_updateProfile.md index 123ed13a..7f8d80c5 100644 --- a/old_docs/API_docs_v41/methods/account_updateProfile.md +++ b/old_docs/API_docs_v41/methods/account_updateProfile.md @@ -1,17 +1,19 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Yes| -|last\_name|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Yes|The first name| +|last\_name|[string](../types/string.md) | Yes|The last name| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_updateStatus.md b/old_docs/API_docs_v41/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v41/methods/account_updateStatus.md +++ b/old_docs/API_docs_v41/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v41/methods/account_updateUsername.md b/old_docs/API_docs_v41/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v41/methods/account_updateUsername.md +++ b/old_docs/API_docs_v41/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v41/methods/auth_checkPassword.md b/old_docs/API_docs_v41/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v41/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v41/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v41/methods/auth_checkPhone.md b/old_docs/API_docs_v41/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v41/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v41/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/auth_exportAuthorization.md b/old_docs/API_docs_v41/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v41/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v41/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v41/methods/auth_importAuthorization.md b/old_docs/API_docs_v41/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v41/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v41/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v41/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v41/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v41/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v41/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v41/methods/auth_logOut.md b/old_docs/API_docs_v41/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v41/methods/auth_logOut.md +++ b/old_docs/API_docs_v41/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v41/methods/auth_recoverPassword.md b/old_docs/API_docs_v41/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v41/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v41/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v41/methods/auth_sendCall.md b/old_docs/API_docs_v41/methods/auth_sendCall.md index 386cfad4..94ed6b7f 100644 --- a/old_docs/API_docs_v41/methods/auth_sendCall.md +++ b/old_docs/API_docs_v41/methods/auth_sendCall.md @@ -23,16 +23,18 @@ description: auth.sendCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/auth_sendCode.md b/old_docs/API_docs_v41/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v41/methods/auth_sendCode.md +++ b/old_docs/API_docs_v41/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v41/methods/auth_sendInvites.md b/old_docs/API_docs_v41/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v41/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v41/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/auth_sendSms.md b/old_docs/API_docs_v41/methods/auth_sendSms.md index 9a214e65..0c4a7343 100644 --- a/old_docs/API_docs_v41/methods/auth_sendSms.md +++ b/old_docs/API_docs_v41/methods/auth_sendSms.md @@ -23,16 +23,18 @@ description: auth.sendSms parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/auth_signIn.md b/old_docs/API_docs_v41/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v41/methods/auth_signIn.md +++ b/old_docs/API_docs_v41/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v41/methods/auth_signUp.md b/old_docs/API_docs_v41/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v41/methods/auth_signUp.md +++ b/old_docs/API_docs_v41/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v41/methods/channels_checkUsername.md b/old_docs/API_docs_v41/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v41/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v41/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_createChannel.md b/old_docs/API_docs_v41/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v41/methods/channels_createChannel.md +++ b/old_docs/API_docs_v41/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_deleteChannel.md b/old_docs/API_docs_v41/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v41/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_deleteMessages.md b/old_docs/API_docs_v41/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v41/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_editAbout.md b/old_docs/API_docs_v41/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v41/methods/channels_editAbout.md +++ b/old_docs/API_docs_v41/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_editAdmin.md b/old_docs/API_docs_v41/methods/channels_editAdmin.md index 21dc5726..f0b6f0d1 100644 --- a/old_docs/API_docs_v41/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v41/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |role|[ChannelParticipantRole](../types/ChannelParticipantRole.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_editPhoto.md b/old_docs/API_docs_v41/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v41/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v41/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_editTitle.md b/old_docs/API_docs_v41/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v41/methods/channels_editTitle.md +++ b/old_docs/API_docs_v41/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_exportInvite.md b/old_docs/API_docs_v41/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v41/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v41/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_getChannels.md b/old_docs/API_docs_v41/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v41/methods/channels_getChannels.md +++ b/old_docs/API_docs_v41/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/channels_getDialogs.md b/old_docs/API_docs_v41/methods/channels_getDialogs.md index 916f9b34..7c1464f8 100644 --- a/old_docs/API_docs_v41/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v41/methods/channels_getDialogs.md @@ -23,16 +23,18 @@ description: channels.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->channels->getDialogs(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_getFullChannel.md b/old_docs/API_docs_v41/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v41/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v41/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v41/methods/channels_getImportantHistory.md b/old_docs/API_docs_v41/methods/channels_getImportantHistory.md index 2f489487..6dc710fb 100644 --- a/old_docs/API_docs_v41/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v41/methods/channels_getImportantHistory.md @@ -10,7 +10,7 @@ description: channels.getImportantHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -27,16 +27,18 @@ description: channels.getImportantHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getImportantHistory(['channel' => InputChannel, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_getMessages.md b/old_docs/API_docs_v41/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v41/methods/channels_getMessages.md +++ b/old_docs/API_docs_v41/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/channels_getParticipant.md b/old_docs/API_docs_v41/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v41/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v41/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_getParticipants.md b/old_docs/API_docs_v41/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v41/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v41/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_inviteToChannel.md b/old_docs/API_docs_v41/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v41/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v41/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/channels_joinChannel.md b/old_docs/API_docs_v41/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v41/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v41/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_kickFromChannel.md b/old_docs/API_docs_v41/methods/channels_kickFromChannel.md index a2182df8..e4b68581 100644 --- a/old_docs/API_docs_v41/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v41/methods/channels_kickFromChannel.md @@ -10,8 +10,8 @@ description: channels.kickFromChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |kicked|[Bool](../types/Bool.md) | Yes| @@ -24,16 +24,18 @@ description: channels.kickFromChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_leaveChannel.md b/old_docs/API_docs_v41/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v41/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v41/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_readHistory.md b/old_docs/API_docs_v41/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v41/methods/channels_readHistory.md +++ b/old_docs/API_docs_v41/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_reportSpam.md b/old_docs/API_docs_v41/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v41/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v41/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/channels_toggleComments.md b/old_docs/API_docs_v41/methods/channels_toggleComments.md index ce4207db..8b77db49 100644 --- a/old_docs/API_docs_v41/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v41/methods/channels_toggleComments.md @@ -10,7 +10,7 @@ description: channels.toggleComments parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -23,16 +23,18 @@ description: channels.toggleComments parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleComments(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v41/methods/channels_updateUsername.md b/old_docs/API_docs_v41/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v41/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v41/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/contacts_block.md b/old_docs/API_docs_v41/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v41/methods/contacts_block.md +++ b/old_docs/API_docs_v41/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v41/methods/contacts_deleteContact.md b/old_docs/API_docs_v41/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v41/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v41/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v41/methods/contacts_deleteContacts.md b/old_docs/API_docs_v41/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v41/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v41/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/contacts_exportCard.md b/old_docs/API_docs_v41/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v41/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v41/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v41/methods/contacts_getBlocked.md b/old_docs/API_docs_v41/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v41/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v41/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/contacts_getContacts.md b/old_docs/API_docs_v41/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v41/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v41/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/contacts_getStatuses.md b/old_docs/API_docs_v41/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v41/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v41/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v41/methods/contacts_getSuggested.md b/old_docs/API_docs_v41/methods/contacts_getSuggested.md index 2059c01b..7249b1f2 100644 --- a/old_docs/API_docs_v41/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v41/methods/contacts_getSuggested.md @@ -22,16 +22,18 @@ description: contacts.getSuggested parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/contacts_importCard.md b/old_docs/API_docs_v41/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v41/methods/contacts_importCard.md +++ b/old_docs/API_docs_v41/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/contacts_importContacts.md b/old_docs/API_docs_v41/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v41/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v41/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/contacts_resolveUsername.md b/old_docs/API_docs_v41/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v41/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v41/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v41/methods/contacts_search.md b/old_docs/API_docs_v41/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v41/methods/contacts_search.md +++ b/old_docs/API_docs_v41/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/contacts_unblock.md b/old_docs/API_docs_v41/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v41/methods/contacts_unblock.md +++ b/old_docs/API_docs_v41/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v41/methods/help_getAppChangelog.md b/old_docs/API_docs_v41/methods/help_getAppChangelog.md index b27cc9f0..d69a61cb 100644 --- a/old_docs/API_docs_v41/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v41/methods/help_getAppChangelog.md @@ -25,13 +25,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/help_getAppUpdate.md b/old_docs/API_docs_v41/methods/help_getAppUpdate.md index 7b3bdde9..f9b06641 100644 --- a/old_docs/API_docs_v41/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v41/methods/help_getAppUpdate.md @@ -25,13 +25,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/help_getConfig.md b/old_docs/API_docs_v41/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v41/methods/help_getConfig.md +++ b/old_docs/API_docs_v41/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v41/methods/help_getInviteText.md b/old_docs/API_docs_v41/methods/help_getInviteText.md index 40251dd5..bac72a15 100644 --- a/old_docs/API_docs_v41/methods/help_getInviteText.md +++ b/old_docs/API_docs_v41/methods/help_getInviteText.md @@ -22,13 +22,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/help_getNearestDc.md b/old_docs/API_docs_v41/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v41/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v41/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v41/methods/help_getSupport.md b/old_docs/API_docs_v41/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v41/methods/help_getSupport.md +++ b/old_docs/API_docs_v41/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v41/methods/help_saveAppLog.md b/old_docs/API_docs_v41/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v41/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v41/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/initConnection.md b/old_docs/API_docs_v41/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v41/methods/initConnection.md +++ b/old_docs/API_docs_v41/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v41/methods/invokeAfterMsg.md b/old_docs/API_docs_v41/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v41/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v41/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v41/methods/invokeAfterMsgs.md b/old_docs/API_docs_v41/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v41/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v41/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/invokeWithLayer.md b/old_docs/API_docs_v41/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v41/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v41/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v41/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v41/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v41/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v41/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_acceptEncryption.md b/old_docs/API_docs_v41/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v41/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v41/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v41/methods/messages_addChatUser.md b/old_docs/API_docs_v41/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v41/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v41/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_checkChatInvite.md b/old_docs/API_docs_v41/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v41/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_createChat.md b/old_docs/API_docs_v41/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v41/methods/messages_createChat.md +++ b/old_docs/API_docs_v41/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/messages_deactivateChat.md b/old_docs/API_docs_v41/methods/messages_deactivateChat.md index 696c1614..e0a1fa88 100644 --- a/old_docs/API_docs_v41/methods/messages_deactivateChat.md +++ b/old_docs/API_docs_v41/methods/messages_deactivateChat.md @@ -10,7 +10,7 @@ description: messages.deactivateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -23,16 +23,18 @@ description: messages.deactivateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deactivateChat(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_deleteChatUser.md b/old_docs/API_docs_v41/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v41/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v41/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_deleteHistory.md b/old_docs/API_docs_v41/methods/messages_deleteHistory.md index 598ce5c6..e2e60c49 100644 --- a/old_docs/API_docs_v41/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v41/methods/messages_deleteHistory.md @@ -10,7 +10,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_deleteMessages.md b/old_docs/API_docs_v41/methods/messages_deleteMessages.md index 38b3ca09..12347c81 100644 --- a/old_docs/API_docs_v41/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v41/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/messages_discardEncryption.md b/old_docs/API_docs_v41/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v41/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v41/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v41/methods/messages_editChatAdmin.md b/old_docs/API_docs_v41/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v41/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v41/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_editChatPhoto.md b/old_docs/API_docs_v41/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v41/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v41/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_editChatTitle.md b/old_docs/API_docs_v41/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v41/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v41/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_exportChatInvite.md b/old_docs/API_docs_v41/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v41/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_forwardMessage.md b/old_docs/API_docs_v41/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v41/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v41/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_forwardMessages.md b/old_docs/API_docs_v41/methods/messages_forwardMessages.md index fc7891c6..2f759375 100644 --- a/old_docs/API_docs_v41/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v41/methods/messages_forwardMessages.md @@ -11,9 +11,9 @@ description: messages.forwardMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |broadcast|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -53,18 +53,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/messages_getAllStickers.md b/old_docs/API_docs_v41/methods/messages_getAllStickers.md index 3a0b3781..c1387ab3 100644 --- a/old_docs/API_docs_v41/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v41/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_getChats.md b/old_docs/API_docs_v41/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v41/methods/messages_getChats.md +++ b/old_docs/API_docs_v41/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/messages_getDhConfig.md b/old_docs/API_docs_v41/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v41/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v41/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_getDialogs.md b/old_docs/API_docs_v41/methods/messages_getDialogs.md index 50f2b9d5..1ba0c7f0 100644 --- a/old_docs/API_docs_v41/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v41/methods/messages_getDialogs.md @@ -33,13 +33,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_getFullChat.md b/old_docs/API_docs_v41/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v41/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v41/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v41/methods/messages_getHistory.md b/old_docs/API_docs_v41/methods/messages_getHistory.md index 11d8333f..c306f02c 100644 --- a/old_docs/API_docs_v41/methods/messages_getHistory.md +++ b/old_docs/API_docs_v41/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_getMessages.md b/old_docs/API_docs_v41/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v41/methods/messages_getMessages.md +++ b/old_docs/API_docs_v41/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/messages_getMessagesViews.md b/old_docs/API_docs_v41/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v41/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v41/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/messages_getStickerSet.md b/old_docs/API_docs_v41/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v41/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v41/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_getStickers.md b/old_docs/API_docs_v41/methods/messages_getStickers.md index 1587cd01..6ac68c87 100644 --- a/old_docs/API_docs_v41/methods/messages_getStickers.md +++ b/old_docs/API_docs_v41/methods/messages_getStickers.md @@ -23,16 +23,18 @@ description: messages.getStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v41/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v41/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v41/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_importChatInvite.md b/old_docs/API_docs_v41/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v41/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_installStickerSet.md b/old_docs/API_docs_v41/methods/messages_installStickerSet.md index 1a31c0e7..ccabd393 100644 --- a/old_docs/API_docs_v41/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v41/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_migrateChat.md b/old_docs/API_docs_v41/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v41/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v41/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_readHistory.md b/old_docs/API_docs_v41/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v41/methods/messages_readHistory.md +++ b/old_docs/API_docs_v41/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_readMessageContents.md b/old_docs/API_docs_v41/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v41/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v41/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/messages_receivedMessages.md b/old_docs/API_docs_v41/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v41/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v41/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_receivedQueue.md b/old_docs/API_docs_v41/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v41/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v41/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_reportSpam.md b/old_docs/API_docs_v41/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v41/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v41/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_requestEncryption.md b/old_docs/API_docs_v41/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v41/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v41/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v41/methods/messages_search.md b/old_docs/API_docs_v41/methods/messages_search.md index b23dd186..c2a822a1 100644 --- a/old_docs/API_docs_v41/methods/messages_search.md +++ b/old_docs/API_docs_v41/methods/messages_search.md @@ -11,7 +11,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |important\_only|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -43,13 +43,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['important_only' => Bool, 'peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_searchGlobal.md b/old_docs/API_docs_v41/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v41/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v41/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_sendBroadcast.md b/old_docs/API_docs_v41/methods/messages_sendBroadcast.md index 725d1f34..0ab60e43 100644 --- a/old_docs/API_docs_v41/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v41/methods/messages_sendBroadcast.md @@ -10,9 +10,9 @@ description: messages.sendBroadcast parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|contacts|Array of [InputUser](../types/InputUser.md) | Yes| +|contacts|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |message|[string](../types/string.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -24,18 +24,20 @@ description: messages.sendBroadcast parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser], 'message' => 'string', 'media' => InputMedia, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/messages_sendEncrypted.md b/old_docs/API_docs_v41/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_sendMedia.md b/old_docs/API_docs_v41/methods/messages_sendMedia.md index 67ba198c..f153e219 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v41/methods/messages_sendMedia.md @@ -11,9 +11,9 @@ description: messages.sendMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |broadcast|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -54,16 +54,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_sendMessage.md b/old_docs/API_docs_v41/methods/messages_sendMessage.md index 09f0e627..c4dc2cd5 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v41/methods/messages_sendMessage.md @@ -12,7 +12,7 @@ description: messages.sendMessage parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |broadcast|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -48,6 +48,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -55,18 +56,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_setTyping.md b/old_docs/API_docs_v41/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v41/methods/messages_setTyping.md +++ b/old_docs/API_docs_v41/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_startBot.md b/old_docs/API_docs_v41/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v41/methods/messages_startBot.md +++ b/old_docs/API_docs_v41/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v41/methods/photos_deletePhotos.md b/old_docs/API_docs_v41/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v41/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v41/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/methods/photos_getUserPhotos.md b/old_docs/API_docs_v41/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v41/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v41/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v41/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v41/methods/photos_updateProfilePhoto.md index d3acbb56..fbe84e26 100644 --- a/old_docs/API_docs_v41/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v41/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -23,13 +23,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md index de7c2281..303ed4ea 100644 --- a/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -35,13 +35,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v41/methods/updates_getChannelDifference.md b/old_docs/API_docs_v41/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v41/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v41/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v41/methods/updates_getDifference.md b/old_docs/API_docs_v41/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v41/methods/updates_getDifference.md +++ b/old_docs/API_docs_v41/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v41/methods/updates_getState.md b/old_docs/API_docs_v41/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v41/methods/updates_getState.md +++ b/old_docs/API_docs_v41/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v41/methods/upload_getFile.md b/old_docs/API_docs_v41/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v41/methods/upload_getFile.md +++ b/old_docs/API_docs_v41/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v41/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v41/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v41/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v41/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v41/methods/upload_saveFilePart.md b/old_docs/API_docs_v41/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v41/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v41/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v41/methods/users_getFullUser.md b/old_docs/API_docs_v41/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v41/methods/users_getFullUser.md +++ b/old_docs/API_docs_v41/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v41/methods/users_getUsers.md b/old_docs/API_docs_v41/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v41/methods/users_getUsers.md +++ b/old_docs/API_docs_v41/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v41/types/Chat.md b/old_docs/API_docs_v41/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v41/types/Chat.md +++ b/old_docs/API_docs_v41/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v41/types/InputChannel.md b/old_docs/API_docs_v41/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v41/types/InputChannel.md +++ b/old_docs/API_docs_v41/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v41/types/InputDocument.md b/old_docs/API_docs_v41/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v41/types/InputDocument.md +++ b/old_docs/API_docs_v41/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v41/types/InputEncryptedChat.md b/old_docs/API_docs_v41/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v41/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v41/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v41/types/InputEncryptedFile.md b/old_docs/API_docs_v41/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v41/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v41/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v41/types/InputFile.md b/old_docs/API_docs_v41/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v41/types/InputFile.md +++ b/old_docs/API_docs_v41/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v41/types/InputMedia.md b/old_docs/API_docs_v41/types/InputMedia.md index 5112cbfa..2112c216 100644 --- a/old_docs/API_docs_v41/types/InputMedia.md +++ b/old_docs/API_docs_v41/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v41/types/InputPeer.md b/old_docs/API_docs_v41/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v41/types/InputPeer.md +++ b/old_docs/API_docs_v41/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v41/types/InputPhoto.md b/old_docs/API_docs_v41/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v41/types/InputPhoto.md +++ b/old_docs/API_docs_v41/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v41/types/InputUser.md b/old_docs/API_docs_v41/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v41/types/InputUser.md +++ b/old_docs/API_docs_v41/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v41/types/Peer.md b/old_docs/API_docs_v41/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v41/types/Peer.md +++ b/old_docs/API_docs_v41/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v41/types/User.md b/old_docs/API_docs_v41/types/User.md index a9d4addd..30fd113c 100644 --- a/old_docs/API_docs_v41/types/User.md +++ b/old_docs/API_docs_v41/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v42/constructors/account_authorizations.md b/old_docs/API_docs_v42/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v42/constructors/account_authorizations.md +++ b/old_docs/API_docs_v42/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/account_privacyRules.md b/old_docs/API_docs_v42/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v42/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v42/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/botInfo.md b/old_docs/API_docs_v42/constructors/botInfo.md index 196803dd..f86f0436 100644 --- a/old_docs/API_docs_v42/constructors/botInfo.md +++ b/old_docs/API_docs_v42/constructors/botInfo.md @@ -25,7 +25,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/channelFull.md b/old_docs/API_docs_v42/constructors/channelFull.md index 13c4a787..475bd29e 100644 --- a/old_docs/API_docs_v42/constructors/channelFull.md +++ b/old_docs/API_docs_v42/constructors/channelFull.md @@ -35,7 +35,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/channelMessagesFilter.md b/old_docs/API_docs_v42/constructors/channelMessagesFilter.md index 56431ffb..e0a160e9 100644 --- a/old_docs/API_docs_v42/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v42/constructors/channelMessagesFilter.md @@ -23,7 +23,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'important_only' => Bool, 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'important_only' => Bool, 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/channels_channelParticipant.md b/old_docs/API_docs_v42/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v42/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v42/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/channels_channelParticipants.md b/old_docs/API_docs_v42/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v42/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v42/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/chatFull.md b/old_docs/API_docs_v42/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v42/constructors/chatFull.md +++ b/old_docs/API_docs_v42/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/chatParticipants.md b/old_docs/API_docs_v42/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v42/constructors/chatParticipants.md +++ b/old_docs/API_docs_v42/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/config.md b/old_docs/API_docs_v42/constructors/config.md index 4ca8e931..d5007d83 100644 --- a/old_docs/API_docs_v42/constructors/config.md +++ b/old_docs/API_docs_v42/constructors/config.md @@ -38,7 +38,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/contacts_blocked.md b/old_docs/API_docs_v42/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v42/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v42/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v42/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v42/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v42/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/contacts_contacts.md b/old_docs/API_docs_v42/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v42/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v42/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/contacts_found.md b/old_docs/API_docs_v42/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v42/constructors/contacts_found.md +++ b/old_docs/API_docs_v42/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/contacts_importedContacts.md b/old_docs/API_docs_v42/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v42/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v42/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v42/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v42/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v42/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/contacts_suggested.md b/old_docs/API_docs_v42/constructors/contacts_suggested.md index 38db68c5..1ee96769 100644 --- a/old_docs/API_docs_v42/constructors/contacts_suggested.md +++ b/old_docs/API_docs_v42/constructors/contacts_suggested.md @@ -22,7 +22,7 @@ description: contacts_suggested attributes, type and example ### Example: ``` -$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested], 'users' => [User]]; +$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested, ContactSuggested], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/document.md b/old_docs/API_docs_v42/constructors/document.md index 3a584537..21dc39bb 100644 --- a/old_docs/API_docs_v42/constructors/document.md +++ b/old_docs/API_docs_v42/constructors/document.md @@ -28,7 +28,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/documentAttributeAudio.md b/old_docs/API_docs_v42/constructors/documentAttributeAudio.md index 28393d4b..e0d410f5 100644 --- a/old_docs/API_docs_v42/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v42/constructors/documentAttributeAudio.md @@ -11,7 +11,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Yes| |performer|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v42/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v42/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v42/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v42/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v42/constructors/documentAttributeVideo.md b/old_docs/API_docs_v42/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v42/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v42/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v42/constructors/inputChatPhoto.md b/old_docs/API_docs_v42/constructors/inputChatPhoto.md index 4cd81a7c..f10e2da3 100644 --- a/old_docs/API_docs_v42/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v42/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v42/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v42/constructors/inputChatUploadedPhoto.md index 3d88ac48..13857e71 100644 --- a/old_docs/API_docs_v42/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v42/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v42/constructors/inputMediaDocument.md b/old_docs/API_docs_v42/constructors/inputMediaDocument.md index 1859313a..034a28bd 100644 --- a/old_docs/API_docs_v42/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v42/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v42/constructors/inputMediaPhoto.md b/old_docs/API_docs_v42/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v42/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v42/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v42/constructors/inputMediaUploadedAudio.md b/old_docs/API_docs_v42/constructors/inputMediaUploadedAudio.md index bbbe18a2..8fe9138e 100644 --- a/old_docs/API_docs_v42/constructors/inputMediaUploadedAudio.md +++ b/old_docs/API_docs_v42/constructors/inputMediaUploadedAudio.md @@ -11,9 +11,9 @@ description: inputMediaUploadedAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v42/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v42/constructors/inputMediaUploadedDocument.md index 8ce039fa..67edf365 100644 --- a/old_docs/API_docs_v42/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v42/constructors/inputMediaUploadedDocument.md @@ -11,8 +11,8 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -23,7 +23,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v42/constructors/inputMediaUploadedPhoto.md index 42408b9f..58ae37cf 100644 --- a/old_docs/API_docs_v42/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v42/constructors/inputMediaUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v42/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v42/constructors/inputMediaUploadedThumbDocument.md index d6f3a647..13b93260 100644 --- a/old_docs/API_docs_v42/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v42/constructors/inputMediaUploadedThumbDocument.md @@ -11,9 +11,9 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -24,7 +24,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/inputMediaUploadedThumbVideo.md b/old_docs/API_docs_v42/constructors/inputMediaUploadedThumbVideo.md index e7a9ae2b..47506b52 100644 --- a/old_docs/API_docs_v42/constructors/inputMediaUploadedThumbVideo.md +++ b/old_docs/API_docs_v42/constructors/inputMediaUploadedThumbVideo.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v42/constructors/inputMediaUploadedVideo.md b/old_docs/API_docs_v42/constructors/inputMediaUploadedVideo.md index 427c5113..e0e36e91 100644 --- a/old_docs/API_docs_v42/constructors/inputMediaUploadedVideo.md +++ b/old_docs/API_docs_v42/constructors/inputMediaUploadedVideo.md @@ -11,11 +11,11 @@ description: inputMediaUploadedVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v42/constructors/inputNotifyPeer.md b/old_docs/API_docs_v42/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v42/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v42/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v42/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v42/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v42/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v42/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v42/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v42/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v42/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/keyboardButtonRow.md b/old_docs/API_docs_v42/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v42/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v42/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/message.md b/old_docs/API_docs_v42/constructors/message.md index 589705f6..6b9a661c 100644 --- a/old_docs/API_docs_v42/constructors/message.md +++ b/old_docs/API_docs_v42/constructors/message.md @@ -36,7 +36,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'views' => int]; +$message = ['_' => 'message', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'views' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v42/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v42/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v42/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/messageActionChatCreate.md b/old_docs/API_docs_v42/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v42/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v42/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/messages_allStickers.md b/old_docs/API_docs_v42/constructors/messages_allStickers.md index c79dee9d..d54a1758 100644 --- a/old_docs/API_docs_v42/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v42/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => 'string', 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/messages_channelMessages.md b/old_docs/API_docs_v42/constructors/messages_channelMessages.md index e12420fe..69ba09d4 100644 --- a/old_docs/API_docs_v42/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v42/constructors/messages_channelMessages.md @@ -26,7 +26,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'collapsed' => [MessageGroup], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'collapsed' => [MessageGroup, MessageGroup], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/messages_chatFull.md b/old_docs/API_docs_v42/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v42/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v42/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/messages_chats.md b/old_docs/API_docs_v42/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v42/constructors/messages_chats.md +++ b/old_docs/API_docs_v42/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/messages_dialogs.md b/old_docs/API_docs_v42/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v42/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v42/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v42/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v42/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v42/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v42/constructors/messages_messages.md b/old_docs/API_docs_v42/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v42/constructors/messages_messages.md +++ b/old_docs/API_docs_v42/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/messages_messagesSlice.md b/old_docs/API_docs_v42/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v42/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v42/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/messages_stickerSet.md b/old_docs/API_docs_v42/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v42/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v42/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/messages_stickers.md b/old_docs/API_docs_v42/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v42/constructors/messages_stickers.md +++ b/old_docs/API_docs_v42/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/photo.md b/old_docs/API_docs_v42/constructors/photo.md index f2bdf059..7212469f 100644 --- a/old_docs/API_docs_v42/constructors/photo.md +++ b/old_docs/API_docs_v42/constructors/photo.md @@ -24,7 +24,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/photos_photo.md b/old_docs/API_docs_v42/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v42/constructors/photos_photo.md +++ b/old_docs/API_docs_v42/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/photos_photos.md b/old_docs/API_docs_v42/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v42/constructors/photos_photos.md +++ b/old_docs/API_docs_v42/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/photos_photosSlice.md b/old_docs/API_docs_v42/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v42/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v42/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v42/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v42/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v42/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v42/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v42/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v42/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v42/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v42/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v42/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/stickerPack.md b/old_docs/API_docs_v42/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v42/constructors/stickerPack.md +++ b/old_docs/API_docs_v42/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/updateDcOptions.md b/old_docs/API_docs_v42/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v42/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v42/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v42/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v42/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v42/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/updateDeleteMessages.md b/old_docs/API_docs_v42/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v42/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v42/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/updatePrivacy.md b/old_docs/API_docs_v42/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v42/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v42/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v42/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v42/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v42/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/updateShortChatMessage.md b/old_docs/API_docs_v42/constructors/updateShortChatMessage.md index d619587f..fa18d4f2 100644 --- a/old_docs/API_docs_v42/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v42/constructors/updateShortChatMessage.md @@ -35,7 +35,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity]]; +$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/updateShortMessage.md b/old_docs/API_docs_v42/constructors/updateShortMessage.md index 8e1d4b10..657061da 100644 --- a/old_docs/API_docs_v42/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v42/constructors/updateShortMessage.md @@ -34,7 +34,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$updateShortMessage = ['_' => 'updateShortMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'user_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity]]; +$updateShortMessage = ['_' => 'updateShortMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'user_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/updateShortSentMessage.md b/old_docs/API_docs_v42/constructors/updateShortSentMessage.md index e2068f9f..16dc73b4 100644 --- a/old_docs/API_docs_v42/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v42/constructors/updateShortSentMessage.md @@ -28,7 +28,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'unread' => Bool, 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'unread' => Bool, 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/updates.md b/old_docs/API_docs_v42/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v42/constructors/updates.md +++ b/old_docs/API_docs_v42/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/updatesCombined.md b/old_docs/API_docs_v42/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v42/constructors/updatesCombined.md +++ b/old_docs/API_docs_v42/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v42/constructors/updates_channelDifference.md b/old_docs/API_docs_v42/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v42/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v42/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v42/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v42/constructors/updates_channelDifferenceTooLong.md index 7aafef2c..d2b67ed4 100644 --- a/old_docs/API_docs_v42/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v42/constructors/updates_channelDifferenceTooLong.md @@ -31,7 +31,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'final' => Bool, 'pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'final' => Bool, 'pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/constructors/updates_difference.md b/old_docs/API_docs_v42/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v42/constructors/updates_difference.md +++ b/old_docs/API_docs_v42/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v42/constructors/updates_differenceSlice.md b/old_docs/API_docs_v42/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v42/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v42/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v42/constructors/wallPaper.md b/old_docs/API_docs_v42/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v42/constructors/wallPaper.md +++ b/old_docs/API_docs_v42/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v42/methods/README.md b/old_docs/API_docs_v42/methods/README.md index 6b3e40de..d5c1fa05 100644 --- a/old_docs/API_docs_v42/methods/README.md +++ b/old_docs/API_docs_v42/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v42/methods/account_changePhone.md b/old_docs/API_docs_v42/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v42/methods/account_changePhone.md +++ b/old_docs/API_docs_v42/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_checkUsername.md b/old_docs/API_docs_v42/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v42/methods/account_checkUsername.md +++ b/old_docs/API_docs_v42/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_deleteAccount.md b/old_docs/API_docs_v42/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v42/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v42/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_getAccountTTL.md b/old_docs/API_docs_v42/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v42/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v42/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v42/methods/account_getAuthorizations.md b/old_docs/API_docs_v42/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v42/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v42/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v42/methods/account_getNotifySettings.md b/old_docs/API_docs_v42/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v42/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v42/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_getPassword.md b/old_docs/API_docs_v42/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v42/methods/account_getPassword.md +++ b/old_docs/API_docs_v42/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v42/methods/account_getPasswordSettings.md b/old_docs/API_docs_v42/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v42/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v42/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_getPrivacy.md b/old_docs/API_docs_v42/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v42/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v42/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_getWallPapers.md b/old_docs/API_docs_v42/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v42/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v42/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v42/methods/account_registerDevice.md b/old_docs/API_docs_v42/methods/account_registerDevice.md index cfa1546c..5c86d74c 100644 --- a/old_docs/API_docs_v42/methods/account_registerDevice.md +++ b/old_docs/API_docs_v42/methods/account_registerDevice.md @@ -1,22 +1,24 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|app\_sandbox|[Bool](../types/Bool.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| +|device\_model|[string](../types/string.md) | Yes|| +|system\_version|[string](../types/string.md) | Yes|| +|app\_version|[string](../types/string.md) | Yes|| +|app\_sandbox|[Bool](../types/Bool.md) | Yes|Should the app run in a sandbox?| +|lang\_code|[string](../types/string.md) | Yes|| ### Return type: [Bool](../types/Bool.md) @@ -35,13 +37,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_resetAuthorization.md b/old_docs/API_docs_v42/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v42/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v42/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_resetNotifySettings.md b/old_docs/API_docs_v42/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v42/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v42/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md index ad611a8b..b5258245 100644 --- a/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md @@ -1,16 +1,18 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|New phone number| ### Return type: [account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) @@ -29,13 +31,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_setAccountTTL.md b/old_docs/API_docs_v42/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v42/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v42/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_setPrivacy.md b/old_docs/API_docs_v42/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v42/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v42/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/account_unregisterDevice.md b/old_docs/API_docs_v42/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v42/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v42/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v42/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v42/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v42/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_updateNotifySettings.md b/old_docs/API_docs_v42/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v42/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v42/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_updateProfile.md b/old_docs/API_docs_v42/methods/account_updateProfile.md index 123ed13a..7f8d80c5 100644 --- a/old_docs/API_docs_v42/methods/account_updateProfile.md +++ b/old_docs/API_docs_v42/methods/account_updateProfile.md @@ -1,17 +1,19 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Yes| -|last\_name|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Yes|The first name| +|last\_name|[string](../types/string.md) | Yes|The last name| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_updateStatus.md b/old_docs/API_docs_v42/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v42/methods/account_updateStatus.md +++ b/old_docs/API_docs_v42/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v42/methods/account_updateUsername.md b/old_docs/API_docs_v42/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v42/methods/account_updateUsername.md +++ b/old_docs/API_docs_v42/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v42/methods/auth_checkPassword.md b/old_docs/API_docs_v42/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v42/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v42/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v42/methods/auth_checkPhone.md b/old_docs/API_docs_v42/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v42/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v42/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/auth_exportAuthorization.md b/old_docs/API_docs_v42/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v42/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v42/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v42/methods/auth_importAuthorization.md b/old_docs/API_docs_v42/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v42/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v42/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v42/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v42/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v42/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v42/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v42/methods/auth_logOut.md b/old_docs/API_docs_v42/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v42/methods/auth_logOut.md +++ b/old_docs/API_docs_v42/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v42/methods/auth_recoverPassword.md b/old_docs/API_docs_v42/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v42/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v42/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v42/methods/auth_sendCall.md b/old_docs/API_docs_v42/methods/auth_sendCall.md index 386cfad4..94ed6b7f 100644 --- a/old_docs/API_docs_v42/methods/auth_sendCall.md +++ b/old_docs/API_docs_v42/methods/auth_sendCall.md @@ -23,16 +23,18 @@ description: auth.sendCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/auth_sendCode.md b/old_docs/API_docs_v42/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v42/methods/auth_sendCode.md +++ b/old_docs/API_docs_v42/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v42/methods/auth_sendInvites.md b/old_docs/API_docs_v42/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v42/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v42/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/auth_sendSms.md b/old_docs/API_docs_v42/methods/auth_sendSms.md index 9a214e65..0c4a7343 100644 --- a/old_docs/API_docs_v42/methods/auth_sendSms.md +++ b/old_docs/API_docs_v42/methods/auth_sendSms.md @@ -23,16 +23,18 @@ description: auth.sendSms parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/auth_signIn.md b/old_docs/API_docs_v42/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v42/methods/auth_signIn.md +++ b/old_docs/API_docs_v42/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v42/methods/auth_signUp.md b/old_docs/API_docs_v42/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v42/methods/auth_signUp.md +++ b/old_docs/API_docs_v42/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v42/methods/channels_checkUsername.md b/old_docs/API_docs_v42/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v42/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v42/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_createChannel.md b/old_docs/API_docs_v42/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v42/methods/channels_createChannel.md +++ b/old_docs/API_docs_v42/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_deleteChannel.md b/old_docs/API_docs_v42/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v42/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_deleteMessages.md b/old_docs/API_docs_v42/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v42/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_editAbout.md b/old_docs/API_docs_v42/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v42/methods/channels_editAbout.md +++ b/old_docs/API_docs_v42/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_editAdmin.md b/old_docs/API_docs_v42/methods/channels_editAdmin.md index c62597e1..146159d9 100644 --- a/old_docs/API_docs_v42/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v42/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |role|[ChannelParticipantRole](../types/ChannelParticipantRole.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_editPhoto.md b/old_docs/API_docs_v42/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v42/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v42/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_editTitle.md b/old_docs/API_docs_v42/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v42/methods/channels_editTitle.md +++ b/old_docs/API_docs_v42/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_exportInvite.md b/old_docs/API_docs_v42/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v42/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v42/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_getChannels.md b/old_docs/API_docs_v42/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v42/methods/channels_getChannels.md +++ b/old_docs/API_docs_v42/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/channels_getDialogs.md b/old_docs/API_docs_v42/methods/channels_getDialogs.md index 916f9b34..7c1464f8 100644 --- a/old_docs/API_docs_v42/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v42/methods/channels_getDialogs.md @@ -23,16 +23,18 @@ description: channels.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->channels->getDialogs(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_getFullChannel.md b/old_docs/API_docs_v42/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v42/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v42/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v42/methods/channels_getImportantHistory.md b/old_docs/API_docs_v42/methods/channels_getImportantHistory.md index 2f489487..6dc710fb 100644 --- a/old_docs/API_docs_v42/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v42/methods/channels_getImportantHistory.md @@ -10,7 +10,7 @@ description: channels.getImportantHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -27,16 +27,18 @@ description: channels.getImportantHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getImportantHistory(['channel' => InputChannel, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_getMessages.md b/old_docs/API_docs_v42/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v42/methods/channels_getMessages.md +++ b/old_docs/API_docs_v42/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/channels_getParticipant.md b/old_docs/API_docs_v42/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v42/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v42/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_getParticipants.md b/old_docs/API_docs_v42/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v42/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v42/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_inviteToChannel.md b/old_docs/API_docs_v42/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v42/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v42/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/channels_joinChannel.md b/old_docs/API_docs_v42/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v42/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v42/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_kickFromChannel.md b/old_docs/API_docs_v42/methods/channels_kickFromChannel.md index a2182df8..e4b68581 100644 --- a/old_docs/API_docs_v42/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v42/methods/channels_kickFromChannel.md @@ -10,8 +10,8 @@ description: channels.kickFromChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |kicked|[Bool](../types/Bool.md) | Yes| @@ -24,16 +24,18 @@ description: channels.kickFromChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_leaveChannel.md b/old_docs/API_docs_v42/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v42/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v42/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_readHistory.md b/old_docs/API_docs_v42/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v42/methods/channels_readHistory.md +++ b/old_docs/API_docs_v42/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_reportSpam.md b/old_docs/API_docs_v42/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v42/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v42/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/channels_toggleComments.md b/old_docs/API_docs_v42/methods/channels_toggleComments.md index ce4207db..8b77db49 100644 --- a/old_docs/API_docs_v42/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v42/methods/channels_toggleComments.md @@ -10,7 +10,7 @@ description: channels.toggleComments parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -23,16 +23,18 @@ description: channels.toggleComments parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleComments(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v42/methods/channels_updateUsername.md b/old_docs/API_docs_v42/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v42/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v42/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/contacts_block.md b/old_docs/API_docs_v42/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v42/methods/contacts_block.md +++ b/old_docs/API_docs_v42/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v42/methods/contacts_deleteContact.md b/old_docs/API_docs_v42/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v42/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v42/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v42/methods/contacts_deleteContacts.md b/old_docs/API_docs_v42/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v42/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v42/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/contacts_exportCard.md b/old_docs/API_docs_v42/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v42/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v42/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v42/methods/contacts_getBlocked.md b/old_docs/API_docs_v42/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v42/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v42/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/contacts_getContacts.md b/old_docs/API_docs_v42/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v42/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v42/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/contacts_getStatuses.md b/old_docs/API_docs_v42/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v42/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v42/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v42/methods/contacts_getSuggested.md b/old_docs/API_docs_v42/methods/contacts_getSuggested.md index 2059c01b..7249b1f2 100644 --- a/old_docs/API_docs_v42/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v42/methods/contacts_getSuggested.md @@ -22,16 +22,18 @@ description: contacts.getSuggested parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/contacts_importCard.md b/old_docs/API_docs_v42/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v42/methods/contacts_importCard.md +++ b/old_docs/API_docs_v42/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/contacts_importContacts.md b/old_docs/API_docs_v42/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v42/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v42/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/contacts_resolveUsername.md b/old_docs/API_docs_v42/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v42/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v42/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v42/methods/contacts_search.md b/old_docs/API_docs_v42/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v42/methods/contacts_search.md +++ b/old_docs/API_docs_v42/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/contacts_unblock.md b/old_docs/API_docs_v42/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v42/methods/contacts_unblock.md +++ b/old_docs/API_docs_v42/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v42/methods/help_getAppChangelog.md b/old_docs/API_docs_v42/methods/help_getAppChangelog.md index b27cc9f0..d69a61cb 100644 --- a/old_docs/API_docs_v42/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v42/methods/help_getAppChangelog.md @@ -25,13 +25,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/help_getAppUpdate.md b/old_docs/API_docs_v42/methods/help_getAppUpdate.md index 7b3bdde9..f9b06641 100644 --- a/old_docs/API_docs_v42/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v42/methods/help_getAppUpdate.md @@ -25,13 +25,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/help_getConfig.md b/old_docs/API_docs_v42/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v42/methods/help_getConfig.md +++ b/old_docs/API_docs_v42/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v42/methods/help_getInviteText.md b/old_docs/API_docs_v42/methods/help_getInviteText.md index 40251dd5..bac72a15 100644 --- a/old_docs/API_docs_v42/methods/help_getInviteText.md +++ b/old_docs/API_docs_v42/methods/help_getInviteText.md @@ -22,13 +22,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/help_getNearestDc.md b/old_docs/API_docs_v42/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v42/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v42/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v42/methods/help_getSupport.md b/old_docs/API_docs_v42/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v42/methods/help_getSupport.md +++ b/old_docs/API_docs_v42/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v42/methods/help_saveAppLog.md b/old_docs/API_docs_v42/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v42/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v42/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/initConnection.md b/old_docs/API_docs_v42/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v42/methods/initConnection.md +++ b/old_docs/API_docs_v42/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v42/methods/invokeAfterMsg.md b/old_docs/API_docs_v42/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v42/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v42/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v42/methods/invokeAfterMsgs.md b/old_docs/API_docs_v42/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v42/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v42/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/invokeWithLayer.md b/old_docs/API_docs_v42/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v42/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v42/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v42/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v42/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v42/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v42/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_acceptEncryption.md b/old_docs/API_docs_v42/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v42/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v42/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v42/methods/messages_addChatUser.md b/old_docs/API_docs_v42/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v42/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v42/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_checkChatInvite.md b/old_docs/API_docs_v42/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v42/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_createChat.md b/old_docs/API_docs_v42/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v42/methods/messages_createChat.md +++ b/old_docs/API_docs_v42/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/messages_deleteChatUser.md b/old_docs/API_docs_v42/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v42/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v42/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_deleteHistory.md b/old_docs/API_docs_v42/methods/messages_deleteHistory.md index 598ce5c6..e2e60c49 100644 --- a/old_docs/API_docs_v42/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v42/methods/messages_deleteHistory.md @@ -10,7 +10,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_deleteMessages.md b/old_docs/API_docs_v42/methods/messages_deleteMessages.md index 38b3ca09..12347c81 100644 --- a/old_docs/API_docs_v42/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v42/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/messages_discardEncryption.md b/old_docs/API_docs_v42/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v42/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v42/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v42/methods/messages_editChatAdmin.md b/old_docs/API_docs_v42/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v42/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v42/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_editChatPhoto.md b/old_docs/API_docs_v42/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v42/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v42/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_editChatTitle.md b/old_docs/API_docs_v42/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v42/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v42/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_exportChatInvite.md b/old_docs/API_docs_v42/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v42/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_forwardMessage.md b/old_docs/API_docs_v42/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v42/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v42/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_forwardMessages.md b/old_docs/API_docs_v42/methods/messages_forwardMessages.md index fc7891c6..2f759375 100644 --- a/old_docs/API_docs_v42/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v42/methods/messages_forwardMessages.md @@ -11,9 +11,9 @@ description: messages.forwardMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |broadcast|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -53,18 +53,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/messages_getAllStickers.md b/old_docs/API_docs_v42/methods/messages_getAllStickers.md index 3a0b3781..c1387ab3 100644 --- a/old_docs/API_docs_v42/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v42/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_getChats.md b/old_docs/API_docs_v42/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v42/methods/messages_getChats.md +++ b/old_docs/API_docs_v42/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/messages_getDhConfig.md b/old_docs/API_docs_v42/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v42/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v42/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_getDialogs.md b/old_docs/API_docs_v42/methods/messages_getDialogs.md index 934e3b80..323bb791 100644 --- a/old_docs/API_docs_v42/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v42/methods/messages_getDialogs.md @@ -12,7 +12,7 @@ description: messages.getDialogs parameters, return type and example |----------|---------------|----------| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -35,13 +35,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_getFullChat.md b/old_docs/API_docs_v42/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v42/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v42/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v42/methods/messages_getHistory.md b/old_docs/API_docs_v42/methods/messages_getHistory.md index 11d8333f..c306f02c 100644 --- a/old_docs/API_docs_v42/methods/messages_getHistory.md +++ b/old_docs/API_docs_v42/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_getMessages.md b/old_docs/API_docs_v42/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v42/methods/messages_getMessages.md +++ b/old_docs/API_docs_v42/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/messages_getMessagesViews.md b/old_docs/API_docs_v42/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v42/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v42/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/messages_getStickerSet.md b/old_docs/API_docs_v42/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v42/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v42/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_getStickers.md b/old_docs/API_docs_v42/methods/messages_getStickers.md index 1587cd01..6ac68c87 100644 --- a/old_docs/API_docs_v42/methods/messages_getStickers.md +++ b/old_docs/API_docs_v42/methods/messages_getStickers.md @@ -23,16 +23,18 @@ description: messages.getStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v42/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v42/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v42/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_importChatInvite.md b/old_docs/API_docs_v42/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v42/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_installStickerSet.md b/old_docs/API_docs_v42/methods/messages_installStickerSet.md index 1a31c0e7..ccabd393 100644 --- a/old_docs/API_docs_v42/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v42/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_migrateChat.md b/old_docs/API_docs_v42/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v42/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v42/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_readHistory.md b/old_docs/API_docs_v42/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v42/methods/messages_readHistory.md +++ b/old_docs/API_docs_v42/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_readMessageContents.md b/old_docs/API_docs_v42/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v42/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v42/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/messages_receivedMessages.md b/old_docs/API_docs_v42/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v42/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v42/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_receivedQueue.md b/old_docs/API_docs_v42/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v42/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v42/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_reportSpam.md b/old_docs/API_docs_v42/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v42/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v42/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_requestEncryption.md b/old_docs/API_docs_v42/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v42/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v42/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v42/methods/messages_search.md b/old_docs/API_docs_v42/methods/messages_search.md index b23dd186..c2a822a1 100644 --- a/old_docs/API_docs_v42/methods/messages_search.md +++ b/old_docs/API_docs_v42/methods/messages_search.md @@ -11,7 +11,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |important\_only|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -43,13 +43,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['important_only' => Bool, 'peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_searchGlobal.md b/old_docs/API_docs_v42/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v42/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v42/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_sendBroadcast.md b/old_docs/API_docs_v42/methods/messages_sendBroadcast.md index 725d1f34..0ab60e43 100644 --- a/old_docs/API_docs_v42/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v42/methods/messages_sendBroadcast.md @@ -10,9 +10,9 @@ description: messages.sendBroadcast parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|contacts|Array of [InputUser](../types/InputUser.md) | Yes| +|contacts|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |message|[string](../types/string.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -24,18 +24,20 @@ description: messages.sendBroadcast parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser], 'message' => 'string', 'media' => InputMedia, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/messages_sendEncrypted.md b/old_docs/API_docs_v42/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_sendMedia.md b/old_docs/API_docs_v42/methods/messages_sendMedia.md index 67ba198c..f153e219 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v42/methods/messages_sendMedia.md @@ -11,9 +11,9 @@ description: messages.sendMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |broadcast|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -54,16 +54,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_sendMessage.md b/old_docs/API_docs_v42/methods/messages_sendMessage.md index 09f0e627..c4dc2cd5 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v42/methods/messages_sendMessage.md @@ -12,7 +12,7 @@ description: messages.sendMessage parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |broadcast|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -48,6 +48,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -55,18 +56,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_setTyping.md b/old_docs/API_docs_v42/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v42/methods/messages_setTyping.md +++ b/old_docs/API_docs_v42/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_startBot.md b/old_docs/API_docs_v42/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v42/methods/messages_startBot.md +++ b/old_docs/API_docs_v42/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v42/methods/photos_deletePhotos.md b/old_docs/API_docs_v42/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v42/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v42/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/methods/photos_getUserPhotos.md b/old_docs/API_docs_v42/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v42/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v42/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v42/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v42/methods/photos_updateProfilePhoto.md index d3acbb56..fbe84e26 100644 --- a/old_docs/API_docs_v42/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v42/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -23,13 +23,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md index de7c2281..303ed4ea 100644 --- a/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -35,13 +35,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v42/methods/updates_getChannelDifference.md b/old_docs/API_docs_v42/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v42/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v42/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v42/methods/updates_getDifference.md b/old_docs/API_docs_v42/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v42/methods/updates_getDifference.md +++ b/old_docs/API_docs_v42/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v42/methods/updates_getState.md b/old_docs/API_docs_v42/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v42/methods/updates_getState.md +++ b/old_docs/API_docs_v42/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v42/methods/upload_getFile.md b/old_docs/API_docs_v42/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v42/methods/upload_getFile.md +++ b/old_docs/API_docs_v42/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v42/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v42/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v42/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v42/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v42/methods/upload_saveFilePart.md b/old_docs/API_docs_v42/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v42/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v42/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v42/methods/users_getFullUser.md b/old_docs/API_docs_v42/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v42/methods/users_getFullUser.md +++ b/old_docs/API_docs_v42/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v42/methods/users_getUsers.md b/old_docs/API_docs_v42/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v42/methods/users_getUsers.md +++ b/old_docs/API_docs_v42/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v42/types/Chat.md b/old_docs/API_docs_v42/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v42/types/Chat.md +++ b/old_docs/API_docs_v42/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v42/types/InputChannel.md b/old_docs/API_docs_v42/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v42/types/InputChannel.md +++ b/old_docs/API_docs_v42/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v42/types/InputDocument.md b/old_docs/API_docs_v42/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v42/types/InputDocument.md +++ b/old_docs/API_docs_v42/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v42/types/InputEncryptedChat.md b/old_docs/API_docs_v42/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v42/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v42/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v42/types/InputEncryptedFile.md b/old_docs/API_docs_v42/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v42/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v42/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v42/types/InputFile.md b/old_docs/API_docs_v42/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v42/types/InputFile.md +++ b/old_docs/API_docs_v42/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v42/types/InputMedia.md b/old_docs/API_docs_v42/types/InputMedia.md index 5112cbfa..2112c216 100644 --- a/old_docs/API_docs_v42/types/InputMedia.md +++ b/old_docs/API_docs_v42/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v42/types/InputPeer.md b/old_docs/API_docs_v42/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v42/types/InputPeer.md +++ b/old_docs/API_docs_v42/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v42/types/InputPhoto.md b/old_docs/API_docs_v42/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v42/types/InputPhoto.md +++ b/old_docs/API_docs_v42/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v42/types/InputUser.md b/old_docs/API_docs_v42/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v42/types/InputUser.md +++ b/old_docs/API_docs_v42/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v42/types/Peer.md b/old_docs/API_docs_v42/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v42/types/Peer.md +++ b/old_docs/API_docs_v42/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v42/types/User.md b/old_docs/API_docs_v42/types/User.md index a9d4addd..30fd113c 100644 --- a/old_docs/API_docs_v42/types/User.md +++ b/old_docs/API_docs_v42/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v44/Lang.php b/old_docs/API_docs_v44/Lang.php new file mode 100644 index 00000000..a8b9e5ad --- /dev/null +++ b/old_docs/API_docs_v44/Lang.php @@ -0,0 +1,2344 @@ +. + */ + +namespace danog\MadelineProto; + +class Lang +{ + public static $lang = array ( + 'it' => + array ( + 'phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istanziamento dei DataCenter...', + 'load_rsa' => 'Caricamento delle chiavi RSA...', + 'TL_translation' => 'Translazione degli schemi TL...', + 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', + 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', + 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', + 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', + 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', + 'threading_on' => 'IL THREADING È ABILITATO', + 'socket_reader' => 'Lettore socket su DC %s: ', + 'socket_status_1' => 'CREAZIONE', + 'socket_status_2' => 'INVIO', + 'socket_status_3' => 'ATTESA', + 'socket_status_4' => 'PRONTO', + 'socket_status_5' => 'AVVIATO', + 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', + 'session_corrupted' => 'La sessione si è corrotta!', + 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', + 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', + 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', + 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', + 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', + 'config_updated' => 'La configurazione è stata aggiornata!', + 'length_not_4' => 'La lunghezza non è uguale a 4', + 'length_not_8' => 'La lunghezza non è uguale a 8', + 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', + 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', + 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', + 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', + 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', + 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', + 'file_not_exist' => 'Il file specificato non esiste', + 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', + 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', + 'loading_key' => 'Caricamento della chiave in corso...', + 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', + 'rsa_encrypting' => 'Criptando con chiave RSA...', + 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', + 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', + 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', + 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', + 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', + 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', + 'socket_con_error' => 'Connessione fallita.', + 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', + 'protocol_invalid' => 'È stato fornito un protocollo non valido', + 'nothing_in_socket' => 'Non c\'è niente nel socket!', + 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', + 'no_data_in_socket' => 'Non ci sono dati nel socket!', + 'dc_con_start' => 'Connessione al DC %s in corso...', + 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', + 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', + 'script_not_exist' => 'Lo script fornito non esiste', + 'apifactory_start' => 'Sto avviando la fabbrica di API...', + 'madelineproto_ready' => 'MadelineProto è pronto!', + 'logout_error' => 'C\'è stato un errore durante il logout!', + 'logout_ok' => 'Il logout è stato eseguito correttamente!', + 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', + 'login_ok' => 'Il login è stato eseguito correttamente!', + 'login_user' => 'Sto eseguendo il login come utente normale...', + 'login_bot' => 'Sto eseguendo il login come bot...', + 'login_code_sending' => 'Sto inviando il codice...', + 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', + 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', + 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', + 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', + 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', + 'not_logged_in' => 'Non ho ancora fatto il login!', + 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', + 'signing_up' => 'Mi sto registrando su telegram come utente normale...', + 'signup_ok' => 'Mi sono registrato su Telegram!', + '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', + 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', + 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', + 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', + 'calling_user' => 'Sto chiamando %s...', + 'generating_a' => 'Sto generando a...', + 'generating_g_a' => 'Sto generando g_a...', + 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', + 'accepting_call' => 'Sto accettando una chiamata da %s...', + 'generating_b' => 'Sto generando b...', + 'call_already_accepted' => 'La chiamata %s è già stata accettata.', + 'call_already_declined' => 'La chiamata %s è già stata annullata.', + 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', + 'call_confirming' => 'Sto confermando una chiamata da %s', + 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', + 'call_completing' => 'Sto completando una chiamata da %s...', + 'invalid_g_a' => 'g_a non valido!', + 'fingerprint_invalid' => 'fingerprint della chiave non valido!', + 'call_discarding' => 'Sto rifiutando la chiamata %s...', + 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', + 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', + 'TL_loading' => 'Sto caricando gli schemi TL...', + 'file_parsing' => 'Leggendo %s...', + 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', + 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', + 'translating_obj' => 'Traducendo gli oggetti...', + 'translating_methods' => 'Traducendo i metodi...', + 'bool_error' => 'Non sono riuscito ad estrarre un booleano', + 'not_numeric' => 'Il valore fornito non è numerico', + 'long_not_16' => 'Il valore fornito non è lungo 16 byte', + 'long_not_32' => 'Il valore fornito non è lungo 32 byte', + 'long_not_64' => 'Il valore fornito non è lungo 64 byte', + 'array_invalid' => 'Il valore fornito non è un array', + 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', + 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', + 'method_not_found' => 'Impossibile trovare il seguente metodo: ', + 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', + 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', + 'stream_handle_invalid' => 'Il valore fornito non è uno stream', + 'length_too_big' => 'Il valore fornito è troppo lungo', + 'deserialize_not_str' => 'Il valore generato non è una stringa', + 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', + 'vector_invalid' => 'ID vettore non valido: ', + 'constructor_not_found' => 'Costruttore non trovato per tipo: ', + 'rand_bytes_too_small' => 'random_bytes è troppo corto!', + 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', + 'non_text_conversion' => 'Non posso ancora convertire messaggi media', + 'last_byte_invalid' => 'L\'ultimo byte non è valido', + 'file_type_invalid' => 'È stato fornito un tipo file errato', + 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', + 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', + 'shutting_down_reader_pool' => 'Chisura pool di lettura', + 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', + 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', + 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', + 'msg_data_length_too_big' => 'message_data_length è troppo grande', + 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', + 'msg_key_mismatch' => 'msg_key non valido', + 'rand_bytes_too_short' => 'random_bytes è troppo corto!', + 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', + 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', + 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', + 'req_pq' => 'Sto richiedendo pq...', + 'done' => 'Fatto!', + 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', + 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!', + ), + 'en' => + array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', + 'method_messages.search_param_important_only' => '', + 'method_messages.sendMessage_param_broadcast' => '', + 'method_messages.sendMedia_param_broadcast' => '', + 'method_messages.forwardMessages_param_broadcast' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id' => '', + 'method_messages.deactivateChat_param_enabled' => '', + 'method_help.getTermsOfService_param_lang_code' => '', + ), +); + + // THIS WILL BE OVERWRITTEN BY $lang["en"] + public static $current_lang = array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', + 'method_messages.search_param_important_only' => '', + 'method_messages.sendMessage_param_broadcast' => '', + 'method_messages.sendMedia_param_broadcast' => '', + 'method_messages.forwardMessages_param_broadcast' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id' => '', + 'method_messages.deactivateChat_param_enabled' => '', + 'method_help.getTermsOfService_param_lang_code' => '', +); +} \ No newline at end of file diff --git a/old_docs/API_docs_v44/constructors/account_authorizations.md b/old_docs/API_docs_v44/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v44/constructors/account_authorizations.md +++ b/old_docs/API_docs_v44/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/account_privacyRules.md b/old_docs/API_docs_v44/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v44/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v44/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/botInfo.md b/old_docs/API_docs_v44/constructors/botInfo.md index 196803dd..f86f0436 100644 --- a/old_docs/API_docs_v44/constructors/botInfo.md +++ b/old_docs/API_docs_v44/constructors/botInfo.md @@ -25,7 +25,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/channelFull.md b/old_docs/API_docs_v44/constructors/channelFull.md index 13c4a787..475bd29e 100644 --- a/old_docs/API_docs_v44/constructors/channelFull.md +++ b/old_docs/API_docs_v44/constructors/channelFull.md @@ -35,7 +35,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/channelMessagesFilter.md b/old_docs/API_docs_v44/constructors/channelMessagesFilter.md index 56431ffb..e0a160e9 100644 --- a/old_docs/API_docs_v44/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v44/constructors/channelMessagesFilter.md @@ -23,7 +23,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'important_only' => Bool, 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'important_only' => Bool, 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/channels_channelParticipant.md b/old_docs/API_docs_v44/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v44/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v44/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/channels_channelParticipants.md b/old_docs/API_docs_v44/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v44/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v44/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/chatFull.md b/old_docs/API_docs_v44/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v44/constructors/chatFull.md +++ b/old_docs/API_docs_v44/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/chatParticipants.md b/old_docs/API_docs_v44/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v44/constructors/chatParticipants.md +++ b/old_docs/API_docs_v44/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/config.md b/old_docs/API_docs_v44/constructors/config.md index 4ca8e931..d5007d83 100644 --- a/old_docs/API_docs_v44/constructors/config.md +++ b/old_docs/API_docs_v44/constructors/config.md @@ -38,7 +38,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/contacts_blocked.md b/old_docs/API_docs_v44/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v44/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v44/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v44/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v44/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v44/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/contacts_contacts.md b/old_docs/API_docs_v44/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v44/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v44/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/contacts_found.md b/old_docs/API_docs_v44/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v44/constructors/contacts_found.md +++ b/old_docs/API_docs_v44/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/contacts_importedContacts.md b/old_docs/API_docs_v44/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v44/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v44/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v44/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v44/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v44/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/contacts_suggested.md b/old_docs/API_docs_v44/constructors/contacts_suggested.md index 38db68c5..1ee96769 100644 --- a/old_docs/API_docs_v44/constructors/contacts_suggested.md +++ b/old_docs/API_docs_v44/constructors/contacts_suggested.md @@ -22,7 +22,7 @@ description: contacts_suggested attributes, type and example ### Example: ``` -$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested], 'users' => [User]]; +$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested, ContactSuggested], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/document.md b/old_docs/API_docs_v44/constructors/document.md index 3a584537..21dc39bb 100644 --- a/old_docs/API_docs_v44/constructors/document.md +++ b/old_docs/API_docs_v44/constructors/document.md @@ -28,7 +28,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/documentAttributeAudio.md b/old_docs/API_docs_v44/constructors/documentAttributeAudio.md index 28393d4b..e0d410f5 100644 --- a/old_docs/API_docs_v44/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v44/constructors/documentAttributeAudio.md @@ -11,7 +11,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Yes| |performer|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v44/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v44/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v44/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v44/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v44/constructors/documentAttributeVideo.md b/old_docs/API_docs_v44/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v44/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v44/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v44/constructors/inputChatPhoto.md b/old_docs/API_docs_v44/constructors/inputChatPhoto.md index 4cd81a7c..f10e2da3 100644 --- a/old_docs/API_docs_v44/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v44/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v44/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v44/constructors/inputChatUploadedPhoto.md index 3d88ac48..13857e71 100644 --- a/old_docs/API_docs_v44/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v44/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v44/constructors/inputMediaDocument.md b/old_docs/API_docs_v44/constructors/inputMediaDocument.md index 1859313a..034a28bd 100644 --- a/old_docs/API_docs_v44/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v44/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v44/constructors/inputMediaPhoto.md b/old_docs/API_docs_v44/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v44/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v44/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v44/constructors/inputMediaUploadedAudio.md b/old_docs/API_docs_v44/constructors/inputMediaUploadedAudio.md index bbbe18a2..8fe9138e 100644 --- a/old_docs/API_docs_v44/constructors/inputMediaUploadedAudio.md +++ b/old_docs/API_docs_v44/constructors/inputMediaUploadedAudio.md @@ -11,9 +11,9 @@ description: inputMediaUploadedAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v44/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v44/constructors/inputMediaUploadedDocument.md index 8ce039fa..67edf365 100644 --- a/old_docs/API_docs_v44/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v44/constructors/inputMediaUploadedDocument.md @@ -11,8 +11,8 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -23,7 +23,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v44/constructors/inputMediaUploadedPhoto.md index 42408b9f..58ae37cf 100644 --- a/old_docs/API_docs_v44/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v44/constructors/inputMediaUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v44/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v44/constructors/inputMediaUploadedThumbDocument.md index d6f3a647..13b93260 100644 --- a/old_docs/API_docs_v44/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v44/constructors/inputMediaUploadedThumbDocument.md @@ -11,9 +11,9 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| @@ -24,7 +24,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/inputMediaUploadedThumbVideo.md b/old_docs/API_docs_v44/constructors/inputMediaUploadedThumbVideo.md index e7a9ae2b..47506b52 100644 --- a/old_docs/API_docs_v44/constructors/inputMediaUploadedThumbVideo.md +++ b/old_docs/API_docs_v44/constructors/inputMediaUploadedThumbVideo.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v44/constructors/inputMediaUploadedVideo.md b/old_docs/API_docs_v44/constructors/inputMediaUploadedVideo.md index 427c5113..e0e36e91 100644 --- a/old_docs/API_docs_v44/constructors/inputMediaUploadedVideo.md +++ b/old_docs/API_docs_v44/constructors/inputMediaUploadedVideo.md @@ -11,11 +11,11 @@ description: inputMediaUploadedVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v44/constructors/inputNotifyPeer.md b/old_docs/API_docs_v44/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v44/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v44/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v44/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v44/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v44/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v44/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v44/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v44/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v44/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/keyboardButtonRow.md b/old_docs/API_docs_v44/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v44/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v44/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/message.md b/old_docs/API_docs_v44/constructors/message.md index 589705f6..6b9a661c 100644 --- a/old_docs/API_docs_v44/constructors/message.md +++ b/old_docs/API_docs_v44/constructors/message.md @@ -36,7 +36,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'views' => int]; +$message = ['_' => 'message', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'views' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v44/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v44/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v44/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/messageActionChatCreate.md b/old_docs/API_docs_v44/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v44/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v44/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/messages_allStickers.md b/old_docs/API_docs_v44/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/old_docs/API_docs_v44/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v44/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/messages_channelMessages.md b/old_docs/API_docs_v44/constructors/messages_channelMessages.md index e12420fe..69ba09d4 100644 --- a/old_docs/API_docs_v44/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v44/constructors/messages_channelMessages.md @@ -26,7 +26,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'collapsed' => [MessageGroup], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'collapsed' => [MessageGroup, MessageGroup], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/messages_chatFull.md b/old_docs/API_docs_v44/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v44/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v44/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/messages_chats.md b/old_docs/API_docs_v44/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v44/constructors/messages_chats.md +++ b/old_docs/API_docs_v44/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/messages_dialogs.md b/old_docs/API_docs_v44/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v44/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v44/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v44/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v44/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v44/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v44/constructors/messages_foundGifs.md b/old_docs/API_docs_v44/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/old_docs/API_docs_v44/constructors/messages_foundGifs.md +++ b/old_docs/API_docs_v44/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/messages_messages.md b/old_docs/API_docs_v44/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v44/constructors/messages_messages.md +++ b/old_docs/API_docs_v44/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/messages_messagesSlice.md b/old_docs/API_docs_v44/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v44/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v44/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/messages_stickerSet.md b/old_docs/API_docs_v44/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v44/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v44/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/messages_stickers.md b/old_docs/API_docs_v44/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v44/constructors/messages_stickers.md +++ b/old_docs/API_docs_v44/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/photo.md b/old_docs/API_docs_v44/constructors/photo.md index f2bdf059..7212469f 100644 --- a/old_docs/API_docs_v44/constructors/photo.md +++ b/old_docs/API_docs_v44/constructors/photo.md @@ -24,7 +24,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/photos_photo.md b/old_docs/API_docs_v44/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v44/constructors/photos_photo.md +++ b/old_docs/API_docs_v44/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/photos_photos.md b/old_docs/API_docs_v44/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v44/constructors/photos_photos.md +++ b/old_docs/API_docs_v44/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/photos_photosSlice.md b/old_docs/API_docs_v44/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v44/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v44/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v44/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v44/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v44/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v44/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v44/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v44/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v44/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v44/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v44/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/stickerPack.md b/old_docs/API_docs_v44/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v44/constructors/stickerPack.md +++ b/old_docs/API_docs_v44/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/updateDcOptions.md b/old_docs/API_docs_v44/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v44/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v44/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v44/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v44/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v44/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/updateDeleteMessages.md b/old_docs/API_docs_v44/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v44/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v44/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/updatePrivacy.md b/old_docs/API_docs_v44/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v44/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v44/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v44/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v44/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v44/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/updateShortChatMessage.md b/old_docs/API_docs_v44/constructors/updateShortChatMessage.md index d619587f..fa18d4f2 100644 --- a/old_docs/API_docs_v44/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v44/constructors/updateShortChatMessage.md @@ -35,7 +35,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity]]; +$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/updateShortMessage.md b/old_docs/API_docs_v44/constructors/updateShortMessage.md index 8e1d4b10..657061da 100644 --- a/old_docs/API_docs_v44/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v44/constructors/updateShortMessage.md @@ -34,7 +34,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$updateShortMessage = ['_' => 'updateShortMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'user_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity]]; +$updateShortMessage = ['_' => 'updateShortMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'user_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/updateShortSentMessage.md b/old_docs/API_docs_v44/constructors/updateShortSentMessage.md index e2068f9f..16dc73b4 100644 --- a/old_docs/API_docs_v44/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v44/constructors/updateShortSentMessage.md @@ -28,7 +28,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'unread' => Bool, 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'unread' => Bool, 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v44/constructors/updateStickerSetsOrder.md index 853e8658..260af879 100644 --- a/old_docs/API_docs_v44/constructors/updateStickerSetsOrder.md +++ b/old_docs/API_docs_v44/constructors/updateStickerSetsOrder.md @@ -21,7 +21,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/updates.md b/old_docs/API_docs_v44/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v44/constructors/updates.md +++ b/old_docs/API_docs_v44/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/updatesCombined.md b/old_docs/API_docs_v44/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v44/constructors/updatesCombined.md +++ b/old_docs/API_docs_v44/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v44/constructors/updates_channelDifference.md b/old_docs/API_docs_v44/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v44/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v44/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v44/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v44/constructors/updates_channelDifferenceTooLong.md index 7aafef2c..d2b67ed4 100644 --- a/old_docs/API_docs_v44/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v44/constructors/updates_channelDifferenceTooLong.md @@ -31,7 +31,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'final' => Bool, 'pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'final' => Bool, 'pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/constructors/updates_difference.md b/old_docs/API_docs_v44/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v44/constructors/updates_difference.md +++ b/old_docs/API_docs_v44/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v44/constructors/updates_differenceSlice.md b/old_docs/API_docs_v44/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v44/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v44/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v44/constructors/wallPaper.md b/old_docs/API_docs_v44/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v44/constructors/wallPaper.md +++ b/old_docs/API_docs_v44/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v44/methods/README.md b/old_docs/API_docs_v44/methods/README.md index 52d8eba9..37b2a11c 100644 --- a/old_docs/API_docs_v44/methods/README.md +++ b/old_docs/API_docs_v44/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v44/methods/account_changePhone.md b/old_docs/API_docs_v44/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v44/methods/account_changePhone.md +++ b/old_docs/API_docs_v44/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_checkUsername.md b/old_docs/API_docs_v44/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v44/methods/account_checkUsername.md +++ b/old_docs/API_docs_v44/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_deleteAccount.md b/old_docs/API_docs_v44/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v44/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v44/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_getAccountTTL.md b/old_docs/API_docs_v44/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v44/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v44/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v44/methods/account_getAuthorizations.md b/old_docs/API_docs_v44/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v44/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v44/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v44/methods/account_getNotifySettings.md b/old_docs/API_docs_v44/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v44/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v44/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_getPassword.md b/old_docs/API_docs_v44/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v44/methods/account_getPassword.md +++ b/old_docs/API_docs_v44/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v44/methods/account_getPasswordSettings.md b/old_docs/API_docs_v44/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v44/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v44/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_getPrivacy.md b/old_docs/API_docs_v44/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v44/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v44/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_getWallPapers.md b/old_docs/API_docs_v44/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v44/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v44/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v44/methods/account_registerDevice.md b/old_docs/API_docs_v44/methods/account_registerDevice.md index cfa1546c..5c86d74c 100644 --- a/old_docs/API_docs_v44/methods/account_registerDevice.md +++ b/old_docs/API_docs_v44/methods/account_registerDevice.md @@ -1,22 +1,24 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|app\_sandbox|[Bool](../types/Bool.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| +|device\_model|[string](../types/string.md) | Yes|| +|system\_version|[string](../types/string.md) | Yes|| +|app\_version|[string](../types/string.md) | Yes|| +|app\_sandbox|[Bool](../types/Bool.md) | Yes|Should the app run in a sandbox?| +|lang\_code|[string](../types/string.md) | Yes|| ### Return type: [Bool](../types/Bool.md) @@ -35,13 +37,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_reportPeer.md b/old_docs/API_docs_v44/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v44/methods/account_reportPeer.md +++ b/old_docs/API_docs_v44/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_resetAuthorization.md b/old_docs/API_docs_v44/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v44/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v44/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_resetNotifySettings.md b/old_docs/API_docs_v44/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v44/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v44/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md index ad611a8b..b5258245 100644 --- a/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md @@ -1,16 +1,18 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|New phone number| ### Return type: [account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) @@ -29,13 +31,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_setAccountTTL.md b/old_docs/API_docs_v44/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v44/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v44/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_setPrivacy.md b/old_docs/API_docs_v44/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v44/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v44/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/account_unregisterDevice.md b/old_docs/API_docs_v44/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v44/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v44/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v44/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v44/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v44/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_updateNotifySettings.md b/old_docs/API_docs_v44/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v44/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v44/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_updateProfile.md b/old_docs/API_docs_v44/methods/account_updateProfile.md index 123ed13a..7f8d80c5 100644 --- a/old_docs/API_docs_v44/methods/account_updateProfile.md +++ b/old_docs/API_docs_v44/methods/account_updateProfile.md @@ -1,17 +1,19 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Yes| -|last\_name|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Yes|The first name| +|last\_name|[string](../types/string.md) | Yes|The last name| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_updateStatus.md b/old_docs/API_docs_v44/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v44/methods/account_updateStatus.md +++ b/old_docs/API_docs_v44/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v44/methods/account_updateUsername.md b/old_docs/API_docs_v44/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v44/methods/account_updateUsername.md +++ b/old_docs/API_docs_v44/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v44/methods/auth_checkPassword.md b/old_docs/API_docs_v44/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v44/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v44/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v44/methods/auth_checkPhone.md b/old_docs/API_docs_v44/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v44/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v44/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/auth_exportAuthorization.md b/old_docs/API_docs_v44/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v44/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v44/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v44/methods/auth_importAuthorization.md b/old_docs/API_docs_v44/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v44/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v44/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v44/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v44/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v44/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v44/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v44/methods/auth_logOut.md b/old_docs/API_docs_v44/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v44/methods/auth_logOut.md +++ b/old_docs/API_docs_v44/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v44/methods/auth_recoverPassword.md b/old_docs/API_docs_v44/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v44/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v44/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v44/methods/auth_sendCall.md b/old_docs/API_docs_v44/methods/auth_sendCall.md index 386cfad4..94ed6b7f 100644 --- a/old_docs/API_docs_v44/methods/auth_sendCall.md +++ b/old_docs/API_docs_v44/methods/auth_sendCall.md @@ -23,16 +23,18 @@ description: auth.sendCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/auth_sendCode.md b/old_docs/API_docs_v44/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v44/methods/auth_sendCode.md +++ b/old_docs/API_docs_v44/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v44/methods/auth_sendInvites.md b/old_docs/API_docs_v44/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v44/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v44/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/auth_sendSms.md b/old_docs/API_docs_v44/methods/auth_sendSms.md index 9a214e65..0c4a7343 100644 --- a/old_docs/API_docs_v44/methods/auth_sendSms.md +++ b/old_docs/API_docs_v44/methods/auth_sendSms.md @@ -23,16 +23,18 @@ description: auth.sendSms parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/auth_signIn.md b/old_docs/API_docs_v44/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v44/methods/auth_signIn.md +++ b/old_docs/API_docs_v44/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v44/methods/auth_signUp.md b/old_docs/API_docs_v44/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v44/methods/auth_signUp.md +++ b/old_docs/API_docs_v44/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v44/methods/channels_checkUsername.md b/old_docs/API_docs_v44/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v44/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v44/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_createChannel.md b/old_docs/API_docs_v44/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v44/methods/channels_createChannel.md +++ b/old_docs/API_docs_v44/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_deleteChannel.md b/old_docs/API_docs_v44/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v44/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_deleteMessages.md b/old_docs/API_docs_v44/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v44/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_editAbout.md b/old_docs/API_docs_v44/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v44/methods/channels_editAbout.md +++ b/old_docs/API_docs_v44/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_editAdmin.md b/old_docs/API_docs_v44/methods/channels_editAdmin.md index c62597e1..146159d9 100644 --- a/old_docs/API_docs_v44/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v44/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |role|[ChannelParticipantRole](../types/ChannelParticipantRole.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_editPhoto.md b/old_docs/API_docs_v44/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v44/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v44/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_editTitle.md b/old_docs/API_docs_v44/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v44/methods/channels_editTitle.md +++ b/old_docs/API_docs_v44/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_exportInvite.md b/old_docs/API_docs_v44/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v44/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v44/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_getChannels.md b/old_docs/API_docs_v44/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v44/methods/channels_getChannels.md +++ b/old_docs/API_docs_v44/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/channels_getDialogs.md b/old_docs/API_docs_v44/methods/channels_getDialogs.md index 916f9b34..7c1464f8 100644 --- a/old_docs/API_docs_v44/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v44/methods/channels_getDialogs.md @@ -23,16 +23,18 @@ description: channels.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->channels->getDialogs(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_getFullChannel.md b/old_docs/API_docs_v44/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v44/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v44/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v44/methods/channels_getImportantHistory.md b/old_docs/API_docs_v44/methods/channels_getImportantHistory.md index 2f489487..6dc710fb 100644 --- a/old_docs/API_docs_v44/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v44/methods/channels_getImportantHistory.md @@ -10,7 +10,7 @@ description: channels.getImportantHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -27,16 +27,18 @@ description: channels.getImportantHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getImportantHistory(['channel' => InputChannel, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_getMessages.md b/old_docs/API_docs_v44/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v44/methods/channels_getMessages.md +++ b/old_docs/API_docs_v44/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/channels_getParticipant.md b/old_docs/API_docs_v44/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v44/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v44/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_getParticipants.md b/old_docs/API_docs_v44/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v44/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v44/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_inviteToChannel.md b/old_docs/API_docs_v44/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v44/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v44/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/channels_joinChannel.md b/old_docs/API_docs_v44/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v44/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v44/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_kickFromChannel.md b/old_docs/API_docs_v44/methods/channels_kickFromChannel.md index a2182df8..e4b68581 100644 --- a/old_docs/API_docs_v44/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v44/methods/channels_kickFromChannel.md @@ -10,8 +10,8 @@ description: channels.kickFromChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |kicked|[Bool](../types/Bool.md) | Yes| @@ -24,16 +24,18 @@ description: channels.kickFromChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_leaveChannel.md b/old_docs/API_docs_v44/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v44/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v44/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_readHistory.md b/old_docs/API_docs_v44/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v44/methods/channels_readHistory.md +++ b/old_docs/API_docs_v44/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_reportSpam.md b/old_docs/API_docs_v44/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v44/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v44/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/channels_toggleComments.md b/old_docs/API_docs_v44/methods/channels_toggleComments.md index ce4207db..8b77db49 100644 --- a/old_docs/API_docs_v44/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v44/methods/channels_toggleComments.md @@ -10,7 +10,7 @@ description: channels.toggleComments parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -23,16 +23,18 @@ description: channels.toggleComments parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleComments(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v44/methods/channels_updateUsername.md b/old_docs/API_docs_v44/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v44/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v44/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/contacts_block.md b/old_docs/API_docs_v44/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v44/methods/contacts_block.md +++ b/old_docs/API_docs_v44/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v44/methods/contacts_deleteContact.md b/old_docs/API_docs_v44/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v44/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v44/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v44/methods/contacts_deleteContacts.md b/old_docs/API_docs_v44/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v44/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v44/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/contacts_exportCard.md b/old_docs/API_docs_v44/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v44/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v44/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v44/methods/contacts_getBlocked.md b/old_docs/API_docs_v44/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v44/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v44/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/contacts_getContacts.md b/old_docs/API_docs_v44/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v44/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v44/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/contacts_getStatuses.md b/old_docs/API_docs_v44/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v44/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v44/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v44/methods/contacts_getSuggested.md b/old_docs/API_docs_v44/methods/contacts_getSuggested.md index 2059c01b..7249b1f2 100644 --- a/old_docs/API_docs_v44/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v44/methods/contacts_getSuggested.md @@ -22,16 +22,18 @@ description: contacts.getSuggested parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/contacts_importCard.md b/old_docs/API_docs_v44/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v44/methods/contacts_importCard.md +++ b/old_docs/API_docs_v44/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/contacts_importContacts.md b/old_docs/API_docs_v44/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v44/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v44/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/contacts_resolveUsername.md b/old_docs/API_docs_v44/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v44/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v44/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v44/methods/contacts_search.md b/old_docs/API_docs_v44/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v44/methods/contacts_search.md +++ b/old_docs/API_docs_v44/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/contacts_unblock.md b/old_docs/API_docs_v44/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v44/methods/contacts_unblock.md +++ b/old_docs/API_docs_v44/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v44/methods/help_getAppChangelog.md b/old_docs/API_docs_v44/methods/help_getAppChangelog.md index b27cc9f0..d69a61cb 100644 --- a/old_docs/API_docs_v44/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v44/methods/help_getAppChangelog.md @@ -25,13 +25,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/help_getAppUpdate.md b/old_docs/API_docs_v44/methods/help_getAppUpdate.md index 7b3bdde9..f9b06641 100644 --- a/old_docs/API_docs_v44/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v44/methods/help_getAppUpdate.md @@ -25,13 +25,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/help_getConfig.md b/old_docs/API_docs_v44/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v44/methods/help_getConfig.md +++ b/old_docs/API_docs_v44/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v44/methods/help_getInviteText.md b/old_docs/API_docs_v44/methods/help_getInviteText.md index 40251dd5..bac72a15 100644 --- a/old_docs/API_docs_v44/methods/help_getInviteText.md +++ b/old_docs/API_docs_v44/methods/help_getInviteText.md @@ -22,13 +22,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/help_getNearestDc.md b/old_docs/API_docs_v44/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v44/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v44/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v44/methods/help_getSupport.md b/old_docs/API_docs_v44/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v44/methods/help_getSupport.md +++ b/old_docs/API_docs_v44/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v44/methods/help_getTermsOfService.md b/old_docs/API_docs_v44/methods/help_getTermsOfService.md index 1e8899a2..56a75769 100644 --- a/old_docs/API_docs_v44/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v44/methods/help_getTermsOfService.md @@ -22,13 +22,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/help_saveAppLog.md b/old_docs/API_docs_v44/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v44/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v44/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/initConnection.md b/old_docs/API_docs_v44/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v44/methods/initConnection.md +++ b/old_docs/API_docs_v44/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v44/methods/invokeAfterMsg.md b/old_docs/API_docs_v44/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v44/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v44/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v44/methods/invokeAfterMsgs.md b/old_docs/API_docs_v44/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v44/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v44/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/invokeWithLayer.md b/old_docs/API_docs_v44/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v44/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v44/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v44/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v44/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v44/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v44/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_acceptEncryption.md b/old_docs/API_docs_v44/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v44/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v44/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v44/methods/messages_addChatUser.md b/old_docs/API_docs_v44/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v44/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v44/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_checkChatInvite.md b/old_docs/API_docs_v44/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v44/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_createChat.md b/old_docs/API_docs_v44/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v44/methods/messages_createChat.md +++ b/old_docs/API_docs_v44/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/messages_deleteChatUser.md b/old_docs/API_docs_v44/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v44/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v44/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_deleteHistory.md b/old_docs/API_docs_v44/methods/messages_deleteHistory.md index 598ce5c6..e2e60c49 100644 --- a/old_docs/API_docs_v44/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v44/methods/messages_deleteHistory.md @@ -10,7 +10,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_deleteMessages.md b/old_docs/API_docs_v44/methods/messages_deleteMessages.md index 38b3ca09..12347c81 100644 --- a/old_docs/API_docs_v44/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v44/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/messages_discardEncryption.md b/old_docs/API_docs_v44/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v44/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v44/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v44/methods/messages_editChatAdmin.md b/old_docs/API_docs_v44/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v44/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v44/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_editChatPhoto.md b/old_docs/API_docs_v44/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v44/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v44/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_editChatTitle.md b/old_docs/API_docs_v44/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v44/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v44/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_exportChatInvite.md b/old_docs/API_docs_v44/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v44/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_forwardMessage.md b/old_docs/API_docs_v44/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v44/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v44/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_forwardMessages.md b/old_docs/API_docs_v44/methods/messages_forwardMessages.md index fc7891c6..2f759375 100644 --- a/old_docs/API_docs_v44/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v44/methods/messages_forwardMessages.md @@ -11,9 +11,9 @@ description: messages.forwardMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |broadcast|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -53,18 +53,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/messages_getAllStickers.md b/old_docs/API_docs_v44/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/old_docs/API_docs_v44/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v44/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_getChats.md b/old_docs/API_docs_v44/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v44/methods/messages_getChats.md +++ b/old_docs/API_docs_v44/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/messages_getDhConfig.md b/old_docs/API_docs_v44/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v44/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v44/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_getDialogs.md b/old_docs/API_docs_v44/methods/messages_getDialogs.md index 934e3b80..323bb791 100644 --- a/old_docs/API_docs_v44/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v44/methods/messages_getDialogs.md @@ -12,7 +12,7 @@ description: messages.getDialogs parameters, return type and example |----------|---------------|----------| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -35,13 +35,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_getFullChat.md b/old_docs/API_docs_v44/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v44/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v44/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v44/methods/messages_getHistory.md b/old_docs/API_docs_v44/methods/messages_getHistory.md index 11d8333f..c306f02c 100644 --- a/old_docs/API_docs_v44/methods/messages_getHistory.md +++ b/old_docs/API_docs_v44/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_getMessages.md b/old_docs/API_docs_v44/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v44/methods/messages_getMessages.md +++ b/old_docs/API_docs_v44/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/messages_getMessagesViews.md b/old_docs/API_docs_v44/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v44/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v44/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/messages_getStickerSet.md b/old_docs/API_docs_v44/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v44/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v44/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_getStickers.md b/old_docs/API_docs_v44/methods/messages_getStickers.md index 1587cd01..6ac68c87 100644 --- a/old_docs/API_docs_v44/methods/messages_getStickers.md +++ b/old_docs/API_docs_v44/methods/messages_getStickers.md @@ -23,16 +23,18 @@ description: messages.getStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v44/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v44/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v44/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_importChatInvite.md b/old_docs/API_docs_v44/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v44/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_installStickerSet.md b/old_docs/API_docs_v44/methods/messages_installStickerSet.md index 1a31c0e7..ccabd393 100644 --- a/old_docs/API_docs_v44/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v44/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_migrateChat.md b/old_docs/API_docs_v44/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v44/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v44/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_readHistory.md b/old_docs/API_docs_v44/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v44/methods/messages_readHistory.md +++ b/old_docs/API_docs_v44/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_readMessageContents.md b/old_docs/API_docs_v44/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v44/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v44/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/messages_receivedMessages.md b/old_docs/API_docs_v44/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v44/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v44/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_receivedQueue.md b/old_docs/API_docs_v44/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v44/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v44/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v44/methods/messages_reorderStickerSets.md index e09057e7..eee7d0f2 100644 --- a/old_docs/API_docs_v44/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v44/methods/messages_reorderStickerSets.md @@ -22,15 +22,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/messages_reportSpam.md b/old_docs/API_docs_v44/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v44/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v44/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_requestEncryption.md b/old_docs/API_docs_v44/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v44/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v44/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v44/methods/messages_search.md b/old_docs/API_docs_v44/methods/messages_search.md index b23dd186..c2a822a1 100644 --- a/old_docs/API_docs_v44/methods/messages_search.md +++ b/old_docs/API_docs_v44/methods/messages_search.md @@ -11,7 +11,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |important\_only|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -43,13 +43,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['important_only' => Bool, 'peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_searchGifs.md b/old_docs/API_docs_v44/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/old_docs/API_docs_v44/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v44/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_searchGlobal.md b/old_docs/API_docs_v44/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v44/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v44/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_sendBroadcast.md b/old_docs/API_docs_v44/methods/messages_sendBroadcast.md index 725d1f34..0ab60e43 100644 --- a/old_docs/API_docs_v44/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v44/methods/messages_sendBroadcast.md @@ -10,9 +10,9 @@ description: messages.sendBroadcast parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|contacts|Array of [InputUser](../types/InputUser.md) | Yes| +|contacts|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |message|[string](../types/string.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -24,18 +24,20 @@ description: messages.sendBroadcast parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser], 'message' => 'string', 'media' => InputMedia, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/messages_sendEncrypted.md b/old_docs/API_docs_v44/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_sendMedia.md b/old_docs/API_docs_v44/methods/messages_sendMedia.md index 67ba198c..f153e219 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v44/methods/messages_sendMedia.md @@ -11,9 +11,9 @@ description: messages.sendMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |broadcast|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -54,16 +54,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_sendMessage.md b/old_docs/API_docs_v44/methods/messages_sendMessage.md index 09f0e627..c4dc2cd5 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v44/methods/messages_sendMessage.md @@ -12,7 +12,7 @@ description: messages.sendMessage parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |broadcast|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -48,6 +48,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -55,18 +56,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_setTyping.md b/old_docs/API_docs_v44/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v44/methods/messages_setTyping.md +++ b/old_docs/API_docs_v44/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_startBot.md b/old_docs/API_docs_v44/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v44/methods/messages_startBot.md +++ b/old_docs/API_docs_v44/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v44/methods/photos_deletePhotos.md b/old_docs/API_docs_v44/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v44/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v44/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/methods/photos_getUserPhotos.md b/old_docs/API_docs_v44/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v44/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v44/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v44/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v44/methods/photos_updateProfilePhoto.md index d3acbb56..fbe84e26 100644 --- a/old_docs/API_docs_v44/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v44/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -23,13 +23,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md index de7c2281..303ed4ea 100644 --- a/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -35,13 +35,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v44/methods/updates_getChannelDifference.md b/old_docs/API_docs_v44/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v44/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v44/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v44/methods/updates_getDifference.md b/old_docs/API_docs_v44/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v44/methods/updates_getDifference.md +++ b/old_docs/API_docs_v44/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v44/methods/updates_getState.md b/old_docs/API_docs_v44/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v44/methods/updates_getState.md +++ b/old_docs/API_docs_v44/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v44/methods/upload_getFile.md b/old_docs/API_docs_v44/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v44/methods/upload_getFile.md +++ b/old_docs/API_docs_v44/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v44/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v44/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v44/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v44/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v44/methods/upload_saveFilePart.md b/old_docs/API_docs_v44/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v44/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v44/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v44/methods/users_getFullUser.md b/old_docs/API_docs_v44/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v44/methods/users_getFullUser.md +++ b/old_docs/API_docs_v44/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v44/methods/users_getUsers.md b/old_docs/API_docs_v44/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v44/methods/users_getUsers.md +++ b/old_docs/API_docs_v44/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v44/types/Chat.md b/old_docs/API_docs_v44/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v44/types/Chat.md +++ b/old_docs/API_docs_v44/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v44/types/InputChannel.md b/old_docs/API_docs_v44/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v44/types/InputChannel.md +++ b/old_docs/API_docs_v44/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v44/types/InputDocument.md b/old_docs/API_docs_v44/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v44/types/InputDocument.md +++ b/old_docs/API_docs_v44/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v44/types/InputEncryptedChat.md b/old_docs/API_docs_v44/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v44/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v44/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v44/types/InputEncryptedFile.md b/old_docs/API_docs_v44/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v44/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v44/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v44/types/InputFile.md b/old_docs/API_docs_v44/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v44/types/InputFile.md +++ b/old_docs/API_docs_v44/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v44/types/InputMedia.md b/old_docs/API_docs_v44/types/InputMedia.md index 7a5faa1c..d2aad16e 100644 --- a/old_docs/API_docs_v44/types/InputMedia.md +++ b/old_docs/API_docs_v44/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v44/types/InputPeer.md b/old_docs/API_docs_v44/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v44/types/InputPeer.md +++ b/old_docs/API_docs_v44/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v44/types/InputPhoto.md b/old_docs/API_docs_v44/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v44/types/InputPhoto.md +++ b/old_docs/API_docs_v44/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v44/types/InputUser.md b/old_docs/API_docs_v44/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v44/types/InputUser.md +++ b/old_docs/API_docs_v44/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v44/types/Peer.md b/old_docs/API_docs_v44/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v44/types/Peer.md +++ b/old_docs/API_docs_v44/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v44/types/User.md b/old_docs/API_docs_v44/types/User.md index a9d4addd..30fd113c 100644 --- a/old_docs/API_docs_v44/types/User.md +++ b/old_docs/API_docs_v44/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v45/Lang.php b/old_docs/API_docs_v45/Lang.php new file mode 100644 index 00000000..8ce6ee28 --- /dev/null +++ b/old_docs/API_docs_v45/Lang.php @@ -0,0 +1,2346 @@ +. + */ + +namespace danog\MadelineProto; + +class Lang +{ + public static $lang = array ( + 'it' => + array ( + 'phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istanziamento dei DataCenter...', + 'load_rsa' => 'Caricamento delle chiavi RSA...', + 'TL_translation' => 'Translazione degli schemi TL...', + 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', + 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', + 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', + 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', + 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', + 'threading_on' => 'IL THREADING È ABILITATO', + 'socket_reader' => 'Lettore socket su DC %s: ', + 'socket_status_1' => 'CREAZIONE', + 'socket_status_2' => 'INVIO', + 'socket_status_3' => 'ATTESA', + 'socket_status_4' => 'PRONTO', + 'socket_status_5' => 'AVVIATO', + 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', + 'session_corrupted' => 'La sessione si è corrotta!', + 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', + 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', + 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', + 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', + 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', + 'config_updated' => 'La configurazione è stata aggiornata!', + 'length_not_4' => 'La lunghezza non è uguale a 4', + 'length_not_8' => 'La lunghezza non è uguale a 8', + 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', + 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', + 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', + 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', + 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', + 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', + 'file_not_exist' => 'Il file specificato non esiste', + 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', + 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', + 'loading_key' => 'Caricamento della chiave in corso...', + 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', + 'rsa_encrypting' => 'Criptando con chiave RSA...', + 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', + 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', + 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', + 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', + 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', + 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', + 'socket_con_error' => 'Connessione fallita.', + 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', + 'protocol_invalid' => 'È stato fornito un protocollo non valido', + 'nothing_in_socket' => 'Non c\'è niente nel socket!', + 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', + 'no_data_in_socket' => 'Non ci sono dati nel socket!', + 'dc_con_start' => 'Connessione al DC %s in corso...', + 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', + 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', + 'script_not_exist' => 'Lo script fornito non esiste', + 'apifactory_start' => 'Sto avviando la fabbrica di API...', + 'madelineproto_ready' => 'MadelineProto è pronto!', + 'logout_error' => 'C\'è stato un errore durante il logout!', + 'logout_ok' => 'Il logout è stato eseguito correttamente!', + 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', + 'login_ok' => 'Il login è stato eseguito correttamente!', + 'login_user' => 'Sto eseguendo il login come utente normale...', + 'login_bot' => 'Sto eseguendo il login come bot...', + 'login_code_sending' => 'Sto inviando il codice...', + 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', + 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', + 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', + 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', + 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', + 'not_logged_in' => 'Non ho ancora fatto il login!', + 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', + 'signing_up' => 'Mi sto registrando su telegram come utente normale...', + 'signup_ok' => 'Mi sono registrato su Telegram!', + '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', + 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', + 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', + 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', + 'calling_user' => 'Sto chiamando %s...', + 'generating_a' => 'Sto generando a...', + 'generating_g_a' => 'Sto generando g_a...', + 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', + 'accepting_call' => 'Sto accettando una chiamata da %s...', + 'generating_b' => 'Sto generando b...', + 'call_already_accepted' => 'La chiamata %s è già stata accettata.', + 'call_already_declined' => 'La chiamata %s è già stata annullata.', + 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', + 'call_confirming' => 'Sto confermando una chiamata da %s', + 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', + 'call_completing' => 'Sto completando una chiamata da %s...', + 'invalid_g_a' => 'g_a non valido!', + 'fingerprint_invalid' => 'fingerprint della chiave non valido!', + 'call_discarding' => 'Sto rifiutando la chiamata %s...', + 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', + 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', + 'TL_loading' => 'Sto caricando gli schemi TL...', + 'file_parsing' => 'Leggendo %s...', + 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', + 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', + 'translating_obj' => 'Traducendo gli oggetti...', + 'translating_methods' => 'Traducendo i metodi...', + 'bool_error' => 'Non sono riuscito ad estrarre un booleano', + 'not_numeric' => 'Il valore fornito non è numerico', + 'long_not_16' => 'Il valore fornito non è lungo 16 byte', + 'long_not_32' => 'Il valore fornito non è lungo 32 byte', + 'long_not_64' => 'Il valore fornito non è lungo 64 byte', + 'array_invalid' => 'Il valore fornito non è un array', + 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', + 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', + 'method_not_found' => 'Impossibile trovare il seguente metodo: ', + 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', + 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', + 'stream_handle_invalid' => 'Il valore fornito non è uno stream', + 'length_too_big' => 'Il valore fornito è troppo lungo', + 'deserialize_not_str' => 'Il valore generato non è una stringa', + 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', + 'vector_invalid' => 'ID vettore non valido: ', + 'constructor_not_found' => 'Costruttore non trovato per tipo: ', + 'rand_bytes_too_small' => 'random_bytes è troppo corto!', + 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', + 'non_text_conversion' => 'Non posso ancora convertire messaggi media', + 'last_byte_invalid' => 'L\'ultimo byte non è valido', + 'file_type_invalid' => 'È stato fornito un tipo file errato', + 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', + 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', + 'shutting_down_reader_pool' => 'Chisura pool di lettura', + 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', + 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', + 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', + 'msg_data_length_too_big' => 'message_data_length è troppo grande', + 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', + 'msg_key_mismatch' => 'msg_key non valido', + 'rand_bytes_too_short' => 'random_bytes è troppo corto!', + 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', + 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', + 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', + 'req_pq' => 'Sto richiedendo pq...', + 'done' => 'Fatto!', + 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', + 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!', + ), + 'en' => + array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', + 'method_messages.search_param_important_only' => '', + 'method_messages.sendMessage_param_broadcast' => '', + 'method_messages.sendMedia_param_broadcast' => '', + 'method_messages.forwardMessages_param_broadcast' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id' => '', + 'method_messages.deactivateChat_param_enabled' => '', + 'method_help.getTermsOfService_param_lang_code' => '', + 'method_messages.sendInlineBotResult_param_broadcast' => '', + ), +); + + // THIS WILL BE OVERWRITTEN BY $lang["en"] + public static $current_lang = array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', + 'method_messages.search_param_important_only' => '', + 'method_messages.sendMessage_param_broadcast' => '', + 'method_messages.sendMedia_param_broadcast' => '', + 'method_messages.forwardMessages_param_broadcast' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id' => '', + 'method_messages.deactivateChat_param_enabled' => '', + 'method_help.getTermsOfService_param_lang_code' => '', + 'method_messages.sendInlineBotResult_param_broadcast' => '', +); +} \ No newline at end of file diff --git a/old_docs/API_docs_v45/constructors/account_authorizations.md b/old_docs/API_docs_v45/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v45/constructors/account_authorizations.md +++ b/old_docs/API_docs_v45/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/account_privacyRules.md b/old_docs/API_docs_v45/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v45/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v45/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/botInfo.md b/old_docs/API_docs_v45/constructors/botInfo.md index 196803dd..f86f0436 100644 --- a/old_docs/API_docs_v45/constructors/botInfo.md +++ b/old_docs/API_docs_v45/constructors/botInfo.md @@ -25,7 +25,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/botInlineMessageText.md b/old_docs/API_docs_v45/constructors/botInlineMessageText.md index b46f66b3..888f3b2c 100644 --- a/old_docs/API_docs_v45/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v45/constructors/botInlineMessageText.md @@ -23,7 +23,7 @@ description: botInlineMessageText attributes, type and example ### Example: ``` -$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity]]; +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/channelFull.md b/old_docs/API_docs_v45/constructors/channelFull.md index 13c4a787..475bd29e 100644 --- a/old_docs/API_docs_v45/constructors/channelFull.md +++ b/old_docs/API_docs_v45/constructors/channelFull.md @@ -35,7 +35,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/channelMessagesFilter.md b/old_docs/API_docs_v45/constructors/channelMessagesFilter.md index 56431ffb..e0a160e9 100644 --- a/old_docs/API_docs_v45/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v45/constructors/channelMessagesFilter.md @@ -23,7 +23,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'important_only' => Bool, 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'important_only' => Bool, 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/channels_channelParticipant.md b/old_docs/API_docs_v45/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v45/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v45/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/channels_channelParticipants.md b/old_docs/API_docs_v45/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v45/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v45/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/chatFull.md b/old_docs/API_docs_v45/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v45/constructors/chatFull.md +++ b/old_docs/API_docs_v45/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/chatParticipants.md b/old_docs/API_docs_v45/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v45/constructors/chatParticipants.md +++ b/old_docs/API_docs_v45/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/config.md b/old_docs/API_docs_v45/constructors/config.md index 0fc7e672..d913c068 100644 --- a/old_docs/API_docs_v45/constructors/config.md +++ b/old_docs/API_docs_v45/constructors/config.md @@ -39,7 +39,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/contacts_blocked.md b/old_docs/API_docs_v45/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v45/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v45/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v45/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v45/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v45/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/contacts_contacts.md b/old_docs/API_docs_v45/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v45/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v45/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/contacts_found.md b/old_docs/API_docs_v45/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v45/constructors/contacts_found.md +++ b/old_docs/API_docs_v45/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/contacts_importedContacts.md b/old_docs/API_docs_v45/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v45/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v45/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v45/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v45/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v45/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/contacts_suggested.md b/old_docs/API_docs_v45/constructors/contacts_suggested.md index 38db68c5..1ee96769 100644 --- a/old_docs/API_docs_v45/constructors/contacts_suggested.md +++ b/old_docs/API_docs_v45/constructors/contacts_suggested.md @@ -22,7 +22,7 @@ description: contacts_suggested attributes, type and example ### Example: ``` -$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested], 'users' => [User]]; +$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested, ContactSuggested], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/document.md b/old_docs/API_docs_v45/constructors/document.md index 3a584537..21dc39bb 100644 --- a/old_docs/API_docs_v45/constructors/document.md +++ b/old_docs/API_docs_v45/constructors/document.md @@ -28,7 +28,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/documentAttributeAudio.md b/old_docs/API_docs_v45/constructors/documentAttributeAudio.md index 28393d4b..e0d410f5 100644 --- a/old_docs/API_docs_v45/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v45/constructors/documentAttributeAudio.md @@ -11,7 +11,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Yes| |performer|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v45/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v45/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v45/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v45/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v45/constructors/documentAttributeVideo.md b/old_docs/API_docs_v45/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v45/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v45/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v45/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v45/constructors/inputBotInlineMessageText.md index 5bb83dc6..4570f6c5 100644 --- a/old_docs/API_docs_v45/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v45/constructors/inputBotInlineMessageText.md @@ -23,7 +23,7 @@ description: inputBotInlineMessageText attributes, type and example ### Example: ``` -$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity]]; +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/inputChatPhoto.md b/old_docs/API_docs_v45/constructors/inputChatPhoto.md index 4cd81a7c..f10e2da3 100644 --- a/old_docs/API_docs_v45/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v45/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v45/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v45/constructors/inputChatUploadedPhoto.md index 3d88ac48..13857e71 100644 --- a/old_docs/API_docs_v45/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v45/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v45/constructors/inputMediaDocument.md b/old_docs/API_docs_v45/constructors/inputMediaDocument.md index 88fed980..66d0baba 100644 --- a/old_docs/API_docs_v45/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v45/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v45/constructors/inputMediaPhoto.md b/old_docs/API_docs_v45/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v45/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v45/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v45/constructors/inputMediaUploadedAudio.md b/old_docs/API_docs_v45/constructors/inputMediaUploadedAudio.md index bbbe18a2..8fe9138e 100644 --- a/old_docs/API_docs_v45/constructors/inputMediaUploadedAudio.md +++ b/old_docs/API_docs_v45/constructors/inputMediaUploadedAudio.md @@ -11,9 +11,9 @@ description: inputMediaUploadedAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v45/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v45/constructors/inputMediaUploadedDocument.md index 7826457d..675f2562 100644 --- a/old_docs/API_docs_v45/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v45/constructors/inputMediaUploadedDocument.md @@ -11,8 +11,8 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| @@ -24,7 +24,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string']; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v45/constructors/inputMediaUploadedPhoto.md index 42408b9f..58ae37cf 100644 --- a/old_docs/API_docs_v45/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v45/constructors/inputMediaUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v45/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v45/constructors/inputMediaUploadedThumbDocument.md index e0c31f26..ffd8fbff 100644 --- a/old_docs/API_docs_v45/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v45/constructors/inputMediaUploadedThumbDocument.md @@ -11,9 +11,9 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| @@ -25,7 +25,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string']; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/inputMediaUploadedThumbVideo.md b/old_docs/API_docs_v45/constructors/inputMediaUploadedThumbVideo.md index e7a9ae2b..47506b52 100644 --- a/old_docs/API_docs_v45/constructors/inputMediaUploadedThumbVideo.md +++ b/old_docs/API_docs_v45/constructors/inputMediaUploadedThumbVideo.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v45/constructors/inputMediaUploadedVideo.md b/old_docs/API_docs_v45/constructors/inputMediaUploadedVideo.md index 427c5113..e0e36e91 100644 --- a/old_docs/API_docs_v45/constructors/inputMediaUploadedVideo.md +++ b/old_docs/API_docs_v45/constructors/inputMediaUploadedVideo.md @@ -11,11 +11,11 @@ description: inputMediaUploadedVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v45/constructors/inputNotifyPeer.md b/old_docs/API_docs_v45/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v45/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v45/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v45/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v45/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v45/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v45/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v45/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v45/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v45/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/keyboardButtonRow.md b/old_docs/API_docs_v45/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v45/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v45/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/message.md b/old_docs/API_docs_v45/constructors/message.md index 89959d66..4f7d7403 100644 --- a/old_docs/API_docs_v45/constructors/message.md +++ b/old_docs/API_docs_v45/constructors/message.md @@ -37,7 +37,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => Peer, 'fwd_date' => int, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'views' => int]; +$message = ['_' => 'message', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => Peer, 'fwd_date' => int, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'views' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v45/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v45/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v45/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/messageActionChatCreate.md b/old_docs/API_docs_v45/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v45/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v45/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/messages_allStickers.md b/old_docs/API_docs_v45/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/old_docs/API_docs_v45/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v45/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/messages_botResults.md b/old_docs/API_docs_v45/constructors/messages_botResults.md index ff47e134..09faa057 100644 --- a/old_docs/API_docs_v45/constructors/messages_botResults.md +++ b/old_docs/API_docs_v45/constructors/messages_botResults.md @@ -24,7 +24,7 @@ description: messages_botResults attributes, type and example ### Example: ``` -$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'results' => [BotInlineResult]]; +$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'results' => [BotInlineResult, BotInlineResult]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/messages_channelMessages.md b/old_docs/API_docs_v45/constructors/messages_channelMessages.md index e12420fe..69ba09d4 100644 --- a/old_docs/API_docs_v45/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v45/constructors/messages_channelMessages.md @@ -26,7 +26,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'collapsed' => [MessageGroup], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'collapsed' => [MessageGroup, MessageGroup], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/messages_chatFull.md b/old_docs/API_docs_v45/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v45/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v45/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/messages_chats.md b/old_docs/API_docs_v45/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v45/constructors/messages_chats.md +++ b/old_docs/API_docs_v45/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/messages_dialogs.md b/old_docs/API_docs_v45/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v45/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v45/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v45/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v45/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v45/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v45/constructors/messages_foundGifs.md b/old_docs/API_docs_v45/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/old_docs/API_docs_v45/constructors/messages_foundGifs.md +++ b/old_docs/API_docs_v45/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/messages_messages.md b/old_docs/API_docs_v45/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v45/constructors/messages_messages.md +++ b/old_docs/API_docs_v45/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/messages_messagesSlice.md b/old_docs/API_docs_v45/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v45/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v45/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/messages_savedGifs.md b/old_docs/API_docs_v45/constructors/messages_savedGifs.md index 7e2a00eb..b4ff040d 100644 --- a/old_docs/API_docs_v45/constructors/messages_savedGifs.md +++ b/old_docs/API_docs_v45/constructors/messages_savedGifs.md @@ -22,7 +22,7 @@ description: messages_savedGifs attributes, type and example ### Example: ``` -$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document]]; +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/messages_stickerSet.md b/old_docs/API_docs_v45/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v45/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v45/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/messages_stickers.md b/old_docs/API_docs_v45/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v45/constructors/messages_stickers.md +++ b/old_docs/API_docs_v45/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/photo.md b/old_docs/API_docs_v45/constructors/photo.md index f2bdf059..7212469f 100644 --- a/old_docs/API_docs_v45/constructors/photo.md +++ b/old_docs/API_docs_v45/constructors/photo.md @@ -24,7 +24,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/photos_photo.md b/old_docs/API_docs_v45/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v45/constructors/photos_photo.md +++ b/old_docs/API_docs_v45/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/photos_photos.md b/old_docs/API_docs_v45/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v45/constructors/photos_photos.md +++ b/old_docs/API_docs_v45/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/photos_photosSlice.md b/old_docs/API_docs_v45/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v45/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v45/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v45/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v45/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v45/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v45/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v45/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v45/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v45/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v45/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v45/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/stickerPack.md b/old_docs/API_docs_v45/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v45/constructors/stickerPack.md +++ b/old_docs/API_docs_v45/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/updateDcOptions.md b/old_docs/API_docs_v45/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v45/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v45/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v45/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v45/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v45/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/updateDeleteMessages.md b/old_docs/API_docs_v45/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v45/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v45/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/updatePrivacy.md b/old_docs/API_docs_v45/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v45/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v45/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v45/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v45/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v45/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/updateShortChatMessage.md b/old_docs/API_docs_v45/constructors/updateShortChatMessage.md index 86d56bf2..57b44c6e 100644 --- a/old_docs/API_docs_v45/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v45/constructors/updateShortChatMessage.md @@ -36,7 +36,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity]]; +$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/updateShortMessage.md b/old_docs/API_docs_v45/constructors/updateShortMessage.md index 847278b4..d2137257 100644 --- a/old_docs/API_docs_v45/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v45/constructors/updateShortMessage.md @@ -35,7 +35,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$updateShortMessage = ['_' => 'updateShortMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'user_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity]]; +$updateShortMessage = ['_' => 'updateShortMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'user_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/updateShortSentMessage.md b/old_docs/API_docs_v45/constructors/updateShortSentMessage.md index e2068f9f..16dc73b4 100644 --- a/old_docs/API_docs_v45/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v45/constructors/updateShortSentMessage.md @@ -28,7 +28,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'unread' => Bool, 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'unread' => Bool, 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v45/constructors/updateStickerSetsOrder.md index 853e8658..260af879 100644 --- a/old_docs/API_docs_v45/constructors/updateStickerSetsOrder.md +++ b/old_docs/API_docs_v45/constructors/updateStickerSetsOrder.md @@ -21,7 +21,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/updates.md b/old_docs/API_docs_v45/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v45/constructors/updates.md +++ b/old_docs/API_docs_v45/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/updatesCombined.md b/old_docs/API_docs_v45/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v45/constructors/updatesCombined.md +++ b/old_docs/API_docs_v45/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v45/constructors/updates_channelDifference.md b/old_docs/API_docs_v45/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v45/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v45/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v45/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v45/constructors/updates_channelDifferenceTooLong.md index 7aafef2c..d2b67ed4 100644 --- a/old_docs/API_docs_v45/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v45/constructors/updates_channelDifferenceTooLong.md @@ -31,7 +31,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'final' => Bool, 'pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'final' => Bool, 'pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/constructors/updates_difference.md b/old_docs/API_docs_v45/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v45/constructors/updates_difference.md +++ b/old_docs/API_docs_v45/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v45/constructors/updates_differenceSlice.md b/old_docs/API_docs_v45/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v45/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v45/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v45/constructors/wallPaper.md b/old_docs/API_docs_v45/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v45/constructors/wallPaper.md +++ b/old_docs/API_docs_v45/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v45/methods/README.md b/old_docs/API_docs_v45/methods/README.md index 1972ae95..21b31dd7 100644 --- a/old_docs/API_docs_v45/methods/README.md +++ b/old_docs/API_docs_v45/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v45/methods/account_changePhone.md b/old_docs/API_docs_v45/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v45/methods/account_changePhone.md +++ b/old_docs/API_docs_v45/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_checkUsername.md b/old_docs/API_docs_v45/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v45/methods/account_checkUsername.md +++ b/old_docs/API_docs_v45/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_deleteAccount.md b/old_docs/API_docs_v45/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v45/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v45/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_getAccountTTL.md b/old_docs/API_docs_v45/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v45/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v45/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v45/methods/account_getAuthorizations.md b/old_docs/API_docs_v45/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v45/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v45/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v45/methods/account_getNotifySettings.md b/old_docs/API_docs_v45/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v45/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v45/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_getPassword.md b/old_docs/API_docs_v45/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v45/methods/account_getPassword.md +++ b/old_docs/API_docs_v45/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v45/methods/account_getPasswordSettings.md b/old_docs/API_docs_v45/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v45/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v45/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_getPrivacy.md b/old_docs/API_docs_v45/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v45/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v45/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_getWallPapers.md b/old_docs/API_docs_v45/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v45/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v45/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v45/methods/account_registerDevice.md b/old_docs/API_docs_v45/methods/account_registerDevice.md index cfa1546c..5c86d74c 100644 --- a/old_docs/API_docs_v45/methods/account_registerDevice.md +++ b/old_docs/API_docs_v45/methods/account_registerDevice.md @@ -1,22 +1,24 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|app\_sandbox|[Bool](../types/Bool.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| +|device\_model|[string](../types/string.md) | Yes|| +|system\_version|[string](../types/string.md) | Yes|| +|app\_version|[string](../types/string.md) | Yes|| +|app\_sandbox|[Bool](../types/Bool.md) | Yes|Should the app run in a sandbox?| +|lang\_code|[string](../types/string.md) | Yes|| ### Return type: [Bool](../types/Bool.md) @@ -35,13 +37,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_reportPeer.md b/old_docs/API_docs_v45/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v45/methods/account_reportPeer.md +++ b/old_docs/API_docs_v45/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_resetAuthorization.md b/old_docs/API_docs_v45/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v45/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v45/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_resetNotifySettings.md b/old_docs/API_docs_v45/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v45/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v45/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md index ad611a8b..b5258245 100644 --- a/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md @@ -1,16 +1,18 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|New phone number| ### Return type: [account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) @@ -29,13 +31,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_setAccountTTL.md b/old_docs/API_docs_v45/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v45/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v45/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_setPrivacy.md b/old_docs/API_docs_v45/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v45/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v45/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/account_unregisterDevice.md b/old_docs/API_docs_v45/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v45/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v45/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v45/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v45/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v45/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_updateNotifySettings.md b/old_docs/API_docs_v45/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v45/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v45/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_updateProfile.md b/old_docs/API_docs_v45/methods/account_updateProfile.md index 123ed13a..7f8d80c5 100644 --- a/old_docs/API_docs_v45/methods/account_updateProfile.md +++ b/old_docs/API_docs_v45/methods/account_updateProfile.md @@ -1,17 +1,19 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Yes| -|last\_name|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Yes|The first name| +|last\_name|[string](../types/string.md) | Yes|The last name| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_updateStatus.md b/old_docs/API_docs_v45/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v45/methods/account_updateStatus.md +++ b/old_docs/API_docs_v45/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v45/methods/account_updateUsername.md b/old_docs/API_docs_v45/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v45/methods/account_updateUsername.md +++ b/old_docs/API_docs_v45/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v45/methods/auth_checkPassword.md b/old_docs/API_docs_v45/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v45/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v45/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v45/methods/auth_checkPhone.md b/old_docs/API_docs_v45/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v45/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v45/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/auth_exportAuthorization.md b/old_docs/API_docs_v45/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v45/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v45/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v45/methods/auth_importAuthorization.md b/old_docs/API_docs_v45/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v45/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v45/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v45/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v45/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v45/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v45/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v45/methods/auth_logOut.md b/old_docs/API_docs_v45/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v45/methods/auth_logOut.md +++ b/old_docs/API_docs_v45/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v45/methods/auth_recoverPassword.md b/old_docs/API_docs_v45/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v45/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v45/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v45/methods/auth_sendCall.md b/old_docs/API_docs_v45/methods/auth_sendCall.md index 386cfad4..94ed6b7f 100644 --- a/old_docs/API_docs_v45/methods/auth_sendCall.md +++ b/old_docs/API_docs_v45/methods/auth_sendCall.md @@ -23,16 +23,18 @@ description: auth.sendCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/auth_sendCode.md b/old_docs/API_docs_v45/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v45/methods/auth_sendCode.md +++ b/old_docs/API_docs_v45/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v45/methods/auth_sendInvites.md b/old_docs/API_docs_v45/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v45/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v45/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/auth_sendSms.md b/old_docs/API_docs_v45/methods/auth_sendSms.md index 9a214e65..0c4a7343 100644 --- a/old_docs/API_docs_v45/methods/auth_sendSms.md +++ b/old_docs/API_docs_v45/methods/auth_sendSms.md @@ -23,16 +23,18 @@ description: auth.sendSms parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/auth_signIn.md b/old_docs/API_docs_v45/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v45/methods/auth_signIn.md +++ b/old_docs/API_docs_v45/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v45/methods/auth_signUp.md b/old_docs/API_docs_v45/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v45/methods/auth_signUp.md +++ b/old_docs/API_docs_v45/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v45/methods/channels_checkUsername.md b/old_docs/API_docs_v45/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v45/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v45/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_createChannel.md b/old_docs/API_docs_v45/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v45/methods/channels_createChannel.md +++ b/old_docs/API_docs_v45/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_deleteChannel.md b/old_docs/API_docs_v45/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v45/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_deleteMessages.md b/old_docs/API_docs_v45/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v45/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_editAbout.md b/old_docs/API_docs_v45/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v45/methods/channels_editAbout.md +++ b/old_docs/API_docs_v45/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_editAdmin.md b/old_docs/API_docs_v45/methods/channels_editAdmin.md index c62597e1..146159d9 100644 --- a/old_docs/API_docs_v45/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v45/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |role|[ChannelParticipantRole](../types/ChannelParticipantRole.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_editPhoto.md b/old_docs/API_docs_v45/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v45/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v45/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_editTitle.md b/old_docs/API_docs_v45/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v45/methods/channels_editTitle.md +++ b/old_docs/API_docs_v45/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_exportInvite.md b/old_docs/API_docs_v45/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v45/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v45/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_getChannels.md b/old_docs/API_docs_v45/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v45/methods/channels_getChannels.md +++ b/old_docs/API_docs_v45/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/channels_getDialogs.md b/old_docs/API_docs_v45/methods/channels_getDialogs.md index 916f9b34..7c1464f8 100644 --- a/old_docs/API_docs_v45/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v45/methods/channels_getDialogs.md @@ -23,16 +23,18 @@ description: channels.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->channels->getDialogs(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_getFullChannel.md b/old_docs/API_docs_v45/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v45/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v45/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v45/methods/channels_getImportantHistory.md b/old_docs/API_docs_v45/methods/channels_getImportantHistory.md index 2f489487..6dc710fb 100644 --- a/old_docs/API_docs_v45/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v45/methods/channels_getImportantHistory.md @@ -10,7 +10,7 @@ description: channels.getImportantHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -27,16 +27,18 @@ description: channels.getImportantHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getImportantHistory(['channel' => InputChannel, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_getMessages.md b/old_docs/API_docs_v45/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v45/methods/channels_getMessages.md +++ b/old_docs/API_docs_v45/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/channels_getParticipant.md b/old_docs/API_docs_v45/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v45/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v45/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_getParticipants.md b/old_docs/API_docs_v45/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v45/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v45/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_inviteToChannel.md b/old_docs/API_docs_v45/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v45/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v45/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/channels_joinChannel.md b/old_docs/API_docs_v45/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v45/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v45/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_kickFromChannel.md b/old_docs/API_docs_v45/methods/channels_kickFromChannel.md index a2182df8..e4b68581 100644 --- a/old_docs/API_docs_v45/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v45/methods/channels_kickFromChannel.md @@ -10,8 +10,8 @@ description: channels.kickFromChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |kicked|[Bool](../types/Bool.md) | Yes| @@ -24,16 +24,18 @@ description: channels.kickFromChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_leaveChannel.md b/old_docs/API_docs_v45/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v45/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v45/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_readHistory.md b/old_docs/API_docs_v45/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v45/methods/channels_readHistory.md +++ b/old_docs/API_docs_v45/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_reportSpam.md b/old_docs/API_docs_v45/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v45/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v45/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/channels_toggleComments.md b/old_docs/API_docs_v45/methods/channels_toggleComments.md index ce4207db..8b77db49 100644 --- a/old_docs/API_docs_v45/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v45/methods/channels_toggleComments.md @@ -10,7 +10,7 @@ description: channels.toggleComments parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -23,16 +23,18 @@ description: channels.toggleComments parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleComments(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v45/methods/channels_updateUsername.md b/old_docs/API_docs_v45/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v45/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v45/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/contacts_block.md b/old_docs/API_docs_v45/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v45/methods/contacts_block.md +++ b/old_docs/API_docs_v45/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v45/methods/contacts_deleteContact.md b/old_docs/API_docs_v45/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v45/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v45/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v45/methods/contacts_deleteContacts.md b/old_docs/API_docs_v45/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v45/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v45/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/contacts_exportCard.md b/old_docs/API_docs_v45/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v45/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v45/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v45/methods/contacts_getBlocked.md b/old_docs/API_docs_v45/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v45/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v45/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/contacts_getContacts.md b/old_docs/API_docs_v45/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v45/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v45/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/contacts_getStatuses.md b/old_docs/API_docs_v45/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v45/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v45/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v45/methods/contacts_getSuggested.md b/old_docs/API_docs_v45/methods/contacts_getSuggested.md index 2059c01b..7249b1f2 100644 --- a/old_docs/API_docs_v45/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v45/methods/contacts_getSuggested.md @@ -22,16 +22,18 @@ description: contacts.getSuggested parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/contacts_importCard.md b/old_docs/API_docs_v45/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v45/methods/contacts_importCard.md +++ b/old_docs/API_docs_v45/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/contacts_importContacts.md b/old_docs/API_docs_v45/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v45/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v45/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/contacts_resolveUsername.md b/old_docs/API_docs_v45/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v45/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v45/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v45/methods/contacts_search.md b/old_docs/API_docs_v45/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v45/methods/contacts_search.md +++ b/old_docs/API_docs_v45/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/contacts_unblock.md b/old_docs/API_docs_v45/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v45/methods/contacts_unblock.md +++ b/old_docs/API_docs_v45/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v45/methods/help_getAppChangelog.md b/old_docs/API_docs_v45/methods/help_getAppChangelog.md index b27cc9f0..d69a61cb 100644 --- a/old_docs/API_docs_v45/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v45/methods/help_getAppChangelog.md @@ -25,13 +25,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/help_getAppUpdate.md b/old_docs/API_docs_v45/methods/help_getAppUpdate.md index 7b3bdde9..f9b06641 100644 --- a/old_docs/API_docs_v45/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v45/methods/help_getAppUpdate.md @@ -25,13 +25,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/help_getConfig.md b/old_docs/API_docs_v45/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v45/methods/help_getConfig.md +++ b/old_docs/API_docs_v45/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v45/methods/help_getInviteText.md b/old_docs/API_docs_v45/methods/help_getInviteText.md index 40251dd5..bac72a15 100644 --- a/old_docs/API_docs_v45/methods/help_getInviteText.md +++ b/old_docs/API_docs_v45/methods/help_getInviteText.md @@ -22,13 +22,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/help_getNearestDc.md b/old_docs/API_docs_v45/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v45/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v45/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v45/methods/help_getSupport.md b/old_docs/API_docs_v45/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v45/methods/help_getSupport.md +++ b/old_docs/API_docs_v45/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v45/methods/help_getTermsOfService.md b/old_docs/API_docs_v45/methods/help_getTermsOfService.md index 1e8899a2..56a75769 100644 --- a/old_docs/API_docs_v45/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v45/methods/help_getTermsOfService.md @@ -22,13 +22,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/help_saveAppLog.md b/old_docs/API_docs_v45/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v45/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v45/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/initConnection.md b/old_docs/API_docs_v45/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v45/methods/initConnection.md +++ b/old_docs/API_docs_v45/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v45/methods/invokeAfterMsg.md b/old_docs/API_docs_v45/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v45/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v45/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v45/methods/invokeAfterMsgs.md b/old_docs/API_docs_v45/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v45/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v45/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/invokeWithLayer.md b/old_docs/API_docs_v45/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v45/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v45/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v45/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v45/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v45/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v45/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_acceptEncryption.md b/old_docs/API_docs_v45/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v45/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v45/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v45/methods/messages_addChatUser.md b/old_docs/API_docs_v45/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v45/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v45/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_checkChatInvite.md b/old_docs/API_docs_v45/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v45/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_createChat.md b/old_docs/API_docs_v45/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v45/methods/messages_createChat.md +++ b/old_docs/API_docs_v45/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/messages_deleteChatUser.md b/old_docs/API_docs_v45/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v45/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v45/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_deleteHistory.md b/old_docs/API_docs_v45/methods/messages_deleteHistory.md index 598ce5c6..e2e60c49 100644 --- a/old_docs/API_docs_v45/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v45/methods/messages_deleteHistory.md @@ -10,7 +10,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_deleteMessages.md b/old_docs/API_docs_v45/methods/messages_deleteMessages.md index 38b3ca09..12347c81 100644 --- a/old_docs/API_docs_v45/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v45/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/messages_discardEncryption.md b/old_docs/API_docs_v45/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v45/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v45/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v45/methods/messages_editChatAdmin.md b/old_docs/API_docs_v45/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v45/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v45/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_editChatPhoto.md b/old_docs/API_docs_v45/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v45/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v45/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_editChatTitle.md b/old_docs/API_docs_v45/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v45/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v45/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_exportChatInvite.md b/old_docs/API_docs_v45/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v45/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_forwardMessage.md b/old_docs/API_docs_v45/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v45/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v45/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_forwardMessages.md b/old_docs/API_docs_v45/methods/messages_forwardMessages.md index fc7891c6..2f759375 100644 --- a/old_docs/API_docs_v45/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v45/methods/messages_forwardMessages.md @@ -11,9 +11,9 @@ description: messages.forwardMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |broadcast|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -53,18 +53,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/messages_getAllStickers.md b/old_docs/API_docs_v45/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/old_docs/API_docs_v45/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v45/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_getChats.md b/old_docs/API_docs_v45/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v45/methods/messages_getChats.md +++ b/old_docs/API_docs_v45/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/messages_getDhConfig.md b/old_docs/API_docs_v45/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v45/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v45/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_getDialogs.md b/old_docs/API_docs_v45/methods/messages_getDialogs.md index 934e3b80..323bb791 100644 --- a/old_docs/API_docs_v45/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v45/methods/messages_getDialogs.md @@ -12,7 +12,7 @@ description: messages.getDialogs parameters, return type and example |----------|---------------|----------| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -35,13 +35,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_getFullChat.md b/old_docs/API_docs_v45/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v45/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v45/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v45/methods/messages_getHistory.md b/old_docs/API_docs_v45/methods/messages_getHistory.md index 11d8333f..c306f02c 100644 --- a/old_docs/API_docs_v45/methods/messages_getHistory.md +++ b/old_docs/API_docs_v45/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md index 193aebe1..9624ba3b 100644 --- a/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md @@ -10,7 +10,7 @@ description: messages.getInlineBotResults parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |query|[string](../types/string.md) | Yes| |offset|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.getInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'query' => 'string', 'offset' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_getMessages.md b/old_docs/API_docs_v45/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v45/methods/messages_getMessages.md +++ b/old_docs/API_docs_v45/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/messages_getMessagesViews.md b/old_docs/API_docs_v45/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v45/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v45/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/messages_getSavedGifs.md b/old_docs/API_docs_v45/methods/messages_getSavedGifs.md index 4986d812..bcb4590d 100644 --- a/old_docs/API_docs_v45/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v45/methods/messages_getSavedGifs.md @@ -22,13 +22,18 @@ description: messages.getSavedGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_getStickerSet.md b/old_docs/API_docs_v45/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v45/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v45/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_getStickers.md b/old_docs/API_docs_v45/methods/messages_getStickers.md index 1587cd01..6ac68c87 100644 --- a/old_docs/API_docs_v45/methods/messages_getStickers.md +++ b/old_docs/API_docs_v45/methods/messages_getStickers.md @@ -23,16 +23,18 @@ description: messages.getStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v45/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v45/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v45/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_importChatInvite.md b/old_docs/API_docs_v45/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v45/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_installStickerSet.md b/old_docs/API_docs_v45/methods/messages_installStickerSet.md index 1a31c0e7..ccabd393 100644 --- a/old_docs/API_docs_v45/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v45/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_migrateChat.md b/old_docs/API_docs_v45/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v45/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v45/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_readHistory.md b/old_docs/API_docs_v45/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v45/methods/messages_readHistory.md +++ b/old_docs/API_docs_v45/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_readMessageContents.md b/old_docs/API_docs_v45/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v45/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v45/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/messages_receivedMessages.md b/old_docs/API_docs_v45/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v45/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v45/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_receivedQueue.md b/old_docs/API_docs_v45/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v45/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v45/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v45/methods/messages_reorderStickerSets.md index e09057e7..eee7d0f2 100644 --- a/old_docs/API_docs_v45/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v45/methods/messages_reorderStickerSets.md @@ -22,15 +22,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/messages_reportSpam.md b/old_docs/API_docs_v45/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v45/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v45/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_requestEncryption.md b/old_docs/API_docs_v45/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v45/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v45/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v45/methods/messages_saveGif.md b/old_docs/API_docs_v45/methods/messages_saveGif.md index b3673c91..725bc949 100644 --- a/old_docs/API_docs_v45/methods/messages_saveGif.md +++ b/old_docs/API_docs_v45/methods/messages_saveGif.md @@ -10,7 +10,7 @@ description: messages.saveGif parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveGif parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_search.md b/old_docs/API_docs_v45/methods/messages_search.md index b23dd186..c2a822a1 100644 --- a/old_docs/API_docs_v45/methods/messages_search.md +++ b/old_docs/API_docs_v45/methods/messages_search.md @@ -11,7 +11,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |important\_only|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -43,13 +43,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['important_only' => Bool, 'peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_searchGifs.md b/old_docs/API_docs_v45/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/old_docs/API_docs_v45/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v45/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_searchGlobal.md b/old_docs/API_docs_v45/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v45/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v45/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_sendBroadcast.md b/old_docs/API_docs_v45/methods/messages_sendBroadcast.md index 725d1f34..0ab60e43 100644 --- a/old_docs/API_docs_v45/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v45/methods/messages_sendBroadcast.md @@ -10,9 +10,9 @@ description: messages.sendBroadcast parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|contacts|Array of [InputUser](../types/InputUser.md) | Yes| +|contacts|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |message|[string](../types/string.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -24,18 +24,20 @@ description: messages.sendBroadcast parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser], 'message' => 'string', 'media' => InputMedia, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/messages_sendEncrypted.md b/old_docs/API_docs_v45/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md index 49238a18..5a964759 100644 --- a/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md @@ -11,7 +11,7 @@ description: messages.sendInlineBotResult parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |broadcast|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |query\_id|[long](../types/long.md) | Yes| |id|[string](../types/string.md) | Yes| @@ -38,13 +38,18 @@ description: messages.sendInlineBotResult parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_sendMedia.md b/old_docs/API_docs_v45/methods/messages_sendMedia.md index 67ba198c..f153e219 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v45/methods/messages_sendMedia.md @@ -11,9 +11,9 @@ description: messages.sendMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |broadcast|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -54,16 +54,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_sendMessage.md b/old_docs/API_docs_v45/methods/messages_sendMessage.md index 09f0e627..c4dc2cd5 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v45/methods/messages_sendMessage.md @@ -12,7 +12,7 @@ description: messages.sendMessage parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |broadcast|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -48,6 +48,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -55,18 +56,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md index 94fa85b8..f86366b8 100644 --- a/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md @@ -44,18 +44,20 @@ description: messages.setInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/messages_setTyping.md b/old_docs/API_docs_v45/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v45/methods/messages_setTyping.md +++ b/old_docs/API_docs_v45/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_startBot.md b/old_docs/API_docs_v45/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v45/methods/messages_startBot.md +++ b/old_docs/API_docs_v45/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v45/methods/photos_deletePhotos.md b/old_docs/API_docs_v45/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v45/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v45/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/methods/photos_getUserPhotos.md b/old_docs/API_docs_v45/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v45/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v45/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v45/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v45/methods/photos_updateProfilePhoto.md index d3acbb56..fbe84e26 100644 --- a/old_docs/API_docs_v45/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v45/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -23,13 +23,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md index de7c2281..303ed4ea 100644 --- a/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -35,13 +35,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v45/methods/updates_getChannelDifference.md b/old_docs/API_docs_v45/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v45/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v45/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v45/methods/updates_getDifference.md b/old_docs/API_docs_v45/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v45/methods/updates_getDifference.md +++ b/old_docs/API_docs_v45/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v45/methods/updates_getState.md b/old_docs/API_docs_v45/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v45/methods/updates_getState.md +++ b/old_docs/API_docs_v45/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v45/methods/upload_getFile.md b/old_docs/API_docs_v45/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v45/methods/upload_getFile.md +++ b/old_docs/API_docs_v45/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v45/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v45/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v45/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v45/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v45/methods/upload_saveFilePart.md b/old_docs/API_docs_v45/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v45/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v45/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v45/methods/users_getFullUser.md b/old_docs/API_docs_v45/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v45/methods/users_getFullUser.md +++ b/old_docs/API_docs_v45/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v45/methods/users_getUsers.md b/old_docs/API_docs_v45/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v45/methods/users_getUsers.md +++ b/old_docs/API_docs_v45/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v45/types/Chat.md b/old_docs/API_docs_v45/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v45/types/Chat.md +++ b/old_docs/API_docs_v45/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v45/types/InputChannel.md b/old_docs/API_docs_v45/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v45/types/InputChannel.md +++ b/old_docs/API_docs_v45/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v45/types/InputDocument.md b/old_docs/API_docs_v45/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v45/types/InputDocument.md +++ b/old_docs/API_docs_v45/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v45/types/InputEncryptedChat.md b/old_docs/API_docs_v45/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v45/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v45/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v45/types/InputEncryptedFile.md b/old_docs/API_docs_v45/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v45/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v45/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v45/types/InputFile.md b/old_docs/API_docs_v45/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v45/types/InputFile.md +++ b/old_docs/API_docs_v45/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v45/types/InputMedia.md b/old_docs/API_docs_v45/types/InputMedia.md index 7a5faa1c..d2aad16e 100644 --- a/old_docs/API_docs_v45/types/InputMedia.md +++ b/old_docs/API_docs_v45/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v45/types/InputPeer.md b/old_docs/API_docs_v45/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v45/types/InputPeer.md +++ b/old_docs/API_docs_v45/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v45/types/InputPhoto.md b/old_docs/API_docs_v45/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v45/types/InputPhoto.md +++ b/old_docs/API_docs_v45/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v45/types/InputUser.md b/old_docs/API_docs_v45/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v45/types/InputUser.md +++ b/old_docs/API_docs_v45/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v45/types/Peer.md b/old_docs/API_docs_v45/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v45/types/Peer.md +++ b/old_docs/API_docs_v45/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v45/types/User.md b/old_docs/API_docs_v45/types/User.md index a9d4addd..30fd113c 100644 --- a/old_docs/API_docs_v45/types/User.md +++ b/old_docs/API_docs_v45/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v46/constructors/account_authorizations.md b/old_docs/API_docs_v46/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v46/constructors/account_authorizations.md +++ b/old_docs/API_docs_v46/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/account_privacyRules.md b/old_docs/API_docs_v46/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v46/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v46/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/botInfo.md b/old_docs/API_docs_v46/constructors/botInfo.md index 196803dd..f86f0436 100644 --- a/old_docs/API_docs_v46/constructors/botInfo.md +++ b/old_docs/API_docs_v46/constructors/botInfo.md @@ -25,7 +25,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/botInlineMessageText.md b/old_docs/API_docs_v46/constructors/botInlineMessageText.md index b46f66b3..888f3b2c 100644 --- a/old_docs/API_docs_v46/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v46/constructors/botInlineMessageText.md @@ -23,7 +23,7 @@ description: botInlineMessageText attributes, type and example ### Example: ``` -$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity]]; +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/channelFull.md b/old_docs/API_docs_v46/constructors/channelFull.md index 13c4a787..475bd29e 100644 --- a/old_docs/API_docs_v46/constructors/channelFull.md +++ b/old_docs/API_docs_v46/constructors/channelFull.md @@ -35,7 +35,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/channelMessagesFilter.md b/old_docs/API_docs_v46/constructors/channelMessagesFilter.md index 56431ffb..e0a160e9 100644 --- a/old_docs/API_docs_v46/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v46/constructors/channelMessagesFilter.md @@ -23,7 +23,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'important_only' => Bool, 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'important_only' => Bool, 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/channels_channelParticipant.md b/old_docs/API_docs_v46/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v46/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v46/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/channels_channelParticipants.md b/old_docs/API_docs_v46/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v46/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v46/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/chatFull.md b/old_docs/API_docs_v46/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v46/constructors/chatFull.md +++ b/old_docs/API_docs_v46/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/chatParticipants.md b/old_docs/API_docs_v46/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v46/constructors/chatParticipants.md +++ b/old_docs/API_docs_v46/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/config.md b/old_docs/API_docs_v46/constructors/config.md index 0fc7e672..d913c068 100644 --- a/old_docs/API_docs_v46/constructors/config.md +++ b/old_docs/API_docs_v46/constructors/config.md @@ -39,7 +39,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/contacts_blocked.md b/old_docs/API_docs_v46/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v46/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v46/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v46/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v46/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v46/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/contacts_contacts.md b/old_docs/API_docs_v46/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v46/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v46/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/contacts_found.md b/old_docs/API_docs_v46/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v46/constructors/contacts_found.md +++ b/old_docs/API_docs_v46/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/contacts_importedContacts.md b/old_docs/API_docs_v46/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v46/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v46/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v46/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v46/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v46/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/contacts_suggested.md b/old_docs/API_docs_v46/constructors/contacts_suggested.md index 38db68c5..1ee96769 100644 --- a/old_docs/API_docs_v46/constructors/contacts_suggested.md +++ b/old_docs/API_docs_v46/constructors/contacts_suggested.md @@ -22,7 +22,7 @@ description: contacts_suggested attributes, type and example ### Example: ``` -$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested], 'users' => [User]]; +$contacts_suggested = ['_' => 'contacts.suggested', 'results' => [ContactSuggested, ContactSuggested], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/document.md b/old_docs/API_docs_v46/constructors/document.md index 3a584537..21dc39bb 100644 --- a/old_docs/API_docs_v46/constructors/document.md +++ b/old_docs/API_docs_v46/constructors/document.md @@ -28,7 +28,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/documentAttributeAudio.md b/old_docs/API_docs_v46/constructors/documentAttributeAudio.md index 28393d4b..e0d410f5 100644 --- a/old_docs/API_docs_v46/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v46/constructors/documentAttributeAudio.md @@ -11,7 +11,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Yes| |performer|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v46/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v46/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v46/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v46/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v46/constructors/documentAttributeVideo.md b/old_docs/API_docs_v46/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v46/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v46/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v46/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v46/constructors/inputBotInlineMessageText.md index 5bb83dc6..4570f6c5 100644 --- a/old_docs/API_docs_v46/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v46/constructors/inputBotInlineMessageText.md @@ -23,7 +23,7 @@ description: inputBotInlineMessageText attributes, type and example ### Example: ``` -$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity]]; +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/inputChatPhoto.md b/old_docs/API_docs_v46/constructors/inputChatPhoto.md index 4cd81a7c..f10e2da3 100644 --- a/old_docs/API_docs_v46/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v46/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v46/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v46/constructors/inputChatUploadedPhoto.md index 3d88ac48..13857e71 100644 --- a/old_docs/API_docs_v46/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v46/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v46/constructors/inputMediaDocument.md b/old_docs/API_docs_v46/constructors/inputMediaDocument.md index 6d19ae2d..ee3ed352 100644 --- a/old_docs/API_docs_v46/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v46/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|document\_id|[InputDocument](../types/InputDocument.md) | Optional| +|document\_id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v46/constructors/inputMediaPhoto.md b/old_docs/API_docs_v46/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v46/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v46/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v46/constructors/inputMediaUploadedAudio.md b/old_docs/API_docs_v46/constructors/inputMediaUploadedAudio.md index bbbe18a2..8fe9138e 100644 --- a/old_docs/API_docs_v46/constructors/inputMediaUploadedAudio.md +++ b/old_docs/API_docs_v46/constructors/inputMediaUploadedAudio.md @@ -11,9 +11,9 @@ description: inputMediaUploadedAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| diff --git a/old_docs/API_docs_v46/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v46/constructors/inputMediaUploadedDocument.md index 7826457d..675f2562 100644 --- a/old_docs/API_docs_v46/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v46/constructors/inputMediaUploadedDocument.md @@ -11,8 +11,8 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| @@ -24,7 +24,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string']; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v46/constructors/inputMediaUploadedPhoto.md index 42408b9f..58ae37cf 100644 --- a/old_docs/API_docs_v46/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v46/constructors/inputMediaUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v46/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v46/constructors/inputMediaUploadedThumbDocument.md index e0c31f26..ffd8fbff 100644 --- a/old_docs/API_docs_v46/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v46/constructors/inputMediaUploadedThumbDocument.md @@ -11,9 +11,9 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| @@ -25,7 +25,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string']; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/inputMediaUploadedThumbVideo.md b/old_docs/API_docs_v46/constructors/inputMediaUploadedThumbVideo.md index e7a9ae2b..47506b52 100644 --- a/old_docs/API_docs_v46/constructors/inputMediaUploadedThumbVideo.md +++ b/old_docs/API_docs_v46/constructors/inputMediaUploadedThumbVideo.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v46/constructors/inputMediaUploadedVideo.md b/old_docs/API_docs_v46/constructors/inputMediaUploadedVideo.md index 427c5113..e0e36e91 100644 --- a/old_docs/API_docs_v46/constructors/inputMediaUploadedVideo.md +++ b/old_docs/API_docs_v46/constructors/inputMediaUploadedVideo.md @@ -11,11 +11,11 @@ description: inputMediaUploadedVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |duration|[int](../types/int.md) | Yes| |w|[int](../types/int.md) | Yes| |h|[int](../types/int.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v46/constructors/inputNotifyPeer.md b/old_docs/API_docs_v46/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v46/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v46/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v46/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v46/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v46/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v46/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v46/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v46/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v46/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/keyboardButtonRow.md b/old_docs/API_docs_v46/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v46/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v46/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/message.md b/old_docs/API_docs_v46/constructors/message.md index 89959d66..4f7d7403 100644 --- a/old_docs/API_docs_v46/constructors/message.md +++ b/old_docs/API_docs_v46/constructors/message.md @@ -37,7 +37,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => Peer, 'fwd_date' => int, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'views' => int]; +$message = ['_' => 'message', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => Peer, 'fwd_date' => int, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'views' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v46/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v46/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v46/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/messageActionChatCreate.md b/old_docs/API_docs_v46/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v46/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v46/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/messages_allStickers.md b/old_docs/API_docs_v46/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/old_docs/API_docs_v46/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v46/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/messages_botResults.md b/old_docs/API_docs_v46/constructors/messages_botResults.md index ff47e134..09faa057 100644 --- a/old_docs/API_docs_v46/constructors/messages_botResults.md +++ b/old_docs/API_docs_v46/constructors/messages_botResults.md @@ -24,7 +24,7 @@ description: messages_botResults attributes, type and example ### Example: ``` -$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'results' => [BotInlineResult]]; +$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'results' => [BotInlineResult, BotInlineResult]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/messages_channelMessages.md b/old_docs/API_docs_v46/constructors/messages_channelMessages.md index e12420fe..69ba09d4 100644 --- a/old_docs/API_docs_v46/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v46/constructors/messages_channelMessages.md @@ -26,7 +26,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'collapsed' => [MessageGroup], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'collapsed' => [MessageGroup, MessageGroup], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/messages_chatFull.md b/old_docs/API_docs_v46/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v46/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v46/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/messages_chats.md b/old_docs/API_docs_v46/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v46/constructors/messages_chats.md +++ b/old_docs/API_docs_v46/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/messages_dialogs.md b/old_docs/API_docs_v46/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v46/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v46/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v46/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v46/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v46/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v46/constructors/messages_foundGifs.md b/old_docs/API_docs_v46/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/old_docs/API_docs_v46/constructors/messages_foundGifs.md +++ b/old_docs/API_docs_v46/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/messages_messages.md b/old_docs/API_docs_v46/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v46/constructors/messages_messages.md +++ b/old_docs/API_docs_v46/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/messages_messagesSlice.md b/old_docs/API_docs_v46/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v46/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v46/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/messages_savedGifs.md b/old_docs/API_docs_v46/constructors/messages_savedGifs.md index 7e2a00eb..b4ff040d 100644 --- a/old_docs/API_docs_v46/constructors/messages_savedGifs.md +++ b/old_docs/API_docs_v46/constructors/messages_savedGifs.md @@ -22,7 +22,7 @@ description: messages_savedGifs attributes, type and example ### Example: ``` -$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document]]; +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/messages_stickerSet.md b/old_docs/API_docs_v46/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v46/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v46/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/messages_stickers.md b/old_docs/API_docs_v46/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v46/constructors/messages_stickers.md +++ b/old_docs/API_docs_v46/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/photo.md b/old_docs/API_docs_v46/constructors/photo.md index f2bdf059..7212469f 100644 --- a/old_docs/API_docs_v46/constructors/photo.md +++ b/old_docs/API_docs_v46/constructors/photo.md @@ -24,7 +24,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/photos_photo.md b/old_docs/API_docs_v46/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v46/constructors/photos_photo.md +++ b/old_docs/API_docs_v46/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/photos_photos.md b/old_docs/API_docs_v46/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v46/constructors/photos_photos.md +++ b/old_docs/API_docs_v46/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/photos_photosSlice.md b/old_docs/API_docs_v46/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v46/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v46/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v46/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v46/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v46/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v46/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v46/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v46/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v46/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v46/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v46/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/stickerPack.md b/old_docs/API_docs_v46/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v46/constructors/stickerPack.md +++ b/old_docs/API_docs_v46/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/updateDcOptions.md b/old_docs/API_docs_v46/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v46/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v46/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v46/constructors/updateDeleteChannelMessages.md index 81f6f203..d79e844c 100644 --- a/old_docs/API_docs_v46/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v46/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'channel_pts' => int, 'channel_pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'channel_pts' => int, 'channel_pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/updateDeleteMessages.md b/old_docs/API_docs_v46/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v46/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v46/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/updatePrivacy.md b/old_docs/API_docs_v46/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v46/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v46/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v46/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v46/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v46/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/updateShortChatMessage.md b/old_docs/API_docs_v46/constructors/updateShortChatMessage.md index 86d56bf2..57b44c6e 100644 --- a/old_docs/API_docs_v46/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v46/constructors/updateShortChatMessage.md @@ -36,7 +36,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity]]; +$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/updateShortMessage.md b/old_docs/API_docs_v46/constructors/updateShortMessage.md index 847278b4..d2137257 100644 --- a/old_docs/API_docs_v46/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v46/constructors/updateShortMessage.md @@ -35,7 +35,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$updateShortMessage = ['_' => 'updateShortMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'user_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity]]; +$updateShortMessage = ['_' => 'updateShortMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'user_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/updateShortSentMessage.md b/old_docs/API_docs_v46/constructors/updateShortSentMessage.md index e2068f9f..16dc73b4 100644 --- a/old_docs/API_docs_v46/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v46/constructors/updateShortSentMessage.md @@ -28,7 +28,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'unread' => Bool, 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'unread' => Bool, 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v46/constructors/updateStickerSetsOrder.md index 853e8658..260af879 100644 --- a/old_docs/API_docs_v46/constructors/updateStickerSetsOrder.md +++ b/old_docs/API_docs_v46/constructors/updateStickerSetsOrder.md @@ -21,7 +21,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/updates.md b/old_docs/API_docs_v46/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v46/constructors/updates.md +++ b/old_docs/API_docs_v46/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/updatesCombined.md b/old_docs/API_docs_v46/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v46/constructors/updatesCombined.md +++ b/old_docs/API_docs_v46/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v46/constructors/updates_channelDifference.md b/old_docs/API_docs_v46/constructors/updates_channelDifference.md index 8435fdff..8d08b323 100644 --- a/old_docs/API_docs_v46/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v46/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'channel_pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'channel_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: diff --git a/old_docs/API_docs_v46/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v46/constructors/updates_channelDifferenceTooLong.md index d9f17b58..c03ad2b0 100644 --- a/old_docs/API_docs_v46/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v46/constructors/updates_channelDifferenceTooLong.md @@ -31,7 +31,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'final' => Bool, 'channel_pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'final' => Bool, 'channel_pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/constructors/updates_difference.md b/old_docs/API_docs_v46/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v46/constructors/updates_difference.md +++ b/old_docs/API_docs_v46/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v46/constructors/updates_differenceSlice.md b/old_docs/API_docs_v46/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v46/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v46/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v46/constructors/wallPaper.md b/old_docs/API_docs_v46/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v46/constructors/wallPaper.md +++ b/old_docs/API_docs_v46/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v46/methods/README.md b/old_docs/API_docs_v46/methods/README.md index 1972ae95..21b31dd7 100644 --- a/old_docs/API_docs_v46/methods/README.md +++ b/old_docs/API_docs_v46/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v46/methods/account_changePhone.md b/old_docs/API_docs_v46/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v46/methods/account_changePhone.md +++ b/old_docs/API_docs_v46/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_checkUsername.md b/old_docs/API_docs_v46/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v46/methods/account_checkUsername.md +++ b/old_docs/API_docs_v46/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_deleteAccount.md b/old_docs/API_docs_v46/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v46/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v46/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_getAccountTTL.md b/old_docs/API_docs_v46/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v46/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v46/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v46/methods/account_getAuthorizations.md b/old_docs/API_docs_v46/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v46/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v46/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v46/methods/account_getNotifySettings.md b/old_docs/API_docs_v46/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v46/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v46/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_getPassword.md b/old_docs/API_docs_v46/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v46/methods/account_getPassword.md +++ b/old_docs/API_docs_v46/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v46/methods/account_getPasswordSettings.md b/old_docs/API_docs_v46/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v46/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v46/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_getPrivacy.md b/old_docs/API_docs_v46/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v46/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v46/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_getWallPapers.md b/old_docs/API_docs_v46/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v46/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v46/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v46/methods/account_registerDevice.md b/old_docs/API_docs_v46/methods/account_registerDevice.md index cfa1546c..5c86d74c 100644 --- a/old_docs/API_docs_v46/methods/account_registerDevice.md +++ b/old_docs/API_docs_v46/methods/account_registerDevice.md @@ -1,22 +1,24 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|app\_sandbox|[Bool](../types/Bool.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| +|device\_model|[string](../types/string.md) | Yes|| +|system\_version|[string](../types/string.md) | Yes|| +|app\_version|[string](../types/string.md) | Yes|| +|app\_sandbox|[Bool](../types/Bool.md) | Yes|Should the app run in a sandbox?| +|lang\_code|[string](../types/string.md) | Yes|| ### Return type: [Bool](../types/Bool.md) @@ -35,13 +37,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_reportPeer.md b/old_docs/API_docs_v46/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v46/methods/account_reportPeer.md +++ b/old_docs/API_docs_v46/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_resetAuthorization.md b/old_docs/API_docs_v46/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v46/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v46/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_resetNotifySettings.md b/old_docs/API_docs_v46/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v46/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v46/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md index ad611a8b..b5258245 100644 --- a/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md @@ -1,16 +1,18 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|New phone number| ### Return type: [account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) @@ -29,13 +31,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_setAccountTTL.md b/old_docs/API_docs_v46/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v46/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v46/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_setPrivacy.md b/old_docs/API_docs_v46/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v46/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v46/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/account_unregisterDevice.md b/old_docs/API_docs_v46/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v46/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v46/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v46/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v46/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v46/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_updateNotifySettings.md b/old_docs/API_docs_v46/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v46/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v46/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_updateProfile.md b/old_docs/API_docs_v46/methods/account_updateProfile.md index 123ed13a..7f8d80c5 100644 --- a/old_docs/API_docs_v46/methods/account_updateProfile.md +++ b/old_docs/API_docs_v46/methods/account_updateProfile.md @@ -1,17 +1,19 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Yes| -|last\_name|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Yes|The first name| +|last\_name|[string](../types/string.md) | Yes|The last name| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_updateStatus.md b/old_docs/API_docs_v46/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v46/methods/account_updateStatus.md +++ b/old_docs/API_docs_v46/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v46/methods/account_updateUsername.md b/old_docs/API_docs_v46/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v46/methods/account_updateUsername.md +++ b/old_docs/API_docs_v46/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v46/methods/auth_checkPassword.md b/old_docs/API_docs_v46/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v46/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v46/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v46/methods/auth_checkPhone.md b/old_docs/API_docs_v46/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v46/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v46/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/auth_exportAuthorization.md b/old_docs/API_docs_v46/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v46/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v46/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v46/methods/auth_importAuthorization.md b/old_docs/API_docs_v46/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v46/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v46/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v46/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v46/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v46/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v46/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v46/methods/auth_logOut.md b/old_docs/API_docs_v46/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v46/methods/auth_logOut.md +++ b/old_docs/API_docs_v46/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v46/methods/auth_recoverPassword.md b/old_docs/API_docs_v46/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v46/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v46/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v46/methods/auth_sendCall.md b/old_docs/API_docs_v46/methods/auth_sendCall.md index 386cfad4..94ed6b7f 100644 --- a/old_docs/API_docs_v46/methods/auth_sendCall.md +++ b/old_docs/API_docs_v46/methods/auth_sendCall.md @@ -23,16 +23,18 @@ description: auth.sendCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/auth_sendCode.md b/old_docs/API_docs_v46/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v46/methods/auth_sendCode.md +++ b/old_docs/API_docs_v46/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v46/methods/auth_sendInvites.md b/old_docs/API_docs_v46/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v46/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v46/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/auth_sendSms.md b/old_docs/API_docs_v46/methods/auth_sendSms.md index 9a214e65..0c4a7343 100644 --- a/old_docs/API_docs_v46/methods/auth_sendSms.md +++ b/old_docs/API_docs_v46/methods/auth_sendSms.md @@ -23,16 +23,18 @@ description: auth.sendSms parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/auth_signIn.md b/old_docs/API_docs_v46/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v46/methods/auth_signIn.md +++ b/old_docs/API_docs_v46/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v46/methods/auth_signUp.md b/old_docs/API_docs_v46/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v46/methods/auth_signUp.md +++ b/old_docs/API_docs_v46/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v46/methods/channels_checkUsername.md b/old_docs/API_docs_v46/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v46/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v46/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_createChannel.md b/old_docs/API_docs_v46/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v46/methods/channels_createChannel.md +++ b/old_docs/API_docs_v46/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_deleteChannel.md b/old_docs/API_docs_v46/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v46/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_deleteMessages.md b/old_docs/API_docs_v46/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v46/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_editAbout.md b/old_docs/API_docs_v46/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v46/methods/channels_editAbout.md +++ b/old_docs/API_docs_v46/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_editAdmin.md b/old_docs/API_docs_v46/methods/channels_editAdmin.md index c62597e1..146159d9 100644 --- a/old_docs/API_docs_v46/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v46/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |role|[ChannelParticipantRole](../types/ChannelParticipantRole.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_editPhoto.md b/old_docs/API_docs_v46/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v46/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v46/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_editTitle.md b/old_docs/API_docs_v46/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v46/methods/channels_editTitle.md +++ b/old_docs/API_docs_v46/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_exportInvite.md b/old_docs/API_docs_v46/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v46/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v46/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_getChannels.md b/old_docs/API_docs_v46/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v46/methods/channels_getChannels.md +++ b/old_docs/API_docs_v46/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/channels_getDialogs.md b/old_docs/API_docs_v46/methods/channels_getDialogs.md index 916f9b34..7c1464f8 100644 --- a/old_docs/API_docs_v46/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v46/methods/channels_getDialogs.md @@ -23,16 +23,18 @@ description: channels.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->channels->getDialogs(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_getFullChannel.md b/old_docs/API_docs_v46/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v46/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v46/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v46/methods/channels_getImportantHistory.md b/old_docs/API_docs_v46/methods/channels_getImportantHistory.md index 2f489487..6dc710fb 100644 --- a/old_docs/API_docs_v46/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v46/methods/channels_getImportantHistory.md @@ -10,7 +10,7 @@ description: channels.getImportantHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -27,16 +27,18 @@ description: channels.getImportantHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getImportantHistory(['channel' => InputChannel, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_getMessages.md b/old_docs/API_docs_v46/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v46/methods/channels_getMessages.md +++ b/old_docs/API_docs_v46/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/channels_getParticipant.md b/old_docs/API_docs_v46/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v46/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v46/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_getParticipants.md b/old_docs/API_docs_v46/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v46/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v46/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_inviteToChannel.md b/old_docs/API_docs_v46/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v46/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v46/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/channels_joinChannel.md b/old_docs/API_docs_v46/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v46/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v46/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_kickFromChannel.md b/old_docs/API_docs_v46/methods/channels_kickFromChannel.md index a2182df8..e4b68581 100644 --- a/old_docs/API_docs_v46/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v46/methods/channels_kickFromChannel.md @@ -10,8 +10,8 @@ description: channels.kickFromChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |kicked|[Bool](../types/Bool.md) | Yes| @@ -24,16 +24,18 @@ description: channels.kickFromChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_leaveChannel.md b/old_docs/API_docs_v46/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v46/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v46/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_readHistory.md b/old_docs/API_docs_v46/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v46/methods/channels_readHistory.md +++ b/old_docs/API_docs_v46/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_reportSpam.md b/old_docs/API_docs_v46/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v46/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v46/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/channels_toggleComments.md b/old_docs/API_docs_v46/methods/channels_toggleComments.md index ce4207db..8b77db49 100644 --- a/old_docs/API_docs_v46/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v46/methods/channels_toggleComments.md @@ -10,7 +10,7 @@ description: channels.toggleComments parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -23,16 +23,18 @@ description: channels.toggleComments parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleComments(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v46/methods/channels_updateUsername.md b/old_docs/API_docs_v46/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v46/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v46/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/contacts_block.md b/old_docs/API_docs_v46/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v46/methods/contacts_block.md +++ b/old_docs/API_docs_v46/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v46/methods/contacts_deleteContact.md b/old_docs/API_docs_v46/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v46/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v46/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v46/methods/contacts_deleteContacts.md b/old_docs/API_docs_v46/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v46/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v46/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/contacts_exportCard.md b/old_docs/API_docs_v46/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v46/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v46/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v46/methods/contacts_getBlocked.md b/old_docs/API_docs_v46/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v46/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v46/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/contacts_getContacts.md b/old_docs/API_docs_v46/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v46/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v46/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/contacts_getStatuses.md b/old_docs/API_docs_v46/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v46/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v46/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v46/methods/contacts_getSuggested.md b/old_docs/API_docs_v46/methods/contacts_getSuggested.md index 2059c01b..7249b1f2 100644 --- a/old_docs/API_docs_v46/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v46/methods/contacts_getSuggested.md @@ -22,16 +22,18 @@ description: contacts.getSuggested parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/contacts_importCard.md b/old_docs/API_docs_v46/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v46/methods/contacts_importCard.md +++ b/old_docs/API_docs_v46/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/contacts_importContacts.md b/old_docs/API_docs_v46/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v46/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v46/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/contacts_resolveUsername.md b/old_docs/API_docs_v46/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v46/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v46/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v46/methods/contacts_search.md b/old_docs/API_docs_v46/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v46/methods/contacts_search.md +++ b/old_docs/API_docs_v46/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/contacts_unblock.md b/old_docs/API_docs_v46/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v46/methods/contacts_unblock.md +++ b/old_docs/API_docs_v46/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v46/methods/help_getAppChangelog.md b/old_docs/API_docs_v46/methods/help_getAppChangelog.md index b27cc9f0..d69a61cb 100644 --- a/old_docs/API_docs_v46/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v46/methods/help_getAppChangelog.md @@ -25,13 +25,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/help_getAppUpdate.md b/old_docs/API_docs_v46/methods/help_getAppUpdate.md index 7b3bdde9..f9b06641 100644 --- a/old_docs/API_docs_v46/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v46/methods/help_getAppUpdate.md @@ -25,13 +25,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/help_getConfig.md b/old_docs/API_docs_v46/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v46/methods/help_getConfig.md +++ b/old_docs/API_docs_v46/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v46/methods/help_getInviteText.md b/old_docs/API_docs_v46/methods/help_getInviteText.md index 40251dd5..bac72a15 100644 --- a/old_docs/API_docs_v46/methods/help_getInviteText.md +++ b/old_docs/API_docs_v46/methods/help_getInviteText.md @@ -22,13 +22,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/help_getNearestDc.md b/old_docs/API_docs_v46/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v46/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v46/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v46/methods/help_getSupport.md b/old_docs/API_docs_v46/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v46/methods/help_getSupport.md +++ b/old_docs/API_docs_v46/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v46/methods/help_getTermsOfService.md b/old_docs/API_docs_v46/methods/help_getTermsOfService.md index 1e8899a2..56a75769 100644 --- a/old_docs/API_docs_v46/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v46/methods/help_getTermsOfService.md @@ -22,13 +22,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/help_saveAppLog.md b/old_docs/API_docs_v46/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v46/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v46/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/initConnection.md b/old_docs/API_docs_v46/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v46/methods/initConnection.md +++ b/old_docs/API_docs_v46/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v46/methods/invokeAfterMsg.md b/old_docs/API_docs_v46/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v46/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v46/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v46/methods/invokeAfterMsgs.md b/old_docs/API_docs_v46/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v46/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v46/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/invokeWithLayer.md b/old_docs/API_docs_v46/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v46/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v46/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v46/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v46/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v46/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v46/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_acceptEncryption.md b/old_docs/API_docs_v46/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v46/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v46/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v46/methods/messages_addChatUser.md b/old_docs/API_docs_v46/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v46/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v46/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_checkChatInvite.md b/old_docs/API_docs_v46/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v46/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_createChat.md b/old_docs/API_docs_v46/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v46/methods/messages_createChat.md +++ b/old_docs/API_docs_v46/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/messages_deleteChatUser.md b/old_docs/API_docs_v46/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v46/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v46/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_deleteHistory.md b/old_docs/API_docs_v46/methods/messages_deleteHistory.md index 598ce5c6..e2e60c49 100644 --- a/old_docs/API_docs_v46/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v46/methods/messages_deleteHistory.md @@ -10,7 +10,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_deleteMessages.md b/old_docs/API_docs_v46/methods/messages_deleteMessages.md index 38b3ca09..12347c81 100644 --- a/old_docs/API_docs_v46/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v46/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/messages_discardEncryption.md b/old_docs/API_docs_v46/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v46/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v46/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v46/methods/messages_editChatAdmin.md b/old_docs/API_docs_v46/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v46/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v46/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_editChatPhoto.md b/old_docs/API_docs_v46/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v46/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v46/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_editChatTitle.md b/old_docs/API_docs_v46/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v46/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v46/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_exportChatInvite.md b/old_docs/API_docs_v46/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v46/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_forwardMessage.md b/old_docs/API_docs_v46/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v46/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v46/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_forwardMessages.md b/old_docs/API_docs_v46/methods/messages_forwardMessages.md index fc7891c6..2f759375 100644 --- a/old_docs/API_docs_v46/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v46/methods/messages_forwardMessages.md @@ -11,9 +11,9 @@ description: messages.forwardMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |broadcast|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -53,18 +53,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/messages_getAllStickers.md b/old_docs/API_docs_v46/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/old_docs/API_docs_v46/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v46/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_getChats.md b/old_docs/API_docs_v46/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v46/methods/messages_getChats.md +++ b/old_docs/API_docs_v46/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/messages_getDhConfig.md b/old_docs/API_docs_v46/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v46/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v46/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_getDialogs.md b/old_docs/API_docs_v46/methods/messages_getDialogs.md index 934e3b80..323bb791 100644 --- a/old_docs/API_docs_v46/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v46/methods/messages_getDialogs.md @@ -12,7 +12,7 @@ description: messages.getDialogs parameters, return type and example |----------|---------------|----------| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -35,13 +35,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_getFullChat.md b/old_docs/API_docs_v46/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v46/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v46/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v46/methods/messages_getHistory.md b/old_docs/API_docs_v46/methods/messages_getHistory.md index 11d8333f..c306f02c 100644 --- a/old_docs/API_docs_v46/methods/messages_getHistory.md +++ b/old_docs/API_docs_v46/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md index 193aebe1..9624ba3b 100644 --- a/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md @@ -10,7 +10,7 @@ description: messages.getInlineBotResults parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |query|[string](../types/string.md) | Yes| |offset|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.getInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'query' => 'string', 'offset' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_getMessages.md b/old_docs/API_docs_v46/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v46/methods/messages_getMessages.md +++ b/old_docs/API_docs_v46/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/messages_getMessagesViews.md b/old_docs/API_docs_v46/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v46/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v46/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/messages_getSavedGifs.md b/old_docs/API_docs_v46/methods/messages_getSavedGifs.md index 4986d812..bcb4590d 100644 --- a/old_docs/API_docs_v46/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v46/methods/messages_getSavedGifs.md @@ -22,13 +22,18 @@ description: messages.getSavedGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_getStickerSet.md b/old_docs/API_docs_v46/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v46/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v46/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_getStickers.md b/old_docs/API_docs_v46/methods/messages_getStickers.md index 1587cd01..6ac68c87 100644 --- a/old_docs/API_docs_v46/methods/messages_getStickers.md +++ b/old_docs/API_docs_v46/methods/messages_getStickers.md @@ -23,16 +23,18 @@ description: messages.getStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v46/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v46/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v46/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_importChatInvite.md b/old_docs/API_docs_v46/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v46/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_installStickerSet.md b/old_docs/API_docs_v46/methods/messages_installStickerSet.md index 1a31c0e7..ccabd393 100644 --- a/old_docs/API_docs_v46/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v46/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_migrateChat.md b/old_docs/API_docs_v46/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v46/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v46/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_readHistory.md b/old_docs/API_docs_v46/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v46/methods/messages_readHistory.md +++ b/old_docs/API_docs_v46/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_readMessageContents.md b/old_docs/API_docs_v46/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v46/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v46/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/messages_receivedMessages.md b/old_docs/API_docs_v46/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v46/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v46/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_receivedQueue.md b/old_docs/API_docs_v46/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v46/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v46/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v46/methods/messages_reorderStickerSets.md index e09057e7..eee7d0f2 100644 --- a/old_docs/API_docs_v46/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v46/methods/messages_reorderStickerSets.md @@ -22,15 +22,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/messages_reportSpam.md b/old_docs/API_docs_v46/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v46/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v46/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_requestEncryption.md b/old_docs/API_docs_v46/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v46/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v46/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v46/methods/messages_saveGif.md b/old_docs/API_docs_v46/methods/messages_saveGif.md index b3673c91..725bc949 100644 --- a/old_docs/API_docs_v46/methods/messages_saveGif.md +++ b/old_docs/API_docs_v46/methods/messages_saveGif.md @@ -10,7 +10,7 @@ description: messages.saveGif parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveGif parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_search.md b/old_docs/API_docs_v46/methods/messages_search.md index b23dd186..c2a822a1 100644 --- a/old_docs/API_docs_v46/methods/messages_search.md +++ b/old_docs/API_docs_v46/methods/messages_search.md @@ -11,7 +11,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |important\_only|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -43,13 +43,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['important_only' => Bool, 'peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_searchGifs.md b/old_docs/API_docs_v46/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/old_docs/API_docs_v46/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v46/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_searchGlobal.md b/old_docs/API_docs_v46/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v46/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v46/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_sendBroadcast.md b/old_docs/API_docs_v46/methods/messages_sendBroadcast.md index 725d1f34..0ab60e43 100644 --- a/old_docs/API_docs_v46/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v46/methods/messages_sendBroadcast.md @@ -10,9 +10,9 @@ description: messages.sendBroadcast parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|contacts|Array of [InputUser](../types/InputUser.md) | Yes| +|contacts|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |message|[string](../types/string.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -24,18 +24,20 @@ description: messages.sendBroadcast parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser], 'message' => 'string', 'media' => InputMedia, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/messages_sendEncrypted.md b/old_docs/API_docs_v46/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md index 49238a18..5a964759 100644 --- a/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md @@ -11,7 +11,7 @@ description: messages.sendInlineBotResult parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |broadcast|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |query\_id|[long](../types/long.md) | Yes| |id|[string](../types/string.md) | Yes| @@ -38,13 +38,18 @@ description: messages.sendInlineBotResult parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_sendMedia.md b/old_docs/API_docs_v46/methods/messages_sendMedia.md index 67ba198c..f153e219 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v46/methods/messages_sendMedia.md @@ -11,9 +11,9 @@ description: messages.sendMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |broadcast|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -54,16 +54,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_sendMessage.md b/old_docs/API_docs_v46/methods/messages_sendMessage.md index 09f0e627..c4dc2cd5 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v46/methods/messages_sendMessage.md @@ -12,7 +12,7 @@ description: messages.sendMessage parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |broadcast|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -48,6 +48,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -55,18 +56,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md index 94fa85b8..f86366b8 100644 --- a/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md @@ -44,18 +44,20 @@ description: messages.setInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/messages_setTyping.md b/old_docs/API_docs_v46/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v46/methods/messages_setTyping.md +++ b/old_docs/API_docs_v46/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_startBot.md b/old_docs/API_docs_v46/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v46/methods/messages_startBot.md +++ b/old_docs/API_docs_v46/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v46/methods/photos_deletePhotos.md b/old_docs/API_docs_v46/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v46/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v46/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/methods/photos_getUserPhotos.md b/old_docs/API_docs_v46/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v46/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v46/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v46/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v46/methods/photos_updateProfilePhoto.md index d3acbb56..fbe84e26 100644 --- a/old_docs/API_docs_v46/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v46/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -23,13 +23,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md index de7c2281..303ed4ea 100644 --- a/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -35,13 +35,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v46/methods/updates_getChannelDifference.md b/old_docs/API_docs_v46/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v46/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v46/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v46/methods/updates_getDifference.md b/old_docs/API_docs_v46/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v46/methods/updates_getDifference.md +++ b/old_docs/API_docs_v46/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v46/methods/updates_getState.md b/old_docs/API_docs_v46/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v46/methods/updates_getState.md +++ b/old_docs/API_docs_v46/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v46/methods/upload_getFile.md b/old_docs/API_docs_v46/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v46/methods/upload_getFile.md +++ b/old_docs/API_docs_v46/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v46/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v46/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v46/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v46/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v46/methods/upload_saveFilePart.md b/old_docs/API_docs_v46/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v46/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v46/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v46/methods/users_getFullUser.md b/old_docs/API_docs_v46/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v46/methods/users_getFullUser.md +++ b/old_docs/API_docs_v46/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v46/methods/users_getUsers.md b/old_docs/API_docs_v46/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v46/methods/users_getUsers.md +++ b/old_docs/API_docs_v46/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v46/types/Chat.md b/old_docs/API_docs_v46/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v46/types/Chat.md +++ b/old_docs/API_docs_v46/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v46/types/InputChannel.md b/old_docs/API_docs_v46/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v46/types/InputChannel.md +++ b/old_docs/API_docs_v46/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v46/types/InputDocument.md b/old_docs/API_docs_v46/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v46/types/InputDocument.md +++ b/old_docs/API_docs_v46/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v46/types/InputEncryptedChat.md b/old_docs/API_docs_v46/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v46/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v46/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v46/types/InputEncryptedFile.md b/old_docs/API_docs_v46/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v46/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v46/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v46/types/InputFile.md b/old_docs/API_docs_v46/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v46/types/InputFile.md +++ b/old_docs/API_docs_v46/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v46/types/InputMedia.md b/old_docs/API_docs_v46/types/InputMedia.md index 7a5faa1c..d2aad16e 100644 --- a/old_docs/API_docs_v46/types/InputMedia.md +++ b/old_docs/API_docs_v46/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v46/types/InputPeer.md b/old_docs/API_docs_v46/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v46/types/InputPeer.md +++ b/old_docs/API_docs_v46/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v46/types/InputPhoto.md b/old_docs/API_docs_v46/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v46/types/InputPhoto.md +++ b/old_docs/API_docs_v46/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v46/types/InputUser.md b/old_docs/API_docs_v46/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v46/types/InputUser.md +++ b/old_docs/API_docs_v46/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v46/types/Peer.md b/old_docs/API_docs_v46/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v46/types/Peer.md +++ b/old_docs/API_docs_v46/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v46/types/User.md b/old_docs/API_docs_v46/types/User.md index d696a931..f748d04a 100644 --- a/old_docs/API_docs_v46/types/User.md +++ b/old_docs/API_docs_v46/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v51/Lang.php b/old_docs/API_docs_v51/Lang.php new file mode 100644 index 00000000..f054a0de --- /dev/null +++ b/old_docs/API_docs_v51/Lang.php @@ -0,0 +1,2348 @@ +. + */ + +namespace danog\MadelineProto; + +class Lang +{ + public static $lang = array ( + 'it' => + array ( + 'phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istanziamento dei DataCenter...', + 'load_rsa' => 'Caricamento delle chiavi RSA...', + 'TL_translation' => 'Translazione degli schemi TL...', + 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', + 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', + 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', + 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', + 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', + 'threading_on' => 'IL THREADING È ABILITATO', + 'socket_reader' => 'Lettore socket su DC %s: ', + 'socket_status_1' => 'CREAZIONE', + 'socket_status_2' => 'INVIO', + 'socket_status_3' => 'ATTESA', + 'socket_status_4' => 'PRONTO', + 'socket_status_5' => 'AVVIATO', + 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', + 'session_corrupted' => 'La sessione si è corrotta!', + 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', + 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', + 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', + 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', + 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', + 'config_updated' => 'La configurazione è stata aggiornata!', + 'length_not_4' => 'La lunghezza non è uguale a 4', + 'length_not_8' => 'La lunghezza non è uguale a 8', + 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', + 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', + 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', + 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', + 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', + 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', + 'file_not_exist' => 'Il file specificato non esiste', + 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', + 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', + 'loading_key' => 'Caricamento della chiave in corso...', + 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', + 'rsa_encrypting' => 'Criptando con chiave RSA...', + 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', + 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', + 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', + 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', + 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', + 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', + 'socket_con_error' => 'Connessione fallita.', + 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', + 'protocol_invalid' => 'È stato fornito un protocollo non valido', + 'nothing_in_socket' => 'Non c\'è niente nel socket!', + 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', + 'no_data_in_socket' => 'Non ci sono dati nel socket!', + 'dc_con_start' => 'Connessione al DC %s in corso...', + 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', + 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', + 'script_not_exist' => 'Lo script fornito non esiste', + 'apifactory_start' => 'Sto avviando la fabbrica di API...', + 'madelineproto_ready' => 'MadelineProto è pronto!', + 'logout_error' => 'C\'è stato un errore durante il logout!', + 'logout_ok' => 'Il logout è stato eseguito correttamente!', + 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', + 'login_ok' => 'Il login è stato eseguito correttamente!', + 'login_user' => 'Sto eseguendo il login come utente normale...', + 'login_bot' => 'Sto eseguendo il login come bot...', + 'login_code_sending' => 'Sto inviando il codice...', + 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', + 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', + 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', + 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', + 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', + 'not_logged_in' => 'Non ho ancora fatto il login!', + 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', + 'signing_up' => 'Mi sto registrando su telegram come utente normale...', + 'signup_ok' => 'Mi sono registrato su Telegram!', + '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', + 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', + 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', + 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', + 'calling_user' => 'Sto chiamando %s...', + 'generating_a' => 'Sto generando a...', + 'generating_g_a' => 'Sto generando g_a...', + 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', + 'accepting_call' => 'Sto accettando una chiamata da %s...', + 'generating_b' => 'Sto generando b...', + 'call_already_accepted' => 'La chiamata %s è già stata accettata.', + 'call_already_declined' => 'La chiamata %s è già stata annullata.', + 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', + 'call_confirming' => 'Sto confermando una chiamata da %s', + 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', + 'call_completing' => 'Sto completando una chiamata da %s...', + 'invalid_g_a' => 'g_a non valido!', + 'fingerprint_invalid' => 'fingerprint della chiave non valido!', + 'call_discarding' => 'Sto rifiutando la chiamata %s...', + 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', + 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', + 'TL_loading' => 'Sto caricando gli schemi TL...', + 'file_parsing' => 'Leggendo %s...', + 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', + 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', + 'translating_obj' => 'Traducendo gli oggetti...', + 'translating_methods' => 'Traducendo i metodi...', + 'bool_error' => 'Non sono riuscito ad estrarre un booleano', + 'not_numeric' => 'Il valore fornito non è numerico', + 'long_not_16' => 'Il valore fornito non è lungo 16 byte', + 'long_not_32' => 'Il valore fornito non è lungo 32 byte', + 'long_not_64' => 'Il valore fornito non è lungo 64 byte', + 'array_invalid' => 'Il valore fornito non è un array', + 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', + 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', + 'method_not_found' => 'Impossibile trovare il seguente metodo: ', + 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', + 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', + 'stream_handle_invalid' => 'Il valore fornito non è uno stream', + 'length_too_big' => 'Il valore fornito è troppo lungo', + 'deserialize_not_str' => 'Il valore generato non è una stringa', + 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', + 'vector_invalid' => 'ID vettore non valido: ', + 'constructor_not_found' => 'Costruttore non trovato per tipo: ', + 'rand_bytes_too_small' => 'random_bytes è troppo corto!', + 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', + 'non_text_conversion' => 'Non posso ancora convertire messaggi media', + 'last_byte_invalid' => 'L\'ultimo byte non è valido', + 'file_type_invalid' => 'È stato fornito un tipo file errato', + 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', + 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', + 'shutting_down_reader_pool' => 'Chisura pool di lettura', + 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', + 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', + 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', + 'msg_data_length_too_big' => 'message_data_length è troppo grande', + 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', + 'msg_key_mismatch' => 'msg_key non valido', + 'rand_bytes_too_short' => 'random_bytes è troppo corto!', + 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', + 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', + 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', + 'req_pq' => 'Sto richiedendo pq...', + 'done' => 'Fatto!', + 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', + 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!', + ), + 'en' => + array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', + 'method_messages.search_param_important_only' => '', + 'method_messages.sendMessage_param_broadcast' => '', + 'method_messages.sendMedia_param_broadcast' => '', + 'method_messages.forwardMessages_param_broadcast' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id' => '', + 'method_messages.deactivateChat_param_enabled' => '', + 'method_help.getTermsOfService_param_lang_code' => '', + 'method_messages.sendInlineBotResult_param_broadcast' => '', + 'method_channels.getImportantHistory_param_offset_date' => '', + ), +); + + // THIS WILL BE OVERWRITTEN BY $lang["en"] + public static $current_lang = array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', + 'method_messages.search_param_important_only' => '', + 'method_messages.sendMessage_param_broadcast' => '', + 'method_messages.sendMedia_param_broadcast' => '', + 'method_messages.forwardMessages_param_broadcast' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id' => '', + 'method_messages.deactivateChat_param_enabled' => '', + 'method_help.getTermsOfService_param_lang_code' => '', + 'method_messages.sendInlineBotResult_param_broadcast' => '', + 'method_channels.getImportantHistory_param_offset_date' => '', +); +} \ No newline at end of file diff --git a/old_docs/API_docs_v51/constructors/account_authorizations.md b/old_docs/API_docs_v51/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v51/constructors/account_authorizations.md +++ b/old_docs/API_docs_v51/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/account_privacyRules.md b/old_docs/API_docs_v51/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v51/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v51/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/botInfo.md b/old_docs/API_docs_v51/constructors/botInfo.md index bee4a540..25a27913 100644 --- a/old_docs/API_docs_v51/constructors/botInfo.md +++ b/old_docs/API_docs_v51/constructors/botInfo.md @@ -23,7 +23,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/botInlineMessageText.md b/old_docs/API_docs_v51/constructors/botInlineMessageText.md index dc00808b..feb5e9d0 100644 --- a/old_docs/API_docs_v51/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v51/constructors/botInlineMessageText.md @@ -24,7 +24,7 @@ description: botInlineMessageText attributes, type and example ### Example: ``` -$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/channelFull.md b/old_docs/API_docs_v51/constructors/channelFull.md index bd1aa982..317f38bc 100644 --- a/old_docs/API_docs_v51/constructors/channelFull.md +++ b/old_docs/API_docs_v51/constructors/channelFull.md @@ -37,7 +37,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_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]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/channelMessagesFilter.md b/old_docs/API_docs_v51/constructors/channelMessagesFilter.md index 56431ffb..e0a160e9 100644 --- a/old_docs/API_docs_v51/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v51/constructors/channelMessagesFilter.md @@ -23,7 +23,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'important_only' => Bool, 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'important_only' => Bool, 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/channels_channelParticipant.md b/old_docs/API_docs_v51/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v51/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v51/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/channels_channelParticipants.md b/old_docs/API_docs_v51/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v51/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v51/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/chatFull.md b/old_docs/API_docs_v51/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v51/constructors/chatFull.md +++ b/old_docs/API_docs_v51/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/chatParticipants.md b/old_docs/API_docs_v51/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v51/constructors/chatParticipants.md +++ b/old_docs/API_docs_v51/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/config.md b/old_docs/API_docs_v51/constructors/config.md index 1614f10d..1f8bd82f 100644 --- a/old_docs/API_docs_v51/constructors/config.md +++ b/old_docs/API_docs_v51/constructors/config.md @@ -40,7 +40,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/contacts_blocked.md b/old_docs/API_docs_v51/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v51/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v51/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v51/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v51/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v51/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/contacts_contacts.md b/old_docs/API_docs_v51/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v51/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v51/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/contacts_found.md b/old_docs/API_docs_v51/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v51/constructors/contacts_found.md +++ b/old_docs/API_docs_v51/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/contacts_importedContacts.md b/old_docs/API_docs_v51/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v51/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v51/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v51/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v51/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v51/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/document.md b/old_docs/API_docs_v51/constructors/document.md index 3a584537..21dc39bb 100644 --- a/old_docs/API_docs_v51/constructors/document.md +++ b/old_docs/API_docs_v51/constructors/document.md @@ -28,7 +28,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/documentAttributeAudio.md b/old_docs/API_docs_v51/constructors/documentAttributeAudio.md index 4d393890..ceb02cba 100644 --- a/old_docs/API_docs_v51/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v51/constructors/documentAttributeAudio.md @@ -12,7 +12,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| |voice|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Optional| |performer|[string](../types/string.md) | Optional| |waveform|[bytes](../types/bytes.md) | Optional| diff --git a/old_docs/API_docs_v51/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v51/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v51/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v51/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v51/constructors/documentAttributeVideo.md b/old_docs/API_docs_v51/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v51/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v51/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v51/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v51/constructors/inputBotInlineMessageText.md index 677e5d8c..ed3ddd1b 100644 --- a/old_docs/API_docs_v51/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v51/constructors/inputBotInlineMessageText.md @@ -24,7 +24,7 @@ description: inputBotInlineMessageText attributes, type and example ### Example: ``` -$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/inputBotInlineResultDocument.md b/old_docs/API_docs_v51/constructors/inputBotInlineResultDocument.md index 2315623b..f27421f9 100644 --- a/old_docs/API_docs_v51/constructors/inputBotInlineResultDocument.md +++ b/old_docs/API_docs_v51/constructors/inputBotInlineResultDocument.md @@ -15,7 +15,7 @@ description: inputBotInlineResultDocument attributes, type and example |type|[string](../types/string.md) | Yes| |title|[string](../types/string.md) | Optional| |description|[string](../types/string.md) | Optional| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v51/constructors/inputBotInlineResultPhoto.md b/old_docs/API_docs_v51/constructors/inputBotInlineResultPhoto.md index d39bd108..9628b4e5 100644 --- a/old_docs/API_docs_v51/constructors/inputBotInlineResultPhoto.md +++ b/old_docs/API_docs_v51/constructors/inputBotInlineResultPhoto.md @@ -13,7 +13,7 @@ description: inputBotInlineResultPhoto attributes, type and example |----------|---------------|----------| |id|[string](../types/string.md) | Yes| |type|[string](../types/string.md) | Yes| -|photo|[InputPhoto](../types/InputPhoto.md) | Optional| +|photo|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v51/constructors/inputChatPhoto.md b/old_docs/API_docs_v51/constructors/inputChatPhoto.md index 4cd81a7c..f10e2da3 100644 --- a/old_docs/API_docs_v51/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v51/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v51/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v51/constructors/inputChatUploadedPhoto.md index 3d88ac48..13857e71 100644 --- a/old_docs/API_docs_v51/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v51/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v51/constructors/inputMediaDocument.md b/old_docs/API_docs_v51/constructors/inputMediaDocument.md index 88fed980..66d0baba 100644 --- a/old_docs/API_docs_v51/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v51/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v51/constructors/inputMediaPhoto.md b/old_docs/API_docs_v51/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v51/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v51/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v51/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v51/constructors/inputMediaUploadedDocument.md index 7826457d..675f2562 100644 --- a/old_docs/API_docs_v51/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v51/constructors/inputMediaUploadedDocument.md @@ -11,8 +11,8 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| @@ -24,7 +24,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string']; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v51/constructors/inputMediaUploadedPhoto.md index 42408b9f..58ae37cf 100644 --- a/old_docs/API_docs_v51/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v51/constructors/inputMediaUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v51/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v51/constructors/inputMediaUploadedThumbDocument.md index e0c31f26..ffd8fbff 100644 --- a/old_docs/API_docs_v51/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v51/constructors/inputMediaUploadedThumbDocument.md @@ -11,9 +11,9 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| @@ -25,7 +25,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string']; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/inputNotifyPeer.md b/old_docs/API_docs_v51/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v51/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v51/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v51/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v51/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v51/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v51/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v51/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v51/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v51/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/keyboardButtonRow.md b/old_docs/API_docs_v51/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v51/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v51/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/message.md b/old_docs/API_docs_v51/constructors/message.md index 9c8b9030..085225d3 100644 --- a/old_docs/API_docs_v51/constructors/message.md +++ b/old_docs/API_docs_v51/constructors/message.md @@ -39,7 +39,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; +$message = ['_' => 'message', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v51/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v51/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v51/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/messageActionChatCreate.md b/old_docs/API_docs_v51/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v51/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v51/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/messages_allStickers.md b/old_docs/API_docs_v51/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/old_docs/API_docs_v51/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v51/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/messages_botResults.md b/old_docs/API_docs_v51/constructors/messages_botResults.md index 472e6dcd..0ae1091e 100644 --- a/old_docs/API_docs_v51/constructors/messages_botResults.md +++ b/old_docs/API_docs_v51/constructors/messages_botResults.md @@ -25,7 +25,7 @@ description: messages_botResults attributes, type and example ### Example: ``` -$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult]]; +$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult, BotInlineResult]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/messages_channelMessages.md b/old_docs/API_docs_v51/constructors/messages_channelMessages.md index e12420fe..69ba09d4 100644 --- a/old_docs/API_docs_v51/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v51/constructors/messages_channelMessages.md @@ -26,7 +26,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'collapsed' => [MessageGroup], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'collapsed' => [MessageGroup, MessageGroup], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/messages_chatFull.md b/old_docs/API_docs_v51/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v51/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v51/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/messages_chats.md b/old_docs/API_docs_v51/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v51/constructors/messages_chats.md +++ b/old_docs/API_docs_v51/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/messages_dialogs.md b/old_docs/API_docs_v51/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v51/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v51/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v51/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v51/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v51/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v51/constructors/messages_foundGifs.md b/old_docs/API_docs_v51/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/old_docs/API_docs_v51/constructors/messages_foundGifs.md +++ b/old_docs/API_docs_v51/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/messages_messages.md b/old_docs/API_docs_v51/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v51/constructors/messages_messages.md +++ b/old_docs/API_docs_v51/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/messages_messagesSlice.md b/old_docs/API_docs_v51/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v51/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v51/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/messages_savedGifs.md b/old_docs/API_docs_v51/constructors/messages_savedGifs.md index 7e2a00eb..b4ff040d 100644 --- a/old_docs/API_docs_v51/constructors/messages_savedGifs.md +++ b/old_docs/API_docs_v51/constructors/messages_savedGifs.md @@ -22,7 +22,7 @@ description: messages_savedGifs attributes, type and example ### Example: ``` -$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document]]; +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/messages_stickerSet.md b/old_docs/API_docs_v51/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v51/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v51/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/messages_stickers.md b/old_docs/API_docs_v51/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v51/constructors/messages_stickers.md +++ b/old_docs/API_docs_v51/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/photo.md b/old_docs/API_docs_v51/constructors/photo.md index f2bdf059..7212469f 100644 --- a/old_docs/API_docs_v51/constructors/photo.md +++ b/old_docs/API_docs_v51/constructors/photo.md @@ -24,7 +24,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/photos_photo.md b/old_docs/API_docs_v51/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v51/constructors/photos_photo.md +++ b/old_docs/API_docs_v51/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/photos_photos.md b/old_docs/API_docs_v51/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v51/constructors/photos_photos.md +++ b/old_docs/API_docs_v51/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/photos_photosSlice.md b/old_docs/API_docs_v51/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v51/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v51/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v51/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v51/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v51/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v51/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v51/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v51/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/replyInlineMarkup.md b/old_docs/API_docs_v51/constructors/replyInlineMarkup.md index 80d2ff77..95257485 100644 --- a/old_docs/API_docs_v51/constructors/replyInlineMarkup.md +++ b/old_docs/API_docs_v51/constructors/replyInlineMarkup.md @@ -21,7 +21,7 @@ description: replyInlineMarkup attributes, type and example ### Example: ``` -$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow]]; +$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v51/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v51/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v51/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/stickerPack.md b/old_docs/API_docs_v51/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v51/constructors/stickerPack.md +++ b/old_docs/API_docs_v51/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/updateDcOptions.md b/old_docs/API_docs_v51/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v51/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v51/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v51/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v51/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v51/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/updateDeleteMessages.md b/old_docs/API_docs_v51/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v51/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v51/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/updatePrivacy.md b/old_docs/API_docs_v51/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v51/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v51/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v51/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v51/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v51/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/updateShortChatMessage.md b/old_docs/API_docs_v51/constructors/updateShortChatMessage.md index 54dacda0..bdba3e4a 100644 --- a/old_docs/API_docs_v51/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v51/constructors/updateShortChatMessage.md @@ -36,7 +36,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'unread' => Bool, '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]]; +$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'unread' => Bool, '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: diff --git a/old_docs/API_docs_v51/constructors/updateShortMessage.md b/old_docs/API_docs_v51/constructors/updateShortMessage.md index 09876293..6191ff4e 100644 --- a/old_docs/API_docs_v51/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v51/constructors/updateShortMessage.md @@ -35,7 +35,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$updateShortMessage = ['_' => 'updateShortMessage', 'unread' => Bool, '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]]; +$updateShortMessage = ['_' => 'updateShortMessage', 'unread' => Bool, '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: diff --git a/old_docs/API_docs_v51/constructors/updateShortSentMessage.md b/old_docs/API_docs_v51/constructors/updateShortSentMessage.md index e2068f9f..16dc73b4 100644 --- a/old_docs/API_docs_v51/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v51/constructors/updateShortSentMessage.md @@ -28,7 +28,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'unread' => Bool, 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'unread' => Bool, 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v51/constructors/updateStickerSetsOrder.md index 853e8658..260af879 100644 --- a/old_docs/API_docs_v51/constructors/updateStickerSetsOrder.md +++ b/old_docs/API_docs_v51/constructors/updateStickerSetsOrder.md @@ -21,7 +21,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/updates.md b/old_docs/API_docs_v51/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v51/constructors/updates.md +++ b/old_docs/API_docs_v51/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/updatesCombined.md b/old_docs/API_docs_v51/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v51/constructors/updatesCombined.md +++ b/old_docs/API_docs_v51/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v51/constructors/updates_channelDifference.md b/old_docs/API_docs_v51/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v51/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v51/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v51/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v51/constructors/updates_channelDifferenceTooLong.md index 7aafef2c..d2b67ed4 100644 --- a/old_docs/API_docs_v51/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v51/constructors/updates_channelDifferenceTooLong.md @@ -31,7 +31,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'final' => Bool, 'pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'final' => Bool, 'pts' => int, 'timeout' => int, 'top_message' => int, 'top_important_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'unread_important_count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/constructors/updates_difference.md b/old_docs/API_docs_v51/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v51/constructors/updates_difference.md +++ b/old_docs/API_docs_v51/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v51/constructors/updates_differenceSlice.md b/old_docs/API_docs_v51/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v51/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v51/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v51/constructors/wallPaper.md b/old_docs/API_docs_v51/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v51/constructors/wallPaper.md +++ b/old_docs/API_docs_v51/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v51/methods/README.md b/old_docs/API_docs_v51/methods/README.md index f518ff7a..403f961f 100644 --- a/old_docs/API_docs_v51/methods/README.md +++ b/old_docs/API_docs_v51/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v51/methods/account_changePhone.md b/old_docs/API_docs_v51/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v51/methods/account_changePhone.md +++ b/old_docs/API_docs_v51/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_checkUsername.md b/old_docs/API_docs_v51/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v51/methods/account_checkUsername.md +++ b/old_docs/API_docs_v51/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_deleteAccount.md b/old_docs/API_docs_v51/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v51/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v51/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_getAccountTTL.md b/old_docs/API_docs_v51/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v51/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v51/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v51/methods/account_getAuthorizations.md b/old_docs/API_docs_v51/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v51/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v51/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v51/methods/account_getNotifySettings.md b/old_docs/API_docs_v51/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v51/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v51/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_getPassword.md b/old_docs/API_docs_v51/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v51/methods/account_getPassword.md +++ b/old_docs/API_docs_v51/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v51/methods/account_getPasswordSettings.md b/old_docs/API_docs_v51/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v51/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v51/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_getPrivacy.md b/old_docs/API_docs_v51/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v51/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v51/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_getWallPapers.md b/old_docs/API_docs_v51/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v51/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v51/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v51/methods/account_registerDevice.md b/old_docs/API_docs_v51/methods/account_registerDevice.md index cfa1546c..5c86d74c 100644 --- a/old_docs/API_docs_v51/methods/account_registerDevice.md +++ b/old_docs/API_docs_v51/methods/account_registerDevice.md @@ -1,22 +1,24 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|app\_sandbox|[Bool](../types/Bool.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| +|device\_model|[string](../types/string.md) | Yes|| +|system\_version|[string](../types/string.md) | Yes|| +|app\_version|[string](../types/string.md) | Yes|| +|app\_sandbox|[Bool](../types/Bool.md) | Yes|Should the app run in a sandbox?| +|lang\_code|[string](../types/string.md) | Yes|| ### Return type: [Bool](../types/Bool.md) @@ -35,13 +37,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_reportPeer.md b/old_docs/API_docs_v51/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v51/methods/account_reportPeer.md +++ b/old_docs/API_docs_v51/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_resetAuthorization.md b/old_docs/API_docs_v51/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v51/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v51/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_resetNotifySettings.md b/old_docs/API_docs_v51/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v51/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v51/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md index 017b5f7f..9e5016a4 100644 --- a/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|phone\_number|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can the code be sent using a flash call instead of an SMS?| +|phone\_number|[string](../types/string.md) | Yes|New phone number| +|current\_number|[Bool](../types/Bool.md) | Optional|Current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_setAccountTTL.md b/old_docs/API_docs_v51/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v51/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v51/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_setPrivacy.md b/old_docs/API_docs_v51/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v51/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v51/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/account_unregisterDevice.md b/old_docs/API_docs_v51/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v51/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v51/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v51/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v51/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v51/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_updateNotifySettings.md b/old_docs/API_docs_v51/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v51/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v51/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_updateProfile.md b/old_docs/API_docs_v51/methods/account_updateProfile.md index b3d468d1..8b0c3268 100644 --- a/old_docs/API_docs_v51/methods/account_updateProfile.md +++ b/old_docs/API_docs_v51/methods/account_updateProfile.md @@ -1,18 +1,20 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Optional| -|last\_name|[string](../types/string.md) | Optional| -|about|[string](../types/string.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Optional|The first name| +|last\_name|[string](../types/string.md) | Optional|The last name| +|about|[string](../types/string.md) | Optional|The bio/about field| ### Return type: [User](../types/User.md) @@ -32,13 +34,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_updateStatus.md b/old_docs/API_docs_v51/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v51/methods/account_updateStatus.md +++ b/old_docs/API_docs_v51/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v51/methods/account_updateUsername.md b/old_docs/API_docs_v51/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v51/methods/account_updateUsername.md +++ b/old_docs/API_docs_v51/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v51/methods/auth_cancelCode.md b/old_docs/API_docs_v51/methods/auth_cancelCode.md index 05d927a1..1283e1e5 100644 --- a/old_docs/API_docs_v51/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v51/methods/auth_cancelCode.md @@ -1,17 +1,19 @@ --- title: auth.cancelCode -description: auth.cancelCode parameters, return type and example +description: Invalidate sent phone code --- ## Method: auth.cancelCode [Back to methods index](index.md) +Invalidate sent phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: auth.cancelCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/auth_checkPassword.md b/old_docs/API_docs_v51/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v51/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v51/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v51/methods/auth_checkPhone.md b/old_docs/API_docs_v51/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v51/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v51/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/auth_exportAuthorization.md b/old_docs/API_docs_v51/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v51/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v51/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v51/methods/auth_importAuthorization.md b/old_docs/API_docs_v51/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v51/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v51/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v51/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v51/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v51/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v51/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v51/methods/auth_logOut.md b/old_docs/API_docs_v51/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v51/methods/auth_logOut.md +++ b/old_docs/API_docs_v51/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v51/methods/auth_recoverPassword.md b/old_docs/API_docs_v51/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v51/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v51/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v51/methods/auth_resendCode.md b/old_docs/API_docs_v51/methods/auth_resendCode.md index df4803b8..4bfbf379 100644 --- a/old_docs/API_docs_v51/methods/auth_resendCode.md +++ b/old_docs/API_docs_v51/methods/auth_resendCode.md @@ -1,17 +1,19 @@ --- title: auth.resendCode -description: auth.resendCode parameters, return type and example +description: Resend the SMS verification code --- ## Method: auth.resendCode [Back to methods index](index.md) +Resend the SMS verification code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|The phone code hash| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -30,13 +32,18 @@ description: auth.resendCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v51/methods/auth_sendCode.md b/old_docs/API_docs_v51/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v51/methods/auth_sendCode.md +++ b/old_docs/API_docs_v51/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v51/methods/auth_sendInvites.md b/old_docs/API_docs_v51/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v51/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v51/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/auth_signIn.md b/old_docs/API_docs_v51/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v51/methods/auth_signIn.md +++ b/old_docs/API_docs_v51/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v51/methods/auth_signUp.md b/old_docs/API_docs_v51/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v51/methods/auth_signUp.md +++ b/old_docs/API_docs_v51/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v51/methods/channels_checkUsername.md b/old_docs/API_docs_v51/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v51/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v51/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_createChannel.md b/old_docs/API_docs_v51/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v51/methods/channels_createChannel.md +++ b/old_docs/API_docs_v51/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_deleteChannel.md b/old_docs/API_docs_v51/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v51/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_deleteMessages.md b/old_docs/API_docs_v51/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v51/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_editAbout.md b/old_docs/API_docs_v51/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v51/methods/channels_editAbout.md +++ b/old_docs/API_docs_v51/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_editAdmin.md b/old_docs/API_docs_v51/methods/channels_editAdmin.md index c62597e1..146159d9 100644 --- a/old_docs/API_docs_v51/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v51/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |role|[ChannelParticipantRole](../types/ChannelParticipantRole.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_editPhoto.md b/old_docs/API_docs_v51/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v51/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v51/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_editTitle.md b/old_docs/API_docs_v51/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v51/methods/channels_editTitle.md +++ b/old_docs/API_docs_v51/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_exportInvite.md b/old_docs/API_docs_v51/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v51/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v51/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_exportMessageLink.md b/old_docs/API_docs_v51/methods/channels_exportMessageLink.md index 026fe982..7eff4ed8 100644 --- a/old_docs/API_docs_v51/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v51/methods/channels_exportMessageLink.md @@ -10,7 +10,7 @@ description: channels.exportMessageLink parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: channels.exportMessageLink parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_getChannels.md b/old_docs/API_docs_v51/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v51/methods/channels_getChannels.md +++ b/old_docs/API_docs_v51/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/channels_getDialogs.md b/old_docs/API_docs_v51/methods/channels_getDialogs.md index 916f9b34..7c1464f8 100644 --- a/old_docs/API_docs_v51/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v51/methods/channels_getDialogs.md @@ -23,16 +23,18 @@ description: channels.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->channels->getDialogs(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_getFullChannel.md b/old_docs/API_docs_v51/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v51/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v51/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v51/methods/channels_getImportantHistory.md b/old_docs/API_docs_v51/methods/channels_getImportantHistory.md index 49455391..5b4caee6 100644 --- a/old_docs/API_docs_v51/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v51/methods/channels_getImportantHistory.md @@ -10,7 +10,7 @@ description: channels.getImportantHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| @@ -28,16 +28,18 @@ description: channels.getImportantHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getImportantHistory(['channel' => InputChannel, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_getMessages.md b/old_docs/API_docs_v51/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v51/methods/channels_getMessages.md +++ b/old_docs/API_docs_v51/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/channels_getParticipant.md b/old_docs/API_docs_v51/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v51/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v51/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_getParticipants.md b/old_docs/API_docs_v51/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v51/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v51/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_inviteToChannel.md b/old_docs/API_docs_v51/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v51/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v51/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/channels_joinChannel.md b/old_docs/API_docs_v51/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v51/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v51/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_kickFromChannel.md b/old_docs/API_docs_v51/methods/channels_kickFromChannel.md index a2182df8..e4b68581 100644 --- a/old_docs/API_docs_v51/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v51/methods/channels_kickFromChannel.md @@ -10,8 +10,8 @@ description: channels.kickFromChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |kicked|[Bool](../types/Bool.md) | Yes| @@ -24,16 +24,18 @@ description: channels.kickFromChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_leaveChannel.md b/old_docs/API_docs_v51/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v51/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v51/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_readHistory.md b/old_docs/API_docs_v51/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v51/methods/channels_readHistory.md +++ b/old_docs/API_docs_v51/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_reportSpam.md b/old_docs/API_docs_v51/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v51/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v51/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/channels_toggleComments.md b/old_docs/API_docs_v51/methods/channels_toggleComments.md index ce4207db..8b77db49 100644 --- a/old_docs/API_docs_v51/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v51/methods/channels_toggleComments.md @@ -10,7 +10,7 @@ description: channels.toggleComments parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -23,16 +23,18 @@ description: channels.toggleComments parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleComments(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_toggleInvites.md b/old_docs/API_docs_v51/methods/channels_toggleInvites.md index 19669eec..8d977fd0 100644 --- a/old_docs/API_docs_v51/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v51/methods/channels_toggleInvites.md @@ -10,7 +10,7 @@ description: channels.toggleInvites parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -32,13 +32,18 @@ description: channels.toggleInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_toggleSignatures.md b/old_docs/API_docs_v51/methods/channels_toggleSignatures.md index 4aaaeb0c..13d53d92 100644 --- a/old_docs/API_docs_v51/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v51/methods/channels_toggleSignatures.md @@ -10,7 +10,7 @@ description: channels.toggleSignatures parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: channels.toggleSignatures parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md index 3bb6d010..ecc15ce6 100644 --- a/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md @@ -11,7 +11,7 @@ description: channels.updatePinnedMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |silent|[Bool](../types/Bool.md) | Optional| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: channels.updatePinnedMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/channels_updateUsername.md b/old_docs/API_docs_v51/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v51/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v51/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/contacts_block.md b/old_docs/API_docs_v51/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v51/methods/contacts_block.md +++ b/old_docs/API_docs_v51/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v51/methods/contacts_deleteContact.md b/old_docs/API_docs_v51/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v51/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v51/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v51/methods/contacts_deleteContacts.md b/old_docs/API_docs_v51/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v51/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v51/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/contacts_exportCard.md b/old_docs/API_docs_v51/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v51/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v51/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v51/methods/contacts_getBlocked.md b/old_docs/API_docs_v51/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v51/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v51/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/contacts_getContacts.md b/old_docs/API_docs_v51/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v51/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v51/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/contacts_getStatuses.md b/old_docs/API_docs_v51/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v51/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v51/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v51/methods/contacts_importCard.md b/old_docs/API_docs_v51/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v51/methods/contacts_importCard.md +++ b/old_docs/API_docs_v51/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/contacts_importContacts.md b/old_docs/API_docs_v51/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v51/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v51/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/contacts_resolveUsername.md b/old_docs/API_docs_v51/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v51/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v51/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v51/methods/contacts_search.md b/old_docs/API_docs_v51/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v51/methods/contacts_search.md +++ b/old_docs/API_docs_v51/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/contacts_unblock.md b/old_docs/API_docs_v51/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v51/methods/contacts_unblock.md +++ b/old_docs/API_docs_v51/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v51/methods/help_getAppChangelog.md b/old_docs/API_docs_v51/methods/help_getAppChangelog.md index b27cc9f0..d69a61cb 100644 --- a/old_docs/API_docs_v51/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v51/methods/help_getAppChangelog.md @@ -25,13 +25,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/help_getAppUpdate.md b/old_docs/API_docs_v51/methods/help_getAppUpdate.md index 7b3bdde9..f9b06641 100644 --- a/old_docs/API_docs_v51/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v51/methods/help_getAppUpdate.md @@ -25,13 +25,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/help_getConfig.md b/old_docs/API_docs_v51/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v51/methods/help_getConfig.md +++ b/old_docs/API_docs_v51/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v51/methods/help_getInviteText.md b/old_docs/API_docs_v51/methods/help_getInviteText.md index 40251dd5..bac72a15 100644 --- a/old_docs/API_docs_v51/methods/help_getInviteText.md +++ b/old_docs/API_docs_v51/methods/help_getInviteText.md @@ -22,13 +22,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/help_getNearestDc.md b/old_docs/API_docs_v51/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v51/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v51/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v51/methods/help_getSupport.md b/old_docs/API_docs_v51/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v51/methods/help_getSupport.md +++ b/old_docs/API_docs_v51/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v51/methods/help_getTermsOfService.md b/old_docs/API_docs_v51/methods/help_getTermsOfService.md index 1e8899a2..56a75769 100644 --- a/old_docs/API_docs_v51/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v51/methods/help_getTermsOfService.md @@ -22,13 +22,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/help_saveAppLog.md b/old_docs/API_docs_v51/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v51/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v51/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/initConnection.md b/old_docs/API_docs_v51/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v51/methods/initConnection.md +++ b/old_docs/API_docs_v51/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v51/methods/invokeAfterMsg.md b/old_docs/API_docs_v51/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v51/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v51/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v51/methods/invokeAfterMsgs.md b/old_docs/API_docs_v51/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v51/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v51/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/invokeWithLayer.md b/old_docs/API_docs_v51/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v51/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v51/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v51/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v51/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v51/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v51/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_acceptEncryption.md b/old_docs/API_docs_v51/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v51/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v51/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v51/methods/messages_addChatUser.md b/old_docs/API_docs_v51/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v51/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v51/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_checkChatInvite.md b/old_docs/API_docs_v51/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v51/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_createChat.md b/old_docs/API_docs_v51/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v51/methods/messages_createChat.md +++ b/old_docs/API_docs_v51/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/messages_deleteChatUser.md b/old_docs/API_docs_v51/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v51/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v51/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_deleteHistory.md b/old_docs/API_docs_v51/methods/messages_deleteHistory.md index 598ce5c6..e2e60c49 100644 --- a/old_docs/API_docs_v51/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v51/methods/messages_deleteHistory.md @@ -10,7 +10,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_deleteMessages.md b/old_docs/API_docs_v51/methods/messages_deleteMessages.md index 38b3ca09..12347c81 100644 --- a/old_docs/API_docs_v51/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v51/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/messages_discardEncryption.md b/old_docs/API_docs_v51/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v51/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v51/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v51/methods/messages_editChatAdmin.md b/old_docs/API_docs_v51/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v51/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v51/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_editChatPhoto.md b/old_docs/API_docs_v51/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v51/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v51/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_editChatTitle.md b/old_docs/API_docs_v51/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v51/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v51/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md index c3489f9d..289100ea 100644 --- a/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md @@ -35,18 +35,20 @@ description: messages.editInlineBotMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/messages_editMessage.md b/old_docs/API_docs_v51/methods/messages_editMessage.md index 182fa03e..63379ed9 100644 --- a/old_docs/API_docs_v51/methods/messages_editMessage.md +++ b/old_docs/API_docs_v51/methods/messages_editMessage.md @@ -11,7 +11,7 @@ description: messages.editMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| |message|[string](../types/string.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -44,18 +44,20 @@ description: messages.editMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/messages_exportChatInvite.md b/old_docs/API_docs_v51/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v51/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_forwardMessage.md b/old_docs/API_docs_v51/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v51/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v51/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_forwardMessages.md b/old_docs/API_docs_v51/methods/messages_forwardMessages.md index a997874b..f638a4a7 100644 --- a/old_docs/API_docs_v51/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v51/methods/messages_forwardMessages.md @@ -13,9 +13,9 @@ description: messages.forwardMessages parameters, return type and example |broadcast|[Bool](../types/Bool.md) | Optional| |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -55,18 +55,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'silent' => Bool, 'background' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'silent' => Bool, 'background' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/messages_getAllStickers.md b/old_docs/API_docs_v51/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/old_docs/API_docs_v51/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v51/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md index 4055a065..3bcfa462 100644 --- a/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md @@ -10,7 +10,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |msg\_id|[int](../types/int.md) | Yes| |data|[bytes](../types/bytes.md) | Yes| @@ -35,13 +35,18 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_getChats.md b/old_docs/API_docs_v51/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v51/methods/messages_getChats.md +++ b/old_docs/API_docs_v51/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/messages_getDhConfig.md b/old_docs/API_docs_v51/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v51/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v51/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_getDialogs.md b/old_docs/API_docs_v51/methods/messages_getDialogs.md index 934e3b80..323bb791 100644 --- a/old_docs/API_docs_v51/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v51/methods/messages_getDialogs.md @@ -12,7 +12,7 @@ description: messages.getDialogs parameters, return type and example |----------|---------------|----------| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -35,13 +35,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_getFullChat.md b/old_docs/API_docs_v51/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v51/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v51/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v51/methods/messages_getHistory.md b/old_docs/API_docs_v51/methods/messages_getHistory.md index ef31c435..87b8328d 100644 --- a/old_docs/API_docs_v51/methods/messages_getHistory.md +++ b/old_docs/API_docs_v51/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| @@ -40,13 +40,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md index 90e2a427..6d965b19 100644 --- a/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md @@ -10,8 +10,8 @@ description: messages.getInlineBotResults parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |query|[string](../types/string.md) | Yes| |offset|[string](../types/string.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_getMessageEditData.md b/old_docs/API_docs_v51/methods/messages_getMessageEditData.md index df71c31a..2a90a419 100644 --- a/old_docs/API_docs_v51/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v51/methods/messages_getMessageEditData.md @@ -10,7 +10,7 @@ description: messages.getMessageEditData parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getMessageEditData parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_getMessages.md b/old_docs/API_docs_v51/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v51/methods/messages_getMessages.md +++ b/old_docs/API_docs_v51/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/messages_getMessagesViews.md b/old_docs/API_docs_v51/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v51/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v51/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/messages_getPeerSettings.md b/old_docs/API_docs_v51/methods/messages_getPeerSettings.md index fab25034..25906b73 100644 --- a/old_docs/API_docs_v51/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v51/methods/messages_getPeerSettings.md @@ -10,7 +10,7 @@ description: messages.getPeerSettings parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [PeerSettings](../types/PeerSettings.md) @@ -30,13 +30,18 @@ description: messages.getPeerSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_getSavedGifs.md b/old_docs/API_docs_v51/methods/messages_getSavedGifs.md index 4986d812..bcb4590d 100644 --- a/old_docs/API_docs_v51/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v51/methods/messages_getSavedGifs.md @@ -22,13 +22,18 @@ description: messages.getSavedGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_getStickerSet.md b/old_docs/API_docs_v51/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v51/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v51/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_getStickers.md b/old_docs/API_docs_v51/methods/messages_getStickers.md index 1587cd01..6ac68c87 100644 --- a/old_docs/API_docs_v51/methods/messages_getStickers.md +++ b/old_docs/API_docs_v51/methods/messages_getStickers.md @@ -23,16 +23,18 @@ description: messages.getStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v51/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v51/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v51/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_hideReportSpam.md b/old_docs/API_docs_v51/methods/messages_hideReportSpam.md index d47e8aa5..0419ec79 100644 --- a/old_docs/API_docs_v51/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v51/methods/messages_hideReportSpam.md @@ -10,7 +10,7 @@ description: messages.hideReportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.hideReportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_importChatInvite.md b/old_docs/API_docs_v51/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v51/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_installStickerSet.md b/old_docs/API_docs_v51/methods/messages_installStickerSet.md index 1a31c0e7..ccabd393 100644 --- a/old_docs/API_docs_v51/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v51/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_migrateChat.md b/old_docs/API_docs_v51/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v51/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v51/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_readHistory.md b/old_docs/API_docs_v51/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v51/methods/messages_readHistory.md +++ b/old_docs/API_docs_v51/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_readMessageContents.md b/old_docs/API_docs_v51/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v51/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v51/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/messages_receivedMessages.md b/old_docs/API_docs_v51/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v51/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v51/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_receivedQueue.md b/old_docs/API_docs_v51/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v51/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v51/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v51/methods/messages_reorderStickerSets.md index e09057e7..eee7d0f2 100644 --- a/old_docs/API_docs_v51/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v51/methods/messages_reorderStickerSets.md @@ -22,15 +22,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/messages_reportSpam.md b/old_docs/API_docs_v51/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v51/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v51/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_requestEncryption.md b/old_docs/API_docs_v51/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v51/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v51/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v51/methods/messages_saveGif.md b/old_docs/API_docs_v51/methods/messages_saveGif.md index b3673c91..725bc949 100644 --- a/old_docs/API_docs_v51/methods/messages_saveGif.md +++ b/old_docs/API_docs_v51/methods/messages_saveGif.md @@ -10,7 +10,7 @@ description: messages.saveGif parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveGif parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_search.md b/old_docs/API_docs_v51/methods/messages_search.md index b23dd186..c2a822a1 100644 --- a/old_docs/API_docs_v51/methods/messages_search.md +++ b/old_docs/API_docs_v51/methods/messages_search.md @@ -11,7 +11,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |important\_only|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -43,13 +43,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['important_only' => Bool, 'peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_searchGifs.md b/old_docs/API_docs_v51/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/old_docs/API_docs_v51/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v51/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_searchGlobal.md b/old_docs/API_docs_v51/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v51/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v51/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_sendBroadcast.md b/old_docs/API_docs_v51/methods/messages_sendBroadcast.md index 725d1f34..0ab60e43 100644 --- a/old_docs/API_docs_v51/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v51/methods/messages_sendBroadcast.md @@ -10,9 +10,9 @@ description: messages.sendBroadcast parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|contacts|Array of [InputUser](../types/InputUser.md) | Yes| +|contacts|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |message|[string](../types/string.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -24,18 +24,20 @@ description: messages.sendBroadcast parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser], 'message' => 'string', 'media' => InputMedia, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/messages_sendEncrypted.md b/old_docs/API_docs_v51/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md index 38aa9b43..e1b484de 100644 --- a/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md @@ -13,7 +13,7 @@ description: messages.sendInlineBotResult parameters, return type and example |broadcast|[Bool](../types/Bool.md) | Optional| |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |query\_id|[long](../types/long.md) | Yes| |id|[string](../types/string.md) | Yes| @@ -40,13 +40,18 @@ description: messages.sendInlineBotResult parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['broadcast' => Bool, 'silent' => Bool, 'background' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_sendMedia.md b/old_docs/API_docs_v51/methods/messages_sendMedia.md index 2bb54247..094e98b5 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v51/methods/messages_sendMedia.md @@ -13,9 +13,9 @@ description: messages.sendMedia parameters, return type and example |broadcast|[Bool](../types/Bool.md) | Optional| |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -56,16 +56,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['broadcast' => Bool, 'silent' => Bool, 'background' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_sendMessage.md b/old_docs/API_docs_v51/methods/messages_sendMessage.md index f5991012..b853dcd2 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v51/methods/messages_sendMessage.md @@ -14,7 +14,7 @@ description: messages.sendMessage parameters, return type and example |broadcast|[Bool](../types/Bool.md) | Optional| |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -50,6 +50,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -57,18 +58,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'silent' => Bool, 'background' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'silent' => Bool, 'background' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md index bf8cabb2..559fc174 100644 --- a/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md @@ -31,16 +31,18 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md index 8b49c4c7..c38b8c2e 100644 --- a/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md @@ -45,18 +45,20 @@ description: messages.setInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/messages_setTyping.md b/old_docs/API_docs_v51/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v51/methods/messages_setTyping.md +++ b/old_docs/API_docs_v51/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_startBot.md b/old_docs/API_docs_v51/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v51/methods/messages_startBot.md +++ b/old_docs/API_docs_v51/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v51/methods/photos_deletePhotos.md b/old_docs/API_docs_v51/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v51/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v51/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/methods/photos_getUserPhotos.md b/old_docs/API_docs_v51/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v51/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v51/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v51/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v51/methods/photos_updateProfilePhoto.md index d3acbb56..fbe84e26 100644 --- a/old_docs/API_docs_v51/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v51/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -23,13 +23,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md index de7c2281..303ed4ea 100644 --- a/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -35,13 +35,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v51/methods/updates_getChannelDifference.md b/old_docs/API_docs_v51/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v51/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v51/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v51/methods/updates_getDifference.md b/old_docs/API_docs_v51/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v51/methods/updates_getDifference.md +++ b/old_docs/API_docs_v51/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v51/methods/updates_getState.md b/old_docs/API_docs_v51/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v51/methods/updates_getState.md +++ b/old_docs/API_docs_v51/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v51/methods/upload_getFile.md b/old_docs/API_docs_v51/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v51/methods/upload_getFile.md +++ b/old_docs/API_docs_v51/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v51/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v51/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v51/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v51/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v51/methods/upload_saveFilePart.md b/old_docs/API_docs_v51/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v51/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v51/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v51/methods/users_getFullUser.md b/old_docs/API_docs_v51/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v51/methods/users_getFullUser.md +++ b/old_docs/API_docs_v51/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v51/methods/users_getUsers.md b/old_docs/API_docs_v51/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v51/methods/users_getUsers.md +++ b/old_docs/API_docs_v51/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v51/types/Chat.md b/old_docs/API_docs_v51/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v51/types/Chat.md +++ b/old_docs/API_docs_v51/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v51/types/InputChannel.md b/old_docs/API_docs_v51/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v51/types/InputChannel.md +++ b/old_docs/API_docs_v51/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v51/types/InputDocument.md b/old_docs/API_docs_v51/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v51/types/InputDocument.md +++ b/old_docs/API_docs_v51/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v51/types/InputEncryptedChat.md b/old_docs/API_docs_v51/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v51/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v51/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v51/types/InputEncryptedFile.md b/old_docs/API_docs_v51/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v51/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v51/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v51/types/InputFile.md b/old_docs/API_docs_v51/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v51/types/InputFile.md +++ b/old_docs/API_docs_v51/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v51/types/InputMedia.md b/old_docs/API_docs_v51/types/InputMedia.md index e3a8492a..eb541612 100644 --- a/old_docs/API_docs_v51/types/InputMedia.md +++ b/old_docs/API_docs_v51/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v51/types/InputPeer.md b/old_docs/API_docs_v51/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v51/types/InputPeer.md +++ b/old_docs/API_docs_v51/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v51/types/InputPhoto.md b/old_docs/API_docs_v51/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v51/types/InputPhoto.md +++ b/old_docs/API_docs_v51/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v51/types/InputUser.md b/old_docs/API_docs_v51/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v51/types/InputUser.md +++ b/old_docs/API_docs_v51/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v51/types/Peer.md b/old_docs/API_docs_v51/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v51/types/Peer.md +++ b/old_docs/API_docs_v51/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v51/types/User.md b/old_docs/API_docs_v51/types/User.md index a9d4addd..30fd113c 100644 --- a/old_docs/API_docs_v51/types/User.md +++ b/old_docs/API_docs_v51/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v53/constructors/account_authorizations.md b/old_docs/API_docs_v53/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v53/constructors/account_authorizations.md +++ b/old_docs/API_docs_v53/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/account_privacyRules.md b/old_docs/API_docs_v53/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v53/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v53/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/botInfo.md b/old_docs/API_docs_v53/constructors/botInfo.md index bee4a540..25a27913 100644 --- a/old_docs/API_docs_v53/constructors/botInfo.md +++ b/old_docs/API_docs_v53/constructors/botInfo.md @@ -23,7 +23,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/botInlineMessageText.md b/old_docs/API_docs_v53/constructors/botInlineMessageText.md index dc00808b..feb5e9d0 100644 --- a/old_docs/API_docs_v53/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v53/constructors/botInlineMessageText.md @@ -24,7 +24,7 @@ description: botInlineMessageText attributes, type and example ### Example: ``` -$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/channelFull.md b/old_docs/API_docs_v53/constructors/channelFull.md index d51c5e6d..d16eda19 100644 --- a/old_docs/API_docs_v53/constructors/channelFull.md +++ b/old_docs/API_docs_v53/constructors/channelFull.md @@ -37,7 +37,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_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]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/channelMessagesFilter.md b/old_docs/API_docs_v53/constructors/channelMessagesFilter.md index 0a731ce9..ad9a592e 100644 --- a/old_docs/API_docs_v53/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v53/constructors/channelMessagesFilter.md @@ -22,7 +22,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/channels_channelParticipant.md b/old_docs/API_docs_v53/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v53/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v53/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/channels_channelParticipants.md b/old_docs/API_docs_v53/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v53/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v53/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/chatFull.md b/old_docs/API_docs_v53/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v53/constructors/chatFull.md +++ b/old_docs/API_docs_v53/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/chatParticipants.md b/old_docs/API_docs_v53/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v53/constructors/chatParticipants.md +++ b/old_docs/API_docs_v53/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/config.md b/old_docs/API_docs_v53/constructors/config.md index 4957f46d..d5a5abe0 100644 --- a/old_docs/API_docs_v53/constructors/config.md +++ b/old_docs/API_docs_v53/constructors/config.md @@ -41,7 +41,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/contacts_blocked.md b/old_docs/API_docs_v53/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v53/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v53/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v53/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v53/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v53/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/contacts_contacts.md b/old_docs/API_docs_v53/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v53/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v53/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/contacts_found.md b/old_docs/API_docs_v53/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v53/constructors/contacts_found.md +++ b/old_docs/API_docs_v53/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/contacts_importedContacts.md b/old_docs/API_docs_v53/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v53/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v53/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v53/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v53/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v53/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/contacts_topPeers.md b/old_docs/API_docs_v53/constructors/contacts_topPeers.md index 17551f5d..07623018 100644 --- a/old_docs/API_docs_v53/constructors/contacts_topPeers.md +++ b/old_docs/API_docs_v53/constructors/contacts_topPeers.md @@ -23,7 +23,7 @@ description: contacts_topPeers attributes, type and example ### Example: ``` -$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers], 'chats' => [Chat], 'users' => [User]]; +$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers, TopPeerCategoryPeers], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/document.md b/old_docs/API_docs_v53/constructors/document.md index 3a584537..21dc39bb 100644 --- a/old_docs/API_docs_v53/constructors/document.md +++ b/old_docs/API_docs_v53/constructors/document.md @@ -28,7 +28,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/documentAttributeAudio.md b/old_docs/API_docs_v53/constructors/documentAttributeAudio.md index 4d393890..ceb02cba 100644 --- a/old_docs/API_docs_v53/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v53/constructors/documentAttributeAudio.md @@ -12,7 +12,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| |voice|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Optional| |performer|[string](../types/string.md) | Optional| |waveform|[bytes](../types/bytes.md) | Optional| diff --git a/old_docs/API_docs_v53/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v53/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v53/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v53/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v53/constructors/documentAttributeVideo.md b/old_docs/API_docs_v53/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v53/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v53/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v53/constructors/draftMessage.md b/old_docs/API_docs_v53/constructors/draftMessage.md index 13277194..644adc43 100644 --- a/old_docs/API_docs_v53/constructors/draftMessage.md +++ b/old_docs/API_docs_v53/constructors/draftMessage.md @@ -25,7 +25,7 @@ description: draftMessage attributes, type and example ### Example: ``` -$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity], 'date' => int]; +$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'date' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v53/constructors/inputBotInlineMessageText.md index 677e5d8c..ed3ddd1b 100644 --- a/old_docs/API_docs_v53/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v53/constructors/inputBotInlineMessageText.md @@ -24,7 +24,7 @@ description: inputBotInlineMessageText attributes, type and example ### Example: ``` -$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/inputBotInlineResultDocument.md b/old_docs/API_docs_v53/constructors/inputBotInlineResultDocument.md index 2315623b..f27421f9 100644 --- a/old_docs/API_docs_v53/constructors/inputBotInlineResultDocument.md +++ b/old_docs/API_docs_v53/constructors/inputBotInlineResultDocument.md @@ -15,7 +15,7 @@ description: inputBotInlineResultDocument attributes, type and example |type|[string](../types/string.md) | Yes| |title|[string](../types/string.md) | Optional| |description|[string](../types/string.md) | Optional| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v53/constructors/inputBotInlineResultPhoto.md b/old_docs/API_docs_v53/constructors/inputBotInlineResultPhoto.md index d39bd108..9628b4e5 100644 --- a/old_docs/API_docs_v53/constructors/inputBotInlineResultPhoto.md +++ b/old_docs/API_docs_v53/constructors/inputBotInlineResultPhoto.md @@ -13,7 +13,7 @@ description: inputBotInlineResultPhoto attributes, type and example |----------|---------------|----------| |id|[string](../types/string.md) | Yes| |type|[string](../types/string.md) | Yes| -|photo|[InputPhoto](../types/InputPhoto.md) | Optional| +|photo|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v53/constructors/inputChatPhoto.md b/old_docs/API_docs_v53/constructors/inputChatPhoto.md index 4cd81a7c..f10e2da3 100644 --- a/old_docs/API_docs_v53/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v53/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v53/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v53/constructors/inputChatUploadedPhoto.md index 3d88ac48..13857e71 100644 --- a/old_docs/API_docs_v53/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v53/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v53/constructors/inputMediaDocument.md b/old_docs/API_docs_v53/constructors/inputMediaDocument.md index 88fed980..66d0baba 100644 --- a/old_docs/API_docs_v53/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v53/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v53/constructors/inputMediaPhoto.md b/old_docs/API_docs_v53/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v53/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v53/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v53/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v53/constructors/inputMediaUploadedDocument.md index 7826457d..675f2562 100644 --- a/old_docs/API_docs_v53/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v53/constructors/inputMediaUploadedDocument.md @@ -11,8 +11,8 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| @@ -24,7 +24,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string']; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v53/constructors/inputMediaUploadedPhoto.md index 42408b9f..58ae37cf 100644 --- a/old_docs/API_docs_v53/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v53/constructors/inputMediaUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v53/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v53/constructors/inputMediaUploadedThumbDocument.md index e0c31f26..ffd8fbff 100644 --- a/old_docs/API_docs_v53/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v53/constructors/inputMediaUploadedThumbDocument.md @@ -11,9 +11,9 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| @@ -25,7 +25,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string']; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/inputNotifyPeer.md b/old_docs/API_docs_v53/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v53/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v53/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v53/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v53/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v53/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v53/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v53/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v53/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v53/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/keyboardButtonRow.md b/old_docs/API_docs_v53/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v53/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v53/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/message.md b/old_docs/API_docs_v53/constructors/message.md index 67b2cd79..dc324ff1 100644 --- a/old_docs/API_docs_v53/constructors/message.md +++ b/old_docs/API_docs_v53/constructors/message.md @@ -38,7 +38,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; +$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v53/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v53/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v53/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/messageActionChatCreate.md b/old_docs/API_docs_v53/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v53/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v53/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/messages_allStickers.md b/old_docs/API_docs_v53/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/old_docs/API_docs_v53/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v53/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/messages_botResults.md b/old_docs/API_docs_v53/constructors/messages_botResults.md index 472e6dcd..0ae1091e 100644 --- a/old_docs/API_docs_v53/constructors/messages_botResults.md +++ b/old_docs/API_docs_v53/constructors/messages_botResults.md @@ -25,7 +25,7 @@ description: messages_botResults attributes, type and example ### Example: ``` -$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult]]; +$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult, BotInlineResult]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/messages_channelMessages.md b/old_docs/API_docs_v53/constructors/messages_channelMessages.md index 8ec11b2d..358c0c70 100644 --- a/old_docs/API_docs_v53/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v53/constructors/messages_channelMessages.md @@ -25,7 +25,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/messages_chatFull.md b/old_docs/API_docs_v53/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v53/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v53/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/messages_chats.md b/old_docs/API_docs_v53/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v53/constructors/messages_chats.md +++ b/old_docs/API_docs_v53/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/messages_dialogs.md b/old_docs/API_docs_v53/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v53/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v53/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v53/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v53/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v53/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v53/constructors/messages_foundGifs.md b/old_docs/API_docs_v53/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/old_docs/API_docs_v53/constructors/messages_foundGifs.md +++ b/old_docs/API_docs_v53/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/messages_messages.md b/old_docs/API_docs_v53/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v53/constructors/messages_messages.md +++ b/old_docs/API_docs_v53/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/messages_messagesSlice.md b/old_docs/API_docs_v53/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v53/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v53/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/messages_peerDialogs.md b/old_docs/API_docs_v53/constructors/messages_peerDialogs.md index bec6c88c..5d25b545 100644 --- a/old_docs/API_docs_v53/constructors/messages_peerDialogs.md +++ b/old_docs/API_docs_v53/constructors/messages_peerDialogs.md @@ -25,7 +25,7 @@ description: messages_peerDialogs attributes, type and example ### Example: ``` -$messages_peerDialogs = ['_' => 'messages.peerDialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v53/constructors/messages_savedGifs.md b/old_docs/API_docs_v53/constructors/messages_savedGifs.md index 7e2a00eb..b4ff040d 100644 --- a/old_docs/API_docs_v53/constructors/messages_savedGifs.md +++ b/old_docs/API_docs_v53/constructors/messages_savedGifs.md @@ -22,7 +22,7 @@ description: messages_savedGifs attributes, type and example ### Example: ``` -$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document]]; +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/messages_stickerSet.md b/old_docs/API_docs_v53/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v53/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v53/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/messages_stickers.md b/old_docs/API_docs_v53/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v53/constructors/messages_stickers.md +++ b/old_docs/API_docs_v53/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/photo.md b/old_docs/API_docs_v53/constructors/photo.md index f2bdf059..7212469f 100644 --- a/old_docs/API_docs_v53/constructors/photo.md +++ b/old_docs/API_docs_v53/constructors/photo.md @@ -24,7 +24,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/photos_photo.md b/old_docs/API_docs_v53/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v53/constructors/photos_photo.md +++ b/old_docs/API_docs_v53/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/photos_photos.md b/old_docs/API_docs_v53/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v53/constructors/photos_photos.md +++ b/old_docs/API_docs_v53/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/photos_photosSlice.md b/old_docs/API_docs_v53/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v53/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v53/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v53/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v53/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v53/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v53/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v53/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v53/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/replyInlineMarkup.md b/old_docs/API_docs_v53/constructors/replyInlineMarkup.md index 80d2ff77..95257485 100644 --- a/old_docs/API_docs_v53/constructors/replyInlineMarkup.md +++ b/old_docs/API_docs_v53/constructors/replyInlineMarkup.md @@ -21,7 +21,7 @@ description: replyInlineMarkup attributes, type and example ### Example: ``` -$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow]]; +$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v53/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v53/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v53/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/stickerPack.md b/old_docs/API_docs_v53/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v53/constructors/stickerPack.md +++ b/old_docs/API_docs_v53/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/topPeerCategoryPeers.md b/old_docs/API_docs_v53/constructors/topPeerCategoryPeers.md index acd5cf08..03b78ed3 100644 --- a/old_docs/API_docs_v53/constructors/topPeerCategoryPeers.md +++ b/old_docs/API_docs_v53/constructors/topPeerCategoryPeers.md @@ -23,7 +23,7 @@ description: topPeerCategoryPeers attributes, type and example ### Example: ``` -$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer]]; +$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer, TopPeer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/updateDcOptions.md b/old_docs/API_docs_v53/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v53/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v53/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v53/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v53/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v53/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/updateDeleteMessages.md b/old_docs/API_docs_v53/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v53/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v53/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/updatePrivacy.md b/old_docs/API_docs_v53/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v53/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v53/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v53/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v53/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v53/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/updateShortChatMessage.md b/old_docs/API_docs_v53/constructors/updateShortChatMessage.md index 08aa61a5..f6310d0d 100644 --- a/old_docs/API_docs_v53/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v53/constructors/updateShortChatMessage.md @@ -35,7 +35,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v53/constructors/updateShortMessage.md b/old_docs/API_docs_v53/constructors/updateShortMessage.md index 608d2a30..24f07b99 100644 --- a/old_docs/API_docs_v53/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v53/constructors/updateShortMessage.md @@ -34,7 +34,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v53/constructors/updateShortSentMessage.md b/old_docs/API_docs_v53/constructors/updateShortSentMessage.md index 28f82e3a..ebc40cf9 100644 --- a/old_docs/API_docs_v53/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v53/constructors/updateShortSentMessage.md @@ -27,7 +27,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$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: diff --git a/old_docs/API_docs_v53/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v53/constructors/updateStickerSetsOrder.md index 853e8658..260af879 100644 --- a/old_docs/API_docs_v53/constructors/updateStickerSetsOrder.md +++ b/old_docs/API_docs_v53/constructors/updateStickerSetsOrder.md @@ -21,7 +21,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/updates.md b/old_docs/API_docs_v53/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v53/constructors/updates.md +++ b/old_docs/API_docs_v53/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/updatesCombined.md b/old_docs/API_docs_v53/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v53/constructors/updatesCombined.md +++ b/old_docs/API_docs_v53/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v53/constructors/updates_channelDifference.md b/old_docs/API_docs_v53/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v53/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v53/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v53/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v53/constructors/updates_channelDifferenceTooLong.md index 8e3a01aa..0ff98bf6 100644 --- a/old_docs/API_docs_v53/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v53/constructors/updates_channelDifferenceTooLong.md @@ -30,7 +30,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$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, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/constructors/updates_difference.md b/old_docs/API_docs_v53/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v53/constructors/updates_difference.md +++ b/old_docs/API_docs_v53/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v53/constructors/updates_differenceSlice.md b/old_docs/API_docs_v53/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v53/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v53/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v53/constructors/wallPaper.md b/old_docs/API_docs_v53/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v53/constructors/wallPaper.md +++ b/old_docs/API_docs_v53/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v53/methods/README.md b/old_docs/API_docs_v53/methods/README.md index b1bf6b63..fc8d1e19 100644 --- a/old_docs/API_docs_v53/methods/README.md +++ b/old_docs/API_docs_v53/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v53/methods/account_changePhone.md b/old_docs/API_docs_v53/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v53/methods/account_changePhone.md +++ b/old_docs/API_docs_v53/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_checkUsername.md b/old_docs/API_docs_v53/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v53/methods/account_checkUsername.md +++ b/old_docs/API_docs_v53/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_deleteAccount.md b/old_docs/API_docs_v53/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v53/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v53/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_getAccountTTL.md b/old_docs/API_docs_v53/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v53/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v53/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v53/methods/account_getAuthorizations.md b/old_docs/API_docs_v53/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v53/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v53/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v53/methods/account_getNotifySettings.md b/old_docs/API_docs_v53/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v53/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v53/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_getPassword.md b/old_docs/API_docs_v53/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v53/methods/account_getPassword.md +++ b/old_docs/API_docs_v53/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v53/methods/account_getPasswordSettings.md b/old_docs/API_docs_v53/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v53/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v53/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_getPrivacy.md b/old_docs/API_docs_v53/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v53/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v53/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_getWallPapers.md b/old_docs/API_docs_v53/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v53/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v53/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v53/methods/account_registerDevice.md b/old_docs/API_docs_v53/methods/account_registerDevice.md index 8be04ad2..0bf6d1ee 100644 --- a/old_docs/API_docs_v53/methods/account_registerDevice.md +++ b/old_docs/API_docs_v53/methods/account_registerDevice.md @@ -1,17 +1,19 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_reportPeer.md b/old_docs/API_docs_v53/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v53/methods/account_reportPeer.md +++ b/old_docs/API_docs_v53/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_resetAuthorization.md b/old_docs/API_docs_v53/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v53/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v53/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_resetNotifySettings.md b/old_docs/API_docs_v53/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v53/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v53/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md index 017b5f7f..9e5016a4 100644 --- a/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|phone\_number|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can the code be sent using a flash call instead of an SMS?| +|phone\_number|[string](../types/string.md) | Yes|New phone number| +|current\_number|[Bool](../types/Bool.md) | Optional|Current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_setAccountTTL.md b/old_docs/API_docs_v53/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v53/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v53/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_setPrivacy.md b/old_docs/API_docs_v53/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v53/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v53/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/account_unregisterDevice.md b/old_docs/API_docs_v53/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v53/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v53/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v53/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v53/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v53/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_updateNotifySettings.md b/old_docs/API_docs_v53/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v53/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v53/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_updateProfile.md b/old_docs/API_docs_v53/methods/account_updateProfile.md index b3d468d1..8b0c3268 100644 --- a/old_docs/API_docs_v53/methods/account_updateProfile.md +++ b/old_docs/API_docs_v53/methods/account_updateProfile.md @@ -1,18 +1,20 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Optional| -|last\_name|[string](../types/string.md) | Optional| -|about|[string](../types/string.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Optional|The first name| +|last\_name|[string](../types/string.md) | Optional|The last name| +|about|[string](../types/string.md) | Optional|The bio/about field| ### Return type: [User](../types/User.md) @@ -32,13 +34,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_updateStatus.md b/old_docs/API_docs_v53/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v53/methods/account_updateStatus.md +++ b/old_docs/API_docs_v53/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v53/methods/account_updateUsername.md b/old_docs/API_docs_v53/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v53/methods/account_updateUsername.md +++ b/old_docs/API_docs_v53/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v53/methods/auth_cancelCode.md b/old_docs/API_docs_v53/methods/auth_cancelCode.md index 05d927a1..1283e1e5 100644 --- a/old_docs/API_docs_v53/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v53/methods/auth_cancelCode.md @@ -1,17 +1,19 @@ --- title: auth.cancelCode -description: auth.cancelCode parameters, return type and example +description: Invalidate sent phone code --- ## Method: auth.cancelCode [Back to methods index](index.md) +Invalidate sent phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: auth.cancelCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/auth_checkPassword.md b/old_docs/API_docs_v53/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v53/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v53/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v53/methods/auth_checkPhone.md b/old_docs/API_docs_v53/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v53/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v53/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/auth_exportAuthorization.md b/old_docs/API_docs_v53/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v53/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v53/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v53/methods/auth_importAuthorization.md b/old_docs/API_docs_v53/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v53/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v53/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v53/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v53/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v53/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v53/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v53/methods/auth_logOut.md b/old_docs/API_docs_v53/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v53/methods/auth_logOut.md +++ b/old_docs/API_docs_v53/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v53/methods/auth_recoverPassword.md b/old_docs/API_docs_v53/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v53/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v53/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v53/methods/auth_resendCode.md b/old_docs/API_docs_v53/methods/auth_resendCode.md index df4803b8..4bfbf379 100644 --- a/old_docs/API_docs_v53/methods/auth_resendCode.md +++ b/old_docs/API_docs_v53/methods/auth_resendCode.md @@ -1,17 +1,19 @@ --- title: auth.resendCode -description: auth.resendCode parameters, return type and example +description: Resend the SMS verification code --- ## Method: auth.resendCode [Back to methods index](index.md) +Resend the SMS verification code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|The phone code hash| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -30,13 +32,18 @@ description: auth.resendCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v53/methods/auth_sendCode.md b/old_docs/API_docs_v53/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v53/methods/auth_sendCode.md +++ b/old_docs/API_docs_v53/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v53/methods/auth_sendInvites.md b/old_docs/API_docs_v53/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v53/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v53/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/auth_signIn.md b/old_docs/API_docs_v53/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v53/methods/auth_signIn.md +++ b/old_docs/API_docs_v53/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v53/methods/auth_signUp.md b/old_docs/API_docs_v53/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v53/methods/auth_signUp.md +++ b/old_docs/API_docs_v53/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v53/methods/channels_checkUsername.md b/old_docs/API_docs_v53/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v53/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v53/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_createChannel.md b/old_docs/API_docs_v53/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v53/methods/channels_createChannel.md +++ b/old_docs/API_docs_v53/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_deleteChannel.md b/old_docs/API_docs_v53/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v53/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_deleteMessages.md b/old_docs/API_docs_v53/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v53/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_editAbout.md b/old_docs/API_docs_v53/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v53/methods/channels_editAbout.md +++ b/old_docs/API_docs_v53/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_editAdmin.md b/old_docs/API_docs_v53/methods/channels_editAdmin.md index c62597e1..146159d9 100644 --- a/old_docs/API_docs_v53/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v53/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |role|[ChannelParticipantRole](../types/ChannelParticipantRole.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_editPhoto.md b/old_docs/API_docs_v53/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v53/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v53/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_editTitle.md b/old_docs/API_docs_v53/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v53/methods/channels_editTitle.md +++ b/old_docs/API_docs_v53/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_exportInvite.md b/old_docs/API_docs_v53/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v53/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v53/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_exportMessageLink.md b/old_docs/API_docs_v53/methods/channels_exportMessageLink.md index 026fe982..7eff4ed8 100644 --- a/old_docs/API_docs_v53/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v53/methods/channels_exportMessageLink.md @@ -10,7 +10,7 @@ description: channels.exportMessageLink parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: channels.exportMessageLink parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_getChannels.md b/old_docs/API_docs_v53/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v53/methods/channels_getChannels.md +++ b/old_docs/API_docs_v53/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/channels_getFullChannel.md b/old_docs/API_docs_v53/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v53/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v53/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v53/methods/channels_getMessages.md b/old_docs/API_docs_v53/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v53/methods/channels_getMessages.md +++ b/old_docs/API_docs_v53/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/channels_getParticipant.md b/old_docs/API_docs_v53/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v53/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v53/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_getParticipants.md b/old_docs/API_docs_v53/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v53/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v53/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_inviteToChannel.md b/old_docs/API_docs_v53/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v53/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v53/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/channels_joinChannel.md b/old_docs/API_docs_v53/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v53/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v53/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_kickFromChannel.md b/old_docs/API_docs_v53/methods/channels_kickFromChannel.md index a2182df8..e4b68581 100644 --- a/old_docs/API_docs_v53/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v53/methods/channels_kickFromChannel.md @@ -10,8 +10,8 @@ description: channels.kickFromChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |kicked|[Bool](../types/Bool.md) | Yes| @@ -24,16 +24,18 @@ description: channels.kickFromChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_leaveChannel.md b/old_docs/API_docs_v53/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v53/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v53/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_readHistory.md b/old_docs/API_docs_v53/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v53/methods/channels_readHistory.md +++ b/old_docs/API_docs_v53/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_reportSpam.md b/old_docs/API_docs_v53/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v53/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v53/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/channels_toggleInvites.md b/old_docs/API_docs_v53/methods/channels_toggleInvites.md index 19669eec..8d977fd0 100644 --- a/old_docs/API_docs_v53/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v53/methods/channels_toggleInvites.md @@ -10,7 +10,7 @@ description: channels.toggleInvites parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -32,13 +32,18 @@ description: channels.toggleInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_toggleSignatures.md b/old_docs/API_docs_v53/methods/channels_toggleSignatures.md index 4aaaeb0c..13d53d92 100644 --- a/old_docs/API_docs_v53/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v53/methods/channels_toggleSignatures.md @@ -10,7 +10,7 @@ description: channels.toggleSignatures parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: channels.toggleSignatures parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md index 3bb6d010..ecc15ce6 100644 --- a/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md @@ -11,7 +11,7 @@ description: channels.updatePinnedMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |silent|[Bool](../types/Bool.md) | Optional| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: channels.updatePinnedMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/channels_updateUsername.md b/old_docs/API_docs_v53/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v53/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v53/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/contacts_block.md b/old_docs/API_docs_v53/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v53/methods/contacts_block.md +++ b/old_docs/API_docs_v53/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v53/methods/contacts_deleteContact.md b/old_docs/API_docs_v53/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v53/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v53/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v53/methods/contacts_deleteContacts.md b/old_docs/API_docs_v53/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v53/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v53/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/contacts_exportCard.md b/old_docs/API_docs_v53/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v53/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v53/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v53/methods/contacts_getBlocked.md b/old_docs/API_docs_v53/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v53/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v53/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/contacts_getContacts.md b/old_docs/API_docs_v53/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v53/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v53/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/contacts_getStatuses.md b/old_docs/API_docs_v53/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v53/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v53/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v53/methods/contacts_getTopPeers.md b/old_docs/API_docs_v53/methods/contacts_getTopPeers.md index d29f6e02..eafcb6ec 100644 --- a/old_docs/API_docs_v53/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v53/methods/contacts_getTopPeers.md @@ -1,23 +1,25 @@ --- title: contacts.getTopPeers -description: contacts.getTopPeers parameters, return type and example +description: Get most used chats --- ## Method: contacts.getTopPeers [Back to methods index](index.md) +Get most used chats + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|correspondents|[Bool](../types/Bool.md) | Optional| -|bots\_pm|[Bool](../types/Bool.md) | Optional| -|bots\_inline|[Bool](../types/Bool.md) | Optional| -|groups|[Bool](../types/Bool.md) | Optional| -|channels|[Bool](../types/Bool.md) | Optional| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|correspondents|[Bool](../types/Bool.md) | Optional|| +|bots\_pm|[Bool](../types/Bool.md) | Optional|| +|bots\_inline|[Bool](../types/Bool.md) | Optional|| +|groups|[Bool](../types/Bool.md) | Optional|| +|channels|[Bool](../types/Bool.md) | Optional|| +|offset|[int](../types/int.md) | Yes|| +|limit|[int](../types/int.md) | Yes|| +|hash|[int](../types/int.md) | Yes|| ### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md) @@ -36,13 +38,18 @@ description: contacts.getTopPeers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/contacts_importCard.md b/old_docs/API_docs_v53/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v53/methods/contacts_importCard.md +++ b/old_docs/API_docs_v53/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/contacts_importContacts.md b/old_docs/API_docs_v53/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v53/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v53/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md index 3eab7e04..ddcf6b2f 100644 --- a/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md @@ -11,7 +11,7 @@ description: contacts.resetTopPeerRating parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |category|[TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v53/methods/contacts_resolveUsername.md b/old_docs/API_docs_v53/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v53/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v53/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v53/methods/contacts_search.md b/old_docs/API_docs_v53/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v53/methods/contacts_search.md +++ b/old_docs/API_docs_v53/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/contacts_unblock.md b/old_docs/API_docs_v53/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v53/methods/contacts_unblock.md +++ b/old_docs/API_docs_v53/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v53/methods/help_getAppChangelog.md b/old_docs/API_docs_v53/methods/help_getAppChangelog.md index 0f8a12bd..840b79f7 100644 --- a/old_docs/API_docs_v53/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v53/methods/help_getAppChangelog.md @@ -17,13 +17,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(); ``` diff --git a/old_docs/API_docs_v53/methods/help_getAppUpdate.md b/old_docs/API_docs_v53/methods/help_getAppUpdate.md index 89ff22c3..0e227d24 100644 --- a/old_docs/API_docs_v53/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v53/methods/help_getAppUpdate.md @@ -17,13 +17,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); ``` diff --git a/old_docs/API_docs_v53/methods/help_getConfig.md b/old_docs/API_docs_v53/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v53/methods/help_getConfig.md +++ b/old_docs/API_docs_v53/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v53/methods/help_getInviteText.md b/old_docs/API_docs_v53/methods/help_getInviteText.md index 6d2674d6..a8d8992e 100644 --- a/old_docs/API_docs_v53/methods/help_getInviteText.md +++ b/old_docs/API_docs_v53/methods/help_getInviteText.md @@ -17,13 +17,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); ``` diff --git a/old_docs/API_docs_v53/methods/help_getNearestDc.md b/old_docs/API_docs_v53/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v53/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v53/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v53/methods/help_getSupport.md b/old_docs/API_docs_v53/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v53/methods/help_getSupport.md +++ b/old_docs/API_docs_v53/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v53/methods/help_getTermsOfService.md b/old_docs/API_docs_v53/methods/help_getTermsOfService.md index eb686506..a588e830 100644 --- a/old_docs/API_docs_v53/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v53/methods/help_getTermsOfService.md @@ -17,13 +17,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); ``` diff --git a/old_docs/API_docs_v53/methods/help_saveAppLog.md b/old_docs/API_docs_v53/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v53/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v53/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/initConnection.md b/old_docs/API_docs_v53/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v53/methods/initConnection.md +++ b/old_docs/API_docs_v53/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v53/methods/invokeAfterMsg.md b/old_docs/API_docs_v53/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v53/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v53/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v53/methods/invokeAfterMsgs.md b/old_docs/API_docs_v53/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v53/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v53/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/invokeWithLayer.md b/old_docs/API_docs_v53/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v53/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v53/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v53/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v53/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v53/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v53/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_acceptEncryption.md b/old_docs/API_docs_v53/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v53/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v53/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v53/methods/messages_addChatUser.md b/old_docs/API_docs_v53/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v53/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v53/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_checkChatInvite.md b/old_docs/API_docs_v53/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v53/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_createChat.md b/old_docs/API_docs_v53/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v53/methods/messages_createChat.md +++ b/old_docs/API_docs_v53/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/messages_deleteChatUser.md b/old_docs/API_docs_v53/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v53/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v53/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_deleteHistory.md b/old_docs/API_docs_v53/methods/messages_deleteHistory.md index d1c3f195..01686b2b 100644 --- a/old_docs/API_docs_v53/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v53/methods/messages_deleteHistory.md @@ -11,7 +11,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |just\_clear|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_deleteMessages.md b/old_docs/API_docs_v53/methods/messages_deleteMessages.md index 38b3ca09..12347c81 100644 --- a/old_docs/API_docs_v53/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v53/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/messages_discardEncryption.md b/old_docs/API_docs_v53/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v53/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v53/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v53/methods/messages_editChatAdmin.md b/old_docs/API_docs_v53/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v53/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v53/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_editChatPhoto.md b/old_docs/API_docs_v53/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v53/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v53/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_editChatTitle.md b/old_docs/API_docs_v53/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v53/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v53/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md index c3489f9d..289100ea 100644 --- a/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md @@ -35,18 +35,20 @@ description: messages.editInlineBotMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/messages_editMessage.md b/old_docs/API_docs_v53/methods/messages_editMessage.md index 182fa03e..63379ed9 100644 --- a/old_docs/API_docs_v53/methods/messages_editMessage.md +++ b/old_docs/API_docs_v53/methods/messages_editMessage.md @@ -11,7 +11,7 @@ description: messages.editMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| |message|[string](../types/string.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -44,18 +44,20 @@ description: messages.editMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/messages_exportChatInvite.md b/old_docs/API_docs_v53/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v53/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_forwardMessage.md b/old_docs/API_docs_v53/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v53/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v53/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_forwardMessages.md b/old_docs/API_docs_v53/methods/messages_forwardMessages.md index 013d6327..27be75c1 100644 --- a/old_docs/API_docs_v53/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v53/methods/messages_forwardMessages.md @@ -12,9 +12,9 @@ description: messages.forwardMessages parameters, return type and example |----------|---------------|----------| |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -54,18 +54,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/messages_getAllDrafts.md b/old_docs/API_docs_v53/methods/messages_getAllDrafts.md index 8550c5b8..7f0f7843 100644 --- a/old_docs/API_docs_v53/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v53/methods/messages_getAllDrafts.md @@ -17,13 +17,18 @@ description: messages.getAllDrafts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); ``` diff --git a/old_docs/API_docs_v53/methods/messages_getAllStickers.md b/old_docs/API_docs_v53/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/old_docs/API_docs_v53/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v53/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md index 4055a065..3bcfa462 100644 --- a/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md @@ -10,7 +10,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |msg\_id|[int](../types/int.md) | Yes| |data|[bytes](../types/bytes.md) | Yes| @@ -35,13 +35,18 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_getChats.md b/old_docs/API_docs_v53/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v53/methods/messages_getChats.md +++ b/old_docs/API_docs_v53/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/messages_getDhConfig.md b/old_docs/API_docs_v53/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v53/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v53/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_getDialogs.md b/old_docs/API_docs_v53/methods/messages_getDialogs.md index 934e3b80..323bb791 100644 --- a/old_docs/API_docs_v53/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v53/methods/messages_getDialogs.md @@ -12,7 +12,7 @@ description: messages.getDialogs parameters, return type and example |----------|---------------|----------| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -35,13 +35,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_getFullChat.md b/old_docs/API_docs_v53/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v53/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v53/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v53/methods/messages_getHistory.md b/old_docs/API_docs_v53/methods/messages_getHistory.md index ef31c435..87b8328d 100644 --- a/old_docs/API_docs_v53/methods/messages_getHistory.md +++ b/old_docs/API_docs_v53/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| @@ -40,13 +40,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md index 90e2a427..6d965b19 100644 --- a/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md @@ -10,8 +10,8 @@ description: messages.getInlineBotResults parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |query|[string](../types/string.md) | Yes| |offset|[string](../types/string.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_getMessageEditData.md b/old_docs/API_docs_v53/methods/messages_getMessageEditData.md index df71c31a..2a90a419 100644 --- a/old_docs/API_docs_v53/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v53/methods/messages_getMessageEditData.md @@ -10,7 +10,7 @@ description: messages.getMessageEditData parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getMessageEditData parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_getMessages.md b/old_docs/API_docs_v53/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v53/methods/messages_getMessages.md +++ b/old_docs/API_docs_v53/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/messages_getMessagesViews.md b/old_docs/API_docs_v53/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v53/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v53/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md index 226948ae..eff29878 100644 --- a/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md @@ -10,7 +10,7 @@ description: messages.getPeerDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peers|Array of [InputPeer](../types/InputPeer.md) | Yes| +|peers|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md) @@ -30,15 +30,20 @@ description: messages.getPeerDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/messages_getPeerSettings.md b/old_docs/API_docs_v53/methods/messages_getPeerSettings.md index fab25034..25906b73 100644 --- a/old_docs/API_docs_v53/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v53/methods/messages_getPeerSettings.md @@ -10,7 +10,7 @@ description: messages.getPeerSettings parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [PeerSettings](../types/PeerSettings.md) @@ -30,13 +30,18 @@ description: messages.getPeerSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_getSavedGifs.md b/old_docs/API_docs_v53/methods/messages_getSavedGifs.md index 4986d812..bcb4590d 100644 --- a/old_docs/API_docs_v53/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v53/methods/messages_getSavedGifs.md @@ -22,13 +22,18 @@ description: messages.getSavedGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_getStickerSet.md b/old_docs/API_docs_v53/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v53/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v53/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_getStickers.md b/old_docs/API_docs_v53/methods/messages_getStickers.md index 1587cd01..6ac68c87 100644 --- a/old_docs/API_docs_v53/methods/messages_getStickers.md +++ b/old_docs/API_docs_v53/methods/messages_getStickers.md @@ -23,16 +23,18 @@ description: messages.getStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v53/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v53/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v53/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_hideReportSpam.md b/old_docs/API_docs_v53/methods/messages_hideReportSpam.md index d47e8aa5..0419ec79 100644 --- a/old_docs/API_docs_v53/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v53/methods/messages_hideReportSpam.md @@ -10,7 +10,7 @@ description: messages.hideReportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.hideReportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_importChatInvite.md b/old_docs/API_docs_v53/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v53/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_installStickerSet.md b/old_docs/API_docs_v53/methods/messages_installStickerSet.md index 1a31c0e7..ccabd393 100644 --- a/old_docs/API_docs_v53/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v53/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_migrateChat.md b/old_docs/API_docs_v53/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v53/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v53/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_readHistory.md b/old_docs/API_docs_v53/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v53/methods/messages_readHistory.md +++ b/old_docs/API_docs_v53/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_readMessageContents.md b/old_docs/API_docs_v53/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v53/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v53/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/messages_receivedMessages.md b/old_docs/API_docs_v53/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v53/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v53/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_receivedQueue.md b/old_docs/API_docs_v53/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v53/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v53/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v53/methods/messages_reorderStickerSets.md index e09057e7..eee7d0f2 100644 --- a/old_docs/API_docs_v53/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v53/methods/messages_reorderStickerSets.md @@ -22,15 +22,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/messages_reportSpam.md b/old_docs/API_docs_v53/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v53/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v53/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_requestEncryption.md b/old_docs/API_docs_v53/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v53/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v53/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v53/methods/messages_saveDraft.md b/old_docs/API_docs_v53/methods/messages_saveDraft.md index 7a85dfe7..754b4da2 100644 --- a/old_docs/API_docs_v53/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v53/methods/messages_saveDraft.md @@ -12,7 +12,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |message|[string](../types/string.md) | Yes| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| |parse\_mode| [string](../types/string.md) | Optional | @@ -34,15 +34,20 @@ description: messages.saveDraft parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/messages_saveGif.md b/old_docs/API_docs_v53/methods/messages_saveGif.md index b3673c91..725bc949 100644 --- a/old_docs/API_docs_v53/methods/messages_saveGif.md +++ b/old_docs/API_docs_v53/methods/messages_saveGif.md @@ -10,7 +10,7 @@ description: messages.saveGif parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveGif parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_search.md b/old_docs/API_docs_v53/methods/messages_search.md index f6aa515b..11b968bf 100644 --- a/old_docs/API_docs_v53/methods/messages_search.md +++ b/old_docs/API_docs_v53/methods/messages_search.md @@ -10,7 +10,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -42,13 +42,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_searchGifs.md b/old_docs/API_docs_v53/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/old_docs/API_docs_v53/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v53/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_searchGlobal.md b/old_docs/API_docs_v53/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v53/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v53/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_sendBroadcast.md b/old_docs/API_docs_v53/methods/messages_sendBroadcast.md index 725d1f34..0ab60e43 100644 --- a/old_docs/API_docs_v53/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v53/methods/messages_sendBroadcast.md @@ -10,9 +10,9 @@ description: messages.sendBroadcast parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|contacts|Array of [InputUser](../types/InputUser.md) | Yes| +|contacts|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |message|[string](../types/string.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -24,18 +24,20 @@ description: messages.sendBroadcast parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser], 'message' => 'string', 'media' => InputMedia, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/messages_sendEncrypted.md b/old_docs/API_docs_v53/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md index 0857341e..6bfb1578 100644 --- a/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md @@ -13,7 +13,7 @@ description: messages.sendInlineBotResult parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |query\_id|[long](../types/long.md) | Yes| |id|[string](../types/string.md) | Yes| @@ -40,13 +40,18 @@ description: messages.sendInlineBotResult parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_sendMedia.md b/old_docs/API_docs_v53/methods/messages_sendMedia.md index 8c6f7f7f..1530451b 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v53/methods/messages_sendMedia.md @@ -13,9 +13,9 @@ description: messages.sendMedia parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -56,16 +56,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_sendMessage.md b/old_docs/API_docs_v53/methods/messages_sendMessage.md index bec95b8c..49ace99c 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v53/methods/messages_sendMessage.md @@ -14,7 +14,7 @@ description: messages.sendMessage parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -50,6 +50,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -57,18 +58,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$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], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md index bf8cabb2..559fc174 100644 --- a/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md @@ -31,16 +31,18 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md index 8b49c4c7..c38b8c2e 100644 --- a/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md @@ -45,18 +45,20 @@ description: messages.setInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/messages_setTyping.md b/old_docs/API_docs_v53/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v53/methods/messages_setTyping.md +++ b/old_docs/API_docs_v53/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_startBot.md b/old_docs/API_docs_v53/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v53/methods/messages_startBot.md +++ b/old_docs/API_docs_v53/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v53/methods/photos_deletePhotos.md b/old_docs/API_docs_v53/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v53/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v53/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/methods/photos_getUserPhotos.md b/old_docs/API_docs_v53/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v53/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v53/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v53/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v53/methods/photos_updateProfilePhoto.md index d3acbb56..fbe84e26 100644 --- a/old_docs/API_docs_v53/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v53/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -23,13 +23,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md index de7c2281..303ed4ea 100644 --- a/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -35,13 +35,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v53/methods/updates_getChannelDifference.md b/old_docs/API_docs_v53/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v53/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v53/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v53/methods/updates_getDifference.md b/old_docs/API_docs_v53/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v53/methods/updates_getDifference.md +++ b/old_docs/API_docs_v53/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v53/methods/updates_getState.md b/old_docs/API_docs_v53/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v53/methods/updates_getState.md +++ b/old_docs/API_docs_v53/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v53/methods/upload_getFile.md b/old_docs/API_docs_v53/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v53/methods/upload_getFile.md +++ b/old_docs/API_docs_v53/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v53/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v53/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v53/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v53/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v53/methods/upload_saveFilePart.md b/old_docs/API_docs_v53/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v53/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v53/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v53/methods/users_getFullUser.md b/old_docs/API_docs_v53/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v53/methods/users_getFullUser.md +++ b/old_docs/API_docs_v53/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v53/methods/users_getUsers.md b/old_docs/API_docs_v53/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v53/methods/users_getUsers.md +++ b/old_docs/API_docs_v53/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v53/types/Chat.md b/old_docs/API_docs_v53/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v53/types/Chat.md +++ b/old_docs/API_docs_v53/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v53/types/InputChannel.md b/old_docs/API_docs_v53/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v53/types/InputChannel.md +++ b/old_docs/API_docs_v53/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v53/types/InputDocument.md b/old_docs/API_docs_v53/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v53/types/InputDocument.md +++ b/old_docs/API_docs_v53/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v53/types/InputEncryptedChat.md b/old_docs/API_docs_v53/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v53/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v53/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v53/types/InputEncryptedFile.md b/old_docs/API_docs_v53/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v53/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v53/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v53/types/InputFile.md b/old_docs/API_docs_v53/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v53/types/InputFile.md +++ b/old_docs/API_docs_v53/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v53/types/InputMedia.md b/old_docs/API_docs_v53/types/InputMedia.md index e3a8492a..eb541612 100644 --- a/old_docs/API_docs_v53/types/InputMedia.md +++ b/old_docs/API_docs_v53/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v53/types/InputPeer.md b/old_docs/API_docs_v53/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v53/types/InputPeer.md +++ b/old_docs/API_docs_v53/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v53/types/InputPhoto.md b/old_docs/API_docs_v53/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v53/types/InputPhoto.md +++ b/old_docs/API_docs_v53/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v53/types/InputUser.md b/old_docs/API_docs_v53/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v53/types/InputUser.md +++ b/old_docs/API_docs_v53/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v53/types/Peer.md b/old_docs/API_docs_v53/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v53/types/Peer.md +++ b/old_docs/API_docs_v53/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v53/types/User.md b/old_docs/API_docs_v53/types/User.md index a9d4addd..30fd113c 100644 --- a/old_docs/API_docs_v53/types/User.md +++ b/old_docs/API_docs_v53/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v55/Lang.php b/old_docs/API_docs_v55/Lang.php new file mode 100644 index 00000000..3132a1be --- /dev/null +++ b/old_docs/API_docs_v55/Lang.php @@ -0,0 +1,2352 @@ +. + */ + +namespace danog\MadelineProto; + +class Lang +{ + public static $lang = array ( + 'it' => + array ( + 'phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istanziamento dei DataCenter...', + 'load_rsa' => 'Caricamento delle chiavi RSA...', + 'TL_translation' => 'Translazione degli schemi TL...', + 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', + 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', + 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', + 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', + 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', + 'threading_on' => 'IL THREADING È ABILITATO', + 'socket_reader' => 'Lettore socket su DC %s: ', + 'socket_status_1' => 'CREAZIONE', + 'socket_status_2' => 'INVIO', + 'socket_status_3' => 'ATTESA', + 'socket_status_4' => 'PRONTO', + 'socket_status_5' => 'AVVIATO', + 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', + 'session_corrupted' => 'La sessione si è corrotta!', + 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', + 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', + 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', + 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', + 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', + 'config_updated' => 'La configurazione è stata aggiornata!', + 'length_not_4' => 'La lunghezza non è uguale a 4', + 'length_not_8' => 'La lunghezza non è uguale a 8', + 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', + 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', + 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', + 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', + 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', + 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', + 'file_not_exist' => 'Il file specificato non esiste', + 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', + 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', + 'loading_key' => 'Caricamento della chiave in corso...', + 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', + 'rsa_encrypting' => 'Criptando con chiave RSA...', + 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', + 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', + 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', + 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', + 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', + 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', + 'socket_con_error' => 'Connessione fallita.', + 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', + 'protocol_invalid' => 'È stato fornito un protocollo non valido', + 'nothing_in_socket' => 'Non c\'è niente nel socket!', + 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', + 'no_data_in_socket' => 'Non ci sono dati nel socket!', + 'dc_con_start' => 'Connessione al DC %s in corso...', + 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', + 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', + 'script_not_exist' => 'Lo script fornito non esiste', + 'apifactory_start' => 'Sto avviando la fabbrica di API...', + 'madelineproto_ready' => 'MadelineProto è pronto!', + 'logout_error' => 'C\'è stato un errore durante il logout!', + 'logout_ok' => 'Il logout è stato eseguito correttamente!', + 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', + 'login_ok' => 'Il login è stato eseguito correttamente!', + 'login_user' => 'Sto eseguendo il login come utente normale...', + 'login_bot' => 'Sto eseguendo il login come bot...', + 'login_code_sending' => 'Sto inviando il codice...', + 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', + 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', + 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', + 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', + 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', + 'not_logged_in' => 'Non ho ancora fatto il login!', + 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', + 'signing_up' => 'Mi sto registrando su telegram come utente normale...', + 'signup_ok' => 'Mi sono registrato su Telegram!', + '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', + 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', + 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', + 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', + 'calling_user' => 'Sto chiamando %s...', + 'generating_a' => 'Sto generando a...', + 'generating_g_a' => 'Sto generando g_a...', + 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', + 'accepting_call' => 'Sto accettando una chiamata da %s...', + 'generating_b' => 'Sto generando b...', + 'call_already_accepted' => 'La chiamata %s è già stata accettata.', + 'call_already_declined' => 'La chiamata %s è già stata annullata.', + 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', + 'call_confirming' => 'Sto confermando una chiamata da %s', + 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', + 'call_completing' => 'Sto completando una chiamata da %s...', + 'invalid_g_a' => 'g_a non valido!', + 'fingerprint_invalid' => 'fingerprint della chiave non valido!', + 'call_discarding' => 'Sto rifiutando la chiamata %s...', + 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', + 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', + 'TL_loading' => 'Sto caricando gli schemi TL...', + 'file_parsing' => 'Leggendo %s...', + 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', + 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', + 'translating_obj' => 'Traducendo gli oggetti...', + 'translating_methods' => 'Traducendo i metodi...', + 'bool_error' => 'Non sono riuscito ad estrarre un booleano', + 'not_numeric' => 'Il valore fornito non è numerico', + 'long_not_16' => 'Il valore fornito non è lungo 16 byte', + 'long_not_32' => 'Il valore fornito non è lungo 32 byte', + 'long_not_64' => 'Il valore fornito non è lungo 64 byte', + 'array_invalid' => 'Il valore fornito non è un array', + 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', + 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', + 'method_not_found' => 'Impossibile trovare il seguente metodo: ', + 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', + 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', + 'stream_handle_invalid' => 'Il valore fornito non è uno stream', + 'length_too_big' => 'Il valore fornito è troppo lungo', + 'deserialize_not_str' => 'Il valore generato non è una stringa', + 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', + 'vector_invalid' => 'ID vettore non valido: ', + 'constructor_not_found' => 'Costruttore non trovato per tipo: ', + 'rand_bytes_too_small' => 'random_bytes è troppo corto!', + 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', + 'non_text_conversion' => 'Non posso ancora convertire messaggi media', + 'last_byte_invalid' => 'L\'ultimo byte non è valido', + 'file_type_invalid' => 'È stato fornito un tipo file errato', + 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', + 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', + 'shutting_down_reader_pool' => 'Chisura pool di lettura', + 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', + 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', + 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', + 'msg_data_length_too_big' => 'message_data_length è troppo grande', + 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', + 'msg_key_mismatch' => 'msg_key non valido', + 'rand_bytes_too_short' => 'random_bytes è troppo corto!', + 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', + 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', + 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', + 'req_pq' => 'Sto richiedendo pq...', + 'done' => 'Fatto!', + 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', + 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!', + ), + 'en' => + array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', + 'method_messages.search_param_important_only' => '', + 'method_messages.sendMessage_param_broadcast' => '', + 'method_messages.sendMedia_param_broadcast' => '', + 'method_messages.forwardMessages_param_broadcast' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id' => '', + 'method_messages.deactivateChat_param_enabled' => '', + 'method_help.getTermsOfService_param_lang_code' => '', + 'method_messages.sendInlineBotResult_param_broadcast' => '', + 'method_channels.getImportantHistory_param_offset_date' => '', + 'method_messages.getUnusedStickers' => '', + 'method_messages.getUnusedStickers_param_limit' => '', + ), +); + + // THIS WILL BE OVERWRITTEN BY $lang["en"] + public static $current_lang = array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', + 'method_messages.search_param_important_only' => '', + 'method_messages.sendMessage_param_broadcast' => '', + 'method_messages.sendMedia_param_broadcast' => '', + 'method_messages.forwardMessages_param_broadcast' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id' => '', + 'method_messages.deactivateChat_param_enabled' => '', + 'method_help.getTermsOfService_param_lang_code' => '', + 'method_messages.sendInlineBotResult_param_broadcast' => '', + 'method_channels.getImportantHistory_param_offset_date' => '', + 'method_messages.getUnusedStickers' => '', + 'method_messages.getUnusedStickers_param_limit' => '', +); +} \ No newline at end of file diff --git a/old_docs/API_docs_v55/constructors/account_authorizations.md b/old_docs/API_docs_v55/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v55/constructors/account_authorizations.md +++ b/old_docs/API_docs_v55/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/account_privacyRules.md b/old_docs/API_docs_v55/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v55/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v55/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/botInfo.md b/old_docs/API_docs_v55/constructors/botInfo.md index bee4a540..25a27913 100644 --- a/old_docs/API_docs_v55/constructors/botInfo.md +++ b/old_docs/API_docs_v55/constructors/botInfo.md @@ -23,7 +23,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/botInlineMessageText.md b/old_docs/API_docs_v55/constructors/botInlineMessageText.md index dc00808b..feb5e9d0 100644 --- a/old_docs/API_docs_v55/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v55/constructors/botInlineMessageText.md @@ -24,7 +24,7 @@ description: botInlineMessageText attributes, type and example ### Example: ``` -$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/channelFull.md b/old_docs/API_docs_v55/constructors/channelFull.md index d51c5e6d..d16eda19 100644 --- a/old_docs/API_docs_v55/constructors/channelFull.md +++ b/old_docs/API_docs_v55/constructors/channelFull.md @@ -37,7 +37,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_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]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/channelMessagesFilter.md b/old_docs/API_docs_v55/constructors/channelMessagesFilter.md index 0a731ce9..ad9a592e 100644 --- a/old_docs/API_docs_v55/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v55/constructors/channelMessagesFilter.md @@ -22,7 +22,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/channels_channelParticipant.md b/old_docs/API_docs_v55/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v55/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v55/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/channels_channelParticipants.md b/old_docs/API_docs_v55/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v55/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v55/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/chatFull.md b/old_docs/API_docs_v55/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v55/constructors/chatFull.md +++ b/old_docs/API_docs_v55/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/chatInvite.md b/old_docs/API_docs_v55/constructors/chatInvite.md index e7000f7b..e9087e0d 100644 --- a/old_docs/API_docs_v55/constructors/chatInvite.md +++ b/old_docs/API_docs_v55/constructors/chatInvite.md @@ -28,7 +28,7 @@ description: chatInvite attributes, type and example ### Example: ``` -$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [User]]; +$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: diff --git a/old_docs/API_docs_v55/constructors/chatParticipants.md b/old_docs/API_docs_v55/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v55/constructors/chatParticipants.md +++ b/old_docs/API_docs_v55/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/config.md b/old_docs/API_docs_v55/constructors/config.md index 5b5ec2aa..23464178 100644 --- a/old_docs/API_docs_v55/constructors/config.md +++ b/old_docs/API_docs_v55/constructors/config.md @@ -43,7 +43,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'tmp_sessions' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'tmp_sessions' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/contacts_blocked.md b/old_docs/API_docs_v55/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v55/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v55/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v55/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v55/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v55/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/contacts_contacts.md b/old_docs/API_docs_v55/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v55/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v55/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/contacts_found.md b/old_docs/API_docs_v55/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v55/constructors/contacts_found.md +++ b/old_docs/API_docs_v55/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/contacts_importedContacts.md b/old_docs/API_docs_v55/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v55/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v55/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v55/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v55/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v55/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/contacts_topPeers.md b/old_docs/API_docs_v55/constructors/contacts_topPeers.md index 17551f5d..07623018 100644 --- a/old_docs/API_docs_v55/constructors/contacts_topPeers.md +++ b/old_docs/API_docs_v55/constructors/contacts_topPeers.md @@ -23,7 +23,7 @@ description: contacts_topPeers attributes, type and example ### Example: ``` -$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers], 'chats' => [Chat], 'users' => [User]]; +$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers, TopPeerCategoryPeers], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/document.md b/old_docs/API_docs_v55/constructors/document.md index 8c0883bb..55d4c017 100644 --- a/old_docs/API_docs_v55/constructors/document.md +++ b/old_docs/API_docs_v55/constructors/document.md @@ -29,7 +29,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/documentAttributeAudio.md b/old_docs/API_docs_v55/constructors/documentAttributeAudio.md index 4d393890..ceb02cba 100644 --- a/old_docs/API_docs_v55/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v55/constructors/documentAttributeAudio.md @@ -12,7 +12,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| |voice|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Optional| |performer|[string](../types/string.md) | Optional| |waveform|[bytes](../types/bytes.md) | Optional| diff --git a/old_docs/API_docs_v55/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v55/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v55/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v55/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v55/constructors/documentAttributeVideo.md b/old_docs/API_docs_v55/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v55/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v55/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v55/constructors/draftMessage.md b/old_docs/API_docs_v55/constructors/draftMessage.md index 13277194..644adc43 100644 --- a/old_docs/API_docs_v55/constructors/draftMessage.md +++ b/old_docs/API_docs_v55/constructors/draftMessage.md @@ -25,7 +25,7 @@ description: draftMessage attributes, type and example ### Example: ``` -$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity], 'date' => int]; +$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'date' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v55/constructors/inputBotInlineMessageText.md index 677e5d8c..ed3ddd1b 100644 --- a/old_docs/API_docs_v55/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v55/constructors/inputBotInlineMessageText.md @@ -24,7 +24,7 @@ description: inputBotInlineMessageText attributes, type and example ### Example: ``` -$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/inputBotInlineResultDocument.md b/old_docs/API_docs_v55/constructors/inputBotInlineResultDocument.md index 2315623b..f27421f9 100644 --- a/old_docs/API_docs_v55/constructors/inputBotInlineResultDocument.md +++ b/old_docs/API_docs_v55/constructors/inputBotInlineResultDocument.md @@ -15,7 +15,7 @@ description: inputBotInlineResultDocument attributes, type and example |type|[string](../types/string.md) | Yes| |title|[string](../types/string.md) | Optional| |description|[string](../types/string.md) | Optional| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v55/constructors/inputBotInlineResultPhoto.md b/old_docs/API_docs_v55/constructors/inputBotInlineResultPhoto.md index d39bd108..9628b4e5 100644 --- a/old_docs/API_docs_v55/constructors/inputBotInlineResultPhoto.md +++ b/old_docs/API_docs_v55/constructors/inputBotInlineResultPhoto.md @@ -13,7 +13,7 @@ description: inputBotInlineResultPhoto attributes, type and example |----------|---------------|----------| |id|[string](../types/string.md) | Yes| |type|[string](../types/string.md) | Yes| -|photo|[InputPhoto](../types/InputPhoto.md) | Optional| +|photo|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v55/constructors/inputChatPhoto.md b/old_docs/API_docs_v55/constructors/inputChatPhoto.md index 4cd81a7c..f10e2da3 100644 --- a/old_docs/API_docs_v55/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v55/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v55/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v55/constructors/inputChatUploadedPhoto.md index 3d88ac48..13857e71 100644 --- a/old_docs/API_docs_v55/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v55/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| diff --git a/old_docs/API_docs_v55/constructors/inputMediaDocument.md b/old_docs/API_docs_v55/constructors/inputMediaDocument.md index 88fed980..66d0baba 100644 --- a/old_docs/API_docs_v55/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v55/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v55/constructors/inputMediaPhoto.md b/old_docs/API_docs_v55/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v55/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v55/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v55/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v55/constructors/inputMediaUploadedDocument.md index 7826457d..675f2562 100644 --- a/old_docs/API_docs_v55/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v55/constructors/inputMediaUploadedDocument.md @@ -11,8 +11,8 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| @@ -24,7 +24,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string']; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v55/constructors/inputMediaUploadedPhoto.md index 42408b9f..58ae37cf 100644 --- a/old_docs/API_docs_v55/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v55/constructors/inputMediaUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v55/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v55/constructors/inputMediaUploadedThumbDocument.md index e0c31f26..ffd8fbff 100644 --- a/old_docs/API_docs_v55/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v55/constructors/inputMediaUploadedThumbDocument.md @@ -11,9 +11,9 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| @@ -25,7 +25,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string']; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/inputNotifyPeer.md b/old_docs/API_docs_v55/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v55/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v55/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v55/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v55/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v55/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v55/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v55/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v55/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v55/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/keyboardButtonRow.md b/old_docs/API_docs_v55/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v55/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v55/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/message.md b/old_docs/API_docs_v55/constructors/message.md index 67b2cd79..dc324ff1 100644 --- a/old_docs/API_docs_v55/constructors/message.md +++ b/old_docs/API_docs_v55/constructors/message.md @@ -38,7 +38,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; +$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v55/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v55/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v55/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messageActionChatCreate.md b/old_docs/API_docs_v55/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v55/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v55/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_allStickers.md b/old_docs/API_docs_v55/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/old_docs/API_docs_v55/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v55/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_archivedStickers.md b/old_docs/API_docs_v55/constructors/messages_archivedStickers.md index 7af238d4..c9675b57 100644 --- a/old_docs/API_docs_v55/constructors/messages_archivedStickers.md +++ b/old_docs/API_docs_v55/constructors/messages_archivedStickers.md @@ -22,7 +22,7 @@ description: messages_archivedStickers attributes, type and example ### Example: ``` -$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered]]; +$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_botResults.md b/old_docs/API_docs_v55/constructors/messages_botResults.md index 472e6dcd..0ae1091e 100644 --- a/old_docs/API_docs_v55/constructors/messages_botResults.md +++ b/old_docs/API_docs_v55/constructors/messages_botResults.md @@ -25,7 +25,7 @@ description: messages_botResults attributes, type and example ### Example: ``` -$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult]]; +$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult, BotInlineResult]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_channelMessages.md b/old_docs/API_docs_v55/constructors/messages_channelMessages.md index 8ec11b2d..358c0c70 100644 --- a/old_docs/API_docs_v55/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v55/constructors/messages_channelMessages.md @@ -25,7 +25,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_chatFull.md b/old_docs/API_docs_v55/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v55/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v55/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_chats.md b/old_docs/API_docs_v55/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v55/constructors/messages_chats.md +++ b/old_docs/API_docs_v55/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_dialogs.md b/old_docs/API_docs_v55/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v55/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v55/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v55/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v55/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v55/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v55/constructors/messages_featuredStickers.md b/old_docs/API_docs_v55/constructors/messages_featuredStickers.md index dac1fd91..0fc54db1 100644 --- a/old_docs/API_docs_v55/constructors/messages_featuredStickers.md +++ b/old_docs/API_docs_v55/constructors/messages_featuredStickers.md @@ -23,7 +23,7 @@ description: messages_featuredStickers attributes, type and example ### Example: ``` -$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered], 'unread' => [long]]; +$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered, StickerSetCovered], 'unread' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_foundGifs.md b/old_docs/API_docs_v55/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/old_docs/API_docs_v55/constructors/messages_foundGifs.md +++ b/old_docs/API_docs_v55/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_messages.md b/old_docs/API_docs_v55/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v55/constructors/messages_messages.md +++ b/old_docs/API_docs_v55/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_messagesSlice.md b/old_docs/API_docs_v55/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v55/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v55/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_peerDialogs.md b/old_docs/API_docs_v55/constructors/messages_peerDialogs.md index bec6c88c..5d25b545 100644 --- a/old_docs/API_docs_v55/constructors/messages_peerDialogs.md +++ b/old_docs/API_docs_v55/constructors/messages_peerDialogs.md @@ -25,7 +25,7 @@ description: messages_peerDialogs attributes, type and example ### Example: ``` -$messages_peerDialogs = ['_' => 'messages.peerDialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v55/constructors/messages_recentStickers.md b/old_docs/API_docs_v55/constructors/messages_recentStickers.md index be5e69a0..a8a53ffe 100644 --- a/old_docs/API_docs_v55/constructors/messages_recentStickers.md +++ b/old_docs/API_docs_v55/constructors/messages_recentStickers.md @@ -22,7 +22,7 @@ description: messages_recentStickers attributes, type and example ### Example: ``` -$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document]]; +$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_savedGifs.md b/old_docs/API_docs_v55/constructors/messages_savedGifs.md index 7e2a00eb..b4ff040d 100644 --- a/old_docs/API_docs_v55/constructors/messages_savedGifs.md +++ b/old_docs/API_docs_v55/constructors/messages_savedGifs.md @@ -22,7 +22,7 @@ description: messages_savedGifs attributes, type and example ### Example: ``` -$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document]]; +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_stickerSet.md b/old_docs/API_docs_v55/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v55/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v55/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_stickerSetInstallResultArchive.md b/old_docs/API_docs_v55/constructors/messages_stickerSetInstallResultArchive.md index f3e510bb..5b7fb05f 100644 --- a/old_docs/API_docs_v55/constructors/messages_stickerSetInstallResultArchive.md +++ b/old_docs/API_docs_v55/constructors/messages_stickerSetInstallResultArchive.md @@ -21,7 +21,7 @@ description: messages_stickerSetInstallResultArchive attributes, type and exampl ### Example: ``` -$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered]]; +$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/messages_stickers.md b/old_docs/API_docs_v55/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v55/constructors/messages_stickers.md +++ b/old_docs/API_docs_v55/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/photo.md b/old_docs/API_docs_v55/constructors/photo.md index f2bdf059..7212469f 100644 --- a/old_docs/API_docs_v55/constructors/photo.md +++ b/old_docs/API_docs_v55/constructors/photo.md @@ -24,7 +24,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/photos_photo.md b/old_docs/API_docs_v55/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v55/constructors/photos_photo.md +++ b/old_docs/API_docs_v55/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/photos_photos.md b/old_docs/API_docs_v55/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v55/constructors/photos_photos.md +++ b/old_docs/API_docs_v55/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/photos_photosSlice.md b/old_docs/API_docs_v55/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v55/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v55/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v55/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v55/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v55/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v55/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v55/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v55/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/replyInlineMarkup.md b/old_docs/API_docs_v55/constructors/replyInlineMarkup.md index 80d2ff77..95257485 100644 --- a/old_docs/API_docs_v55/constructors/replyInlineMarkup.md +++ b/old_docs/API_docs_v55/constructors/replyInlineMarkup.md @@ -21,7 +21,7 @@ description: replyInlineMarkup attributes, type and example ### Example: ``` -$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow]]; +$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v55/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v55/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v55/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/stickerPack.md b/old_docs/API_docs_v55/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v55/constructors/stickerPack.md +++ b/old_docs/API_docs_v55/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/topPeerCategoryPeers.md b/old_docs/API_docs_v55/constructors/topPeerCategoryPeers.md index acd5cf08..03b78ed3 100644 --- a/old_docs/API_docs_v55/constructors/topPeerCategoryPeers.md +++ b/old_docs/API_docs_v55/constructors/topPeerCategoryPeers.md @@ -23,7 +23,7 @@ description: topPeerCategoryPeers attributes, type and example ### Example: ``` -$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer]]; +$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer, TopPeer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/updateDcOptions.md b/old_docs/API_docs_v55/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v55/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v55/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v55/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v55/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v55/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/updateDeleteMessages.md b/old_docs/API_docs_v55/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v55/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v55/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/updatePrivacy.md b/old_docs/API_docs_v55/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v55/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v55/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v55/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v55/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v55/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/updateShortChatMessage.md b/old_docs/API_docs_v55/constructors/updateShortChatMessage.md index 08aa61a5..f6310d0d 100644 --- a/old_docs/API_docs_v55/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v55/constructors/updateShortChatMessage.md @@ -35,7 +35,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v55/constructors/updateShortMessage.md b/old_docs/API_docs_v55/constructors/updateShortMessage.md index 608d2a30..24f07b99 100644 --- a/old_docs/API_docs_v55/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v55/constructors/updateShortMessage.md @@ -34,7 +34,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v55/constructors/updateShortSentMessage.md b/old_docs/API_docs_v55/constructors/updateShortSentMessage.md index 28f82e3a..ebc40cf9 100644 --- a/old_docs/API_docs_v55/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v55/constructors/updateShortSentMessage.md @@ -27,7 +27,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$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: diff --git a/old_docs/API_docs_v55/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v55/constructors/updateStickerSetsOrder.md index 853e8658..260af879 100644 --- a/old_docs/API_docs_v55/constructors/updateStickerSetsOrder.md +++ b/old_docs/API_docs_v55/constructors/updateStickerSetsOrder.md @@ -21,7 +21,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/updates.md b/old_docs/API_docs_v55/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v55/constructors/updates.md +++ b/old_docs/API_docs_v55/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/updatesCombined.md b/old_docs/API_docs_v55/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v55/constructors/updatesCombined.md +++ b/old_docs/API_docs_v55/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v55/constructors/updates_channelDifference.md b/old_docs/API_docs_v55/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v55/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v55/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v55/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v55/constructors/updates_channelDifferenceTooLong.md index 8e3a01aa..0ff98bf6 100644 --- a/old_docs/API_docs_v55/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v55/constructors/updates_channelDifferenceTooLong.md @@ -30,7 +30,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$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, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/constructors/updates_difference.md b/old_docs/API_docs_v55/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v55/constructors/updates_difference.md +++ b/old_docs/API_docs_v55/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v55/constructors/updates_differenceSlice.md b/old_docs/API_docs_v55/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v55/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v55/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v55/constructors/wallPaper.md b/old_docs/API_docs_v55/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v55/constructors/wallPaper.md +++ b/old_docs/API_docs_v55/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v55/methods/README.md b/old_docs/API_docs_v55/methods/README.md index b7175f84..9857704e 100644 --- a/old_docs/API_docs_v55/methods/README.md +++ b/old_docs/API_docs_v55/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v55/methods/account_changePhone.md b/old_docs/API_docs_v55/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v55/methods/account_changePhone.md +++ b/old_docs/API_docs_v55/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_checkUsername.md b/old_docs/API_docs_v55/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v55/methods/account_checkUsername.md +++ b/old_docs/API_docs_v55/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_confirmPhone.md b/old_docs/API_docs_v55/methods/account_confirmPhone.md index 8dd79d94..2261e6e8 100644 --- a/old_docs/API_docs_v55/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v55/methods/account_confirmPhone.md @@ -1,17 +1,19 @@ --- title: account.confirmPhone -description: account.confirmPhone parameters, return type and example +description: Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode --- ## 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 | Required | -|----------|---------------|----------| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_code\_hash|[string](../types/string.md) | Yes|obtain phone_code_hash from sendConfirmPhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The code sent by sendConfirmPhoneCode| ### Return type: [Bool](../types/Bool.md) @@ -31,13 +33,18 @@ description: account.confirmPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_deleteAccount.md b/old_docs/API_docs_v55/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v55/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v55/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_getAccountTTL.md b/old_docs/API_docs_v55/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v55/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v55/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v55/methods/account_getAuthorizations.md b/old_docs/API_docs_v55/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v55/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v55/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v55/methods/account_getNotifySettings.md b/old_docs/API_docs_v55/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v55/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v55/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_getPassword.md b/old_docs/API_docs_v55/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v55/methods/account_getPassword.md +++ b/old_docs/API_docs_v55/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v55/methods/account_getPasswordSettings.md b/old_docs/API_docs_v55/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v55/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v55/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_getPrivacy.md b/old_docs/API_docs_v55/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v55/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v55/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_getWallPapers.md b/old_docs/API_docs_v55/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v55/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v55/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v55/methods/account_registerDevice.md b/old_docs/API_docs_v55/methods/account_registerDevice.md index 8be04ad2..0bf6d1ee 100644 --- a/old_docs/API_docs_v55/methods/account_registerDevice.md +++ b/old_docs/API_docs_v55/methods/account_registerDevice.md @@ -1,17 +1,19 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_reportPeer.md b/old_docs/API_docs_v55/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v55/methods/account_reportPeer.md +++ b/old_docs/API_docs_v55/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_resetAuthorization.md b/old_docs/API_docs_v55/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v55/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v55/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_resetNotifySettings.md b/old_docs/API_docs_v55/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v55/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v55/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md index 017b5f7f..9e5016a4 100644 --- a/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|phone\_number|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can the code be sent using a flash call instead of an SMS?| +|phone\_number|[string](../types/string.md) | Yes|New phone number| +|current\_number|[Bool](../types/Bool.md) | Optional|Current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md index 3665bd50..4de86a33 100644 --- a/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendConfirmPhoneCode -description: account.sendConfirmPhoneCode parameters, return type and example +description: Send confirmation phone code --- ## Method: account.sendConfirmPhoneCode [Back to methods index](index.md) +Send confirmation phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|hash|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can telegram call you instead of sending an SMS?| +|hash|[string](../types/string.md) | Yes|The hash| +|current\_number|[Bool](../types/Bool.md) | Optional|The current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendConfirmPhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_setAccountTTL.md b/old_docs/API_docs_v55/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v55/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v55/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_setPrivacy.md b/old_docs/API_docs_v55/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v55/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v55/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/account_unregisterDevice.md b/old_docs/API_docs_v55/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v55/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v55/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v55/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v55/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v55/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_updateNotifySettings.md b/old_docs/API_docs_v55/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v55/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v55/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_updateProfile.md b/old_docs/API_docs_v55/methods/account_updateProfile.md index b3d468d1..8b0c3268 100644 --- a/old_docs/API_docs_v55/methods/account_updateProfile.md +++ b/old_docs/API_docs_v55/methods/account_updateProfile.md @@ -1,18 +1,20 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Optional| -|last\_name|[string](../types/string.md) | Optional| -|about|[string](../types/string.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Optional|The first name| +|last\_name|[string](../types/string.md) | Optional|The last name| +|about|[string](../types/string.md) | Optional|The bio/about field| ### Return type: [User](../types/User.md) @@ -32,13 +34,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_updateStatus.md b/old_docs/API_docs_v55/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v55/methods/account_updateStatus.md +++ b/old_docs/API_docs_v55/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v55/methods/account_updateUsername.md b/old_docs/API_docs_v55/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v55/methods/account_updateUsername.md +++ b/old_docs/API_docs_v55/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v55/methods/auth_cancelCode.md b/old_docs/API_docs_v55/methods/auth_cancelCode.md index 05d927a1..1283e1e5 100644 --- a/old_docs/API_docs_v55/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v55/methods/auth_cancelCode.md @@ -1,17 +1,19 @@ --- title: auth.cancelCode -description: auth.cancelCode parameters, return type and example +description: Invalidate sent phone code --- ## Method: auth.cancelCode [Back to methods index](index.md) +Invalidate sent phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: auth.cancelCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/auth_checkPassword.md b/old_docs/API_docs_v55/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v55/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v55/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v55/methods/auth_checkPhone.md b/old_docs/API_docs_v55/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v55/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v55/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/auth_exportAuthorization.md b/old_docs/API_docs_v55/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v55/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v55/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v55/methods/auth_importAuthorization.md b/old_docs/API_docs_v55/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v55/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v55/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v55/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v55/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v55/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v55/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v55/methods/auth_logOut.md b/old_docs/API_docs_v55/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v55/methods/auth_logOut.md +++ b/old_docs/API_docs_v55/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v55/methods/auth_recoverPassword.md b/old_docs/API_docs_v55/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v55/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v55/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v55/methods/auth_resendCode.md b/old_docs/API_docs_v55/methods/auth_resendCode.md index df4803b8..4bfbf379 100644 --- a/old_docs/API_docs_v55/methods/auth_resendCode.md +++ b/old_docs/API_docs_v55/methods/auth_resendCode.md @@ -1,17 +1,19 @@ --- title: auth.resendCode -description: auth.resendCode parameters, return type and example +description: Resend the SMS verification code --- ## Method: auth.resendCode [Back to methods index](index.md) +Resend the SMS verification code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|The phone code hash| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -30,13 +32,18 @@ description: auth.resendCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v55/methods/auth_sendCode.md b/old_docs/API_docs_v55/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v55/methods/auth_sendCode.md +++ b/old_docs/API_docs_v55/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v55/methods/auth_sendInvites.md b/old_docs/API_docs_v55/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v55/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v55/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/auth_signIn.md b/old_docs/API_docs_v55/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v55/methods/auth_signIn.md +++ b/old_docs/API_docs_v55/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v55/methods/auth_signUp.md b/old_docs/API_docs_v55/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v55/methods/auth_signUp.md +++ b/old_docs/API_docs_v55/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v55/methods/channels_checkUsername.md b/old_docs/API_docs_v55/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v55/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v55/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_createChannel.md b/old_docs/API_docs_v55/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v55/methods/channels_createChannel.md +++ b/old_docs/API_docs_v55/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_deleteChannel.md b/old_docs/API_docs_v55/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v55/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_deleteMessages.md b/old_docs/API_docs_v55/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v55/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_editAbout.md b/old_docs/API_docs_v55/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v55/methods/channels_editAbout.md +++ b/old_docs/API_docs_v55/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_editAdmin.md b/old_docs/API_docs_v55/methods/channels_editAdmin.md index c62597e1..146159d9 100644 --- a/old_docs/API_docs_v55/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v55/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |role|[ChannelParticipantRole](../types/ChannelParticipantRole.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_editPhoto.md b/old_docs/API_docs_v55/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v55/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v55/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_editTitle.md b/old_docs/API_docs_v55/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v55/methods/channels_editTitle.md +++ b/old_docs/API_docs_v55/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_exportInvite.md b/old_docs/API_docs_v55/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v55/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v55/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_exportMessageLink.md b/old_docs/API_docs_v55/methods/channels_exportMessageLink.md index 026fe982..7eff4ed8 100644 --- a/old_docs/API_docs_v55/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v55/methods/channels_exportMessageLink.md @@ -10,7 +10,7 @@ description: channels.exportMessageLink parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: channels.exportMessageLink parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_getChannels.md b/old_docs/API_docs_v55/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v55/methods/channels_getChannels.md +++ b/old_docs/API_docs_v55/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/channels_getFullChannel.md b/old_docs/API_docs_v55/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v55/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v55/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v55/methods/channels_getMessages.md b/old_docs/API_docs_v55/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v55/methods/channels_getMessages.md +++ b/old_docs/API_docs_v55/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/channels_getParticipant.md b/old_docs/API_docs_v55/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v55/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v55/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_getParticipants.md b/old_docs/API_docs_v55/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v55/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v55/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_inviteToChannel.md b/old_docs/API_docs_v55/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v55/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v55/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/channels_joinChannel.md b/old_docs/API_docs_v55/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v55/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v55/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_kickFromChannel.md b/old_docs/API_docs_v55/methods/channels_kickFromChannel.md index a2182df8..e4b68581 100644 --- a/old_docs/API_docs_v55/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v55/methods/channels_kickFromChannel.md @@ -10,8 +10,8 @@ description: channels.kickFromChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |kicked|[Bool](../types/Bool.md) | Yes| @@ -24,16 +24,18 @@ description: channels.kickFromChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_leaveChannel.md b/old_docs/API_docs_v55/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v55/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v55/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_readHistory.md b/old_docs/API_docs_v55/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v55/methods/channels_readHistory.md +++ b/old_docs/API_docs_v55/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_reportSpam.md b/old_docs/API_docs_v55/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v55/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v55/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/channels_toggleInvites.md b/old_docs/API_docs_v55/methods/channels_toggleInvites.md index 19669eec..8d977fd0 100644 --- a/old_docs/API_docs_v55/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v55/methods/channels_toggleInvites.md @@ -10,7 +10,7 @@ description: channels.toggleInvites parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -32,13 +32,18 @@ description: channels.toggleInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_toggleSignatures.md b/old_docs/API_docs_v55/methods/channels_toggleSignatures.md index 4aaaeb0c..13d53d92 100644 --- a/old_docs/API_docs_v55/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v55/methods/channels_toggleSignatures.md @@ -10,7 +10,7 @@ description: channels.toggleSignatures parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: channels.toggleSignatures parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md index 3bb6d010..ecc15ce6 100644 --- a/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md @@ -11,7 +11,7 @@ description: channels.updatePinnedMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |silent|[Bool](../types/Bool.md) | Optional| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: channels.updatePinnedMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/channels_updateUsername.md b/old_docs/API_docs_v55/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v55/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v55/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/contacts_block.md b/old_docs/API_docs_v55/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v55/methods/contacts_block.md +++ b/old_docs/API_docs_v55/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v55/methods/contacts_deleteContact.md b/old_docs/API_docs_v55/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v55/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v55/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v55/methods/contacts_deleteContacts.md b/old_docs/API_docs_v55/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v55/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v55/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/contacts_exportCard.md b/old_docs/API_docs_v55/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v55/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v55/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v55/methods/contacts_getBlocked.md b/old_docs/API_docs_v55/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v55/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v55/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/contacts_getContacts.md b/old_docs/API_docs_v55/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v55/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v55/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/contacts_getStatuses.md b/old_docs/API_docs_v55/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v55/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v55/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v55/methods/contacts_getTopPeers.md b/old_docs/API_docs_v55/methods/contacts_getTopPeers.md index d29f6e02..eafcb6ec 100644 --- a/old_docs/API_docs_v55/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v55/methods/contacts_getTopPeers.md @@ -1,23 +1,25 @@ --- title: contacts.getTopPeers -description: contacts.getTopPeers parameters, return type and example +description: Get most used chats --- ## Method: contacts.getTopPeers [Back to methods index](index.md) +Get most used chats + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|correspondents|[Bool](../types/Bool.md) | Optional| -|bots\_pm|[Bool](../types/Bool.md) | Optional| -|bots\_inline|[Bool](../types/Bool.md) | Optional| -|groups|[Bool](../types/Bool.md) | Optional| -|channels|[Bool](../types/Bool.md) | Optional| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|correspondents|[Bool](../types/Bool.md) | Optional|| +|bots\_pm|[Bool](../types/Bool.md) | Optional|| +|bots\_inline|[Bool](../types/Bool.md) | Optional|| +|groups|[Bool](../types/Bool.md) | Optional|| +|channels|[Bool](../types/Bool.md) | Optional|| +|offset|[int](../types/int.md) | Yes|| +|limit|[int](../types/int.md) | Yes|| +|hash|[int](../types/int.md) | Yes|| ### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md) @@ -36,13 +38,18 @@ description: contacts.getTopPeers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/contacts_importCard.md b/old_docs/API_docs_v55/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v55/methods/contacts_importCard.md +++ b/old_docs/API_docs_v55/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/contacts_importContacts.md b/old_docs/API_docs_v55/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v55/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v55/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md index 3eab7e04..ddcf6b2f 100644 --- a/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md @@ -11,7 +11,7 @@ description: contacts.resetTopPeerRating parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |category|[TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v55/methods/contacts_resolveUsername.md b/old_docs/API_docs_v55/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v55/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v55/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v55/methods/contacts_search.md b/old_docs/API_docs_v55/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v55/methods/contacts_search.md +++ b/old_docs/API_docs_v55/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/contacts_unblock.md b/old_docs/API_docs_v55/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v55/methods/contacts_unblock.md +++ b/old_docs/API_docs_v55/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v55/methods/help_getAppChangelog.md b/old_docs/API_docs_v55/methods/help_getAppChangelog.md index 0f8a12bd..840b79f7 100644 --- a/old_docs/API_docs_v55/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v55/methods/help_getAppChangelog.md @@ -17,13 +17,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(); ``` diff --git a/old_docs/API_docs_v55/methods/help_getAppUpdate.md b/old_docs/API_docs_v55/methods/help_getAppUpdate.md index 89ff22c3..0e227d24 100644 --- a/old_docs/API_docs_v55/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v55/methods/help_getAppUpdate.md @@ -17,13 +17,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); ``` diff --git a/old_docs/API_docs_v55/methods/help_getConfig.md b/old_docs/API_docs_v55/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v55/methods/help_getConfig.md +++ b/old_docs/API_docs_v55/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v55/methods/help_getInviteText.md b/old_docs/API_docs_v55/methods/help_getInviteText.md index 6d2674d6..a8d8992e 100644 --- a/old_docs/API_docs_v55/methods/help_getInviteText.md +++ b/old_docs/API_docs_v55/methods/help_getInviteText.md @@ -17,13 +17,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); ``` diff --git a/old_docs/API_docs_v55/methods/help_getNearestDc.md b/old_docs/API_docs_v55/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v55/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v55/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v55/methods/help_getSupport.md b/old_docs/API_docs_v55/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v55/methods/help_getSupport.md +++ b/old_docs/API_docs_v55/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v55/methods/help_getTermsOfService.md b/old_docs/API_docs_v55/methods/help_getTermsOfService.md index eb686506..a588e830 100644 --- a/old_docs/API_docs_v55/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v55/methods/help_getTermsOfService.md @@ -17,13 +17,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); ``` diff --git a/old_docs/API_docs_v55/methods/help_saveAppLog.md b/old_docs/API_docs_v55/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v55/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v55/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/initConnection.md b/old_docs/API_docs_v55/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v55/methods/initConnection.md +++ b/old_docs/API_docs_v55/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v55/methods/invokeAfterMsg.md b/old_docs/API_docs_v55/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v55/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v55/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v55/methods/invokeAfterMsgs.md b/old_docs/API_docs_v55/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v55/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v55/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/invokeWithLayer.md b/old_docs/API_docs_v55/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v55/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v55/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v55/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v55/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v55/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v55/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_acceptEncryption.md b/old_docs/API_docs_v55/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v55/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v55/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v55/methods/messages_addChatUser.md b/old_docs/API_docs_v55/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v55/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v55/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_checkChatInvite.md b/old_docs/API_docs_v55/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v55/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v55/methods/messages_clearRecentStickers.md index a9158503..d6039212 100644 --- a/old_docs/API_docs_v55/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v55/methods/messages_clearRecentStickers.md @@ -17,13 +17,18 @@ description: messages.clearRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(); ``` diff --git a/old_docs/API_docs_v55/methods/messages_createChat.md b/old_docs/API_docs_v55/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v55/methods/messages_createChat.md +++ b/old_docs/API_docs_v55/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/messages_deleteChatUser.md b/old_docs/API_docs_v55/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v55/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v55/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_deleteHistory.md b/old_docs/API_docs_v55/methods/messages_deleteHistory.md index d1c3f195..01686b2b 100644 --- a/old_docs/API_docs_v55/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v55/methods/messages_deleteHistory.md @@ -11,7 +11,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |just\_clear|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_deleteMessages.md b/old_docs/API_docs_v55/methods/messages_deleteMessages.md index 38b3ca09..12347c81 100644 --- a/old_docs/API_docs_v55/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v55/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/messages_discardEncryption.md b/old_docs/API_docs_v55/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v55/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v55/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v55/methods/messages_editChatAdmin.md b/old_docs/API_docs_v55/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v55/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v55/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_editChatPhoto.md b/old_docs/API_docs_v55/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v55/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v55/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_editChatTitle.md b/old_docs/API_docs_v55/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v55/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v55/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md index c3489f9d..289100ea 100644 --- a/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md @@ -35,18 +35,20 @@ description: messages.editInlineBotMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/messages_editMessage.md b/old_docs/API_docs_v55/methods/messages_editMessage.md index 182fa03e..63379ed9 100644 --- a/old_docs/API_docs_v55/methods/messages_editMessage.md +++ b/old_docs/API_docs_v55/methods/messages_editMessage.md @@ -11,7 +11,7 @@ description: messages.editMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| |message|[string](../types/string.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -44,18 +44,20 @@ description: messages.editMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/messages_exportChatInvite.md b/old_docs/API_docs_v55/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v55/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_forwardMessage.md b/old_docs/API_docs_v55/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v55/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v55/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_forwardMessages.md b/old_docs/API_docs_v55/methods/messages_forwardMessages.md index 013d6327..27be75c1 100644 --- a/old_docs/API_docs_v55/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v55/methods/messages_forwardMessages.md @@ -12,9 +12,9 @@ description: messages.forwardMessages parameters, return type and example |----------|---------------|----------| |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -54,18 +54,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/messages_getAllDrafts.md b/old_docs/API_docs_v55/methods/messages_getAllDrafts.md index 8550c5b8..7f0f7843 100644 --- a/old_docs/API_docs_v55/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v55/methods/messages_getAllDrafts.md @@ -17,13 +17,18 @@ description: messages.getAllDrafts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getAllStickers.md b/old_docs/API_docs_v55/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/old_docs/API_docs_v55/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v55/methods/messages_getArchivedStickers.md index 20a9c231..37c98918 100644 --- a/old_docs/API_docs_v55/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getArchivedStickers.md @@ -23,13 +23,18 @@ description: messages.getArchivedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['offset_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md index 4055a065..3bcfa462 100644 --- a/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md @@ -10,7 +10,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |msg\_id|[int](../types/int.md) | Yes| |data|[bytes](../types/bytes.md) | Yes| @@ -35,13 +35,18 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getChats.md b/old_docs/API_docs_v55/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v55/methods/messages_getChats.md +++ b/old_docs/API_docs_v55/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/messages_getDhConfig.md b/old_docs/API_docs_v55/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v55/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v55/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getDialogs.md b/old_docs/API_docs_v55/methods/messages_getDialogs.md index 934e3b80..323bb791 100644 --- a/old_docs/API_docs_v55/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v55/methods/messages_getDialogs.md @@ -12,7 +12,7 @@ description: messages.getDialogs parameters, return type and example |----------|---------------|----------| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -35,13 +35,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v55/methods/messages_getFeaturedStickers.md index 5aad1810..51097eda 100644 --- a/old_docs/API_docs_v55/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getFeaturedStickers.md @@ -22,13 +22,18 @@ description: messages.getFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getFullChat.md b/old_docs/API_docs_v55/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v55/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v55/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v55/methods/messages_getHistory.md b/old_docs/API_docs_v55/methods/messages_getHistory.md index ef31c435..87b8328d 100644 --- a/old_docs/API_docs_v55/methods/messages_getHistory.md +++ b/old_docs/API_docs_v55/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| @@ -40,13 +40,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md index 90e2a427..6d965b19 100644 --- a/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md @@ -10,8 +10,8 @@ description: messages.getInlineBotResults parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |query|[string](../types/string.md) | Yes| |offset|[string](../types/string.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getMessageEditData.md b/old_docs/API_docs_v55/methods/messages_getMessageEditData.md index df71c31a..2a90a419 100644 --- a/old_docs/API_docs_v55/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v55/methods/messages_getMessageEditData.md @@ -10,7 +10,7 @@ description: messages.getMessageEditData parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getMessageEditData parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getMessages.md b/old_docs/API_docs_v55/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v55/methods/messages_getMessages.md +++ b/old_docs/API_docs_v55/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/messages_getMessagesViews.md b/old_docs/API_docs_v55/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v55/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v55/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md index 226948ae..eff29878 100644 --- a/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md @@ -10,7 +10,7 @@ description: messages.getPeerDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peers|Array of [InputPeer](../types/InputPeer.md) | Yes| +|peers|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md) @@ -30,15 +30,20 @@ description: messages.getPeerDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/messages_getPeerSettings.md b/old_docs/API_docs_v55/methods/messages_getPeerSettings.md index fab25034..25906b73 100644 --- a/old_docs/API_docs_v55/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v55/methods/messages_getPeerSettings.md @@ -10,7 +10,7 @@ description: messages.getPeerSettings parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [PeerSettings](../types/PeerSettings.md) @@ -30,13 +30,18 @@ description: messages.getPeerSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getRecentStickers.md b/old_docs/API_docs_v55/methods/messages_getRecentStickers.md index 934a1291..ee384749 100644 --- a/old_docs/API_docs_v55/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getRecentStickers.md @@ -22,13 +22,18 @@ description: messages.getRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getSavedGifs.md b/old_docs/API_docs_v55/methods/messages_getSavedGifs.md index 4986d812..bcb4590d 100644 --- a/old_docs/API_docs_v55/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v55/methods/messages_getSavedGifs.md @@ -22,13 +22,18 @@ description: messages.getSavedGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getStickerSet.md b/old_docs/API_docs_v55/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v55/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v55/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getStickers.md b/old_docs/API_docs_v55/methods/messages_getStickers.md index 1587cd01..6ac68c87 100644 --- a/old_docs/API_docs_v55/methods/messages_getStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getStickers.md @@ -23,16 +23,18 @@ description: messages.getStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getUnusedStickers.md b/old_docs/API_docs_v55/methods/messages_getUnusedStickers.md index f2aa04e9..1679ca17 100644 --- a/old_docs/API_docs_v55/methods/messages_getUnusedStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getUnusedStickers.md @@ -22,16 +22,18 @@ description: messages.getUnusedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getUnusedStickers(['limit' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v55/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v55/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v55/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_hideReportSpam.md b/old_docs/API_docs_v55/methods/messages_hideReportSpam.md index d47e8aa5..0419ec79 100644 --- a/old_docs/API_docs_v55/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v55/methods/messages_hideReportSpam.md @@ -10,7 +10,7 @@ description: messages.hideReportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.hideReportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_importChatInvite.md b/old_docs/API_docs_v55/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v55/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_installStickerSet.md b/old_docs/API_docs_v55/methods/messages_installStickerSet.md index 9336cc22..f405adce 100644 --- a/old_docs/API_docs_v55/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v55/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_migrateChat.md b/old_docs/API_docs_v55/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v55/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v55/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v55/methods/messages_readFeaturedStickers.md index 0efba5c3..7a016e4c 100644 --- a/old_docs/API_docs_v55/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v55/methods/messages_readFeaturedStickers.md @@ -17,13 +17,18 @@ description: messages.readFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readFeaturedStickers(); ``` diff --git a/old_docs/API_docs_v55/methods/messages_readHistory.md b/old_docs/API_docs_v55/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v55/methods/messages_readHistory.md +++ b/old_docs/API_docs_v55/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_readMessageContents.md b/old_docs/API_docs_v55/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v55/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v55/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/messages_receivedMessages.md b/old_docs/API_docs_v55/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v55/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v55/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_receivedQueue.md b/old_docs/API_docs_v55/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v55/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v55/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v55/methods/messages_reorderStickerSets.md index e09057e7..eee7d0f2 100644 --- a/old_docs/API_docs_v55/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v55/methods/messages_reorderStickerSets.md @@ -22,15 +22,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/messages_reportSpam.md b/old_docs/API_docs_v55/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v55/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v55/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_requestEncryption.md b/old_docs/API_docs_v55/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v55/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v55/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v55/methods/messages_saveDraft.md b/old_docs/API_docs_v55/methods/messages_saveDraft.md index 7a85dfe7..754b4da2 100644 --- a/old_docs/API_docs_v55/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v55/methods/messages_saveDraft.md @@ -12,7 +12,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |message|[string](../types/string.md) | Yes| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| |parse\_mode| [string](../types/string.md) | Optional | @@ -34,15 +34,20 @@ description: messages.saveDraft parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/messages_saveGif.md b/old_docs/API_docs_v55/methods/messages_saveGif.md index b3673c91..725bc949 100644 --- a/old_docs/API_docs_v55/methods/messages_saveGif.md +++ b/old_docs/API_docs_v55/methods/messages_saveGif.md @@ -10,7 +10,7 @@ description: messages.saveGif parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveGif parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md index c85f1321..00d2c0e1 100644 --- a/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md @@ -10,7 +10,7 @@ description: messages.saveRecentSticker parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveRecentSticker parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_search.md b/old_docs/API_docs_v55/methods/messages_search.md index f6aa515b..11b968bf 100644 --- a/old_docs/API_docs_v55/methods/messages_search.md +++ b/old_docs/API_docs_v55/methods/messages_search.md @@ -10,7 +10,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -42,13 +42,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_searchGifs.md b/old_docs/API_docs_v55/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/old_docs/API_docs_v55/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v55/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_searchGlobal.md b/old_docs/API_docs_v55/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v55/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v55/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_sendBroadcast.md b/old_docs/API_docs_v55/methods/messages_sendBroadcast.md index 725d1f34..0ab60e43 100644 --- a/old_docs/API_docs_v55/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v55/methods/messages_sendBroadcast.md @@ -10,9 +10,9 @@ description: messages.sendBroadcast parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|contacts|Array of [InputUser](../types/InputUser.md) | Yes| +|contacts|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |message|[string](../types/string.md) | Yes| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -24,18 +24,20 @@ description: messages.sendBroadcast parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser], 'message' => 'string', 'media' => InputMedia, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/messages_sendEncrypted.md b/old_docs/API_docs_v55/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md index 0857341e..6bfb1578 100644 --- a/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md @@ -13,7 +13,7 @@ description: messages.sendInlineBotResult parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |query\_id|[long](../types/long.md) | Yes| |id|[string](../types/string.md) | Yes| @@ -40,13 +40,18 @@ description: messages.sendInlineBotResult parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_sendMedia.md b/old_docs/API_docs_v55/methods/messages_sendMedia.md index 8c6f7f7f..1530451b 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v55/methods/messages_sendMedia.md @@ -13,9 +13,9 @@ description: messages.sendMedia parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -56,16 +56,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_sendMessage.md b/old_docs/API_docs_v55/methods/messages_sendMessage.md index bec95b8c..49ace99c 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v55/methods/messages_sendMessage.md @@ -14,7 +14,7 @@ description: messages.sendMessage parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -50,6 +50,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -57,18 +58,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$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], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md index ad408378..cc9ee650 100644 --- a/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md @@ -32,16 +32,18 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md index 8b49c4c7..c38b8c2e 100644 --- a/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md @@ -45,18 +45,20 @@ description: messages.setInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/messages_setTyping.md b/old_docs/API_docs_v55/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v55/methods/messages_setTyping.md +++ b/old_docs/API_docs_v55/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_startBot.md b/old_docs/API_docs_v55/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v55/methods/messages_startBot.md +++ b/old_docs/API_docs_v55/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v55/methods/photos_deletePhotos.md b/old_docs/API_docs_v55/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v55/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v55/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/methods/photos_getUserPhotos.md b/old_docs/API_docs_v55/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v55/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v55/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v55/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v55/methods/photos_updateProfilePhoto.md index d3acbb56..fbe84e26 100644 --- a/old_docs/API_docs_v55/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v55/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -23,13 +23,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md index de7c2281..303ed4ea 100644 --- a/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |crop|[InputPhotoCrop](../types/InputPhotoCrop.md) | Yes| @@ -35,13 +35,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); ``` diff --git a/old_docs/API_docs_v55/methods/updates_getChannelDifference.md b/old_docs/API_docs_v55/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v55/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v55/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v55/methods/updates_getDifference.md b/old_docs/API_docs_v55/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v55/methods/updates_getDifference.md +++ b/old_docs/API_docs_v55/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v55/methods/updates_getState.md b/old_docs/API_docs_v55/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v55/methods/updates_getState.md +++ b/old_docs/API_docs_v55/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v55/methods/upload_getFile.md b/old_docs/API_docs_v55/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v55/methods/upload_getFile.md +++ b/old_docs/API_docs_v55/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v55/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v55/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v55/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v55/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v55/methods/upload_saveFilePart.md b/old_docs/API_docs_v55/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v55/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v55/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v55/methods/users_getFullUser.md b/old_docs/API_docs_v55/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v55/methods/users_getFullUser.md +++ b/old_docs/API_docs_v55/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v55/methods/users_getUsers.md b/old_docs/API_docs_v55/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v55/methods/users_getUsers.md +++ b/old_docs/API_docs_v55/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v55/types/Chat.md b/old_docs/API_docs_v55/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v55/types/Chat.md +++ b/old_docs/API_docs_v55/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v55/types/InputChannel.md b/old_docs/API_docs_v55/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v55/types/InputChannel.md +++ b/old_docs/API_docs_v55/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v55/types/InputDocument.md b/old_docs/API_docs_v55/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v55/types/InputDocument.md +++ b/old_docs/API_docs_v55/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v55/types/InputEncryptedChat.md b/old_docs/API_docs_v55/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v55/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v55/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v55/types/InputEncryptedFile.md b/old_docs/API_docs_v55/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v55/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v55/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v55/types/InputFile.md b/old_docs/API_docs_v55/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v55/types/InputFile.md +++ b/old_docs/API_docs_v55/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v55/types/InputMedia.md b/old_docs/API_docs_v55/types/InputMedia.md index e3a8492a..eb541612 100644 --- a/old_docs/API_docs_v55/types/InputMedia.md +++ b/old_docs/API_docs_v55/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v55/types/InputPeer.md b/old_docs/API_docs_v55/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v55/types/InputPeer.md +++ b/old_docs/API_docs_v55/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v55/types/InputPhoto.md b/old_docs/API_docs_v55/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v55/types/InputPhoto.md +++ b/old_docs/API_docs_v55/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v55/types/InputUser.md b/old_docs/API_docs_v55/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v55/types/InputUser.md +++ b/old_docs/API_docs_v55/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v55/types/Peer.md b/old_docs/API_docs_v55/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v55/types/Peer.md +++ b/old_docs/API_docs_v55/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v55/types/User.md b/old_docs/API_docs_v55/types/User.md index a9d4addd..30fd113c 100644 --- a/old_docs/API_docs_v55/types/User.md +++ b/old_docs/API_docs_v55/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v57/constructors/account_authorizations.md b/old_docs/API_docs_v57/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v57/constructors/account_authorizations.md +++ b/old_docs/API_docs_v57/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/account_privacyRules.md b/old_docs/API_docs_v57/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v57/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v57/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/botInfo.md b/old_docs/API_docs_v57/constructors/botInfo.md index bee4a540..25a27913 100644 --- a/old_docs/API_docs_v57/constructors/botInfo.md +++ b/old_docs/API_docs_v57/constructors/botInfo.md @@ -23,7 +23,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/botInlineMessageText.md b/old_docs/API_docs_v57/constructors/botInlineMessageText.md index dc00808b..feb5e9d0 100644 --- a/old_docs/API_docs_v57/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v57/constructors/botInlineMessageText.md @@ -24,7 +24,7 @@ description: botInlineMessageText attributes, type and example ### Example: ``` -$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/channelFull.md b/old_docs/API_docs_v57/constructors/channelFull.md index d51c5e6d..d16eda19 100644 --- a/old_docs/API_docs_v57/constructors/channelFull.md +++ b/old_docs/API_docs_v57/constructors/channelFull.md @@ -37,7 +37,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_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]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/channelMessagesFilter.md b/old_docs/API_docs_v57/constructors/channelMessagesFilter.md index 0a731ce9..ad9a592e 100644 --- a/old_docs/API_docs_v57/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v57/constructors/channelMessagesFilter.md @@ -22,7 +22,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/channels_channelParticipant.md b/old_docs/API_docs_v57/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v57/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v57/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/channels_channelParticipants.md b/old_docs/API_docs_v57/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v57/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v57/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/chatFull.md b/old_docs/API_docs_v57/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v57/constructors/chatFull.md +++ b/old_docs/API_docs_v57/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/chatInvite.md b/old_docs/API_docs_v57/constructors/chatInvite.md index e7000f7b..e9087e0d 100644 --- a/old_docs/API_docs_v57/constructors/chatInvite.md +++ b/old_docs/API_docs_v57/constructors/chatInvite.md @@ -28,7 +28,7 @@ description: chatInvite attributes, type and example ### Example: ``` -$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [User]]; +$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: diff --git a/old_docs/API_docs_v57/constructors/chatParticipants.md b/old_docs/API_docs_v57/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v57/constructors/chatParticipants.md +++ b/old_docs/API_docs_v57/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/config.md b/old_docs/API_docs_v57/constructors/config.md index 5b5ec2aa..23464178 100644 --- a/old_docs/API_docs_v57/constructors/config.md +++ b/old_docs/API_docs_v57/constructors/config.md @@ -43,7 +43,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'tmp_sessions' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'tmp_sessions' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/contacts_blocked.md b/old_docs/API_docs_v57/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v57/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v57/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v57/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v57/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v57/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/contacts_contacts.md b/old_docs/API_docs_v57/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v57/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v57/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/contacts_found.md b/old_docs/API_docs_v57/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v57/constructors/contacts_found.md +++ b/old_docs/API_docs_v57/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/contacts_importedContacts.md b/old_docs/API_docs_v57/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v57/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v57/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v57/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v57/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v57/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/contacts_topPeers.md b/old_docs/API_docs_v57/constructors/contacts_topPeers.md index 17551f5d..07623018 100644 --- a/old_docs/API_docs_v57/constructors/contacts_topPeers.md +++ b/old_docs/API_docs_v57/constructors/contacts_topPeers.md @@ -23,7 +23,7 @@ description: contacts_topPeers attributes, type and example ### Example: ``` -$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers], 'chats' => [Chat], 'users' => [User]]; +$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers, TopPeerCategoryPeers], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/document.md b/old_docs/API_docs_v57/constructors/document.md index 8c0883bb..55d4c017 100644 --- a/old_docs/API_docs_v57/constructors/document.md +++ b/old_docs/API_docs_v57/constructors/document.md @@ -29,7 +29,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/documentAttributeAudio.md b/old_docs/API_docs_v57/constructors/documentAttributeAudio.md index 4d393890..ceb02cba 100644 --- a/old_docs/API_docs_v57/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v57/constructors/documentAttributeAudio.md @@ -12,7 +12,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| |voice|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Optional| |performer|[string](../types/string.md) | Optional| |waveform|[bytes](../types/bytes.md) | Optional| diff --git a/old_docs/API_docs_v57/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v57/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v57/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v57/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v57/constructors/documentAttributeVideo.md b/old_docs/API_docs_v57/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v57/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v57/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v57/constructors/draftMessage.md b/old_docs/API_docs_v57/constructors/draftMessage.md index 13277194..644adc43 100644 --- a/old_docs/API_docs_v57/constructors/draftMessage.md +++ b/old_docs/API_docs_v57/constructors/draftMessage.md @@ -25,7 +25,7 @@ description: draftMessage attributes, type and example ### Example: ``` -$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity], 'date' => int]; +$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'date' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v57/constructors/inputBotInlineMessageText.md index 677e5d8c..ed3ddd1b 100644 --- a/old_docs/API_docs_v57/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v57/constructors/inputBotInlineMessageText.md @@ -24,7 +24,7 @@ description: inputBotInlineMessageText attributes, type and example ### Example: ``` -$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/inputBotInlineResultDocument.md b/old_docs/API_docs_v57/constructors/inputBotInlineResultDocument.md index 2315623b..f27421f9 100644 --- a/old_docs/API_docs_v57/constructors/inputBotInlineResultDocument.md +++ b/old_docs/API_docs_v57/constructors/inputBotInlineResultDocument.md @@ -15,7 +15,7 @@ description: inputBotInlineResultDocument attributes, type and example |type|[string](../types/string.md) | Yes| |title|[string](../types/string.md) | Optional| |description|[string](../types/string.md) | Optional| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v57/constructors/inputBotInlineResultPhoto.md b/old_docs/API_docs_v57/constructors/inputBotInlineResultPhoto.md index d39bd108..9628b4e5 100644 --- a/old_docs/API_docs_v57/constructors/inputBotInlineResultPhoto.md +++ b/old_docs/API_docs_v57/constructors/inputBotInlineResultPhoto.md @@ -13,7 +13,7 @@ description: inputBotInlineResultPhoto attributes, type and example |----------|---------------|----------| |id|[string](../types/string.md) | Yes| |type|[string](../types/string.md) | Yes| -|photo|[InputPhoto](../types/InputPhoto.md) | Optional| +|photo|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v57/constructors/inputChatPhoto.md b/old_docs/API_docs_v57/constructors/inputChatPhoto.md index e787f342..ae979308 100644 --- a/old_docs/API_docs_v57/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v57/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v57/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v57/constructors/inputChatUploadedPhoto.md index 78c28fdc..e9d2f354 100644 --- a/old_docs/API_docs_v57/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v57/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| diff --git a/old_docs/API_docs_v57/constructors/inputGameShortName.md b/old_docs/API_docs_v57/constructors/inputGameShortName.md index 64c55c18..0261912a 100644 --- a/old_docs/API_docs_v57/constructors/inputGameShortName.md +++ b/old_docs/API_docs_v57/constructors/inputGameShortName.md @@ -11,7 +11,7 @@ description: inputGameShortName attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|bot\_id|[InputUser](../types/InputUser.md) | Optional| +|bot\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |short\_name|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v57/constructors/inputMediaDocument.md b/old_docs/API_docs_v57/constructors/inputMediaDocument.md index 88fed980..66d0baba 100644 --- a/old_docs/API_docs_v57/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v57/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v57/constructors/inputMediaPhoto.md b/old_docs/API_docs_v57/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v57/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v57/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v57/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v57/constructors/inputMediaUploadedDocument.md index a2520998..71e6ea97 100644 --- a/old_docs/API_docs_v57/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v57/constructors/inputMediaUploadedDocument.md @@ -11,11 +11,11 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| @@ -25,7 +25,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument]]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v57/constructors/inputMediaUploadedPhoto.md index ac5480e1..193591c7 100644 --- a/old_docs/API_docs_v57/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v57/constructors/inputMediaUploadedPhoto.md @@ -11,9 +11,9 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| @@ -23,7 +23,7 @@ description: inputMediaUploadedPhoto attributes, type and example ### Example: ``` -$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument]]; +$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v57/constructors/inputMediaUploadedThumbDocument.md index 06ef970d..605ffe2c 100644 --- a/old_docs/API_docs_v57/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v57/constructors/inputMediaUploadedThumbDocument.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| @@ -26,7 +26,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument]]; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/inputNotifyPeer.md b/old_docs/API_docs_v57/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v57/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v57/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v57/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v57/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v57/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v57/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v57/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v57/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v57/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/inputStickeredMediaDocument.md b/old_docs/API_docs_v57/constructors/inputStickeredMediaDocument.md index ca9921e7..c281b7e5 100644 --- a/old_docs/API_docs_v57/constructors/inputStickeredMediaDocument.md +++ b/old_docs/API_docs_v57/constructors/inputStickeredMediaDocument.md @@ -11,7 +11,7 @@ description: inputStickeredMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v57/constructors/inputStickeredMediaPhoto.md b/old_docs/API_docs_v57/constructors/inputStickeredMediaPhoto.md index ac0428e1..042044b0 100644 --- a/old_docs/API_docs_v57/constructors/inputStickeredMediaPhoto.md +++ b/old_docs/API_docs_v57/constructors/inputStickeredMediaPhoto.md @@ -11,7 +11,7 @@ description: inputStickeredMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v57/constructors/keyboardButtonRow.md b/old_docs/API_docs_v57/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v57/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v57/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/message.md b/old_docs/API_docs_v57/constructors/message.md index 67b2cd79..dc324ff1 100644 --- a/old_docs/API_docs_v57/constructors/message.md +++ b/old_docs/API_docs_v57/constructors/message.md @@ -38,7 +38,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; +$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v57/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v57/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v57/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messageActionChatCreate.md b/old_docs/API_docs_v57/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v57/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v57/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_allStickers.md b/old_docs/API_docs_v57/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/old_docs/API_docs_v57/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v57/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_archivedStickers.md b/old_docs/API_docs_v57/constructors/messages_archivedStickers.md index 7af238d4..c9675b57 100644 --- a/old_docs/API_docs_v57/constructors/messages_archivedStickers.md +++ b/old_docs/API_docs_v57/constructors/messages_archivedStickers.md @@ -22,7 +22,7 @@ description: messages_archivedStickers attributes, type and example ### Example: ``` -$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered]]; +$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_botResults.md b/old_docs/API_docs_v57/constructors/messages_botResults.md index 472e6dcd..0ae1091e 100644 --- a/old_docs/API_docs_v57/constructors/messages_botResults.md +++ b/old_docs/API_docs_v57/constructors/messages_botResults.md @@ -25,7 +25,7 @@ description: messages_botResults attributes, type and example ### Example: ``` -$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult]]; +$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult, BotInlineResult]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_channelMessages.md b/old_docs/API_docs_v57/constructors/messages_channelMessages.md index 8ec11b2d..358c0c70 100644 --- a/old_docs/API_docs_v57/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v57/constructors/messages_channelMessages.md @@ -25,7 +25,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_chatFull.md b/old_docs/API_docs_v57/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v57/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v57/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_chats.md b/old_docs/API_docs_v57/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v57/constructors/messages_chats.md +++ b/old_docs/API_docs_v57/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_dialogs.md b/old_docs/API_docs_v57/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v57/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v57/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v57/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v57/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v57/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v57/constructors/messages_featuredStickers.md b/old_docs/API_docs_v57/constructors/messages_featuredStickers.md index dac1fd91..0fc54db1 100644 --- a/old_docs/API_docs_v57/constructors/messages_featuredStickers.md +++ b/old_docs/API_docs_v57/constructors/messages_featuredStickers.md @@ -23,7 +23,7 @@ description: messages_featuredStickers attributes, type and example ### Example: ``` -$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered], 'unread' => [long]]; +$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered, StickerSetCovered], 'unread' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_foundGifs.md b/old_docs/API_docs_v57/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/old_docs/API_docs_v57/constructors/messages_foundGifs.md +++ b/old_docs/API_docs_v57/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_highScores.md b/old_docs/API_docs_v57/constructors/messages_highScores.md index 26eab658..df592f06 100644 --- a/old_docs/API_docs_v57/constructors/messages_highScores.md +++ b/old_docs/API_docs_v57/constructors/messages_highScores.md @@ -22,7 +22,7 @@ description: messages_highScores attributes, type and example ### Example: ``` -$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore], 'users' => [User]]; +$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore, HighScore], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_messages.md b/old_docs/API_docs_v57/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v57/constructors/messages_messages.md +++ b/old_docs/API_docs_v57/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_messagesSlice.md b/old_docs/API_docs_v57/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v57/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v57/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_peerDialogs.md b/old_docs/API_docs_v57/constructors/messages_peerDialogs.md index bec6c88c..5d25b545 100644 --- a/old_docs/API_docs_v57/constructors/messages_peerDialogs.md +++ b/old_docs/API_docs_v57/constructors/messages_peerDialogs.md @@ -25,7 +25,7 @@ description: messages_peerDialogs attributes, type and example ### Example: ``` -$messages_peerDialogs = ['_' => 'messages.peerDialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v57/constructors/messages_recentStickers.md b/old_docs/API_docs_v57/constructors/messages_recentStickers.md index be5e69a0..a8a53ffe 100644 --- a/old_docs/API_docs_v57/constructors/messages_recentStickers.md +++ b/old_docs/API_docs_v57/constructors/messages_recentStickers.md @@ -22,7 +22,7 @@ description: messages_recentStickers attributes, type and example ### Example: ``` -$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document]]; +$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_savedGifs.md b/old_docs/API_docs_v57/constructors/messages_savedGifs.md index 7e2a00eb..b4ff040d 100644 --- a/old_docs/API_docs_v57/constructors/messages_savedGifs.md +++ b/old_docs/API_docs_v57/constructors/messages_savedGifs.md @@ -22,7 +22,7 @@ description: messages_savedGifs attributes, type and example ### Example: ``` -$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document]]; +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_stickerSet.md b/old_docs/API_docs_v57/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v57/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v57/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_stickerSetInstallResultArchive.md b/old_docs/API_docs_v57/constructors/messages_stickerSetInstallResultArchive.md index f3e510bb..5b7fb05f 100644 --- a/old_docs/API_docs_v57/constructors/messages_stickerSetInstallResultArchive.md +++ b/old_docs/API_docs_v57/constructors/messages_stickerSetInstallResultArchive.md @@ -21,7 +21,7 @@ description: messages_stickerSetInstallResultArchive attributes, type and exampl ### Example: ``` -$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered]]; +$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/messages_stickers.md b/old_docs/API_docs_v57/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v57/constructors/messages_stickers.md +++ b/old_docs/API_docs_v57/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/photo.md b/old_docs/API_docs_v57/constructors/photo.md index 0d6edc52..293458ca 100644 --- a/old_docs/API_docs_v57/constructors/photo.md +++ b/old_docs/API_docs_v57/constructors/photo.md @@ -25,7 +25,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/photos_photo.md b/old_docs/API_docs_v57/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v57/constructors/photos_photo.md +++ b/old_docs/API_docs_v57/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/photos_photos.md b/old_docs/API_docs_v57/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v57/constructors/photos_photos.md +++ b/old_docs/API_docs_v57/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/photos_photosSlice.md b/old_docs/API_docs_v57/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v57/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v57/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v57/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v57/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v57/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v57/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v57/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v57/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/replyInlineMarkup.md b/old_docs/API_docs_v57/constructors/replyInlineMarkup.md index 80d2ff77..95257485 100644 --- a/old_docs/API_docs_v57/constructors/replyInlineMarkup.md +++ b/old_docs/API_docs_v57/constructors/replyInlineMarkup.md @@ -21,7 +21,7 @@ description: replyInlineMarkup attributes, type and example ### Example: ``` -$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow]]; +$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v57/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v57/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v57/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/stickerPack.md b/old_docs/API_docs_v57/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v57/constructors/stickerPack.md +++ b/old_docs/API_docs_v57/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/stickerSetMultiCovered.md b/old_docs/API_docs_v57/constructors/stickerSetMultiCovered.md index 4dd5a0a7..9a337fdc 100644 --- a/old_docs/API_docs_v57/constructors/stickerSetMultiCovered.md +++ b/old_docs/API_docs_v57/constructors/stickerSetMultiCovered.md @@ -22,7 +22,7 @@ description: stickerSetMultiCovered attributes, type and example ### Example: ``` -$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document]]; +$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/topPeerCategoryPeers.md b/old_docs/API_docs_v57/constructors/topPeerCategoryPeers.md index acd5cf08..03b78ed3 100644 --- a/old_docs/API_docs_v57/constructors/topPeerCategoryPeers.md +++ b/old_docs/API_docs_v57/constructors/topPeerCategoryPeers.md @@ -23,7 +23,7 @@ description: topPeerCategoryPeers attributes, type and example ### Example: ``` -$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer]]; +$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer, TopPeer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/updateDcOptions.md b/old_docs/API_docs_v57/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v57/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v57/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v57/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v57/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v57/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/updateDeleteMessages.md b/old_docs/API_docs_v57/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v57/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v57/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/updatePrivacy.md b/old_docs/API_docs_v57/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v57/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v57/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v57/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v57/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v57/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/updateShortChatMessage.md b/old_docs/API_docs_v57/constructors/updateShortChatMessage.md index 08aa61a5..f6310d0d 100644 --- a/old_docs/API_docs_v57/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v57/constructors/updateShortChatMessage.md @@ -35,7 +35,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v57/constructors/updateShortMessage.md b/old_docs/API_docs_v57/constructors/updateShortMessage.md index 608d2a30..24f07b99 100644 --- a/old_docs/API_docs_v57/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v57/constructors/updateShortMessage.md @@ -34,7 +34,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v57/constructors/updateShortSentMessage.md b/old_docs/API_docs_v57/constructors/updateShortSentMessage.md index 28f82e3a..ebc40cf9 100644 --- a/old_docs/API_docs_v57/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v57/constructors/updateShortSentMessage.md @@ -27,7 +27,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$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: diff --git a/old_docs/API_docs_v57/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v57/constructors/updateStickerSetsOrder.md index 53637821..7b29b8f2 100644 --- a/old_docs/API_docs_v57/constructors/updateStickerSetsOrder.md +++ b/old_docs/API_docs_v57/constructors/updateStickerSetsOrder.md @@ -22,7 +22,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/updates.md b/old_docs/API_docs_v57/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v57/constructors/updates.md +++ b/old_docs/API_docs_v57/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/updatesCombined.md b/old_docs/API_docs_v57/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v57/constructors/updatesCombined.md +++ b/old_docs/API_docs_v57/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v57/constructors/updates_channelDifference.md b/old_docs/API_docs_v57/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v57/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v57/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v57/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v57/constructors/updates_channelDifferenceTooLong.md index 8e3a01aa..0ff98bf6 100644 --- a/old_docs/API_docs_v57/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v57/constructors/updates_channelDifferenceTooLong.md @@ -30,7 +30,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$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, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/constructors/updates_difference.md b/old_docs/API_docs_v57/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v57/constructors/updates_difference.md +++ b/old_docs/API_docs_v57/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v57/constructors/updates_differenceSlice.md b/old_docs/API_docs_v57/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v57/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v57/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v57/constructors/wallPaper.md b/old_docs/API_docs_v57/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v57/constructors/wallPaper.md +++ b/old_docs/API_docs_v57/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v57/methods/README.md b/old_docs/API_docs_v57/methods/README.md index 966e96f0..17c3d78d 100644 --- a/old_docs/API_docs_v57/methods/README.md +++ b/old_docs/API_docs_v57/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v57/methods/account_changePhone.md b/old_docs/API_docs_v57/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v57/methods/account_changePhone.md +++ b/old_docs/API_docs_v57/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_checkUsername.md b/old_docs/API_docs_v57/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v57/methods/account_checkUsername.md +++ b/old_docs/API_docs_v57/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_confirmPhone.md b/old_docs/API_docs_v57/methods/account_confirmPhone.md index 8dd79d94..2261e6e8 100644 --- a/old_docs/API_docs_v57/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v57/methods/account_confirmPhone.md @@ -1,17 +1,19 @@ --- title: account.confirmPhone -description: account.confirmPhone parameters, return type and example +description: Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode --- ## 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 | Required | -|----------|---------------|----------| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_code\_hash|[string](../types/string.md) | Yes|obtain phone_code_hash from sendConfirmPhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The code sent by sendConfirmPhoneCode| ### Return type: [Bool](../types/Bool.md) @@ -31,13 +33,18 @@ description: account.confirmPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_deleteAccount.md b/old_docs/API_docs_v57/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v57/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v57/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_getAccountTTL.md b/old_docs/API_docs_v57/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v57/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v57/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v57/methods/account_getAuthorizations.md b/old_docs/API_docs_v57/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v57/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v57/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v57/methods/account_getNotifySettings.md b/old_docs/API_docs_v57/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v57/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v57/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_getPassword.md b/old_docs/API_docs_v57/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v57/methods/account_getPassword.md +++ b/old_docs/API_docs_v57/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v57/methods/account_getPasswordSettings.md b/old_docs/API_docs_v57/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v57/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v57/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_getPrivacy.md b/old_docs/API_docs_v57/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v57/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v57/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_getWallPapers.md b/old_docs/API_docs_v57/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v57/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v57/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v57/methods/account_registerDevice.md b/old_docs/API_docs_v57/methods/account_registerDevice.md index 8be04ad2..0bf6d1ee 100644 --- a/old_docs/API_docs_v57/methods/account_registerDevice.md +++ b/old_docs/API_docs_v57/methods/account_registerDevice.md @@ -1,17 +1,19 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_reportPeer.md b/old_docs/API_docs_v57/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v57/methods/account_reportPeer.md +++ b/old_docs/API_docs_v57/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_resetAuthorization.md b/old_docs/API_docs_v57/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v57/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v57/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_resetNotifySettings.md b/old_docs/API_docs_v57/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v57/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v57/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md index 017b5f7f..9e5016a4 100644 --- a/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|phone\_number|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can the code be sent using a flash call instead of an SMS?| +|phone\_number|[string](../types/string.md) | Yes|New phone number| +|current\_number|[Bool](../types/Bool.md) | Optional|Current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md index 3665bd50..4de86a33 100644 --- a/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendConfirmPhoneCode -description: account.sendConfirmPhoneCode parameters, return type and example +description: Send confirmation phone code --- ## Method: account.sendConfirmPhoneCode [Back to methods index](index.md) +Send confirmation phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|hash|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can telegram call you instead of sending an SMS?| +|hash|[string](../types/string.md) | Yes|The hash| +|current\_number|[Bool](../types/Bool.md) | Optional|The current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendConfirmPhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_setAccountTTL.md b/old_docs/API_docs_v57/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v57/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v57/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_setPrivacy.md b/old_docs/API_docs_v57/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v57/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v57/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/account_unregisterDevice.md b/old_docs/API_docs_v57/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v57/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v57/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v57/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v57/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v57/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_updateNotifySettings.md b/old_docs/API_docs_v57/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v57/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v57/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_updateProfile.md b/old_docs/API_docs_v57/methods/account_updateProfile.md index b3d468d1..8b0c3268 100644 --- a/old_docs/API_docs_v57/methods/account_updateProfile.md +++ b/old_docs/API_docs_v57/methods/account_updateProfile.md @@ -1,18 +1,20 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Optional| -|last\_name|[string](../types/string.md) | Optional| -|about|[string](../types/string.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Optional|The first name| +|last\_name|[string](../types/string.md) | Optional|The last name| +|about|[string](../types/string.md) | Optional|The bio/about field| ### Return type: [User](../types/User.md) @@ -32,13 +34,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_updateStatus.md b/old_docs/API_docs_v57/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v57/methods/account_updateStatus.md +++ b/old_docs/API_docs_v57/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v57/methods/account_updateUsername.md b/old_docs/API_docs_v57/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v57/methods/account_updateUsername.md +++ b/old_docs/API_docs_v57/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v57/methods/auth_cancelCode.md b/old_docs/API_docs_v57/methods/auth_cancelCode.md index 05d927a1..1283e1e5 100644 --- a/old_docs/API_docs_v57/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v57/methods/auth_cancelCode.md @@ -1,17 +1,19 @@ --- title: auth.cancelCode -description: auth.cancelCode parameters, return type and example +description: Invalidate sent phone code --- ## Method: auth.cancelCode [Back to methods index](index.md) +Invalidate sent phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: auth.cancelCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/auth_checkPassword.md b/old_docs/API_docs_v57/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v57/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v57/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v57/methods/auth_checkPhone.md b/old_docs/API_docs_v57/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v57/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v57/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v57/methods/auth_dropTempAuthKeys.md index fedb7bf4..b08b9f40 100644 --- a/old_docs/API_docs_v57/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v57/methods/auth_dropTempAuthKeys.md @@ -1,16 +1,18 @@ --- title: auth.dropTempAuthKeys -description: auth.dropTempAuthKeys parameters, return type and example +description: Delete all temporary authorization keys except the ones provided --- ## Method: auth.dropTempAuthKeys [Back to methods index](index.md) +Delete all temporary authorization keys except the ones provided + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|except\_auth\_keys|Array of [long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|except\_auth\_keys|Array of [long](../types/long.md) | Yes|The temporary authorization keys to keep| ### Return type: [Bool](../types/Bool.md) @@ -22,18 +24,20 @@ description: auth.dropTempAuthKeys parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/auth_exportAuthorization.md b/old_docs/API_docs_v57/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v57/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v57/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v57/methods/auth_importAuthorization.md b/old_docs/API_docs_v57/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v57/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v57/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v57/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v57/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v57/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v57/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v57/methods/auth_logOut.md b/old_docs/API_docs_v57/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v57/methods/auth_logOut.md +++ b/old_docs/API_docs_v57/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v57/methods/auth_recoverPassword.md b/old_docs/API_docs_v57/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v57/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v57/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v57/methods/auth_resendCode.md b/old_docs/API_docs_v57/methods/auth_resendCode.md index df4803b8..4bfbf379 100644 --- a/old_docs/API_docs_v57/methods/auth_resendCode.md +++ b/old_docs/API_docs_v57/methods/auth_resendCode.md @@ -1,17 +1,19 @@ --- title: auth.resendCode -description: auth.resendCode parameters, return type and example +description: Resend the SMS verification code --- ## Method: auth.resendCode [Back to methods index](index.md) +Resend the SMS verification code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|The phone code hash| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -30,13 +32,18 @@ description: auth.resendCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v57/methods/auth_sendCode.md b/old_docs/API_docs_v57/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v57/methods/auth_sendCode.md +++ b/old_docs/API_docs_v57/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v57/methods/auth_sendInvites.md b/old_docs/API_docs_v57/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v57/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v57/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/auth_signIn.md b/old_docs/API_docs_v57/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v57/methods/auth_signIn.md +++ b/old_docs/API_docs_v57/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v57/methods/auth_signUp.md b/old_docs/API_docs_v57/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v57/methods/auth_signUp.md +++ b/old_docs/API_docs_v57/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v57/methods/channels_checkUsername.md b/old_docs/API_docs_v57/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v57/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v57/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_createChannel.md b/old_docs/API_docs_v57/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v57/methods/channels_createChannel.md +++ b/old_docs/API_docs_v57/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_deleteChannel.md b/old_docs/API_docs_v57/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v57/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_deleteMessages.md b/old_docs/API_docs_v57/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v57/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_editAbout.md b/old_docs/API_docs_v57/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v57/methods/channels_editAbout.md +++ b/old_docs/API_docs_v57/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_editAdmin.md b/old_docs/API_docs_v57/methods/channels_editAdmin.md index c62597e1..146159d9 100644 --- a/old_docs/API_docs_v57/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v57/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |role|[ChannelParticipantRole](../types/ChannelParticipantRole.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_editPhoto.md b/old_docs/API_docs_v57/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v57/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v57/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_editTitle.md b/old_docs/API_docs_v57/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v57/methods/channels_editTitle.md +++ b/old_docs/API_docs_v57/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_exportInvite.md b/old_docs/API_docs_v57/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v57/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v57/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_exportMessageLink.md b/old_docs/API_docs_v57/methods/channels_exportMessageLink.md index 026fe982..7eff4ed8 100644 --- a/old_docs/API_docs_v57/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v57/methods/channels_exportMessageLink.md @@ -10,7 +10,7 @@ description: channels.exportMessageLink parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: channels.exportMessageLink parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v57/methods/channels_getAdminedPublicChannels.md index 283a9071..01ea971f 100644 --- a/old_docs/API_docs_v57/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v57/methods/channels_getAdminedPublicChannels.md @@ -17,13 +17,18 @@ description: channels.getAdminedPublicChannels parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); ``` diff --git a/old_docs/API_docs_v57/methods/channels_getChannels.md b/old_docs/API_docs_v57/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v57/methods/channels_getChannels.md +++ b/old_docs/API_docs_v57/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/channels_getFullChannel.md b/old_docs/API_docs_v57/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v57/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v57/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v57/methods/channels_getMessages.md b/old_docs/API_docs_v57/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v57/methods/channels_getMessages.md +++ b/old_docs/API_docs_v57/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/channels_getParticipant.md b/old_docs/API_docs_v57/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v57/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v57/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_getParticipants.md b/old_docs/API_docs_v57/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v57/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v57/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_inviteToChannel.md b/old_docs/API_docs_v57/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v57/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v57/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/channels_joinChannel.md b/old_docs/API_docs_v57/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v57/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v57/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_kickFromChannel.md b/old_docs/API_docs_v57/methods/channels_kickFromChannel.md index a2182df8..e4b68581 100644 --- a/old_docs/API_docs_v57/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v57/methods/channels_kickFromChannel.md @@ -10,8 +10,8 @@ description: channels.kickFromChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |kicked|[Bool](../types/Bool.md) | Yes| @@ -24,16 +24,18 @@ description: channels.kickFromChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_leaveChannel.md b/old_docs/API_docs_v57/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v57/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v57/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_readHistory.md b/old_docs/API_docs_v57/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v57/methods/channels_readHistory.md +++ b/old_docs/API_docs_v57/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_reportSpam.md b/old_docs/API_docs_v57/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v57/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v57/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/channels_toggleInvites.md b/old_docs/API_docs_v57/methods/channels_toggleInvites.md index 19669eec..8d977fd0 100644 --- a/old_docs/API_docs_v57/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v57/methods/channels_toggleInvites.md @@ -10,7 +10,7 @@ description: channels.toggleInvites parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -32,13 +32,18 @@ description: channels.toggleInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_toggleSignatures.md b/old_docs/API_docs_v57/methods/channels_toggleSignatures.md index 4aaaeb0c..13d53d92 100644 --- a/old_docs/API_docs_v57/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v57/methods/channels_toggleSignatures.md @@ -10,7 +10,7 @@ description: channels.toggleSignatures parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: channels.toggleSignatures parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md index 3bb6d010..ecc15ce6 100644 --- a/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md @@ -11,7 +11,7 @@ description: channels.updatePinnedMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |silent|[Bool](../types/Bool.md) | Optional| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: channels.updatePinnedMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/channels_updateUsername.md b/old_docs/API_docs_v57/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v57/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v57/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/contacts_block.md b/old_docs/API_docs_v57/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v57/methods/contacts_block.md +++ b/old_docs/API_docs_v57/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v57/methods/contacts_deleteContact.md b/old_docs/API_docs_v57/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v57/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v57/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v57/methods/contacts_deleteContacts.md b/old_docs/API_docs_v57/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v57/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v57/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/contacts_exportCard.md b/old_docs/API_docs_v57/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v57/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v57/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v57/methods/contacts_getBlocked.md b/old_docs/API_docs_v57/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v57/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v57/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/contacts_getContacts.md b/old_docs/API_docs_v57/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v57/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v57/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/contacts_getStatuses.md b/old_docs/API_docs_v57/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v57/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v57/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v57/methods/contacts_getTopPeers.md b/old_docs/API_docs_v57/methods/contacts_getTopPeers.md index d29f6e02..eafcb6ec 100644 --- a/old_docs/API_docs_v57/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v57/methods/contacts_getTopPeers.md @@ -1,23 +1,25 @@ --- title: contacts.getTopPeers -description: contacts.getTopPeers parameters, return type and example +description: Get most used chats --- ## Method: contacts.getTopPeers [Back to methods index](index.md) +Get most used chats + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|correspondents|[Bool](../types/Bool.md) | Optional| -|bots\_pm|[Bool](../types/Bool.md) | Optional| -|bots\_inline|[Bool](../types/Bool.md) | Optional| -|groups|[Bool](../types/Bool.md) | Optional| -|channels|[Bool](../types/Bool.md) | Optional| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|correspondents|[Bool](../types/Bool.md) | Optional|| +|bots\_pm|[Bool](../types/Bool.md) | Optional|| +|bots\_inline|[Bool](../types/Bool.md) | Optional|| +|groups|[Bool](../types/Bool.md) | Optional|| +|channels|[Bool](../types/Bool.md) | Optional|| +|offset|[int](../types/int.md) | Yes|| +|limit|[int](../types/int.md) | Yes|| +|hash|[int](../types/int.md) | Yes|| ### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md) @@ -36,13 +38,18 @@ description: contacts.getTopPeers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/contacts_importCard.md b/old_docs/API_docs_v57/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v57/methods/contacts_importCard.md +++ b/old_docs/API_docs_v57/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/contacts_importContacts.md b/old_docs/API_docs_v57/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v57/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v57/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md index 3eab7e04..ddcf6b2f 100644 --- a/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md @@ -11,7 +11,7 @@ description: contacts.resetTopPeerRating parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |category|[TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v57/methods/contacts_resolveUsername.md b/old_docs/API_docs_v57/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v57/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v57/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v57/methods/contacts_search.md b/old_docs/API_docs_v57/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v57/methods/contacts_search.md +++ b/old_docs/API_docs_v57/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/contacts_unblock.md b/old_docs/API_docs_v57/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v57/methods/contacts_unblock.md +++ b/old_docs/API_docs_v57/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v57/methods/help_getAppChangelog.md b/old_docs/API_docs_v57/methods/help_getAppChangelog.md index 0f8a12bd..840b79f7 100644 --- a/old_docs/API_docs_v57/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v57/methods/help_getAppChangelog.md @@ -17,13 +17,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(); ``` diff --git a/old_docs/API_docs_v57/methods/help_getAppUpdate.md b/old_docs/API_docs_v57/methods/help_getAppUpdate.md index 89ff22c3..0e227d24 100644 --- a/old_docs/API_docs_v57/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v57/methods/help_getAppUpdate.md @@ -17,13 +17,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); ``` diff --git a/old_docs/API_docs_v57/methods/help_getConfig.md b/old_docs/API_docs_v57/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v57/methods/help_getConfig.md +++ b/old_docs/API_docs_v57/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v57/methods/help_getInviteText.md b/old_docs/API_docs_v57/methods/help_getInviteText.md index 6d2674d6..a8d8992e 100644 --- a/old_docs/API_docs_v57/methods/help_getInviteText.md +++ b/old_docs/API_docs_v57/methods/help_getInviteText.md @@ -17,13 +17,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); ``` diff --git a/old_docs/API_docs_v57/methods/help_getNearestDc.md b/old_docs/API_docs_v57/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v57/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v57/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v57/methods/help_getSupport.md b/old_docs/API_docs_v57/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v57/methods/help_getSupport.md +++ b/old_docs/API_docs_v57/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v57/methods/help_getTermsOfService.md b/old_docs/API_docs_v57/methods/help_getTermsOfService.md index eb686506..a588e830 100644 --- a/old_docs/API_docs_v57/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v57/methods/help_getTermsOfService.md @@ -17,13 +17,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); ``` diff --git a/old_docs/API_docs_v57/methods/help_saveAppLog.md b/old_docs/API_docs_v57/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v57/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v57/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/initConnection.md b/old_docs/API_docs_v57/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v57/methods/initConnection.md +++ b/old_docs/API_docs_v57/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v57/methods/invokeAfterMsg.md b/old_docs/API_docs_v57/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v57/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v57/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v57/methods/invokeAfterMsgs.md b/old_docs/API_docs_v57/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v57/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v57/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/invokeWithLayer.md b/old_docs/API_docs_v57/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v57/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v57/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v57/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v57/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v57/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v57/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_acceptEncryption.md b/old_docs/API_docs_v57/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v57/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v57/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v57/methods/messages_addChatUser.md b/old_docs/API_docs_v57/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v57/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v57/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_checkChatInvite.md b/old_docs/API_docs_v57/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v57/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v57/methods/messages_clearRecentStickers.md index ae45b249..31941a34 100644 --- a/old_docs/API_docs_v57/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v57/methods/messages_clearRecentStickers.md @@ -22,13 +22,18 @@ description: messages.clearRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_createChat.md b/old_docs/API_docs_v57/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v57/methods/messages_createChat.md +++ b/old_docs/API_docs_v57/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/messages_deleteChatUser.md b/old_docs/API_docs_v57/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v57/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v57/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_deleteHistory.md b/old_docs/API_docs_v57/methods/messages_deleteHistory.md index d1c3f195..01686b2b 100644 --- a/old_docs/API_docs_v57/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v57/methods/messages_deleteHistory.md @@ -11,7 +11,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |just\_clear|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_deleteMessages.md b/old_docs/API_docs_v57/methods/messages_deleteMessages.md index 38b3ca09..12347c81 100644 --- a/old_docs/API_docs_v57/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v57/methods/messages_deleteMessages.md @@ -29,18 +29,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/messages_discardEncryption.md b/old_docs/API_docs_v57/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v57/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v57/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v57/methods/messages_editChatAdmin.md b/old_docs/API_docs_v57/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v57/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v57/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_editChatPhoto.md b/old_docs/API_docs_v57/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v57/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v57/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_editChatTitle.md b/old_docs/API_docs_v57/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v57/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v57/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md index c3489f9d..289100ea 100644 --- a/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md @@ -35,18 +35,20 @@ description: messages.editInlineBotMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/messages_editMessage.md b/old_docs/API_docs_v57/methods/messages_editMessage.md index 182fa03e..63379ed9 100644 --- a/old_docs/API_docs_v57/methods/messages_editMessage.md +++ b/old_docs/API_docs_v57/methods/messages_editMessage.md @@ -11,7 +11,7 @@ description: messages.editMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| |message|[string](../types/string.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -44,18 +44,20 @@ description: messages.editMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/messages_exportChatInvite.md b/old_docs/API_docs_v57/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v57/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_forwardMessage.md b/old_docs/API_docs_v57/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v57/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v57/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_forwardMessages.md b/old_docs/API_docs_v57/methods/messages_forwardMessages.md index 1185259d..df361517 100644 --- a/old_docs/API_docs_v57/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v57/methods/messages_forwardMessages.md @@ -13,9 +13,9 @@ description: messages.forwardMessages parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |with\_my\_score|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -55,18 +55,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/messages_getAllDrafts.md b/old_docs/API_docs_v57/methods/messages_getAllDrafts.md index 8550c5b8..7f0f7843 100644 --- a/old_docs/API_docs_v57/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v57/methods/messages_getAllDrafts.md @@ -17,13 +17,18 @@ description: messages.getAllDrafts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getAllStickers.md b/old_docs/API_docs_v57/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/old_docs/API_docs_v57/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v57/methods/messages_getArchivedStickers.md index cdb7f0af..8c2041a3 100644 --- a/old_docs/API_docs_v57/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getArchivedStickers.md @@ -24,13 +24,18 @@ description: messages.getArchivedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v57/methods/messages_getAttachedStickers.md index 79d4e30d..f03f0be2 100644 --- a/old_docs/API_docs_v57/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getAttachedStickers.md @@ -22,13 +22,18 @@ description: messages.getAttachedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md index bd916755..b9039098 100644 --- a/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md @@ -11,7 +11,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |game|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |msg\_id|[int](../types/int.md) | Yes| |data|[bytes](../types/bytes.md) | Optional| @@ -36,13 +36,18 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getChats.md b/old_docs/API_docs_v57/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v57/methods/messages_getChats.md +++ b/old_docs/API_docs_v57/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/messages_getDhConfig.md b/old_docs/API_docs_v57/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v57/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v57/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getDialogs.md b/old_docs/API_docs_v57/methods/messages_getDialogs.md index 934e3b80..323bb791 100644 --- a/old_docs/API_docs_v57/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v57/methods/messages_getDialogs.md @@ -12,7 +12,7 @@ description: messages.getDialogs parameters, return type and example |----------|---------------|----------| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -35,13 +35,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v57/methods/messages_getFeaturedStickers.md index 5aad1810..51097eda 100644 --- a/old_docs/API_docs_v57/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getFeaturedStickers.md @@ -22,13 +22,18 @@ description: messages.getFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getFullChat.md b/old_docs/API_docs_v57/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v57/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v57/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v57/methods/messages_getGameHighScores.md b/old_docs/API_docs_v57/methods/messages_getGameHighScores.md index c316a8bd..4b8b1397 100644 --- a/old_docs/API_docs_v57/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v57/methods/messages_getGameHighScores.md @@ -10,9 +10,9 @@ description: messages.getGameHighScores parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -32,16 +32,18 @@ description: messages.getGameHighScores parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getHistory.md b/old_docs/API_docs_v57/methods/messages_getHistory.md index ef31c435..87b8328d 100644 --- a/old_docs/API_docs_v57/methods/messages_getHistory.md +++ b/old_docs/API_docs_v57/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| @@ -40,13 +40,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md index 90e2a427..6d965b19 100644 --- a/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md @@ -10,8 +10,8 @@ description: messages.getInlineBotResults parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |query|[string](../types/string.md) | Yes| |offset|[string](../types/string.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md index 524e387b..9305a0f4 100644 --- a/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md @@ -11,7 +11,7 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Name | Type | Required | |----------|---------------|----------| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -31,16 +31,18 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getMaskStickers.md b/old_docs/API_docs_v57/methods/messages_getMaskStickers.md index ca964647..260cfdb7 100644 --- a/old_docs/API_docs_v57/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getMaskStickers.md @@ -22,13 +22,18 @@ description: messages.getMaskStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getMessageEditData.md b/old_docs/API_docs_v57/methods/messages_getMessageEditData.md index df71c31a..2a90a419 100644 --- a/old_docs/API_docs_v57/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v57/methods/messages_getMessageEditData.md @@ -10,7 +10,7 @@ description: messages.getMessageEditData parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getMessageEditData parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getMessages.md b/old_docs/API_docs_v57/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v57/methods/messages_getMessages.md +++ b/old_docs/API_docs_v57/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/messages_getMessagesViews.md b/old_docs/API_docs_v57/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v57/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v57/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md index 226948ae..eff29878 100644 --- a/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md @@ -10,7 +10,7 @@ description: messages.getPeerDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peers|Array of [InputPeer](../types/InputPeer.md) | Yes| +|peers|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md) @@ -30,15 +30,20 @@ description: messages.getPeerDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/messages_getPeerSettings.md b/old_docs/API_docs_v57/methods/messages_getPeerSettings.md index fab25034..25906b73 100644 --- a/old_docs/API_docs_v57/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v57/methods/messages_getPeerSettings.md @@ -10,7 +10,7 @@ description: messages.getPeerSettings parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [PeerSettings](../types/PeerSettings.md) @@ -30,13 +30,18 @@ description: messages.getPeerSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getRecentStickers.md b/old_docs/API_docs_v57/methods/messages_getRecentStickers.md index a6ae162f..5a60d345 100644 --- a/old_docs/API_docs_v57/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getRecentStickers.md @@ -23,13 +23,18 @@ description: messages.getRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getSavedGifs.md b/old_docs/API_docs_v57/methods/messages_getSavedGifs.md index 4986d812..bcb4590d 100644 --- a/old_docs/API_docs_v57/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v57/methods/messages_getSavedGifs.md @@ -22,13 +22,18 @@ description: messages.getSavedGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getStickerSet.md b/old_docs/API_docs_v57/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v57/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v57/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v57/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v57/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v57/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_hideReportSpam.md b/old_docs/API_docs_v57/methods/messages_hideReportSpam.md index d47e8aa5..0419ec79 100644 --- a/old_docs/API_docs_v57/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v57/methods/messages_hideReportSpam.md @@ -10,7 +10,7 @@ description: messages.hideReportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.hideReportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_importChatInvite.md b/old_docs/API_docs_v57/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v57/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_installStickerSet.md b/old_docs/API_docs_v57/methods/messages_installStickerSet.md index 9336cc22..f405adce 100644 --- a/old_docs/API_docs_v57/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v57/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_migrateChat.md b/old_docs/API_docs_v57/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v57/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v57/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v57/methods/messages_readFeaturedStickers.md index 02055bf3..766ba200 100644 --- a/old_docs/API_docs_v57/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v57/methods/messages_readFeaturedStickers.md @@ -22,15 +22,20 @@ description: messages.readFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/messages_readHistory.md b/old_docs/API_docs_v57/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v57/methods/messages_readHistory.md +++ b/old_docs/API_docs_v57/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_readMessageContents.md b/old_docs/API_docs_v57/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v57/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v57/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/messages_receivedMessages.md b/old_docs/API_docs_v57/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v57/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v57/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_receivedQueue.md b/old_docs/API_docs_v57/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v57/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v57/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v57/methods/messages_reorderStickerSets.md index fa094550..0e2c121d 100644 --- a/old_docs/API_docs_v57/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v57/methods/messages_reorderStickerSets.md @@ -23,15 +23,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/messages_reportSpam.md b/old_docs/API_docs_v57/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v57/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v57/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_requestEncryption.md b/old_docs/API_docs_v57/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v57/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v57/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v57/methods/messages_saveDraft.md b/old_docs/API_docs_v57/methods/messages_saveDraft.md index 7a85dfe7..754b4da2 100644 --- a/old_docs/API_docs_v57/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v57/methods/messages_saveDraft.md @@ -12,7 +12,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |message|[string](../types/string.md) | Yes| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| |parse\_mode| [string](../types/string.md) | Optional | @@ -34,15 +34,20 @@ description: messages.saveDraft parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/messages_saveGif.md b/old_docs/API_docs_v57/methods/messages_saveGif.md index b3673c91..725bc949 100644 --- a/old_docs/API_docs_v57/methods/messages_saveGif.md +++ b/old_docs/API_docs_v57/methods/messages_saveGif.md @@ -10,7 +10,7 @@ description: messages.saveGif parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveGif parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md index bc3d1627..4a8298e2 100644 --- a/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md @@ -11,7 +11,7 @@ description: messages.saveRecentSticker parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |attached|[Bool](../types/Bool.md) | Optional| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.saveRecentSticker parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_search.md b/old_docs/API_docs_v57/methods/messages_search.md index f6aa515b..11b968bf 100644 --- a/old_docs/API_docs_v57/methods/messages_search.md +++ b/old_docs/API_docs_v57/methods/messages_search.md @@ -10,7 +10,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -42,13 +42,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_searchGifs.md b/old_docs/API_docs_v57/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/old_docs/API_docs_v57/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v57/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_searchGlobal.md b/old_docs/API_docs_v57/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v57/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v57/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_sendEncrypted.md b/old_docs/API_docs_v57/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md index 0857341e..6bfb1578 100644 --- a/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md @@ -13,7 +13,7 @@ description: messages.sendInlineBotResult parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |query\_id|[long](../types/long.md) | Yes| |id|[string](../types/string.md) | Yes| @@ -40,13 +40,18 @@ description: messages.sendInlineBotResult parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_sendMedia.md b/old_docs/API_docs_v57/methods/messages_sendMedia.md index 8c6f7f7f..1530451b 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v57/methods/messages_sendMedia.md @@ -13,9 +13,9 @@ description: messages.sendMedia parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -56,16 +56,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_sendMessage.md b/old_docs/API_docs_v57/methods/messages_sendMessage.md index bec95b8c..49ace99c 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v57/methods/messages_sendMessage.md @@ -14,7 +14,7 @@ description: messages.sendMessage parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -50,6 +50,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -57,18 +58,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$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], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md index ad408378..cc9ee650 100644 --- a/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md @@ -32,16 +32,18 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_setGameScore.md b/old_docs/API_docs_v57/methods/messages_setGameScore.md index bf2f1518..88b08bc1 100644 --- a/old_docs/API_docs_v57/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v57/methods/messages_setGameScore.md @@ -11,9 +11,9 @@ description: messages.setGameScore parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |edit\_message|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: messages.setGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md index 8b49c4c7..c38b8c2e 100644 --- a/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md @@ -45,18 +45,20 @@ description: messages.setInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md index 00fa7e8b..6664e4bf 100644 --- a/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md @@ -12,7 +12,7 @@ description: messages.setInlineGameScore parameters, return type and example |----------|---------------|----------| |edit\_message|[Bool](../types/Bool.md) | Optional| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.setInlineGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_setTyping.md b/old_docs/API_docs_v57/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v57/methods/messages_setTyping.md +++ b/old_docs/API_docs_v57/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_startBot.md b/old_docs/API_docs_v57/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v57/methods/messages_startBot.md +++ b/old_docs/API_docs_v57/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v57/methods/photos_deletePhotos.md b/old_docs/API_docs_v57/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v57/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v57/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/methods/photos_getUserPhotos.md b/old_docs/API_docs_v57/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v57/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v57/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v57/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v57/methods/photos_updateProfilePhoto.md index cc79a625..1ed6fb24 100644 --- a/old_docs/API_docs_v57/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v57/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| ### Return type: [UserProfilePhoto](../types/UserProfilePhoto.md) @@ -22,13 +22,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); ``` diff --git a/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md index 075dab4b..4b20315b 100644 --- a/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| ### Return type: [photos\_Photo](../types/photos_Photo.md) @@ -32,13 +32,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); ``` diff --git a/old_docs/API_docs_v57/methods/updates_getChannelDifference.md b/old_docs/API_docs_v57/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v57/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v57/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v57/methods/updates_getDifference.md b/old_docs/API_docs_v57/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v57/methods/updates_getDifference.md +++ b/old_docs/API_docs_v57/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v57/methods/updates_getState.md b/old_docs/API_docs_v57/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v57/methods/updates_getState.md +++ b/old_docs/API_docs_v57/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v57/methods/upload_getFile.md b/old_docs/API_docs_v57/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v57/methods/upload_getFile.md +++ b/old_docs/API_docs_v57/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v57/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v57/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v57/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v57/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v57/methods/upload_saveFilePart.md b/old_docs/API_docs_v57/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v57/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v57/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v57/methods/users_getFullUser.md b/old_docs/API_docs_v57/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v57/methods/users_getFullUser.md +++ b/old_docs/API_docs_v57/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v57/methods/users_getUsers.md b/old_docs/API_docs_v57/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v57/methods/users_getUsers.md +++ b/old_docs/API_docs_v57/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v57/types/Chat.md b/old_docs/API_docs_v57/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v57/types/Chat.md +++ b/old_docs/API_docs_v57/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v57/types/InputChannel.md b/old_docs/API_docs_v57/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v57/types/InputChannel.md +++ b/old_docs/API_docs_v57/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v57/types/InputDocument.md b/old_docs/API_docs_v57/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v57/types/InputDocument.md +++ b/old_docs/API_docs_v57/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v57/types/InputEncryptedChat.md b/old_docs/API_docs_v57/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v57/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v57/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v57/types/InputEncryptedFile.md b/old_docs/API_docs_v57/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v57/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v57/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v57/types/InputFile.md b/old_docs/API_docs_v57/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v57/types/InputFile.md +++ b/old_docs/API_docs_v57/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v57/types/InputMedia.md b/old_docs/API_docs_v57/types/InputMedia.md index 57d4b92a..ca0d00fc 100644 --- a/old_docs/API_docs_v57/types/InputMedia.md +++ b/old_docs/API_docs_v57/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v57/types/InputPeer.md b/old_docs/API_docs_v57/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v57/types/InputPeer.md +++ b/old_docs/API_docs_v57/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v57/types/InputPhoto.md b/old_docs/API_docs_v57/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v57/types/InputPhoto.md +++ b/old_docs/API_docs_v57/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v57/types/InputUser.md b/old_docs/API_docs_v57/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v57/types/InputUser.md +++ b/old_docs/API_docs_v57/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v57/types/Peer.md b/old_docs/API_docs_v57/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v57/types/Peer.md +++ b/old_docs/API_docs_v57/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v57/types/User.md b/old_docs/API_docs_v57/types/User.md index a9d4addd..30fd113c 100644 --- a/old_docs/API_docs_v57/types/User.md +++ b/old_docs/API_docs_v57/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v62/Lang.php b/old_docs/API_docs_v62/Lang.php new file mode 100644 index 00000000..d13319d9 --- /dev/null +++ b/old_docs/API_docs_v62/Lang.php @@ -0,0 +1,2358 @@ +. + */ + +namespace danog\MadelineProto; + +class Lang +{ + public static $lang = array ( + 'it' => + array ( + 'phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istanziamento dei DataCenter...', + 'load_rsa' => 'Caricamento delle chiavi RSA...', + 'TL_translation' => 'Translazione degli schemi TL...', + 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', + 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', + 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', + 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', + 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', + 'threading_on' => 'IL THREADING È ABILITATO', + 'socket_reader' => 'Lettore socket su DC %s: ', + 'socket_status_1' => 'CREAZIONE', + 'socket_status_2' => 'INVIO', + 'socket_status_3' => 'ATTESA', + 'socket_status_4' => 'PRONTO', + 'socket_status_5' => 'AVVIATO', + 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', + 'session_corrupted' => 'La sessione si è corrotta!', + 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', + 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', + 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', + 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', + 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', + 'config_updated' => 'La configurazione è stata aggiornata!', + 'length_not_4' => 'La lunghezza non è uguale a 4', + 'length_not_8' => 'La lunghezza non è uguale a 8', + 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', + 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', + 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', + 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', + 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', + 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', + 'file_not_exist' => 'Il file specificato non esiste', + 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', + 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', + 'loading_key' => 'Caricamento della chiave in corso...', + 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', + 'rsa_encrypting' => 'Criptando con chiave RSA...', + 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', + 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', + 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', + 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', + 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', + 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', + 'socket_con_error' => 'Connessione fallita.', + 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', + 'protocol_invalid' => 'È stato fornito un protocollo non valido', + 'nothing_in_socket' => 'Non c\'è niente nel socket!', + 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', + 'no_data_in_socket' => 'Non ci sono dati nel socket!', + 'dc_con_start' => 'Connessione al DC %s in corso...', + 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', + 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', + 'script_not_exist' => 'Lo script fornito non esiste', + 'apifactory_start' => 'Sto avviando la fabbrica di API...', + 'madelineproto_ready' => 'MadelineProto è pronto!', + 'logout_error' => 'C\'è stato un errore durante il logout!', + 'logout_ok' => 'Il logout è stato eseguito correttamente!', + 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', + 'login_ok' => 'Il login è stato eseguito correttamente!', + 'login_user' => 'Sto eseguendo il login come utente normale...', + 'login_bot' => 'Sto eseguendo il login come bot...', + 'login_code_sending' => 'Sto inviando il codice...', + 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', + 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', + 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', + 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', + 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', + 'not_logged_in' => 'Non ho ancora fatto il login!', + 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', + 'signing_up' => 'Mi sto registrando su telegram come utente normale...', + 'signup_ok' => 'Mi sono registrato su Telegram!', + '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', + 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', + 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', + 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', + 'calling_user' => 'Sto chiamando %s...', + 'generating_a' => 'Sto generando a...', + 'generating_g_a' => 'Sto generando g_a...', + 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', + 'accepting_call' => 'Sto accettando una chiamata da %s...', + 'generating_b' => 'Sto generando b...', + 'call_already_accepted' => 'La chiamata %s è già stata accettata.', + 'call_already_declined' => 'La chiamata %s è già stata annullata.', + 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', + 'call_confirming' => 'Sto confermando una chiamata da %s', + 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', + 'call_completing' => 'Sto completando una chiamata da %s...', + 'invalid_g_a' => 'g_a non valido!', + 'fingerprint_invalid' => 'fingerprint della chiave non valido!', + 'call_discarding' => 'Sto rifiutando la chiamata %s...', + 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', + 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', + 'TL_loading' => 'Sto caricando gli schemi TL...', + 'file_parsing' => 'Leggendo %s...', + 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', + 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', + 'translating_obj' => 'Traducendo gli oggetti...', + 'translating_methods' => 'Traducendo i metodi...', + 'bool_error' => 'Non sono riuscito ad estrarre un booleano', + 'not_numeric' => 'Il valore fornito non è numerico', + 'long_not_16' => 'Il valore fornito non è lungo 16 byte', + 'long_not_32' => 'Il valore fornito non è lungo 32 byte', + 'long_not_64' => 'Il valore fornito non è lungo 64 byte', + 'array_invalid' => 'Il valore fornito non è un array', + 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', + 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', + 'method_not_found' => 'Impossibile trovare il seguente metodo: ', + 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', + 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', + 'stream_handle_invalid' => 'Il valore fornito non è uno stream', + 'length_too_big' => 'Il valore fornito è troppo lungo', + 'deserialize_not_str' => 'Il valore generato non è una stringa', + 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', + 'vector_invalid' => 'ID vettore non valido: ', + 'constructor_not_found' => 'Costruttore non trovato per tipo: ', + 'rand_bytes_too_small' => 'random_bytes è troppo corto!', + 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', + 'non_text_conversion' => 'Non posso ancora convertire messaggi media', + 'last_byte_invalid' => 'L\'ultimo byte non è valido', + 'file_type_invalid' => 'È stato fornito un tipo file errato', + 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', + 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', + 'shutting_down_reader_pool' => 'Chisura pool di lettura', + 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', + 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', + 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', + 'msg_data_length_too_big' => 'message_data_length è troppo grande', + 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', + 'msg_key_mismatch' => 'msg_key non valido', + 'rand_bytes_too_short' => 'random_bytes è troppo corto!', + 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', + 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', + 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', + 'req_pq' => 'Sto richiedendo pq...', + 'done' => 'Fatto!', + 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', + 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!', + ), + 'en' => + array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', + 'method_messages.search_param_important_only' => '', + 'method_messages.sendMessage_param_broadcast' => '', + 'method_messages.sendMedia_param_broadcast' => '', + 'method_messages.forwardMessages_param_broadcast' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id' => '', + 'method_messages.deactivateChat_param_enabled' => '', + 'method_help.getTermsOfService_param_lang_code' => '', + 'method_messages.sendInlineBotResult_param_broadcast' => '', + 'method_channels.getImportantHistory_param_offset_date' => '', + 'method_messages.getUnusedStickers' => '', + 'method_messages.getUnusedStickers_param_limit' => '', + 'method_destroy_auth_key' => '', + 'method_phone.requestCall_param_g_a' => '', + 'method_phone.acceptCall_param_key_fingerprint' => '', + ), +); + + // THIS WILL BE OVERWRITTEN BY $lang["en"] + public static $current_lang = array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', + 'method_messages.search_param_important_only' => '', + 'method_messages.sendMessage_param_broadcast' => '', + 'method_messages.sendMedia_param_broadcast' => '', + 'method_messages.forwardMessages_param_broadcast' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id' => '', + 'method_messages.deactivateChat_param_enabled' => '', + 'method_help.getTermsOfService_param_lang_code' => '', + 'method_messages.sendInlineBotResult_param_broadcast' => '', + 'method_channels.getImportantHistory_param_offset_date' => '', + 'method_messages.getUnusedStickers' => '', + 'method_messages.getUnusedStickers_param_limit' => '', + 'method_destroy_auth_key' => '', + 'method_phone.requestCall_param_g_a' => '', + 'method_phone.acceptCall_param_key_fingerprint' => '', +); +} \ No newline at end of file diff --git a/old_docs/API_docs_v62/constructors/account_authorizations.md b/old_docs/API_docs_v62/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v62/constructors/account_authorizations.md +++ b/old_docs/API_docs_v62/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/account_privacyRules.md b/old_docs/API_docs_v62/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v62/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v62/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/botInfo.md b/old_docs/API_docs_v62/constructors/botInfo.md index bee4a540..25a27913 100644 --- a/old_docs/API_docs_v62/constructors/botInfo.md +++ b/old_docs/API_docs_v62/constructors/botInfo.md @@ -23,7 +23,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/botInlineMessageText.md b/old_docs/API_docs_v62/constructors/botInlineMessageText.md index dc00808b..feb5e9d0 100644 --- a/old_docs/API_docs_v62/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v62/constructors/botInlineMessageText.md @@ -24,7 +24,7 @@ description: botInlineMessageText attributes, type and example ### Example: ``` -$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/channelFull.md b/old_docs/API_docs_v62/constructors/channelFull.md index d51c5e6d..d16eda19 100644 --- a/old_docs/API_docs_v62/constructors/channelFull.md +++ b/old_docs/API_docs_v62/constructors/channelFull.md @@ -37,7 +37,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_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]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/channelMessagesFilter.md b/old_docs/API_docs_v62/constructors/channelMessagesFilter.md index 0a731ce9..ad9a592e 100644 --- a/old_docs/API_docs_v62/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v62/constructors/channelMessagesFilter.md @@ -22,7 +22,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/channels_channelParticipant.md b/old_docs/API_docs_v62/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v62/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v62/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/channels_channelParticipants.md b/old_docs/API_docs_v62/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v62/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v62/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/chatFull.md b/old_docs/API_docs_v62/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v62/constructors/chatFull.md +++ b/old_docs/API_docs_v62/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/chatInvite.md b/old_docs/API_docs_v62/constructors/chatInvite.md index e7000f7b..e9087e0d 100644 --- a/old_docs/API_docs_v62/constructors/chatInvite.md +++ b/old_docs/API_docs_v62/constructors/chatInvite.md @@ -28,7 +28,7 @@ description: chatInvite attributes, type and example ### Example: ``` -$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [User]]; +$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: diff --git a/old_docs/API_docs_v62/constructors/chatParticipants.md b/old_docs/API_docs_v62/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v62/constructors/chatParticipants.md +++ b/old_docs/API_docs_v62/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/config.md b/old_docs/API_docs_v62/constructors/config.md index 0a3c6178..605bcf69 100644 --- a/old_docs/API_docs_v62/constructors/config.md +++ b/old_docs/API_docs_v62/constructors/config.md @@ -49,7 +49,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => 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, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => 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, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/contacts_blocked.md b/old_docs/API_docs_v62/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v62/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v62/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v62/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v62/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v62/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/contacts_contacts.md b/old_docs/API_docs_v62/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v62/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v62/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/contacts_found.md b/old_docs/API_docs_v62/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v62/constructors/contacts_found.md +++ b/old_docs/API_docs_v62/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/contacts_importedContacts.md b/old_docs/API_docs_v62/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v62/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v62/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v62/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v62/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v62/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/contacts_topPeers.md b/old_docs/API_docs_v62/constructors/contacts_topPeers.md index 17551f5d..07623018 100644 --- a/old_docs/API_docs_v62/constructors/contacts_topPeers.md +++ b/old_docs/API_docs_v62/constructors/contacts_topPeers.md @@ -23,7 +23,7 @@ description: contacts_topPeers attributes, type and example ### Example: ``` -$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers], 'chats' => [Chat], 'users' => [User]]; +$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers, TopPeerCategoryPeers], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/document.md b/old_docs/API_docs_v62/constructors/document.md index 8c0883bb..55d4c017 100644 --- a/old_docs/API_docs_v62/constructors/document.md +++ b/old_docs/API_docs_v62/constructors/document.md @@ -29,7 +29,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/documentAttributeAudio.md b/old_docs/API_docs_v62/constructors/documentAttributeAudio.md index 4d393890..ceb02cba 100644 --- a/old_docs/API_docs_v62/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v62/constructors/documentAttributeAudio.md @@ -12,7 +12,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| |voice|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Optional| |performer|[string](../types/string.md) | Optional| |waveform|[bytes](../types/bytes.md) | Optional| diff --git a/old_docs/API_docs_v62/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v62/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v62/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v62/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v62/constructors/documentAttributeVideo.md b/old_docs/API_docs_v62/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v62/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v62/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v62/constructors/draftMessage.md b/old_docs/API_docs_v62/constructors/draftMessage.md index 13277194..644adc43 100644 --- a/old_docs/API_docs_v62/constructors/draftMessage.md +++ b/old_docs/API_docs_v62/constructors/draftMessage.md @@ -25,7 +25,7 @@ description: draftMessage attributes, type and example ### Example: ``` -$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity], 'date' => int]; +$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'date' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/help_appChangelog.md b/old_docs/API_docs_v62/constructors/help_appChangelog.md index 4c2308d9..4b48ccb0 100644 --- a/old_docs/API_docs_v62/constructors/help_appChangelog.md +++ b/old_docs/API_docs_v62/constructors/help_appChangelog.md @@ -23,7 +23,7 @@ description: help_appChangelog attributes, type and example ### Example: ``` -$help_appChangelog = ['_' => 'help.appChangelog', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$help_appChangelog = ['_' => 'help.appChangelog', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v62/constructors/inputBotInlineMessageText.md index 677e5d8c..ed3ddd1b 100644 --- a/old_docs/API_docs_v62/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v62/constructors/inputBotInlineMessageText.md @@ -24,7 +24,7 @@ description: inputBotInlineMessageText attributes, type and example ### Example: ``` -$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/inputBotInlineResultDocument.md b/old_docs/API_docs_v62/constructors/inputBotInlineResultDocument.md index 2315623b..f27421f9 100644 --- a/old_docs/API_docs_v62/constructors/inputBotInlineResultDocument.md +++ b/old_docs/API_docs_v62/constructors/inputBotInlineResultDocument.md @@ -15,7 +15,7 @@ description: inputBotInlineResultDocument attributes, type and example |type|[string](../types/string.md) | Yes| |title|[string](../types/string.md) | Optional| |description|[string](../types/string.md) | Optional| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v62/constructors/inputBotInlineResultPhoto.md b/old_docs/API_docs_v62/constructors/inputBotInlineResultPhoto.md index d39bd108..9628b4e5 100644 --- a/old_docs/API_docs_v62/constructors/inputBotInlineResultPhoto.md +++ b/old_docs/API_docs_v62/constructors/inputBotInlineResultPhoto.md @@ -13,7 +13,7 @@ description: inputBotInlineResultPhoto attributes, type and example |----------|---------------|----------| |id|[string](../types/string.md) | Yes| |type|[string](../types/string.md) | Yes| -|photo|[InputPhoto](../types/InputPhoto.md) | Optional| +|photo|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v62/constructors/inputChatPhoto.md b/old_docs/API_docs_v62/constructors/inputChatPhoto.md index e787f342..ae979308 100644 --- a/old_docs/API_docs_v62/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v62/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v62/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v62/constructors/inputChatUploadedPhoto.md index 78c28fdc..e9d2f354 100644 --- a/old_docs/API_docs_v62/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v62/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| diff --git a/old_docs/API_docs_v62/constructors/inputGameShortName.md b/old_docs/API_docs_v62/constructors/inputGameShortName.md index 64c55c18..0261912a 100644 --- a/old_docs/API_docs_v62/constructors/inputGameShortName.md +++ b/old_docs/API_docs_v62/constructors/inputGameShortName.md @@ -11,7 +11,7 @@ description: inputGameShortName attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|bot\_id|[InputUser](../types/InputUser.md) | Optional| +|bot\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |short\_name|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v62/constructors/inputMediaDocument.md b/old_docs/API_docs_v62/constructors/inputMediaDocument.md index 88fed980..66d0baba 100644 --- a/old_docs/API_docs_v62/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v62/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v62/constructors/inputMediaPhoto.md b/old_docs/API_docs_v62/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v62/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v62/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v62/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v62/constructors/inputMediaUploadedDocument.md index a2520998..71e6ea97 100644 --- a/old_docs/API_docs_v62/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v62/constructors/inputMediaUploadedDocument.md @@ -11,11 +11,11 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| @@ -25,7 +25,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument]]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v62/constructors/inputMediaUploadedPhoto.md index ac5480e1..193591c7 100644 --- a/old_docs/API_docs_v62/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v62/constructors/inputMediaUploadedPhoto.md @@ -11,9 +11,9 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| @@ -23,7 +23,7 @@ description: inputMediaUploadedPhoto attributes, type and example ### Example: ``` -$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument]]; +$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v62/constructors/inputMediaUploadedThumbDocument.md index 06ef970d..605ffe2c 100644 --- a/old_docs/API_docs_v62/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v62/constructors/inputMediaUploadedThumbDocument.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| @@ -26,7 +26,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument]]; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/inputNotifyPeer.md b/old_docs/API_docs_v62/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v62/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v62/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v62/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v62/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v62/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v62/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v62/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v62/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v62/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/inputStickeredMediaDocument.md b/old_docs/API_docs_v62/constructors/inputStickeredMediaDocument.md index ca9921e7..c281b7e5 100644 --- a/old_docs/API_docs_v62/constructors/inputStickeredMediaDocument.md +++ b/old_docs/API_docs_v62/constructors/inputStickeredMediaDocument.md @@ -11,7 +11,7 @@ description: inputStickeredMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v62/constructors/inputStickeredMediaPhoto.md b/old_docs/API_docs_v62/constructors/inputStickeredMediaPhoto.md index ac0428e1..042044b0 100644 --- a/old_docs/API_docs_v62/constructors/inputStickeredMediaPhoto.md +++ b/old_docs/API_docs_v62/constructors/inputStickeredMediaPhoto.md @@ -11,7 +11,7 @@ description: inputStickeredMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v62/constructors/keyboardButtonRow.md b/old_docs/API_docs_v62/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v62/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v62/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/message.md b/old_docs/API_docs_v62/constructors/message.md index 67b2cd79..dc324ff1 100644 --- a/old_docs/API_docs_v62/constructors/message.md +++ b/old_docs/API_docs_v62/constructors/message.md @@ -38,7 +38,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; +$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v62/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v62/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v62/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messageActionChatCreate.md b/old_docs/API_docs_v62/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v62/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v62/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_allStickers.md b/old_docs/API_docs_v62/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/old_docs/API_docs_v62/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v62/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_archivedStickers.md b/old_docs/API_docs_v62/constructors/messages_archivedStickers.md index 7af238d4..c9675b57 100644 --- a/old_docs/API_docs_v62/constructors/messages_archivedStickers.md +++ b/old_docs/API_docs_v62/constructors/messages_archivedStickers.md @@ -22,7 +22,7 @@ description: messages_archivedStickers attributes, type and example ### Example: ``` -$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered]]; +$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_botResults.md b/old_docs/API_docs_v62/constructors/messages_botResults.md index 2f53b450..13edec1a 100644 --- a/old_docs/API_docs_v62/constructors/messages_botResults.md +++ b/old_docs/API_docs_v62/constructors/messages_botResults.md @@ -26,7 +26,7 @@ description: messages_botResults attributes, type and example ### Example: ``` -$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult], 'cache_time' => int]; +$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult, BotInlineResult], 'cache_time' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_channelMessages.md b/old_docs/API_docs_v62/constructors/messages_channelMessages.md index 8ec11b2d..358c0c70 100644 --- a/old_docs/API_docs_v62/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v62/constructors/messages_channelMessages.md @@ -25,7 +25,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_chatFull.md b/old_docs/API_docs_v62/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v62/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v62/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_chats.md b/old_docs/API_docs_v62/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v62/constructors/messages_chats.md +++ b/old_docs/API_docs_v62/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_chatsSlice.md b/old_docs/API_docs_v62/constructors/messages_chatsSlice.md index 4e3e0e77..614c577b 100644 --- a/old_docs/API_docs_v62/constructors/messages_chatsSlice.md +++ b/old_docs/API_docs_v62/constructors/messages_chatsSlice.md @@ -22,7 +22,7 @@ description: messages_chatsSlice attributes, type and example ### Example: ``` -$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat]]; +$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_dialogs.md b/old_docs/API_docs_v62/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v62/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v62/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v62/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v62/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v62/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v62/constructors/messages_featuredStickers.md b/old_docs/API_docs_v62/constructors/messages_featuredStickers.md index dac1fd91..0fc54db1 100644 --- a/old_docs/API_docs_v62/constructors/messages_featuredStickers.md +++ b/old_docs/API_docs_v62/constructors/messages_featuredStickers.md @@ -23,7 +23,7 @@ description: messages_featuredStickers attributes, type and example ### Example: ``` -$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered], 'unread' => [long]]; +$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered, StickerSetCovered], 'unread' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_foundGifs.md b/old_docs/API_docs_v62/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/old_docs/API_docs_v62/constructors/messages_foundGifs.md +++ b/old_docs/API_docs_v62/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_highScores.md b/old_docs/API_docs_v62/constructors/messages_highScores.md index 26eab658..df592f06 100644 --- a/old_docs/API_docs_v62/constructors/messages_highScores.md +++ b/old_docs/API_docs_v62/constructors/messages_highScores.md @@ -22,7 +22,7 @@ description: messages_highScores attributes, type and example ### Example: ``` -$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore], 'users' => [User]]; +$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore, HighScore], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_messages.md b/old_docs/API_docs_v62/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v62/constructors/messages_messages.md +++ b/old_docs/API_docs_v62/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_messagesSlice.md b/old_docs/API_docs_v62/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v62/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v62/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_peerDialogs.md b/old_docs/API_docs_v62/constructors/messages_peerDialogs.md index bec6c88c..5d25b545 100644 --- a/old_docs/API_docs_v62/constructors/messages_peerDialogs.md +++ b/old_docs/API_docs_v62/constructors/messages_peerDialogs.md @@ -25,7 +25,7 @@ description: messages_peerDialogs attributes, type and example ### Example: ``` -$messages_peerDialogs = ['_' => 'messages.peerDialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v62/constructors/messages_recentStickers.md b/old_docs/API_docs_v62/constructors/messages_recentStickers.md index be5e69a0..a8a53ffe 100644 --- a/old_docs/API_docs_v62/constructors/messages_recentStickers.md +++ b/old_docs/API_docs_v62/constructors/messages_recentStickers.md @@ -22,7 +22,7 @@ description: messages_recentStickers attributes, type and example ### Example: ``` -$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document]]; +$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_savedGifs.md b/old_docs/API_docs_v62/constructors/messages_savedGifs.md index 7e2a00eb..b4ff040d 100644 --- a/old_docs/API_docs_v62/constructors/messages_savedGifs.md +++ b/old_docs/API_docs_v62/constructors/messages_savedGifs.md @@ -22,7 +22,7 @@ description: messages_savedGifs attributes, type and example ### Example: ``` -$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document]]; +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_stickerSet.md b/old_docs/API_docs_v62/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v62/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v62/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_stickerSetInstallResultArchive.md b/old_docs/API_docs_v62/constructors/messages_stickerSetInstallResultArchive.md index f3e510bb..5b7fb05f 100644 --- a/old_docs/API_docs_v62/constructors/messages_stickerSetInstallResultArchive.md +++ b/old_docs/API_docs_v62/constructors/messages_stickerSetInstallResultArchive.md @@ -21,7 +21,7 @@ description: messages_stickerSetInstallResultArchive attributes, type and exampl ### Example: ``` -$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered]]; +$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/messages_stickers.md b/old_docs/API_docs_v62/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v62/constructors/messages_stickers.md +++ b/old_docs/API_docs_v62/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/pageBlockCollage.md b/old_docs/API_docs_v62/constructors/pageBlockCollage.md index 8685b250..3950e34d 100644 --- a/old_docs/API_docs_v62/constructors/pageBlockCollage.md +++ b/old_docs/API_docs_v62/constructors/pageBlockCollage.md @@ -22,7 +22,7 @@ description: pageBlockCollage attributes, type and example ### Example: ``` -$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/pageBlockEmbedPost.md b/old_docs/API_docs_v62/constructors/pageBlockEmbedPost.md index e0e955b9..e9434dfa 100644 --- a/old_docs/API_docs_v62/constructors/pageBlockEmbedPost.md +++ b/old_docs/API_docs_v62/constructors/pageBlockEmbedPost.md @@ -27,7 +27,7 @@ description: pageBlockEmbedPost attributes, type and example ### Example: ``` -$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock], 'caption' => RichText]; +$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/pageBlockList.md b/old_docs/API_docs_v62/constructors/pageBlockList.md index 6bf3c783..728c05a7 100644 --- a/old_docs/API_docs_v62/constructors/pageBlockList.md +++ b/old_docs/API_docs_v62/constructors/pageBlockList.md @@ -22,7 +22,7 @@ description: pageBlockList attributes, type and example ### Example: ``` -$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText]]; +$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/pageBlockSlideshow.md b/old_docs/API_docs_v62/constructors/pageBlockSlideshow.md index e48d51bb..0c18e64f 100644 --- a/old_docs/API_docs_v62/constructors/pageBlockSlideshow.md +++ b/old_docs/API_docs_v62/constructors/pageBlockSlideshow.md @@ -22,7 +22,7 @@ description: pageBlockSlideshow attributes, type and example ### Example: ``` -$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/pageFull.md b/old_docs/API_docs_v62/constructors/pageFull.md index 6a9bd9b5..aef5e376 100644 --- a/old_docs/API_docs_v62/constructors/pageFull.md +++ b/old_docs/API_docs_v62/constructors/pageFull.md @@ -23,7 +23,7 @@ description: pageFull attributes, type and example ### Example: ``` -$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock], 'photos' => [Photo], 'videos' => [Document]]; +$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'videos' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/pagePart.md b/old_docs/API_docs_v62/constructors/pagePart.md index 8c6dfe7c..b3e061a5 100644 --- a/old_docs/API_docs_v62/constructors/pagePart.md +++ b/old_docs/API_docs_v62/constructors/pagePart.md @@ -23,7 +23,7 @@ description: pagePart attributes, type and example ### Example: ``` -$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock], 'photos' => [Photo], 'videos' => [Document]]; +$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'videos' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/phoneCall.md b/old_docs/API_docs_v62/constructors/phoneCall.md index 279af015..703116b5 100644 --- a/old_docs/API_docs_v62/constructors/phoneCall.md +++ b/old_docs/API_docs_v62/constructors/phoneCall.md @@ -31,7 +31,7 @@ description: phoneCall attributes, type and example ### Example: ``` -$phoneCall = ['_' => 'phoneCall', '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]; +$phoneCall = ['_' => 'phoneCall', '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: diff --git a/old_docs/API_docs_v62/constructors/phone_phoneCall.md b/old_docs/API_docs_v62/constructors/phone_phoneCall.md index 38177647..00a43b98 100644 --- a/old_docs/API_docs_v62/constructors/phone_phoneCall.md +++ b/old_docs/API_docs_v62/constructors/phone_phoneCall.md @@ -22,7 +22,7 @@ description: phone_phoneCall attributes, type and example ### Example: ``` -$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User]]; +$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/photo.md b/old_docs/API_docs_v62/constructors/photo.md index 0d6edc52..293458ca 100644 --- a/old_docs/API_docs_v62/constructors/photo.md +++ b/old_docs/API_docs_v62/constructors/photo.md @@ -25,7 +25,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/photos_photo.md b/old_docs/API_docs_v62/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v62/constructors/photos_photo.md +++ b/old_docs/API_docs_v62/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/photos_photos.md b/old_docs/API_docs_v62/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v62/constructors/photos_photos.md +++ b/old_docs/API_docs_v62/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/photos_photosSlice.md b/old_docs/API_docs_v62/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v62/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v62/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v62/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v62/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v62/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v62/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v62/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v62/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/replyInlineMarkup.md b/old_docs/API_docs_v62/constructors/replyInlineMarkup.md index 80d2ff77..95257485 100644 --- a/old_docs/API_docs_v62/constructors/replyInlineMarkup.md +++ b/old_docs/API_docs_v62/constructors/replyInlineMarkup.md @@ -21,7 +21,7 @@ description: replyInlineMarkup attributes, type and example ### Example: ``` -$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow]]; +$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v62/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v62/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v62/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/stickerPack.md b/old_docs/API_docs_v62/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v62/constructors/stickerPack.md +++ b/old_docs/API_docs_v62/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/stickerSetMultiCovered.md b/old_docs/API_docs_v62/constructors/stickerSetMultiCovered.md index 4dd5a0a7..9a337fdc 100644 --- a/old_docs/API_docs_v62/constructors/stickerSetMultiCovered.md +++ b/old_docs/API_docs_v62/constructors/stickerSetMultiCovered.md @@ -22,7 +22,7 @@ description: stickerSetMultiCovered attributes, type and example ### Example: ``` -$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document]]; +$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/textConcat.md b/old_docs/API_docs_v62/constructors/textConcat.md index 4a44d3b2..bfdb9e50 100644 --- a/old_docs/API_docs_v62/constructors/textConcat.md +++ b/old_docs/API_docs_v62/constructors/textConcat.md @@ -21,7 +21,7 @@ description: textConcat attributes, type and example ### Example: ``` -$textConcat = ['_' => 'textConcat', 'texts' => [RichText]]; +$textConcat = ['_' => 'textConcat', 'texts' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/topPeerCategoryPeers.md b/old_docs/API_docs_v62/constructors/topPeerCategoryPeers.md index acd5cf08..03b78ed3 100644 --- a/old_docs/API_docs_v62/constructors/topPeerCategoryPeers.md +++ b/old_docs/API_docs_v62/constructors/topPeerCategoryPeers.md @@ -23,7 +23,7 @@ description: topPeerCategoryPeers attributes, type and example ### Example: ``` -$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer]]; +$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer, TopPeer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/updateDcOptions.md b/old_docs/API_docs_v62/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v62/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v62/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v62/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v62/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v62/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/updateDeleteMessages.md b/old_docs/API_docs_v62/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v62/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v62/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/updatePinnedDialogs.md b/old_docs/API_docs_v62/constructors/updatePinnedDialogs.md index a531ad75..c38d664c 100644 --- a/old_docs/API_docs_v62/constructors/updatePinnedDialogs.md +++ b/old_docs/API_docs_v62/constructors/updatePinnedDialogs.md @@ -21,7 +21,7 @@ description: updatePinnedDialogs attributes, type and example ### Example: ``` -$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer]]; +$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer, Peer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/updatePrivacy.md b/old_docs/API_docs_v62/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v62/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v62/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v62/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v62/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v62/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/updateServiceNotification.md b/old_docs/API_docs_v62/constructors/updateServiceNotification.md index 562d1089..92280ccf 100644 --- a/old_docs/API_docs_v62/constructors/updateServiceNotification.md +++ b/old_docs/API_docs_v62/constructors/updateServiceNotification.md @@ -26,7 +26,7 @@ description: updateServiceNotification attributes, type and example ### Example: ``` -$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/updateShortChatMessage.md b/old_docs/API_docs_v62/constructors/updateShortChatMessage.md index 08aa61a5..f6310d0d 100644 --- a/old_docs/API_docs_v62/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v62/constructors/updateShortChatMessage.md @@ -35,7 +35,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v62/constructors/updateShortMessage.md b/old_docs/API_docs_v62/constructors/updateShortMessage.md index 608d2a30..24f07b99 100644 --- a/old_docs/API_docs_v62/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v62/constructors/updateShortMessage.md @@ -34,7 +34,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v62/constructors/updateShortSentMessage.md b/old_docs/API_docs_v62/constructors/updateShortSentMessage.md index 28f82e3a..ebc40cf9 100644 --- a/old_docs/API_docs_v62/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v62/constructors/updateShortSentMessage.md @@ -27,7 +27,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$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: diff --git a/old_docs/API_docs_v62/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v62/constructors/updateStickerSetsOrder.md index 53637821..7b29b8f2 100644 --- a/old_docs/API_docs_v62/constructors/updateStickerSetsOrder.md +++ b/old_docs/API_docs_v62/constructors/updateStickerSetsOrder.md @@ -22,7 +22,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/updates.md b/old_docs/API_docs_v62/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v62/constructors/updates.md +++ b/old_docs/API_docs_v62/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/updatesCombined.md b/old_docs/API_docs_v62/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v62/constructors/updatesCombined.md +++ b/old_docs/API_docs_v62/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v62/constructors/updates_channelDifference.md b/old_docs/API_docs_v62/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v62/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v62/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v62/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v62/constructors/updates_channelDifferenceTooLong.md index 8e3a01aa..0ff98bf6 100644 --- a/old_docs/API_docs_v62/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v62/constructors/updates_channelDifferenceTooLong.md @@ -30,7 +30,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$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, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/constructors/updates_difference.md b/old_docs/API_docs_v62/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v62/constructors/updates_difference.md +++ b/old_docs/API_docs_v62/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v62/constructors/updates_differenceSlice.md b/old_docs/API_docs_v62/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v62/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v62/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v62/constructors/wallPaper.md b/old_docs/API_docs_v62/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v62/constructors/wallPaper.md +++ b/old_docs/API_docs_v62/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v62/methods/README.md b/old_docs/API_docs_v62/methods/README.md index 3e7510f1..6d687d51 100644 --- a/old_docs/API_docs_v62/methods/README.md +++ b/old_docs/API_docs_v62/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v62/methods/account_changePhone.md b/old_docs/API_docs_v62/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v62/methods/account_changePhone.md +++ b/old_docs/API_docs_v62/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_checkUsername.md b/old_docs/API_docs_v62/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v62/methods/account_checkUsername.md +++ b/old_docs/API_docs_v62/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_confirmPhone.md b/old_docs/API_docs_v62/methods/account_confirmPhone.md index 8dd79d94..2261e6e8 100644 --- a/old_docs/API_docs_v62/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v62/methods/account_confirmPhone.md @@ -1,17 +1,19 @@ --- title: account.confirmPhone -description: account.confirmPhone parameters, return type and example +description: Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode --- ## 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 | Required | -|----------|---------------|----------| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_code\_hash|[string](../types/string.md) | Yes|obtain phone_code_hash from sendConfirmPhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The code sent by sendConfirmPhoneCode| ### Return type: [Bool](../types/Bool.md) @@ -31,13 +33,18 @@ description: account.confirmPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_deleteAccount.md b/old_docs/API_docs_v62/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v62/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v62/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_getAccountTTL.md b/old_docs/API_docs_v62/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v62/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v62/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v62/methods/account_getAuthorizations.md b/old_docs/API_docs_v62/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v62/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v62/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v62/methods/account_getNotifySettings.md b/old_docs/API_docs_v62/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v62/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v62/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_getPassword.md b/old_docs/API_docs_v62/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v62/methods/account_getPassword.md +++ b/old_docs/API_docs_v62/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v62/methods/account_getPasswordSettings.md b/old_docs/API_docs_v62/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v62/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v62/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_getPrivacy.md b/old_docs/API_docs_v62/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v62/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v62/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_getWallPapers.md b/old_docs/API_docs_v62/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v62/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v62/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v62/methods/account_registerDevice.md b/old_docs/API_docs_v62/methods/account_registerDevice.md index 8be04ad2..0bf6d1ee 100644 --- a/old_docs/API_docs_v62/methods/account_registerDevice.md +++ b/old_docs/API_docs_v62/methods/account_registerDevice.md @@ -1,17 +1,19 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_reportPeer.md b/old_docs/API_docs_v62/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v62/methods/account_reportPeer.md +++ b/old_docs/API_docs_v62/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_resetAuthorization.md b/old_docs/API_docs_v62/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v62/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v62/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_resetNotifySettings.md b/old_docs/API_docs_v62/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v62/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v62/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md index 017b5f7f..9e5016a4 100644 --- a/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|phone\_number|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can the code be sent using a flash call instead of an SMS?| +|phone\_number|[string](../types/string.md) | Yes|New phone number| +|current\_number|[Bool](../types/Bool.md) | Optional|Current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md index 3665bd50..4de86a33 100644 --- a/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendConfirmPhoneCode -description: account.sendConfirmPhoneCode parameters, return type and example +description: Send confirmation phone code --- ## Method: account.sendConfirmPhoneCode [Back to methods index](index.md) +Send confirmation phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|hash|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can telegram call you instead of sending an SMS?| +|hash|[string](../types/string.md) | Yes|The hash| +|current\_number|[Bool](../types/Bool.md) | Optional|The current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendConfirmPhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_setAccountTTL.md b/old_docs/API_docs_v62/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v62/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v62/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_setPrivacy.md b/old_docs/API_docs_v62/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v62/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v62/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/account_unregisterDevice.md b/old_docs/API_docs_v62/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v62/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v62/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v62/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v62/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v62/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_updateNotifySettings.md b/old_docs/API_docs_v62/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v62/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v62/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_updateProfile.md b/old_docs/API_docs_v62/methods/account_updateProfile.md index b3d468d1..8b0c3268 100644 --- a/old_docs/API_docs_v62/methods/account_updateProfile.md +++ b/old_docs/API_docs_v62/methods/account_updateProfile.md @@ -1,18 +1,20 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Optional| -|last\_name|[string](../types/string.md) | Optional| -|about|[string](../types/string.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Optional|The first name| +|last\_name|[string](../types/string.md) | Optional|The last name| +|about|[string](../types/string.md) | Optional|The bio/about field| ### Return type: [User](../types/User.md) @@ -32,13 +34,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_updateStatus.md b/old_docs/API_docs_v62/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v62/methods/account_updateStatus.md +++ b/old_docs/API_docs_v62/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v62/methods/account_updateUsername.md b/old_docs/API_docs_v62/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v62/methods/account_updateUsername.md +++ b/old_docs/API_docs_v62/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v62/methods/auth_cancelCode.md b/old_docs/API_docs_v62/methods/auth_cancelCode.md index 05d927a1..1283e1e5 100644 --- a/old_docs/API_docs_v62/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v62/methods/auth_cancelCode.md @@ -1,17 +1,19 @@ --- title: auth.cancelCode -description: auth.cancelCode parameters, return type and example +description: Invalidate sent phone code --- ## Method: auth.cancelCode [Back to methods index](index.md) +Invalidate sent phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: auth.cancelCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/auth_checkPassword.md b/old_docs/API_docs_v62/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v62/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v62/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v62/methods/auth_checkPhone.md b/old_docs/API_docs_v62/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v62/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v62/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v62/methods/auth_dropTempAuthKeys.md index fedb7bf4..b08b9f40 100644 --- a/old_docs/API_docs_v62/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v62/methods/auth_dropTempAuthKeys.md @@ -1,16 +1,18 @@ --- title: auth.dropTempAuthKeys -description: auth.dropTempAuthKeys parameters, return type and example +description: Delete all temporary authorization keys except the ones provided --- ## Method: auth.dropTempAuthKeys [Back to methods index](index.md) +Delete all temporary authorization keys except the ones provided + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|except\_auth\_keys|Array of [long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|except\_auth\_keys|Array of [long](../types/long.md) | Yes|The temporary authorization keys to keep| ### Return type: [Bool](../types/Bool.md) @@ -22,18 +24,20 @@ description: auth.dropTempAuthKeys parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/auth_exportAuthorization.md b/old_docs/API_docs_v62/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v62/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v62/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v62/methods/auth_importAuthorization.md b/old_docs/API_docs_v62/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v62/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v62/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v62/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v62/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v62/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v62/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v62/methods/auth_logOut.md b/old_docs/API_docs_v62/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v62/methods/auth_logOut.md +++ b/old_docs/API_docs_v62/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v62/methods/auth_recoverPassword.md b/old_docs/API_docs_v62/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v62/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v62/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v62/methods/auth_resendCode.md b/old_docs/API_docs_v62/methods/auth_resendCode.md index df4803b8..4bfbf379 100644 --- a/old_docs/API_docs_v62/methods/auth_resendCode.md +++ b/old_docs/API_docs_v62/methods/auth_resendCode.md @@ -1,17 +1,19 @@ --- title: auth.resendCode -description: auth.resendCode parameters, return type and example +description: Resend the SMS verification code --- ## Method: auth.resendCode [Back to methods index](index.md) +Resend the SMS verification code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|The phone code hash| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -30,13 +32,18 @@ description: auth.resendCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v62/methods/auth_sendCode.md b/old_docs/API_docs_v62/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v62/methods/auth_sendCode.md +++ b/old_docs/API_docs_v62/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v62/methods/auth_sendInvites.md b/old_docs/API_docs_v62/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v62/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v62/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/auth_signIn.md b/old_docs/API_docs_v62/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v62/methods/auth_signIn.md +++ b/old_docs/API_docs_v62/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v62/methods/auth_signUp.md b/old_docs/API_docs_v62/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v62/methods/auth_signUp.md +++ b/old_docs/API_docs_v62/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v62/methods/channels_checkUsername.md b/old_docs/API_docs_v62/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v62/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v62/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_createChannel.md b/old_docs/API_docs_v62/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v62/methods/channels_createChannel.md +++ b/old_docs/API_docs_v62/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_deleteChannel.md b/old_docs/API_docs_v62/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v62/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_deleteMessages.md b/old_docs/API_docs_v62/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v62/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_editAbout.md b/old_docs/API_docs_v62/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v62/methods/channels_editAbout.md +++ b/old_docs/API_docs_v62/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_editAdmin.md b/old_docs/API_docs_v62/methods/channels_editAdmin.md index c62597e1..146159d9 100644 --- a/old_docs/API_docs_v62/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v62/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |role|[ChannelParticipantRole](../types/ChannelParticipantRole.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_editPhoto.md b/old_docs/API_docs_v62/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v62/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v62/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_editTitle.md b/old_docs/API_docs_v62/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v62/methods/channels_editTitle.md +++ b/old_docs/API_docs_v62/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_exportInvite.md b/old_docs/API_docs_v62/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v62/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v62/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_exportMessageLink.md b/old_docs/API_docs_v62/methods/channels_exportMessageLink.md index 026fe982..7eff4ed8 100644 --- a/old_docs/API_docs_v62/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v62/methods/channels_exportMessageLink.md @@ -10,7 +10,7 @@ description: channels.exportMessageLink parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: channels.exportMessageLink parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v62/methods/channels_getAdminedPublicChannels.md index 283a9071..01ea971f 100644 --- a/old_docs/API_docs_v62/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v62/methods/channels_getAdminedPublicChannels.md @@ -17,13 +17,18 @@ description: channels.getAdminedPublicChannels parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); ``` diff --git a/old_docs/API_docs_v62/methods/channels_getChannels.md b/old_docs/API_docs_v62/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v62/methods/channels_getChannels.md +++ b/old_docs/API_docs_v62/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/channels_getFullChannel.md b/old_docs/API_docs_v62/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v62/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v62/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v62/methods/channels_getMessages.md b/old_docs/API_docs_v62/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v62/methods/channels_getMessages.md +++ b/old_docs/API_docs_v62/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/channels_getParticipant.md b/old_docs/API_docs_v62/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v62/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v62/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_getParticipants.md b/old_docs/API_docs_v62/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v62/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v62/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_inviteToChannel.md b/old_docs/API_docs_v62/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v62/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v62/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/channels_joinChannel.md b/old_docs/API_docs_v62/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v62/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v62/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_kickFromChannel.md b/old_docs/API_docs_v62/methods/channels_kickFromChannel.md index a2182df8..e4b68581 100644 --- a/old_docs/API_docs_v62/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v62/methods/channels_kickFromChannel.md @@ -10,8 +10,8 @@ description: channels.kickFromChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |kicked|[Bool](../types/Bool.md) | Yes| @@ -24,16 +24,18 @@ description: channels.kickFromChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_leaveChannel.md b/old_docs/API_docs_v62/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v62/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v62/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_readHistory.md b/old_docs/API_docs_v62/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v62/methods/channels_readHistory.md +++ b/old_docs/API_docs_v62/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_reportSpam.md b/old_docs/API_docs_v62/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v62/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v62/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/channels_toggleInvites.md b/old_docs/API_docs_v62/methods/channels_toggleInvites.md index 19669eec..8d977fd0 100644 --- a/old_docs/API_docs_v62/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v62/methods/channels_toggleInvites.md @@ -10,7 +10,7 @@ description: channels.toggleInvites parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -32,13 +32,18 @@ description: channels.toggleInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_toggleSignatures.md b/old_docs/API_docs_v62/methods/channels_toggleSignatures.md index 4aaaeb0c..13d53d92 100644 --- a/old_docs/API_docs_v62/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v62/methods/channels_toggleSignatures.md @@ -10,7 +10,7 @@ description: channels.toggleSignatures parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: channels.toggleSignatures parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md index 3bb6d010..ecc15ce6 100644 --- a/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md @@ -11,7 +11,7 @@ description: channels.updatePinnedMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |silent|[Bool](../types/Bool.md) | Optional| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: channels.updatePinnedMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/channels_updateUsername.md b/old_docs/API_docs_v62/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v62/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v62/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/contacts_block.md b/old_docs/API_docs_v62/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v62/methods/contacts_block.md +++ b/old_docs/API_docs_v62/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v62/methods/contacts_deleteContact.md b/old_docs/API_docs_v62/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v62/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v62/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v62/methods/contacts_deleteContacts.md b/old_docs/API_docs_v62/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v62/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v62/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/contacts_exportCard.md b/old_docs/API_docs_v62/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v62/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v62/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v62/methods/contacts_getBlocked.md b/old_docs/API_docs_v62/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v62/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v62/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/contacts_getContacts.md b/old_docs/API_docs_v62/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v62/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v62/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/contacts_getStatuses.md b/old_docs/API_docs_v62/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v62/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v62/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v62/methods/contacts_getTopPeers.md b/old_docs/API_docs_v62/methods/contacts_getTopPeers.md index d29f6e02..eafcb6ec 100644 --- a/old_docs/API_docs_v62/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v62/methods/contacts_getTopPeers.md @@ -1,23 +1,25 @@ --- title: contacts.getTopPeers -description: contacts.getTopPeers parameters, return type and example +description: Get most used chats --- ## Method: contacts.getTopPeers [Back to methods index](index.md) +Get most used chats + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|correspondents|[Bool](../types/Bool.md) | Optional| -|bots\_pm|[Bool](../types/Bool.md) | Optional| -|bots\_inline|[Bool](../types/Bool.md) | Optional| -|groups|[Bool](../types/Bool.md) | Optional| -|channels|[Bool](../types/Bool.md) | Optional| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|correspondents|[Bool](../types/Bool.md) | Optional|| +|bots\_pm|[Bool](../types/Bool.md) | Optional|| +|bots\_inline|[Bool](../types/Bool.md) | Optional|| +|groups|[Bool](../types/Bool.md) | Optional|| +|channels|[Bool](../types/Bool.md) | Optional|| +|offset|[int](../types/int.md) | Yes|| +|limit|[int](../types/int.md) | Yes|| +|hash|[int](../types/int.md) | Yes|| ### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md) @@ -36,13 +38,18 @@ description: contacts.getTopPeers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/contacts_importCard.md b/old_docs/API_docs_v62/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v62/methods/contacts_importCard.md +++ b/old_docs/API_docs_v62/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/contacts_importContacts.md b/old_docs/API_docs_v62/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v62/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v62/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md index 3eab7e04..ddcf6b2f 100644 --- a/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md @@ -11,7 +11,7 @@ description: contacts.resetTopPeerRating parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |category|[TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v62/methods/contacts_resolveUsername.md b/old_docs/API_docs_v62/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v62/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v62/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v62/methods/contacts_search.md b/old_docs/API_docs_v62/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v62/methods/contacts_search.md +++ b/old_docs/API_docs_v62/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/contacts_unblock.md b/old_docs/API_docs_v62/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v62/methods/contacts_unblock.md +++ b/old_docs/API_docs_v62/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v62/methods/destroy_auth_key.md b/old_docs/API_docs_v62/methods/destroy_auth_key.md index 1803e375..0304d9a1 100644 --- a/old_docs/API_docs_v62/methods/destroy_auth_key.md +++ b/old_docs/API_docs_v62/methods/destroy_auth_key.md @@ -17,16 +17,18 @@ description: destroy_auth_key parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DestroyAuthKeyRes = $MadelineProto->destroy_auth_key(); ``` diff --git a/old_docs/API_docs_v62/methods/help_getAppChangelog.md b/old_docs/API_docs_v62/methods/help_getAppChangelog.md index 0f8a12bd..840b79f7 100644 --- a/old_docs/API_docs_v62/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v62/methods/help_getAppChangelog.md @@ -17,13 +17,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(); ``` diff --git a/old_docs/API_docs_v62/methods/help_getAppUpdate.md b/old_docs/API_docs_v62/methods/help_getAppUpdate.md index 89ff22c3..0e227d24 100644 --- a/old_docs/API_docs_v62/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v62/methods/help_getAppUpdate.md @@ -17,13 +17,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); ``` diff --git a/old_docs/API_docs_v62/methods/help_getConfig.md b/old_docs/API_docs_v62/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v62/methods/help_getConfig.md +++ b/old_docs/API_docs_v62/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v62/methods/help_getInviteText.md b/old_docs/API_docs_v62/methods/help_getInviteText.md index 6d2674d6..a8d8992e 100644 --- a/old_docs/API_docs_v62/methods/help_getInviteText.md +++ b/old_docs/API_docs_v62/methods/help_getInviteText.md @@ -17,13 +17,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); ``` diff --git a/old_docs/API_docs_v62/methods/help_getNearestDc.md b/old_docs/API_docs_v62/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v62/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v62/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v62/methods/help_getSupport.md b/old_docs/API_docs_v62/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v62/methods/help_getSupport.md +++ b/old_docs/API_docs_v62/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v62/methods/help_getTermsOfService.md b/old_docs/API_docs_v62/methods/help_getTermsOfService.md index eb686506..a588e830 100644 --- a/old_docs/API_docs_v62/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v62/methods/help_getTermsOfService.md @@ -17,13 +17,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); ``` diff --git a/old_docs/API_docs_v62/methods/help_saveAppLog.md b/old_docs/API_docs_v62/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v62/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v62/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v62/methods/help_setBotUpdatesStatus.md index 470187a0..68c9720a 100644 --- a/old_docs/API_docs_v62/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v62/methods/help_setBotUpdatesStatus.md @@ -23,16 +23,18 @@ description: help.setBotUpdatesStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/initConnection.md b/old_docs/API_docs_v62/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v62/methods/initConnection.md +++ b/old_docs/API_docs_v62/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v62/methods/invokeAfterMsg.md b/old_docs/API_docs_v62/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v62/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v62/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v62/methods/invokeAfterMsgs.md b/old_docs/API_docs_v62/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v62/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v62/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/invokeWithLayer.md b/old_docs/API_docs_v62/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v62/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v62/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v62/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v62/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v62/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v62/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_acceptEncryption.md b/old_docs/API_docs_v62/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v62/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v62/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v62/methods/messages_addChatUser.md b/old_docs/API_docs_v62/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v62/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v62/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_checkChatInvite.md b/old_docs/API_docs_v62/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v62/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v62/methods/messages_clearRecentStickers.md index ae45b249..31941a34 100644 --- a/old_docs/API_docs_v62/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v62/methods/messages_clearRecentStickers.md @@ -22,13 +22,18 @@ description: messages.clearRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_createChat.md b/old_docs/API_docs_v62/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v62/methods/messages_createChat.md +++ b/old_docs/API_docs_v62/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_deleteChatUser.md b/old_docs/API_docs_v62/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v62/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v62/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_deleteHistory.md b/old_docs/API_docs_v62/methods/messages_deleteHistory.md index d1c3f195..01686b2b 100644 --- a/old_docs/API_docs_v62/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v62/methods/messages_deleteHistory.md @@ -11,7 +11,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |just\_clear|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_deleteMessages.md b/old_docs/API_docs_v62/methods/messages_deleteMessages.md index 5472cc72..0cc6e6ed 100644 --- a/old_docs/API_docs_v62/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v62/methods/messages_deleteMessages.md @@ -30,18 +30,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_discardEncryption.md b/old_docs/API_docs_v62/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v62/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v62/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v62/methods/messages_editChatAdmin.md b/old_docs/API_docs_v62/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v62/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v62/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_editChatPhoto.md b/old_docs/API_docs_v62/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v62/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v62/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_editChatTitle.md b/old_docs/API_docs_v62/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v62/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v62/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md index c3489f9d..289100ea 100644 --- a/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md @@ -35,18 +35,20 @@ description: messages.editInlineBotMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_editMessage.md b/old_docs/API_docs_v62/methods/messages_editMessage.md index 182fa03e..63379ed9 100644 --- a/old_docs/API_docs_v62/methods/messages_editMessage.md +++ b/old_docs/API_docs_v62/methods/messages_editMessage.md @@ -11,7 +11,7 @@ description: messages.editMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| |message|[string](../types/string.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -44,18 +44,20 @@ description: messages.editMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_exportChatInvite.md b/old_docs/API_docs_v62/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v62/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_forwardMessage.md b/old_docs/API_docs_v62/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v62/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v62/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_forwardMessages.md b/old_docs/API_docs_v62/methods/messages_forwardMessages.md index 1185259d..df361517 100644 --- a/old_docs/API_docs_v62/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v62/methods/messages_forwardMessages.md @@ -13,9 +13,9 @@ description: messages.forwardMessages parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |with\_my\_score|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -55,18 +55,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_getAllChats.md b/old_docs/API_docs_v62/methods/messages_getAllChats.md index babcf17d..59bc0add 100644 --- a/old_docs/API_docs_v62/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v62/methods/messages_getAllChats.md @@ -22,15 +22,20 @@ description: messages.getAllChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_getAllDrafts.md b/old_docs/API_docs_v62/methods/messages_getAllDrafts.md index 8550c5b8..7f0f7843 100644 --- a/old_docs/API_docs_v62/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v62/methods/messages_getAllDrafts.md @@ -17,13 +17,18 @@ description: messages.getAllDrafts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getAllStickers.md b/old_docs/API_docs_v62/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/old_docs/API_docs_v62/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v62/methods/messages_getArchivedStickers.md index cdb7f0af..8c2041a3 100644 --- a/old_docs/API_docs_v62/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getArchivedStickers.md @@ -24,13 +24,18 @@ description: messages.getArchivedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v62/methods/messages_getAttachedStickers.md index 79d4e30d..f03f0be2 100644 --- a/old_docs/API_docs_v62/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getAttachedStickers.md @@ -22,13 +22,18 @@ description: messages.getAttachedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md index bd916755..b9039098 100644 --- a/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md @@ -11,7 +11,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |game|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |msg\_id|[int](../types/int.md) | Yes| |data|[bytes](../types/bytes.md) | Optional| @@ -36,13 +36,18 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getChats.md b/old_docs/API_docs_v62/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v62/methods/messages_getChats.md +++ b/old_docs/API_docs_v62/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_getCommonChats.md b/old_docs/API_docs_v62/methods/messages_getCommonChats.md index d713f3a5..0df79096 100644 --- a/old_docs/API_docs_v62/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v62/methods/messages_getCommonChats.md @@ -10,7 +10,7 @@ description: messages.getCommonChats parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getCommonChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getDhConfig.md b/old_docs/API_docs_v62/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v62/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v62/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getDialogs.md b/old_docs/API_docs_v62/methods/messages_getDialogs.md index e7e81a8c..041b3efe 100644 --- a/old_docs/API_docs_v62/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_getDialogs.md @@ -13,7 +13,7 @@ description: messages.getDialogs parameters, return type and example |exclude\_pinned|[Bool](../types/Bool.md) | Optional| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v62/methods/messages_getFeaturedStickers.md index 5aad1810..51097eda 100644 --- a/old_docs/API_docs_v62/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getFeaturedStickers.md @@ -22,13 +22,18 @@ description: messages.getFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getFullChat.md b/old_docs/API_docs_v62/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v62/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v62/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v62/methods/messages_getGameHighScores.md b/old_docs/API_docs_v62/methods/messages_getGameHighScores.md index c316a8bd..4b8b1397 100644 --- a/old_docs/API_docs_v62/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v62/methods/messages_getGameHighScores.md @@ -10,9 +10,9 @@ description: messages.getGameHighScores parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -32,16 +32,18 @@ description: messages.getGameHighScores parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getHistory.md b/old_docs/API_docs_v62/methods/messages_getHistory.md index ef31c435..87b8328d 100644 --- a/old_docs/API_docs_v62/methods/messages_getHistory.md +++ b/old_docs/API_docs_v62/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| @@ -40,13 +40,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md index 90e2a427..6d965b19 100644 --- a/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md @@ -10,8 +10,8 @@ description: messages.getInlineBotResults parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |query|[string](../types/string.md) | Yes| |offset|[string](../types/string.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md index 524e387b..9305a0f4 100644 --- a/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md @@ -11,7 +11,7 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Name | Type | Required | |----------|---------------|----------| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -31,16 +31,18 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getMaskStickers.md b/old_docs/API_docs_v62/methods/messages_getMaskStickers.md index ca964647..260cfdb7 100644 --- a/old_docs/API_docs_v62/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getMaskStickers.md @@ -22,13 +22,18 @@ description: messages.getMaskStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getMessageEditData.md b/old_docs/API_docs_v62/methods/messages_getMessageEditData.md index df71c31a..2a90a419 100644 --- a/old_docs/API_docs_v62/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v62/methods/messages_getMessageEditData.md @@ -10,7 +10,7 @@ description: messages.getMessageEditData parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getMessageEditData parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getMessages.md b/old_docs/API_docs_v62/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v62/methods/messages_getMessages.md +++ b/old_docs/API_docs_v62/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_getMessagesViews.md b/old_docs/API_docs_v62/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v62/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v62/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md index 226948ae..eff29878 100644 --- a/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md @@ -10,7 +10,7 @@ description: messages.getPeerDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peers|Array of [InputPeer](../types/InputPeer.md) | Yes| +|peers|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md) @@ -30,15 +30,20 @@ description: messages.getPeerDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_getPeerSettings.md b/old_docs/API_docs_v62/methods/messages_getPeerSettings.md index fab25034..25906b73 100644 --- a/old_docs/API_docs_v62/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v62/methods/messages_getPeerSettings.md @@ -10,7 +10,7 @@ description: messages.getPeerSettings parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [PeerSettings](../types/PeerSettings.md) @@ -30,13 +30,18 @@ description: messages.getPeerSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v62/methods/messages_getPinnedDialogs.md index ec744f01..e5499df7 100644 --- a/old_docs/API_docs_v62/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_getPinnedDialogs.md @@ -17,13 +17,18 @@ description: messages.getPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getRecentStickers.md b/old_docs/API_docs_v62/methods/messages_getRecentStickers.md index a6ae162f..5a60d345 100644 --- a/old_docs/API_docs_v62/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getRecentStickers.md @@ -23,13 +23,18 @@ description: messages.getRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getSavedGifs.md b/old_docs/API_docs_v62/methods/messages_getSavedGifs.md index 4986d812..bcb4590d 100644 --- a/old_docs/API_docs_v62/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v62/methods/messages_getSavedGifs.md @@ -22,13 +22,18 @@ description: messages.getSavedGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getStickerSet.md b/old_docs/API_docs_v62/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v62/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v62/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getWebPage.md b/old_docs/API_docs_v62/methods/messages_getWebPage.md index e886b020..0f09af47 100644 --- a/old_docs/API_docs_v62/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v62/methods/messages_getWebPage.md @@ -30,13 +30,18 @@ description: messages.getWebPage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v62/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v62/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v62/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_hideReportSpam.md b/old_docs/API_docs_v62/methods/messages_hideReportSpam.md index d47e8aa5..0419ec79 100644 --- a/old_docs/API_docs_v62/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v62/methods/messages_hideReportSpam.md @@ -10,7 +10,7 @@ description: messages.hideReportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.hideReportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_importChatInvite.md b/old_docs/API_docs_v62/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v62/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_installStickerSet.md b/old_docs/API_docs_v62/methods/messages_installStickerSet.md index 9336cc22..f405adce 100644 --- a/old_docs/API_docs_v62/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v62/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_migrateChat.md b/old_docs/API_docs_v62/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v62/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v62/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v62/methods/messages_readFeaturedStickers.md index 02055bf3..766ba200 100644 --- a/old_docs/API_docs_v62/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v62/methods/messages_readFeaturedStickers.md @@ -22,15 +22,20 @@ description: messages.readFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_readHistory.md b/old_docs/API_docs_v62/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v62/methods/messages_readHistory.md +++ b/old_docs/API_docs_v62/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_readMessageContents.md b/old_docs/API_docs_v62/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v62/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v62/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_receivedMessages.md b/old_docs/API_docs_v62/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v62/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v62/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_receivedQueue.md b/old_docs/API_docs_v62/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v62/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v62/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md index b4bfb84f..30e926d9 100644 --- a/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md @@ -11,7 +11,7 @@ description: messages.reorderPinnedDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |force|[Bool](../types/Bool.md) | Optional| -|order|Array of [InputPeer](../types/InputPeer.md) | Yes| +|order|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +30,20 @@ description: messages.reorderPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v62/methods/messages_reorderStickerSets.md index fa094550..0e2c121d 100644 --- a/old_docs/API_docs_v62/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v62/methods/messages_reorderStickerSets.md @@ -23,15 +23,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md index aed7a891..64ebecdd 100644 --- a/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md @@ -10,7 +10,7 @@ description: messages.reportEncryptedSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportEncryptedSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_reportSpam.md b/old_docs/API_docs_v62/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v62/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v62/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_requestEncryption.md b/old_docs/API_docs_v62/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v62/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v62/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v62/methods/messages_saveDraft.md b/old_docs/API_docs_v62/methods/messages_saveDraft.md index 7a85dfe7..754b4da2 100644 --- a/old_docs/API_docs_v62/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v62/methods/messages_saveDraft.md @@ -12,7 +12,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |message|[string](../types/string.md) | Yes| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| |parse\_mode| [string](../types/string.md) | Optional | @@ -34,15 +34,20 @@ description: messages.saveDraft parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_saveGif.md b/old_docs/API_docs_v62/methods/messages_saveGif.md index b3673c91..725bc949 100644 --- a/old_docs/API_docs_v62/methods/messages_saveGif.md +++ b/old_docs/API_docs_v62/methods/messages_saveGif.md @@ -10,7 +10,7 @@ description: messages.saveGif parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveGif parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md index bc3d1627..4a8298e2 100644 --- a/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md @@ -11,7 +11,7 @@ description: messages.saveRecentSticker parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |attached|[Bool](../types/Bool.md) | Optional| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.saveRecentSticker parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_search.md b/old_docs/API_docs_v62/methods/messages_search.md index f6aa515b..11b968bf 100644 --- a/old_docs/API_docs_v62/methods/messages_search.md +++ b/old_docs/API_docs_v62/methods/messages_search.md @@ -10,7 +10,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -42,13 +42,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_searchGifs.md b/old_docs/API_docs_v62/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/old_docs/API_docs_v62/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v62/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_searchGlobal.md b/old_docs/API_docs_v62/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v62/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v62/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_sendEncrypted.md b/old_docs/API_docs_v62/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md index 0857341e..6bfb1578 100644 --- a/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md @@ -13,7 +13,7 @@ description: messages.sendInlineBotResult parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |query\_id|[long](../types/long.md) | Yes| |id|[string](../types/string.md) | Yes| @@ -40,13 +40,18 @@ description: messages.sendInlineBotResult parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_sendMedia.md b/old_docs/API_docs_v62/methods/messages_sendMedia.md index 8c6f7f7f..1530451b 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v62/methods/messages_sendMedia.md @@ -13,9 +13,9 @@ description: messages.sendMedia parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -56,16 +56,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_sendMessage.md b/old_docs/API_docs_v62/methods/messages_sendMessage.md index bec95b8c..49ace99c 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v62/methods/messages_sendMessage.md @@ -14,7 +14,7 @@ description: messages.sendMessage parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -50,6 +50,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -57,18 +58,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$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], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md index 2901a558..0282168b 100644 --- a/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md @@ -33,16 +33,18 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_setGameScore.md b/old_docs/API_docs_v62/methods/messages_setGameScore.md index 615aa87b..61dfe579 100644 --- a/old_docs/API_docs_v62/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v62/methods/messages_setGameScore.md @@ -12,9 +12,9 @@ description: messages.setGameScore parameters, return type and example |----------|---------------|----------| |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -35,16 +35,18 @@ description: messages.setGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md index 8b49c4c7..c38b8c2e 100644 --- a/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md @@ -45,18 +45,20 @@ description: messages.setInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md index b5fc27d5..9fadc31e 100644 --- a/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md @@ -13,7 +13,7 @@ description: messages.setInlineGameScore parameters, return type and example |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: messages.setInlineGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_setTyping.md b/old_docs/API_docs_v62/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v62/methods/messages_setTyping.md +++ b/old_docs/API_docs_v62/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_startBot.md b/old_docs/API_docs_v62/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v62/methods/messages_startBot.md +++ b/old_docs/API_docs_v62/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md index 535a0fa1..7c5bfa9f 100644 --- a/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md @@ -11,7 +11,7 @@ description: messages.toggleDialogPin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |pinned|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: messages.toggleDialogPin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v62/methods/phone_acceptCall.md b/old_docs/API_docs_v62/methods/phone_acceptCall.md index 79266f27..49029aed 100644 --- a/old_docs/API_docs_v62/methods/phone_acceptCall.md +++ b/old_docs/API_docs_v62/methods/phone_acceptCall.md @@ -1,12 +1,12 @@ --- title: phone.acceptCall -description: phone.acceptCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.acceptCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v62/methods/phone_discardCall.md b/old_docs/API_docs_v62/methods/phone_discardCall.md index c300e61c..c01d1014 100644 --- a/old_docs/API_docs_v62/methods/phone_discardCall.md +++ b/old_docs/API_docs_v62/methods/phone_discardCall.md @@ -1,12 +1,12 @@ --- title: phone.discardCall -description: phone.discardCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.discardCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v62/methods/phone_receivedCall.md b/old_docs/API_docs_v62/methods/phone_receivedCall.md index 8ca6a4e1..00b51aed 100644 --- a/old_docs/API_docs_v62/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v62/methods/phone_receivedCall.md @@ -30,13 +30,18 @@ description: phone.receivedCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); ``` diff --git a/old_docs/API_docs_v62/methods/phone_requestCall.md b/old_docs/API_docs_v62/methods/phone_requestCall.md index c8ae48a9..be45437e 100644 --- a/old_docs/API_docs_v62/methods/phone_requestCall.md +++ b/old_docs/API_docs_v62/methods/phone_requestCall.md @@ -1,12 +1,12 @@ --- title: phone.requestCall -description: phone.requestCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.requestCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v62/methods/photos_deletePhotos.md b/old_docs/API_docs_v62/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v62/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v62/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/methods/photos_getUserPhotos.md b/old_docs/API_docs_v62/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v62/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v62/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v62/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v62/methods/photos_updateProfilePhoto.md index cc79a625..1ed6fb24 100644 --- a/old_docs/API_docs_v62/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v62/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| ### Return type: [UserProfilePhoto](../types/UserProfilePhoto.md) @@ -22,13 +22,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); ``` diff --git a/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md index 075dab4b..4b20315b 100644 --- a/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| ### Return type: [photos\_Photo](../types/photos_Photo.md) @@ -32,13 +32,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); ``` diff --git a/old_docs/API_docs_v62/methods/updates_getChannelDifference.md b/old_docs/API_docs_v62/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v62/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v62/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v62/methods/updates_getDifference.md b/old_docs/API_docs_v62/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v62/methods/updates_getDifference.md +++ b/old_docs/API_docs_v62/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v62/methods/updates_getState.md b/old_docs/API_docs_v62/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v62/methods/updates_getState.md +++ b/old_docs/API_docs_v62/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v62/methods/upload_getFile.md b/old_docs/API_docs_v62/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v62/methods/upload_getFile.md +++ b/old_docs/API_docs_v62/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v62/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v62/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v62/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v62/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v62/methods/upload_saveFilePart.md b/old_docs/API_docs_v62/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v62/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v62/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v62/methods/users_getFullUser.md b/old_docs/API_docs_v62/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v62/methods/users_getFullUser.md +++ b/old_docs/API_docs_v62/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v62/methods/users_getUsers.md b/old_docs/API_docs_v62/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v62/methods/users_getUsers.md +++ b/old_docs/API_docs_v62/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v62/types/Chat.md b/old_docs/API_docs_v62/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v62/types/Chat.md +++ b/old_docs/API_docs_v62/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v62/types/InputChannel.md b/old_docs/API_docs_v62/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v62/types/InputChannel.md +++ b/old_docs/API_docs_v62/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v62/types/InputDocument.md b/old_docs/API_docs_v62/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v62/types/InputDocument.md +++ b/old_docs/API_docs_v62/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v62/types/InputEncryptedChat.md b/old_docs/API_docs_v62/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v62/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v62/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v62/types/InputEncryptedFile.md b/old_docs/API_docs_v62/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v62/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v62/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v62/types/InputFile.md b/old_docs/API_docs_v62/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v62/types/InputFile.md +++ b/old_docs/API_docs_v62/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v62/types/InputMedia.md b/old_docs/API_docs_v62/types/InputMedia.md index 57d4b92a..ca0d00fc 100644 --- a/old_docs/API_docs_v62/types/InputMedia.md +++ b/old_docs/API_docs_v62/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v62/types/InputPeer.md b/old_docs/API_docs_v62/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v62/types/InputPeer.md +++ b/old_docs/API_docs_v62/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v62/types/InputPhoto.md b/old_docs/API_docs_v62/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v62/types/InputPhoto.md +++ b/old_docs/API_docs_v62/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v62/types/InputUser.md b/old_docs/API_docs_v62/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v62/types/InputUser.md +++ b/old_docs/API_docs_v62/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v62/types/Peer.md b/old_docs/API_docs_v62/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v62/types/Peer.md +++ b/old_docs/API_docs_v62/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v62/types/PhoneCall.md b/old_docs/API_docs_v62/types/PhoneCall.md index e70eda8e..1a91a72e 100644 --- a/old_docs/API_docs_v62/types/PhoneCall.md +++ b/old_docs/API_docs_v62/types/PhoneCall.md @@ -9,7 +9,7 @@ description: constructors and methods of type PhoneCall 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://daniil.it/MadelineProto#calls) for an easy installation script. +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. @@ -83,8 +83,8 @@ Call states (these constants are incrementing integers, thus can be compared lik * `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://daniil.it/MadelineProto/API_docs/types/PhoneCallProtocol.html) object -* `getCallID()` - Gets the call ID, as an [InputPhoneCall](https://daniil.it/MadelineProto/API_docs/types/InputPhoneCall.html) object +* `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 @@ -102,7 +102,7 @@ Call states (these constants are incrementing integers, thus can be compared lik Accepts two optional parameters: -`$reason` - can be a [PhoneCallDiscardReason](https://daniil.it/MadelineProto/API_docs/types/PhoneCallDiscardReason.html) object (defaults to a [phoneCallDiscardReasonDisconnect](https://daniil.it/MadelineProto/API_docs/constructors/phoneCallDiscardReasonDisconnect.html) object). +`$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.` diff --git a/old_docs/API_docs_v62/types/User.md b/old_docs/API_docs_v62/types/User.md index d696a931..f748d04a 100644 --- a/old_docs/API_docs_v62/types/User.md +++ b/old_docs/API_docs_v62/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v65/Lang.php b/old_docs/API_docs_v65/Lang.php new file mode 100644 index 00000000..383198db --- /dev/null +++ b/old_docs/API_docs_v65/Lang.php @@ -0,0 +1,2378 @@ +. + */ + +namespace danog\MadelineProto; + +class Lang +{ + public static $lang = array ( + 'it' => + array ( + 'phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istanziamento dei DataCenter...', + 'load_rsa' => 'Caricamento delle chiavi RSA...', + 'TL_translation' => 'Translazione degli schemi TL...', + 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', + 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', + 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', + 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', + 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', + 'threading_on' => 'IL THREADING È ABILITATO', + 'socket_reader' => 'Lettore socket su DC %s: ', + 'socket_status_1' => 'CREAZIONE', + 'socket_status_2' => 'INVIO', + 'socket_status_3' => 'ATTESA', + 'socket_status_4' => 'PRONTO', + 'socket_status_5' => 'AVVIATO', + 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', + 'session_corrupted' => 'La sessione si è corrotta!', + 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', + 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', + 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', + 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', + 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', + 'config_updated' => 'La configurazione è stata aggiornata!', + 'length_not_4' => 'La lunghezza non è uguale a 4', + 'length_not_8' => 'La lunghezza non è uguale a 8', + 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', + 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', + 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', + 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', + 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', + 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', + 'file_not_exist' => 'Il file specificato non esiste', + 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', + 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', + 'loading_key' => 'Caricamento della chiave in corso...', + 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', + 'rsa_encrypting' => 'Criptando con chiave RSA...', + 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', + 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', + 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', + 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', + 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', + 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', + 'socket_con_error' => 'Connessione fallita.', + 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', + 'protocol_invalid' => 'È stato fornito un protocollo non valido', + 'nothing_in_socket' => 'Non c\'è niente nel socket!', + 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', + 'no_data_in_socket' => 'Non ci sono dati nel socket!', + 'dc_con_start' => 'Connessione al DC %s in corso...', + 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', + 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', + 'script_not_exist' => 'Lo script fornito non esiste', + 'apifactory_start' => 'Sto avviando la fabbrica di API...', + 'madelineproto_ready' => 'MadelineProto è pronto!', + 'logout_error' => 'C\'è stato un errore durante il logout!', + 'logout_ok' => 'Il logout è stato eseguito correttamente!', + 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', + 'login_ok' => 'Il login è stato eseguito correttamente!', + 'login_user' => 'Sto eseguendo il login come utente normale...', + 'login_bot' => 'Sto eseguendo il login come bot...', + 'login_code_sending' => 'Sto inviando il codice...', + 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', + 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', + 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', + 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', + 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', + 'not_logged_in' => 'Non ho ancora fatto il login!', + 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', + 'signing_up' => 'Mi sto registrando su telegram come utente normale...', + 'signup_ok' => 'Mi sono registrato su Telegram!', + '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', + 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', + 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', + 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', + 'calling_user' => 'Sto chiamando %s...', + 'generating_a' => 'Sto generando a...', + 'generating_g_a' => 'Sto generando g_a...', + 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', + 'accepting_call' => 'Sto accettando una chiamata da %s...', + 'generating_b' => 'Sto generando b...', + 'call_already_accepted' => 'La chiamata %s è già stata accettata.', + 'call_already_declined' => 'La chiamata %s è già stata annullata.', + 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', + 'call_confirming' => 'Sto confermando una chiamata da %s', + 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', + 'call_completing' => 'Sto completando una chiamata da %s...', + 'invalid_g_a' => 'g_a non valido!', + 'fingerprint_invalid' => 'fingerprint della chiave non valido!', + 'call_discarding' => 'Sto rifiutando la chiamata %s...', + 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', + 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', + 'TL_loading' => 'Sto caricando gli schemi TL...', + 'file_parsing' => 'Leggendo %s...', + 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', + 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', + 'translating_obj' => 'Traducendo gli oggetti...', + 'translating_methods' => 'Traducendo i metodi...', + 'bool_error' => 'Non sono riuscito ad estrarre un booleano', + 'not_numeric' => 'Il valore fornito non è numerico', + 'long_not_16' => 'Il valore fornito non è lungo 16 byte', + 'long_not_32' => 'Il valore fornito non è lungo 32 byte', + 'long_not_64' => 'Il valore fornito non è lungo 64 byte', + 'array_invalid' => 'Il valore fornito non è un array', + 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', + 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', + 'method_not_found' => 'Impossibile trovare il seguente metodo: ', + 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', + 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', + 'stream_handle_invalid' => 'Il valore fornito non è uno stream', + 'length_too_big' => 'Il valore fornito è troppo lungo', + 'deserialize_not_str' => 'Il valore generato non è una stringa', + 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', + 'vector_invalid' => 'ID vettore non valido: ', + 'constructor_not_found' => 'Costruttore non trovato per tipo: ', + 'rand_bytes_too_small' => 'random_bytes è troppo corto!', + 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', + 'non_text_conversion' => 'Non posso ancora convertire messaggi media', + 'last_byte_invalid' => 'L\'ultimo byte non è valido', + 'file_type_invalid' => 'È stato fornito un tipo file errato', + 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', + 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', + 'shutting_down_reader_pool' => 'Chisura pool di lettura', + 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', + 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', + 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', + 'msg_data_length_too_big' => 'message_data_length è troppo grande', + 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', + 'msg_key_mismatch' => 'msg_key non valido', + 'rand_bytes_too_short' => 'random_bytes è troppo corto!', + 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', + 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', + 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', + 'req_pq' => 'Sto richiedendo pq...', + 'done' => 'Fatto!', + 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', + 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!', + ), + 'en' => + array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', + 'method_messages.search_param_important_only' => '', + 'method_messages.sendMessage_param_broadcast' => '', + 'method_messages.sendMedia_param_broadcast' => '', + 'method_messages.forwardMessages_param_broadcast' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id' => '', + 'method_messages.deactivateChat_param_enabled' => '', + 'method_help.getTermsOfService_param_lang_code' => '', + 'method_messages.sendInlineBotResult_param_broadcast' => '', + 'method_channels.getImportantHistory_param_offset_date' => '', + 'method_messages.getUnusedStickers' => '', + 'method_messages.getUnusedStickers_param_limit' => '', + 'method_destroy_auth_key' => '', + 'method_phone.requestCall_param_g_a' => '', + 'method_phone.acceptCall_param_key_fingerprint' => '', + 'method_contest.saveDeveloperInfo' => '', + 'method_contest.saveDeveloperInfo_param_vk_id' => '', + 'method_contest.saveDeveloperInfo_param_name' => '', + 'method_contest.saveDeveloperInfo_param_phone_number' => '', + 'method_contest.saveDeveloperInfo_param_age' => '', + 'method_contest.saveDeveloperInfo_param_city' => '', + 'method_auth.importBotAuthorization_param_a' => '', + 'method_auth.importBotAuthorization_param_b' => '', + 'method_auth.importBotAuthorization_param_c' => '', + 'method_auth.importBotAuthorization_param_d' => '', + ), +); + + // THIS WILL BE OVERWRITTEN BY $lang["en"] + public static $current_lang = array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => '', + 'method_req_pq_param_nonce' => '', + 'method_req_pq_multi' => '', + 'method_req_pq_multi_param_nonce' => '', + 'method_req_DH_params' => '', + 'method_req_DH_params_param_nonce' => '', + 'method_req_DH_params_param_server_nonce' => '', + 'method_req_DH_params_param_p' => '', + 'method_req_DH_params_param_q' => '', + 'method_req_DH_params_param_public_key_fingerprint' => '', + 'method_req_DH_params_param_encrypted_data' => '', + 'method_set_client_DH_params' => '', + 'method_set_client_DH_params_param_nonce' => '', + 'method_set_client_DH_params_param_server_nonce' => '', + 'method_set_client_DH_params_param_encrypted_data' => '', + 'method_rpc_drop_answer' => '', + 'method_rpc_drop_answer_param_req_msg_id' => '', + 'method_get_future_salts' => '', + 'method_get_future_salts_param_num' => '', + 'method_ping' => '', + 'method_ping_param_ping_id' => '', + 'method_ping_delay_disconnect' => '', + 'method_ping_delay_disconnect_param_ping_id' => '', + 'method_ping_delay_disconnect_param_disconnect_delay' => '', + 'method_destroy_session' => '', + 'method_destroy_session_param_session_id' => '', + 'method_http_wait' => '', + 'method_http_wait_param_max_delay' => '', + 'method_http_wait_param_wait_after' => '', + 'method_http_wait_param_max_wait' => '', + 'method_invokeAfterMsg' => '', + 'method_invokeAfterMsg_param_msg_id' => '', + 'method_invokeAfterMsg_param_query' => '', + 'method_invokeAfterMsgs' => '', + 'method_invokeAfterMsgs_param_msg_ids' => '', + 'method_invokeAfterMsgs_param_query' => '', + 'method_initConnection' => '', + 'method_initConnection_param_api_id' => '', + 'method_initConnection_param_device_model' => '', + 'method_initConnection_param_system_version' => '', + 'method_initConnection_param_app_version' => '', + 'method_initConnection_param_system_lang_code' => '', + 'method_initConnection_param_lang_pack' => '', + 'method_initConnection_param_lang_code' => '', + 'method_initConnection_param_query' => '', + 'method_invokeWithLayer' => '', + 'method_invokeWithLayer_param_layer' => '', + 'method_invokeWithLayer_param_query' => '', + 'method_invokeWithoutUpdates' => '', + 'method_invokeWithoutUpdates_param_query' => '', + 'method_auth.checkPhone' => '', + 'method_auth.checkPhone_param_phone_number' => '', + 'method_auth.sendCode' => '', + 'method_auth.sendCode_param_allow_flashcall' => '', + 'method_auth.sendCode_param_phone_number' => '', + 'method_auth.sendCode_param_current_number' => '', + 'method_auth.sendCode_param_api_id' => '', + 'method_auth.sendCode_param_api_hash' => '', + 'method_auth.signUp' => '', + 'method_auth.signUp_param_phone_number' => '', + 'method_auth.signUp_param_phone_code_hash' => '', + 'method_auth.signUp_param_phone_code' => '', + 'method_auth.signUp_param_first_name' => '', + 'method_auth.signUp_param_last_name' => '', + 'method_auth.signIn' => '', + 'method_auth.signIn_param_phone_number' => '', + 'method_auth.signIn_param_phone_code_hash' => '', + 'method_auth.signIn_param_phone_code' => '', + 'method_auth.logOut' => '', + 'method_auth.resetAuthorizations' => '', + 'method_auth.sendInvites' => '', + 'method_auth.sendInvites_param_phone_numbers' => '', + 'method_auth.sendInvites_param_message' => '', + 'method_auth.exportAuthorization' => '', + 'method_auth.exportAuthorization_param_dc_id' => '', + 'method_auth.importAuthorization' => '', + 'method_auth.importAuthorization_param_id' => '', + 'method_auth.importAuthorization_param_bytes' => '', + 'method_auth.bindTempAuthKey' => '', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id' => '', + 'method_auth.bindTempAuthKey_param_nonce' => '', + 'method_auth.bindTempAuthKey_param_expires_at' => '', + 'method_auth.bindTempAuthKey_param_encrypted_message' => '', + 'method_auth.importBotAuthorization' => '', + 'method_auth.importBotAuthorization_param_api_id' => '', + 'method_auth.importBotAuthorization_param_api_hash' => '', + 'method_auth.importBotAuthorization_param_bot_auth_token' => '', + 'method_auth.checkPassword' => '', + 'method_auth.checkPassword_param_password_hash' => '', + 'method_auth.requestPasswordRecovery' => '', + 'method_auth.recoverPassword' => '', + 'method_auth.recoverPassword_param_code' => '', + 'method_auth.resendCode' => '', + 'method_auth.resendCode_param_phone_number' => '', + 'method_auth.resendCode_param_phone_code_hash' => '', + 'method_auth.cancelCode' => '', + 'method_auth.cancelCode_param_phone_number' => '', + 'method_auth.cancelCode_param_phone_code_hash' => '', + 'method_auth.dropTempAuthKeys' => '', + 'method_auth.dropTempAuthKeys_param_except_auth_keys' => '', + 'method_account.registerDevice' => '', + 'method_account.registerDevice_param_token_type' => '', + 'method_account.registerDevice_param_token' => '', + 'method_account.registerDevice_param_app_sandbox' => '', + 'method_account.registerDevice_param_other_uids' => '', + 'method_account.unregisterDevice' => '', + 'method_account.unregisterDevice_param_token_type' => '', + 'method_account.unregisterDevice_param_token' => '', + 'method_account.unregisterDevice_param_other_uids' => '', + 'method_account.updateNotifySettings' => '', + 'method_account.updateNotifySettings_param_peer' => '', + 'method_account.updateNotifySettings_param_settings' => '', + 'method_account.getNotifySettings' => '', + 'method_account.getNotifySettings_param_peer' => '', + 'method_account.resetNotifySettings' => '', + 'method_account.updateProfile' => '', + 'method_account.updateProfile_param_first_name' => '', + 'method_account.updateProfile_param_last_name' => '', + 'method_account.updateProfile_param_about' => '', + 'method_account.updateStatus' => '', + 'method_account.updateStatus_param_offline' => '', + 'method_account.getWallPapers' => '', + 'method_account.reportPeer' => '', + 'method_account.reportPeer_param_peer' => '', + 'method_account.reportPeer_param_reason' => '', + 'method_account.checkUsername' => '', + 'method_account.checkUsername_param_username' => '', + 'method_account.updateUsername' => '', + 'method_account.updateUsername_param_username' => '', + 'method_account.getPrivacy' => '', + 'method_account.getPrivacy_param_key' => '', + 'method_account.setPrivacy' => '', + 'method_account.setPrivacy_param_key' => '', + 'method_account.setPrivacy_param_rules' => '', + 'method_account.deleteAccount' => '', + 'method_account.deleteAccount_param_reason' => '', + 'method_account.getAccountTTL' => '', + 'method_account.setAccountTTL' => '', + 'method_account.setAccountTTL_param_ttl' => '', + 'method_account.sendChangePhoneCode' => '', + 'method_account.sendChangePhoneCode_param_allow_flashcall' => '', + 'method_account.sendChangePhoneCode_param_phone_number' => '', + 'method_account.sendChangePhoneCode_param_current_number' => '', + 'method_account.changePhone' => '', + 'method_account.changePhone_param_phone_number' => '', + 'method_account.changePhone_param_phone_code_hash' => '', + 'method_account.changePhone_param_phone_code' => '', + 'method_account.updateDeviceLocked' => '', + 'method_account.updateDeviceLocked_param_period' => '', + 'method_account.getAuthorizations' => '', + 'method_account.resetAuthorization' => '', + 'method_account.resetAuthorization_param_hash' => '', + 'method_account.getPassword' => '', + 'method_account.getPasswordSettings' => '', + 'method_account.getPasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings' => '', + 'method_account.updatePasswordSettings_param_current_password_hash' => '', + 'method_account.updatePasswordSettings_param_new_settings' => '', + 'method_account.sendConfirmPhoneCode' => '', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall' => '', + 'method_account.sendConfirmPhoneCode_param_hash' => '', + 'method_account.sendConfirmPhoneCode_param_current_number' => '', + 'method_account.confirmPhone' => '', + 'method_account.confirmPhone_param_phone_code_hash' => '', + 'method_account.confirmPhone_param_phone_code' => '', + 'method_account.getTmpPassword' => '', + 'method_account.getTmpPassword_param_password_hash' => '', + 'method_account.getTmpPassword_param_period' => '', + 'method_account.getWebAuthorizations' => '', + 'method_account.resetWebAuthorization' => '', + 'method_account.resetWebAuthorization_param_hash' => '', + 'method_account.resetWebAuthorizations' => '', + 'method_users.getUsers' => '', + 'method_users.getUsers_param_id' => '', + 'method_users.getFullUser' => '', + 'method_users.getFullUser_param_id' => '', + 'method_contacts.getStatuses' => '', + 'method_contacts.getContacts' => '', + 'method_contacts.getContacts_param_hash' => '', + 'method_contacts.importContacts' => '', + 'method_contacts.importContacts_param_contacts' => '', + 'method_contacts.deleteContact' => '', + 'method_contacts.deleteContact_param_id' => '', + 'method_contacts.deleteContacts' => '', + 'method_contacts.deleteContacts_param_id' => '', + 'method_contacts.block' => '', + 'method_contacts.block_param_id' => '', + 'method_contacts.unblock' => '', + 'method_contacts.unblock_param_id' => '', + 'method_contacts.getBlocked' => '', + 'method_contacts.getBlocked_param_offset' => '', + 'method_contacts.getBlocked_param_limit' => '', + 'method_contacts.exportCard' => '', + 'method_contacts.importCard' => '', + 'method_contacts.importCard_param_export_card' => '', + 'method_contacts.search' => '', + 'method_contacts.search_param_q' => '', + 'method_contacts.search_param_limit' => '', + 'method_contacts.resolveUsername' => '', + 'method_contacts.resolveUsername_param_username' => '', + 'method_contacts.getTopPeers' => '', + 'method_contacts.getTopPeers_param_correspondents' => '', + 'method_contacts.getTopPeers_param_bots_pm' => '', + 'method_contacts.getTopPeers_param_bots_inline' => '', + 'method_contacts.getTopPeers_param_phone_calls' => '', + 'method_contacts.getTopPeers_param_groups' => '', + 'method_contacts.getTopPeers_param_channels' => '', + 'method_contacts.getTopPeers_param_offset' => '', + 'method_contacts.getTopPeers_param_limit' => '', + 'method_contacts.getTopPeers_param_hash' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category' => '', + 'method_contacts.resetTopPeerRating_param_peer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned' => '', + 'method_messages.getDialogs_param_offset_date' => '', + 'method_messages.getDialogs_param_offset_id' => '', + 'method_messages.getDialogs_param_offset_peer' => '', + 'method_messages.getDialogs_param_limit' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer' => '', + 'method_messages.getHistory_param_offset_id' => '', + 'method_messages.getHistory_param_offset_date' => '', + 'method_messages.getHistory_param_add_offset' => '', + 'method_messages.getHistory_param_limit' => '', + 'method_messages.getHistory_param_max_id' => '', + 'method_messages.getHistory_param_min_id' => '', + 'method_messages.getHistory_param_hash' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer' => '', + 'method_messages.search_param_q' => '', + 'method_messages.search_param_from_id' => '', + 'method_messages.search_param_filter' => '', + 'method_messages.search_param_min_date' => '', + 'method_messages.search_param_max_date' => '', + 'method_messages.search_param_offset_id' => '', + 'method_messages.search_param_add_offset' => '', + 'method_messages.search_param_limit' => '', + 'method_messages.search_param_max_id' => '', + 'method_messages.search_param_min_id' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer' => '', + 'method_messages.readHistory_param_max_id' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear' => '', + 'method_messages.deleteHistory_param_peer' => '', + 'method_messages.deleteHistory_param_max_id' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke' => '', + 'method_messages.deleteMessages_param_id' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer' => '', + 'method_messages.setTyping_param_action' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage' => '', + 'method_messages.sendMessage_param_silent' => '', + 'method_messages.sendMessage_param_background' => '', + 'method_messages.sendMessage_param_clear_draft' => '', + 'method_messages.sendMessage_param_peer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id' => '', + 'method_messages.sendMessage_param_message' => '', + 'method_messages.sendMessage_param_reply_markup' => '', + 'method_messages.sendMessage_param_entities' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent' => '', + 'method_messages.sendMedia_param_background' => '', + 'method_messages.sendMedia_param_clear_draft' => '', + 'method_messages.sendMedia_param_peer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMedia_param_media' => '', + 'method_messages.sendMedia_param_message' => '', + 'method_messages.sendMedia_param_reply_markup' => '', + 'method_messages.sendMedia_param_entities' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent' => '', + 'method_messages.forwardMessages_param_background' => '', + 'method_messages.forwardMessages_param_with_my_score' => '', + 'method_messages.forwardMessages_param_grouped' => '', + 'method_messages.forwardMessages_param_from_peer' => '', + 'method_messages.forwardMessages_param_id' => '', + 'method_messages.forwardMessages_param_to_peer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id' => '', + 'method_messages.getFullChat' => '', + 'method_messages.getFullChat_param_chat_id' => '', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id' => '', + 'method_messages.editChatTitle_param_title' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id' => '', + 'method_messages.editChatPhoto_param_photo' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id' => '', + 'method_messages.addChatUser_param_user_id' => '', + 'method_messages.addChatUser_param_fwd_limit' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id' => '', + 'method_messages.deleteChatUser_param_user_id' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users' => '', + 'method_messages.createChat_param_title' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version' => '', + 'method_messages.getDhConfig_param_random_length' => '', + 'method_messages.requestEncryption' => '', + 'method_messages.requestEncryption_param_user_id' => '', + 'method_messages.requestEncryption_param_g_a' => '', + 'method_messages.acceptEncryption' => '', + 'method_messages.acceptEncryption_param_peer' => '', + 'method_messages.acceptEncryption_param_g_b' => '', + 'method_messages.acceptEncryption_param_key_fingerprint' => '', + 'method_messages.discardEncryption' => '', + 'method_messages.discardEncryption_param_chat_id' => '', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer' => '', + 'method_messages.setEncryptedTyping_param_typing' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer' => '', + 'method_messages.readEncryptedHistory_param_max_date' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer' => '', + 'method_messages.sendEncrypted_param_message' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer' => '', + 'method_messages.sendEncryptedFile_param_message' => '', + 'method_messages.sendEncryptedFile_param_file' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer' => '', + 'method_messages.sendEncryptedService_param_message' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon' => '', + 'method_messages.getStickers_param_hash' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message' => '', + 'method_messages.getWebPagePreview_param_entities' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset' => '', + 'method_messages.installStickerSet_param_archived' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot' => '', + 'method_messages.startBot_param_peer' => '', + 'method_messages.startBot_param_start_param' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer' => '', + 'method_messages.getMessagesViews_param_id' => '', + 'method_messages.getMessagesViews_param_increment' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id' => '', + 'method_messages.toggleChatAdmins_param_enabled' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id' => '', + 'method_messages.editChatAdmin_param_user_id' => '', + 'method_messages.editChatAdmin_param_is_admin' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q' => '', + 'method_messages.searchGlobal_param_offset_date' => '', + 'method_messages.searchGlobal_param_offset_peer' => '', + 'method_messages.searchGlobal_param_offset_id' => '', + 'method_messages.searchGlobal_param_limit' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks' => '', + 'method_messages.reorderStickerSets_param_order' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256' => '', + 'method_messages.getDocumentByHash_param_size' => '', + 'method_messages.getDocumentByHash_param_mime_type' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q' => '', + 'method_messages.searchGifs_param_offset' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id' => '', + 'method_messages.saveGif_param_unsave' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot' => '', + 'method_messages.getInlineBotResults_param_peer' => '', + 'method_messages.getInlineBotResults_param_geo_point' => '', + 'method_messages.getInlineBotResults_param_query' => '', + 'method_messages.getInlineBotResults_param_offset' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery' => '', + 'method_messages.setInlineBotResults_param_private' => '', + 'method_messages.setInlineBotResults_param_query_id' => '', + 'method_messages.setInlineBotResults_param_results' => '', + 'method_messages.setInlineBotResults_param_cache_time' => '', + 'method_messages.setInlineBotResults_param_next_offset' => '', + 'method_messages.setInlineBotResults_param_switch_pm' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent' => '', + 'method_messages.sendInlineBotResult_param_background' => '', + 'method_messages.sendInlineBotResult_param_clear_draft' => '', + 'method_messages.sendInlineBotResult_param_peer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id' => '', + 'method_messages.sendInlineBotResult_param_query_id' => '', + 'method_messages.sendInlineBotResult_param_id' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer' => '', + 'method_messages.getMessageEditData_param_id' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage' => '', + 'method_messages.editMessage_param_stop_geo_live' => '', + 'method_messages.editMessage_param_peer' => '', + 'method_messages.editMessage_param_id' => '', + 'method_messages.editMessage_param_message' => '', + 'method_messages.editMessage_param_reply_markup' => '', + 'method_messages.editMessage_param_entities' => '', + 'method_messages.editMessage_param_geo_point' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live' => '', + 'method_messages.editInlineBotMessage_param_id' => '', + 'method_messages.editInlineBotMessage_param_message' => '', + 'method_messages.editInlineBotMessage_param_reply_markup' => '', + 'method_messages.editInlineBotMessage_param_entities' => '', + 'method_messages.editInlineBotMessage_param_geo_point' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game' => '', + 'method_messages.getBotCallbackAnswer_param_peer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id' => '', + 'method_messages.getBotCallbackAnswer_param_data' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert' => '', + 'method_messages.setBotCallbackAnswer_param_query_id' => '', + 'method_messages.setBotCallbackAnswer_param_message' => '', + 'method_messages.setBotCallbackAnswer_param_url' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage' => '', + 'method_messages.saveDraft_param_reply_to_msg_id' => '', + 'method_messages.saveDraft_param_peer' => '', + 'method_messages.saveDraft_param_message' => '', + 'method_messages.saveDraft_param_entities' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached' => '', + 'method_messages.getRecentStickers_param_hash' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached' => '', + 'method_messages.saveRecentSticker_param_id' => '', + 'method_messages.saveRecentSticker_param_unsave' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks' => '', + 'method_messages.getArchivedStickers_param_offset_id' => '', + 'method_messages.getArchivedStickers_param_limit' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message' => '', + 'method_messages.setGameScore_param_force' => '', + 'method_messages.setGameScore_param_peer' => '', + 'method_messages.setGameScore_param_id' => '', + 'method_messages.setGameScore_param_user_id' => '', + 'method_messages.setGameScore_param_score' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message' => '', + 'method_messages.setInlineGameScore_param_force' => '', + 'method_messages.setInlineGameScore_param_id' => '', + 'method_messages.setInlineGameScore_param_user_id' => '', + 'method_messages.setInlineGameScore_param_score' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer' => '', + 'method_messages.getGameHighScores_param_id' => '', + 'method_messages.getGameHighScores_param_user_id' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id' => '', + 'method_messages.getInlineGameHighScores_param_user_id' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id' => '', + 'method_messages.getCommonChats_param_max_id' => '', + 'method_messages.getCommonChats_param_limit' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url' => '', + 'method_messages.getWebPage_param_hash' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned' => '', + 'method_messages.toggleDialogPin_param_peer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force' => '', + 'method_messages.reorderPinnedDialogs_param_order' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id' => '', + 'method_messages.setBotShippingResults_param_error' => '', + 'method_messages.setBotShippingResults_param_shipping_options' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id' => '', + 'method_messages.setBotPrecheckoutResults_param_error' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer' => '', + 'method_messages.uploadMedia_param_media' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id' => '', + 'method_messages.faveSticker_param_unfave' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer' => '', + 'method_messages.getUnreadMentions_param_offset_id' => '', + 'method_messages.getUnreadMentions_param_add_offset' => '', + 'method_messages.getUnreadMentions_param_limit' => '', + 'method_messages.getUnreadMentions_param_max_id' => '', + 'method_messages.getUnreadMentions_param_min_id' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer' => '', + 'method_messages.getRecentLocations_param_limit' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent' => '', + 'method_messages.sendMultiMedia_param_background' => '', + 'method_messages.sendMultiMedia_param_clear_draft' => '', + 'method_messages.sendMultiMedia_param_peer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id' => '', + 'method_messages.sendMultiMedia_param_multi_media' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer' => '', + 'method_messages.uploadEncryptedFile_param_file' => '', + 'method_updates.getState' => '', + 'method_updates.getDifference' => '', + 'method_updates.getDifference_param_pts' => '', + 'method_updates.getDifference_param_pts_total_limit' => '', + 'method_updates.getDifference_param_date' => '', + 'method_updates.getDifference_param_qts' => '', + 'method_updates.getChannelDifference' => '', + 'method_updates.getChannelDifference_param_force' => '', + 'method_updates.getChannelDifference_param_channel' => '', + 'method_updates.getChannelDifference_param_filter' => '', + 'method_updates.getChannelDifference_param_pts' => '', + 'method_updates.getChannelDifference_param_limit' => '', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id' => '', + 'method_photos.getUserPhotos_param_offset' => '', + 'method_photos.getUserPhotos_param_max_id' => '', + 'method_photos.getUserPhotos_param_limit' => '', + 'method_upload.saveFilePart' => '', + 'method_upload.saveFilePart_param_file_id' => '', + 'method_upload.saveFilePart_param_file_part' => '', + 'method_upload.saveFilePart_param_bytes' => '', + 'method_upload.getFile' => '', + 'method_upload.getFile_param_location' => '', + 'method_upload.getFile_param_offset' => '', + 'method_upload.getFile_param_limit' => '', + 'method_upload.saveBigFilePart' => '', + 'method_upload.saveBigFilePart_param_file_id' => '', + 'method_upload.saveBigFilePart_param_file_part' => '', + 'method_upload.saveBigFilePart_param_file_total_parts' => '', + 'method_upload.saveBigFilePart_param_bytes' => '', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location' => '', + 'method_upload.getWebFile_param_offset' => '', + 'method_upload.getWebFile_param_limit' => '', + 'method_upload.getCdnFile' => '', + 'method_upload.getCdnFile_param_file_token' => '', + 'method_upload.getCdnFile_param_offset' => '', + 'method_upload.getCdnFile_param_limit' => '', + 'method_upload.reuploadCdnFile' => '', + 'method_upload.reuploadCdnFile_param_file_token' => '', + 'method_upload.reuploadCdnFile_param_request_token' => '', + 'method_upload.getCdnFileHashes' => '', + 'method_upload.getCdnFileHashes_param_file_token' => '', + 'method_upload.getCdnFileHashes_param_offset' => '', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count' => '', + 'method_help.setBotUpdatesStatus_param_message' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel' => '', + 'method_channels.readHistory_param_max_id' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel' => '', + 'method_channels.deleteMessages_param_id' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel' => '', + 'method_channels.deleteUserHistory_param_user_id' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel' => '', + 'method_channels.reportSpam_param_user_id' => '', + 'method_channels.reportSpam_param_id' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel' => '', + 'method_channels.getMessages_param_id' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel' => '', + 'method_channels.getParticipants_param_filter' => '', + 'method_channels.getParticipants_param_offset' => '', + 'method_channels.getParticipants_param_limit' => '', + 'method_channels.getParticipants_param_hash' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel' => '', + 'method_channels.getParticipant_param_user_id' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id' => '', + 'method_channels.getFullChannel' => '', + 'method_channels.getFullChannel_param_channel' => '', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast' => '', + 'method_channels.createChannel_param_megagroup' => '', + 'method_channels.createChannel_param_title' => '', + 'method_channels.createChannel_param_about' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel' => '', + 'method_channels.editAbout_param_about' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel' => '', + 'method_channels.editAdmin_param_user_id' => '', + 'method_channels.editAdmin_param_admin_rights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel' => '', + 'method_channels.editTitle_param_title' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel' => '', + 'method_channels.editPhoto_param_photo' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel' => '', + 'method_channels.checkUsername_param_username' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel' => '', + 'method_channels.updateUsername_param_username' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel' => '', + 'method_channels.inviteToChannel_param_users' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel' => '', + 'method_channels.toggleInvites_param_enabled' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel' => '', + 'method_channels.exportMessageLink_param_id' => '', + 'method_channels.exportMessageLink_param_grouped' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel' => '', + 'method_channels.toggleSignatures_param_enabled' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent' => '', + 'method_channels.updatePinnedMessage_param_channel' => '', + 'method_channels.updatePinnedMessage_param_id' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel' => '', + 'method_channels.editBanned_param_user_id' => '', + 'method_channels.editBanned_param_banned_rights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel' => '', + 'method_channels.getAdminLog_param_q' => '', + 'method_channels.getAdminLog_param_events_filter' => '', + 'method_channels.getAdminLog_param_admins' => '', + 'method_channels.getAdminLog_param_max_id' => '', + 'method_channels.getAdminLog_param_min_id' => '', + 'method_channels.getAdminLog_param_limit' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel' => '', + 'method_channels.setStickers_param_stickerset' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel' => '', + 'method_channels.readMessageContents_param_id' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel' => '', + 'method_channels.deleteHistory_param_max_id' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method' => '', + 'method_bots.sendCustomRequest_param_params' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id' => '', + 'method_bots.answerWebhookJSONQuery_param_data' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save' => '', + 'method_payments.validateRequestedInfo_param_msg_id' => '', + 'method_payments.validateRequestedInfo_param_info' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id' => '', + 'method_payments.sendPaymentForm_param_requested_info_id' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id' => '', + 'method_payments.sendPaymentForm_param_credentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials' => '', + 'method_payments.clearSavedInfo_param_info' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks' => '', + 'method_stickers.createStickerSet_param_user_id' => '', + 'method_stickers.createStickerSet_param_title' => '', + 'method_stickers.createStickerSet_param_short_name' => '', + 'method_stickers.createStickerSet_param_stickers' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker' => '', + 'method_stickers.changeStickerPosition_param_position' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset' => '', + 'method_stickers.addStickerToSet_param_sticker' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => '', + 'method_phone.requestCall_param_user_id' => '', + 'method_phone.requestCall_param_g_a_hash' => '', + 'method_phone.requestCall_param_protocol' => '', + 'method_phone.acceptCall' => '', + 'method_phone.acceptCall_param_peer' => '', + 'method_phone.acceptCall_param_g_b' => '', + 'method_phone.acceptCall_param_protocol' => '', + 'method_phone.confirmCall' => '', + 'method_phone.confirmCall_param_peer' => '', + 'method_phone.confirmCall_param_g_a' => '', + 'method_phone.confirmCall_param_key_fingerprint' => '', + 'method_phone.confirmCall_param_protocol' => '', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer' => '', + 'method_phone.discardCall' => '', + 'method_phone.discardCall_param_peer' => '', + 'method_phone.discardCall_param_duration' => '', + 'method_phone.discardCall_param_reason' => '', + 'method_phone.discardCall_param_connection_id' => '', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer' => '', + 'method_phone.setCallRating_param_rating' => '', + 'method_phone.setCallRating_param_comment' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer' => '', + 'method_phone.saveCallDebug_param_debug' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code' => '', + 'method_langpack.getStrings_param_keys' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type' => '', + 'method_auth.sendCode_param_lang_code' => '', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number' => '', + 'method_auth.sendCall_param_phone_code_hash' => '', + 'method_account.registerDevice_param_device_model' => '', + 'method_account.registerDevice_param_system_version' => '', + 'method_account.registerDevice_param_app_version' => '', + 'method_account.registerDevice_param_lang_code' => '', + 'method_contacts.importContacts_param_replace' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit' => '', + 'method_messages.getDialogs_param_offset' => '', + 'method_messages.getDialogs_param_max_id' => '', + 'method_messages.getHistory_param_offset' => '', + 'method_messages.search_param_offset' => '', + 'method_messages.readHistory_param_offset' => '', + 'method_messages.readHistory_param_read_contents' => '', + 'method_messages.deleteHistory_param_offset' => '', + 'method_messages.forwardMessages_param_peer' => '', + 'method_photos.updateProfilePhoto_param_crop' => '', + 'method_photos.uploadProfilePhoto_param_caption' => '', + 'method_photos.uploadProfilePhoto_param_geo_point' => '', + 'method_photos.uploadProfilePhoto_param_crop' => '', + 'method_help.getAppUpdate_param_device_model' => '', + 'method_help.getAppUpdate_param_system_version' => '', + 'method_help.getAppUpdate_param_app_version' => '', + 'method_help.getAppUpdate_param_lang_code' => '', + 'method_help.getInviteText_param_lang_code' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer' => '', + 'method_messages.forwardMessage_param_id' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts' => '', + 'method_messages.sendBroadcast_param_message' => '', + 'method_messages.sendBroadcast_param_media' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number' => '', + 'method_auth.sendSms_param_phone_code_hash' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point' => '', + 'method_geochats.getLocated_param_radius' => '', + 'method_geochats.getLocated_param_limit' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset' => '', + 'method_geochats.getRecents_param_limit' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer' => '', + 'method_geochats.editChatTitle_param_title' => '', + 'method_geochats.editChatTitle_param_address' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer' => '', + 'method_geochats.editChatPhoto_param_photo' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer' => '', + 'method_geochats.search_param_q' => '', + 'method_geochats.search_param_filter' => '', + 'method_geochats.search_param_min_date' => '', + 'method_geochats.search_param_max_date' => '', + 'method_geochats.search_param_offset' => '', + 'method_geochats.search_param_max_id' => '', + 'method_geochats.search_param_limit' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer' => '', + 'method_geochats.getHistory_param_offset' => '', + 'method_geochats.getHistory_param_max_id' => '', + 'method_geochats.getHistory_param_limit' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer' => '', + 'method_geochats.setTyping_param_typing' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer' => '', + 'method_geochats.sendMessage_param_message' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer' => '', + 'method_geochats.sendMedia_param_media' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title' => '', + 'method_geochats.createGeoChat_param_geo_point' => '', + 'method_geochats.createGeoChat_param_address' => '', + 'method_geochats.createGeoChat_param_venue' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash' => '', + 'method_account.setPassword_param_new_salt' => '', + 'method_account.setPassword_param_new_password_hash' => '', + 'method_account.setPassword_param_hint' => '', + 'method_messages.installStickerSet_param_disabled' => '', + 'method_messages.startBot_param_chat_id' => '', + 'method_help.getAppChangelog_param_device_model' => '', + 'method_help.getAppChangelog_param_system_version' => '', + 'method_help.getAppChangelog_param_app_version' => '', + 'method_help.getAppChangelog_param_lang_code' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset' => '', + 'method_channels.getDialogs_param_limit' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel' => '', + 'method_channels.getImportantHistory_param_offset_id' => '', + 'method_channels.getImportantHistory_param_add_offset' => '', + 'method_channels.getImportantHistory_param_limit' => '', + 'method_channels.getImportantHistory_param_max_id' => '', + 'method_channels.getImportantHistory_param_min_id' => '', + 'method_channels.createChannel_param_users' => '', + 'method_channels.editAdmin_param_role' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel' => '', + 'method_channels.toggleComments_param_enabled' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel' => '', + 'method_channels.kickFromChannel_param_user_id' => '', + 'method_channels.kickFromChannel_param_kicked' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset' => '', + 'method_messages.getChannelDialogs_param_limit' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer' => '', + 'method_messages.getImportantHistory_param_max_id' => '', + 'method_messages.getImportantHistory_param_min_id' => '', + 'method_messages.getImportantHistory_param_limit' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer' => '', + 'method_messages.readChannelHistory_param_max_id' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer' => '', + 'method_messages.deleteChannelMessages_param_id' => '', + 'method_updates.getChannelDifference_param_peer' => '', + 'method_messages.search_param_important_only' => '', + 'method_messages.sendMessage_param_broadcast' => '', + 'method_messages.sendMedia_param_broadcast' => '', + 'method_messages.forwardMessages_param_broadcast' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id' => '', + 'method_messages.deactivateChat_param_enabled' => '', + 'method_help.getTermsOfService_param_lang_code' => '', + 'method_messages.sendInlineBotResult_param_broadcast' => '', + 'method_channels.getImportantHistory_param_offset_date' => '', + 'method_messages.getUnusedStickers' => '', + 'method_messages.getUnusedStickers_param_limit' => '', + 'method_destroy_auth_key' => '', + 'method_phone.requestCall_param_g_a' => '', + 'method_phone.acceptCall_param_key_fingerprint' => '', + 'method_contest.saveDeveloperInfo' => '', + 'method_contest.saveDeveloperInfo_param_vk_id' => '', + 'method_contest.saveDeveloperInfo_param_name' => '', + 'method_contest.saveDeveloperInfo_param_phone_number' => '', + 'method_contest.saveDeveloperInfo_param_age' => '', + 'method_contest.saveDeveloperInfo_param_city' => '', + 'method_auth.importBotAuthorization_param_a' => '', + 'method_auth.importBotAuthorization_param_b' => '', + 'method_auth.importBotAuthorization_param_c' => '', + 'method_auth.importBotAuthorization_param_d' => '', +); +} \ No newline at end of file diff --git a/old_docs/API_docs_v65/constructors/account_authorizations.md b/old_docs/API_docs_v65/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v65/constructors/account_authorizations.md +++ b/old_docs/API_docs_v65/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/account_privacyRules.md b/old_docs/API_docs_v65/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v65/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v65/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/botInfo.md b/old_docs/API_docs_v65/constructors/botInfo.md index bee4a540..25a27913 100644 --- a/old_docs/API_docs_v65/constructors/botInfo.md +++ b/old_docs/API_docs_v65/constructors/botInfo.md @@ -23,7 +23,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/botInlineMessageText.md b/old_docs/API_docs_v65/constructors/botInlineMessageText.md index dc00808b..feb5e9d0 100644 --- a/old_docs/API_docs_v65/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v65/constructors/botInlineMessageText.md @@ -24,7 +24,7 @@ description: botInlineMessageText attributes, type and example ### Example: ``` -$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/channelFull.md b/old_docs/API_docs_v65/constructors/channelFull.md index d51c5e6d..d16eda19 100644 --- a/old_docs/API_docs_v65/constructors/channelFull.md +++ b/old_docs/API_docs_v65/constructors/channelFull.md @@ -37,7 +37,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_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]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/channelMessagesFilter.md b/old_docs/API_docs_v65/constructors/channelMessagesFilter.md index 0a731ce9..ad9a592e 100644 --- a/old_docs/API_docs_v65/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v65/constructors/channelMessagesFilter.md @@ -22,7 +22,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/channels_channelParticipant.md b/old_docs/API_docs_v65/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v65/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v65/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/channels_channelParticipants.md b/old_docs/API_docs_v65/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v65/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v65/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/chatFull.md b/old_docs/API_docs_v65/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v65/constructors/chatFull.md +++ b/old_docs/API_docs_v65/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/chatInvite.md b/old_docs/API_docs_v65/constructors/chatInvite.md index e7000f7b..e9087e0d 100644 --- a/old_docs/API_docs_v65/constructors/chatInvite.md +++ b/old_docs/API_docs_v65/constructors/chatInvite.md @@ -28,7 +28,7 @@ description: chatInvite attributes, type and example ### Example: ``` -$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [User]]; +$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: diff --git a/old_docs/API_docs_v65/constructors/chatParticipants.md b/old_docs/API_docs_v65/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v65/constructors/chatParticipants.md +++ b/old_docs/API_docs_v65/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/config.md b/old_docs/API_docs_v65/constructors/config.md index 1ce585f5..3948fa08 100644 --- a/old_docs/API_docs_v65/constructors/config.md +++ b/old_docs/API_docs_v65/constructors/config.md @@ -50,7 +50,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => 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', 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => 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', 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/contacts_blocked.md b/old_docs/API_docs_v65/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v65/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v65/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v65/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v65/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v65/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/contacts_contacts.md b/old_docs/API_docs_v65/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v65/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v65/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/contacts_found.md b/old_docs/API_docs_v65/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v65/constructors/contacts_found.md +++ b/old_docs/API_docs_v65/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/contacts_importedContacts.md b/old_docs/API_docs_v65/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v65/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v65/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v65/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v65/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v65/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/contacts_topPeers.md b/old_docs/API_docs_v65/constructors/contacts_topPeers.md index 17551f5d..07623018 100644 --- a/old_docs/API_docs_v65/constructors/contacts_topPeers.md +++ b/old_docs/API_docs_v65/constructors/contacts_topPeers.md @@ -23,7 +23,7 @@ description: contacts_topPeers attributes, type and example ### Example: ``` -$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers], 'chats' => [Chat], 'users' => [User]]; +$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers, TopPeerCategoryPeers], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/document.md b/old_docs/API_docs_v65/constructors/document.md index 8c0883bb..55d4c017 100644 --- a/old_docs/API_docs_v65/constructors/document.md +++ b/old_docs/API_docs_v65/constructors/document.md @@ -29,7 +29,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/documentAttributeAudio.md b/old_docs/API_docs_v65/constructors/documentAttributeAudio.md index 4d393890..ceb02cba 100644 --- a/old_docs/API_docs_v65/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v65/constructors/documentAttributeAudio.md @@ -12,7 +12,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| |voice|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Optional| |performer|[string](../types/string.md) | Optional| |waveform|[bytes](../types/bytes.md) | Optional| diff --git a/old_docs/API_docs_v65/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v65/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v65/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v65/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v65/constructors/documentAttributeVideo.md b/old_docs/API_docs_v65/constructors/documentAttributeVideo.md index 8493a8b6..d385ad20 100644 --- a/old_docs/API_docs_v65/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v65/constructors/documentAttributeVideo.md @@ -11,9 +11,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v65/constructors/draftMessage.md b/old_docs/API_docs_v65/constructors/draftMessage.md index 13277194..644adc43 100644 --- a/old_docs/API_docs_v65/constructors/draftMessage.md +++ b/old_docs/API_docs_v65/constructors/draftMessage.md @@ -25,7 +25,7 @@ description: draftMessage attributes, type and example ### Example: ``` -$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity], 'date' => int]; +$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'date' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/future_salts.md b/old_docs/API_docs_v65/constructors/future_salts.md index 4fb8d0f3..a0e695cc 100644 --- a/old_docs/API_docs_v65/constructors/future_salts.md +++ b/old_docs/API_docs_v65/constructors/future_salts.md @@ -23,7 +23,7 @@ description: future_salts attributes, type and example ### Example: ``` -$future_salts = ['_' => 'future_salts', 'req_msg_id' => long, 'now' => int, 'salts' => [future_salt]]; +$future_salts = ['_' => 'future_salts', 'req_msg_id' => long, 'now' => int, 'salts' => [future_salt, future_salt]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v65/constructors/inputBotInlineMessageText.md index 677e5d8c..ed3ddd1b 100644 --- a/old_docs/API_docs_v65/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v65/constructors/inputBotInlineMessageText.md @@ -24,7 +24,7 @@ description: inputBotInlineMessageText attributes, type and example ### Example: ``` -$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/inputBotInlineResultDocument.md b/old_docs/API_docs_v65/constructors/inputBotInlineResultDocument.md index 2315623b..f27421f9 100644 --- a/old_docs/API_docs_v65/constructors/inputBotInlineResultDocument.md +++ b/old_docs/API_docs_v65/constructors/inputBotInlineResultDocument.md @@ -15,7 +15,7 @@ description: inputBotInlineResultDocument attributes, type and example |type|[string](../types/string.md) | Yes| |title|[string](../types/string.md) | Optional| |description|[string](../types/string.md) | Optional| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v65/constructors/inputBotInlineResultPhoto.md b/old_docs/API_docs_v65/constructors/inputBotInlineResultPhoto.md index d39bd108..9628b4e5 100644 --- a/old_docs/API_docs_v65/constructors/inputBotInlineResultPhoto.md +++ b/old_docs/API_docs_v65/constructors/inputBotInlineResultPhoto.md @@ -13,7 +13,7 @@ description: inputBotInlineResultPhoto attributes, type and example |----------|---------------|----------| |id|[string](../types/string.md) | Yes| |type|[string](../types/string.md) | Yes| -|photo|[InputPhoto](../types/InputPhoto.md) | Optional| +|photo|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v65/constructors/inputChatPhoto.md b/old_docs/API_docs_v65/constructors/inputChatPhoto.md index e787f342..ae979308 100644 --- a/old_docs/API_docs_v65/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v65/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v65/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v65/constructors/inputChatUploadedPhoto.md index 78c28fdc..e9d2f354 100644 --- a/old_docs/API_docs_v65/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v65/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| diff --git a/old_docs/API_docs_v65/constructors/inputGameShortName.md b/old_docs/API_docs_v65/constructors/inputGameShortName.md index 64c55c18..0261912a 100644 --- a/old_docs/API_docs_v65/constructors/inputGameShortName.md +++ b/old_docs/API_docs_v65/constructors/inputGameShortName.md @@ -11,7 +11,7 @@ description: inputGameShortName attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|bot\_id|[InputUser](../types/InputUser.md) | Optional| +|bot\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |short\_name|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v65/constructors/inputMediaDocument.md b/old_docs/API_docs_v65/constructors/inputMediaDocument.md index 88fed980..66d0baba 100644 --- a/old_docs/API_docs_v65/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v65/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v65/constructors/inputMediaPhoto.md b/old_docs/API_docs_v65/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v65/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v65/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v65/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v65/constructors/inputMediaUploadedDocument.md index a2520998..71e6ea97 100644 --- a/old_docs/API_docs_v65/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v65/constructors/inputMediaUploadedDocument.md @@ -11,11 +11,11 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| @@ -25,7 +25,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument]]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v65/constructors/inputMediaUploadedPhoto.md index ac5480e1..193591c7 100644 --- a/old_docs/API_docs_v65/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v65/constructors/inputMediaUploadedPhoto.md @@ -11,9 +11,9 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| @@ -23,7 +23,7 @@ description: inputMediaUploadedPhoto attributes, type and example ### Example: ``` -$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument]]; +$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v65/constructors/inputMediaUploadedThumbDocument.md index 06ef970d..605ffe2c 100644 --- a/old_docs/API_docs_v65/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v65/constructors/inputMediaUploadedThumbDocument.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| @@ -26,7 +26,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument]]; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/inputNotifyPeer.md b/old_docs/API_docs_v65/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v65/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v65/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v65/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v65/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v65/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v65/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v65/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v65/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v65/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/inputStickeredMediaDocument.md b/old_docs/API_docs_v65/constructors/inputStickeredMediaDocument.md index ca9921e7..c281b7e5 100644 --- a/old_docs/API_docs_v65/constructors/inputStickeredMediaDocument.md +++ b/old_docs/API_docs_v65/constructors/inputStickeredMediaDocument.md @@ -11,7 +11,7 @@ description: inputStickeredMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v65/constructors/inputStickeredMediaPhoto.md b/old_docs/API_docs_v65/constructors/inputStickeredMediaPhoto.md index ac0428e1..042044b0 100644 --- a/old_docs/API_docs_v65/constructors/inputStickeredMediaPhoto.md +++ b/old_docs/API_docs_v65/constructors/inputStickeredMediaPhoto.md @@ -11,7 +11,7 @@ description: inputStickeredMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v65/constructors/inputWebDocument.md b/old_docs/API_docs_v65/constructors/inputWebDocument.md index 81f2707a..dd9a24ff 100644 --- a/old_docs/API_docs_v65/constructors/inputWebDocument.md +++ b/old_docs/API_docs_v65/constructors/inputWebDocument.md @@ -24,7 +24,7 @@ description: inputWebDocument attributes, type and example ### Example: ``` -$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/invoice.md b/old_docs/API_docs_v65/constructors/invoice.md index ddccf1b6..80a56a08 100644 --- a/old_docs/API_docs_v65/constructors/invoice.md +++ b/old_docs/API_docs_v65/constructors/invoice.md @@ -28,7 +28,7 @@ description: invoice attributes, type and example ### Example: ``` -$invoice = ['_' => 'invoice', 'test' => Bool, 'name_requested' => Bool, 'phone_requested' => Bool, 'email_requested' => Bool, 'shipping_address_requested' => Bool, 'flexible' => Bool, 'currency' => 'string', 'prices' => [LabeledPrice]]; +$invoice = ['_' => 'invoice', 'test' => Bool, 'name_requested' => Bool, 'phone_requested' => Bool, 'email_requested' => Bool, 'shipping_address_requested' => Bool, 'flexible' => Bool, 'currency' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/keyboardButtonRow.md b/old_docs/API_docs_v65/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v65/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v65/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/message.md b/old_docs/API_docs_v65/constructors/message.md index 67b2cd79..dc324ff1 100644 --- a/old_docs/API_docs_v65/constructors/message.md +++ b/old_docs/API_docs_v65/constructors/message.md @@ -38,7 +38,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; +$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v65/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v65/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v65/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messageActionChatCreate.md b/old_docs/API_docs_v65/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v65/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v65/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_allStickers.md b/old_docs/API_docs_v65/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/old_docs/API_docs_v65/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v65/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_archivedStickers.md b/old_docs/API_docs_v65/constructors/messages_archivedStickers.md index 7af238d4..c9675b57 100644 --- a/old_docs/API_docs_v65/constructors/messages_archivedStickers.md +++ b/old_docs/API_docs_v65/constructors/messages_archivedStickers.md @@ -22,7 +22,7 @@ description: messages_archivedStickers attributes, type and example ### Example: ``` -$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered]]; +$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_botResults.md b/old_docs/API_docs_v65/constructors/messages_botResults.md index 2f53b450..13edec1a 100644 --- a/old_docs/API_docs_v65/constructors/messages_botResults.md +++ b/old_docs/API_docs_v65/constructors/messages_botResults.md @@ -26,7 +26,7 @@ description: messages_botResults attributes, type and example ### Example: ``` -$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult], 'cache_time' => int]; +$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult, BotInlineResult], 'cache_time' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_channelMessages.md b/old_docs/API_docs_v65/constructors/messages_channelMessages.md index 8ec11b2d..358c0c70 100644 --- a/old_docs/API_docs_v65/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v65/constructors/messages_channelMessages.md @@ -25,7 +25,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_chatFull.md b/old_docs/API_docs_v65/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v65/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v65/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_chats.md b/old_docs/API_docs_v65/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v65/constructors/messages_chats.md +++ b/old_docs/API_docs_v65/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_chatsSlice.md b/old_docs/API_docs_v65/constructors/messages_chatsSlice.md index 4e3e0e77..614c577b 100644 --- a/old_docs/API_docs_v65/constructors/messages_chatsSlice.md +++ b/old_docs/API_docs_v65/constructors/messages_chatsSlice.md @@ -22,7 +22,7 @@ description: messages_chatsSlice attributes, type and example ### Example: ``` -$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat]]; +$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_dialogs.md b/old_docs/API_docs_v65/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v65/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v65/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v65/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v65/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v65/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v65/constructors/messages_featuredStickers.md b/old_docs/API_docs_v65/constructors/messages_featuredStickers.md index dac1fd91..0fc54db1 100644 --- a/old_docs/API_docs_v65/constructors/messages_featuredStickers.md +++ b/old_docs/API_docs_v65/constructors/messages_featuredStickers.md @@ -23,7 +23,7 @@ description: messages_featuredStickers attributes, type and example ### Example: ``` -$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered], 'unread' => [long]]; +$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered, StickerSetCovered], 'unread' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_foundGifs.md b/old_docs/API_docs_v65/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/old_docs/API_docs_v65/constructors/messages_foundGifs.md +++ b/old_docs/API_docs_v65/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_highScores.md b/old_docs/API_docs_v65/constructors/messages_highScores.md index 26eab658..df592f06 100644 --- a/old_docs/API_docs_v65/constructors/messages_highScores.md +++ b/old_docs/API_docs_v65/constructors/messages_highScores.md @@ -22,7 +22,7 @@ description: messages_highScores attributes, type and example ### Example: ``` -$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore], 'users' => [User]]; +$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore, HighScore], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_messages.md b/old_docs/API_docs_v65/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v65/constructors/messages_messages.md +++ b/old_docs/API_docs_v65/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_messagesSlice.md b/old_docs/API_docs_v65/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v65/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v65/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_peerDialogs.md b/old_docs/API_docs_v65/constructors/messages_peerDialogs.md index bec6c88c..5d25b545 100644 --- a/old_docs/API_docs_v65/constructors/messages_peerDialogs.md +++ b/old_docs/API_docs_v65/constructors/messages_peerDialogs.md @@ -25,7 +25,7 @@ description: messages_peerDialogs attributes, type and example ### Example: ``` -$messages_peerDialogs = ['_' => 'messages.peerDialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v65/constructors/messages_recentStickers.md b/old_docs/API_docs_v65/constructors/messages_recentStickers.md index be5e69a0..a8a53ffe 100644 --- a/old_docs/API_docs_v65/constructors/messages_recentStickers.md +++ b/old_docs/API_docs_v65/constructors/messages_recentStickers.md @@ -22,7 +22,7 @@ description: messages_recentStickers attributes, type and example ### Example: ``` -$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document]]; +$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_savedGifs.md b/old_docs/API_docs_v65/constructors/messages_savedGifs.md index 7e2a00eb..b4ff040d 100644 --- a/old_docs/API_docs_v65/constructors/messages_savedGifs.md +++ b/old_docs/API_docs_v65/constructors/messages_savedGifs.md @@ -22,7 +22,7 @@ description: messages_savedGifs attributes, type and example ### Example: ``` -$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document]]; +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_stickerSet.md b/old_docs/API_docs_v65/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v65/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v65/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_stickerSetInstallResultArchive.md b/old_docs/API_docs_v65/constructors/messages_stickerSetInstallResultArchive.md index f3e510bb..5b7fb05f 100644 --- a/old_docs/API_docs_v65/constructors/messages_stickerSetInstallResultArchive.md +++ b/old_docs/API_docs_v65/constructors/messages_stickerSetInstallResultArchive.md @@ -21,7 +21,7 @@ description: messages_stickerSetInstallResultArchive attributes, type and exampl ### Example: ``` -$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered]]; +$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/messages_stickers.md b/old_docs/API_docs_v65/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v65/constructors/messages_stickers.md +++ b/old_docs/API_docs_v65/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/msg_resend_req.md b/old_docs/API_docs_v65/constructors/msg_resend_req.md index 6a584a1a..13e6669d 100644 --- a/old_docs/API_docs_v65/constructors/msg_resend_req.md +++ b/old_docs/API_docs_v65/constructors/msg_resend_req.md @@ -21,7 +21,7 @@ description: msg_resend_req attributes, type and example ### Example: ``` -$msg_resend_req = ['_' => 'msg_resend_req', 'msg_ids' => [long]]; +$msg_resend_req = ['_' => 'msg_resend_req', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/msgs_ack.md b/old_docs/API_docs_v65/constructors/msgs_ack.md index 6d945079..353148ea 100644 --- a/old_docs/API_docs_v65/constructors/msgs_ack.md +++ b/old_docs/API_docs_v65/constructors/msgs_ack.md @@ -21,7 +21,7 @@ description: msgs_ack attributes, type and example ### Example: ``` -$msgs_ack = ['_' => 'msgs_ack', 'msg_ids' => [long]]; +$msgs_ack = ['_' => 'msgs_ack', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/msgs_all_info.md b/old_docs/API_docs_v65/constructors/msgs_all_info.md index 632ef421..dd630f00 100644 --- a/old_docs/API_docs_v65/constructors/msgs_all_info.md +++ b/old_docs/API_docs_v65/constructors/msgs_all_info.md @@ -22,7 +22,7 @@ description: msgs_all_info attributes, type and example ### Example: ``` -$msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long], 'info' => 'string']; +$msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long, long], 'info' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/msgs_state_req.md b/old_docs/API_docs_v65/constructors/msgs_state_req.md index 3aecb1ee..76f1f05c 100644 --- a/old_docs/API_docs_v65/constructors/msgs_state_req.md +++ b/old_docs/API_docs_v65/constructors/msgs_state_req.md @@ -21,7 +21,7 @@ description: msgs_state_req attributes, type and example ### Example: ``` -$msgs_state_req = ['_' => 'msgs_state_req', 'msg_ids' => [long]]; +$msgs_state_req = ['_' => 'msgs_state_req', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/pageBlockCollage.md b/old_docs/API_docs_v65/constructors/pageBlockCollage.md index 8685b250..3950e34d 100644 --- a/old_docs/API_docs_v65/constructors/pageBlockCollage.md +++ b/old_docs/API_docs_v65/constructors/pageBlockCollage.md @@ -22,7 +22,7 @@ description: pageBlockCollage attributes, type and example ### Example: ``` -$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/pageBlockEmbedPost.md b/old_docs/API_docs_v65/constructors/pageBlockEmbedPost.md index e0e955b9..e9434dfa 100644 --- a/old_docs/API_docs_v65/constructors/pageBlockEmbedPost.md +++ b/old_docs/API_docs_v65/constructors/pageBlockEmbedPost.md @@ -27,7 +27,7 @@ description: pageBlockEmbedPost attributes, type and example ### Example: ``` -$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock], 'caption' => RichText]; +$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/pageBlockList.md b/old_docs/API_docs_v65/constructors/pageBlockList.md index 6bf3c783..728c05a7 100644 --- a/old_docs/API_docs_v65/constructors/pageBlockList.md +++ b/old_docs/API_docs_v65/constructors/pageBlockList.md @@ -22,7 +22,7 @@ description: pageBlockList attributes, type and example ### Example: ``` -$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText]]; +$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/pageBlockSlideshow.md b/old_docs/API_docs_v65/constructors/pageBlockSlideshow.md index e48d51bb..0c18e64f 100644 --- a/old_docs/API_docs_v65/constructors/pageBlockSlideshow.md +++ b/old_docs/API_docs_v65/constructors/pageBlockSlideshow.md @@ -22,7 +22,7 @@ description: pageBlockSlideshow attributes, type and example ### Example: ``` -$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/pageFull.md b/old_docs/API_docs_v65/constructors/pageFull.md index 6a9bd9b5..aef5e376 100644 --- a/old_docs/API_docs_v65/constructors/pageFull.md +++ b/old_docs/API_docs_v65/constructors/pageFull.md @@ -23,7 +23,7 @@ description: pageFull attributes, type and example ### Example: ``` -$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock], 'photos' => [Photo], 'videos' => [Document]]; +$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'videos' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/pagePart.md b/old_docs/API_docs_v65/constructors/pagePart.md index 8c6dfe7c..b3e061a5 100644 --- a/old_docs/API_docs_v65/constructors/pagePart.md +++ b/old_docs/API_docs_v65/constructors/pagePart.md @@ -23,7 +23,7 @@ description: pagePart attributes, type and example ### Example: ``` -$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock], 'photos' => [Photo], 'videos' => [Document]]; +$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'videos' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/payments_paymentForm.md b/old_docs/API_docs_v65/constructors/payments_paymentForm.md index 6b468a10..982b4a13 100644 --- a/old_docs/API_docs_v65/constructors/payments_paymentForm.md +++ b/old_docs/API_docs_v65/constructors/payments_paymentForm.md @@ -31,7 +31,7 @@ description: payments_paymentForm attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v65/constructors/payments_paymentReceipt.md b/old_docs/API_docs_v65/constructors/payments_paymentReceipt.md index cb64a78a..f7c6589c 100644 --- a/old_docs/API_docs_v65/constructors/payments_paymentReceipt.md +++ b/old_docs/API_docs_v65/constructors/payments_paymentReceipt.md @@ -30,7 +30,7 @@ description: payments_paymentReceipt attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v65/constructors/payments_validatedRequestedInfo.md b/old_docs/API_docs_v65/constructors/payments_validatedRequestedInfo.md index a1d841b5..362544ca 100644 --- a/old_docs/API_docs_v65/constructors/payments_validatedRequestedInfo.md +++ b/old_docs/API_docs_v65/constructors/payments_validatedRequestedInfo.md @@ -22,7 +22,7 @@ description: payments_validatedRequestedInfo attributes, type and example ### Example: ``` -$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption]]; +$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption, ShippingOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/phoneCall.md b/old_docs/API_docs_v65/constructors/phoneCall.md index 279af015..703116b5 100644 --- a/old_docs/API_docs_v65/constructors/phoneCall.md +++ b/old_docs/API_docs_v65/constructors/phoneCall.md @@ -31,7 +31,7 @@ description: phoneCall attributes, type and example ### Example: ``` -$phoneCall = ['_' => 'phoneCall', '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]; +$phoneCall = ['_' => 'phoneCall', '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: diff --git a/old_docs/API_docs_v65/constructors/phone_phoneCall.md b/old_docs/API_docs_v65/constructors/phone_phoneCall.md index 38177647..00a43b98 100644 --- a/old_docs/API_docs_v65/constructors/phone_phoneCall.md +++ b/old_docs/API_docs_v65/constructors/phone_phoneCall.md @@ -22,7 +22,7 @@ description: phone_phoneCall attributes, type and example ### Example: ``` -$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User]]; +$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/photo.md b/old_docs/API_docs_v65/constructors/photo.md index 0d6edc52..293458ca 100644 --- a/old_docs/API_docs_v65/constructors/photo.md +++ b/old_docs/API_docs_v65/constructors/photo.md @@ -25,7 +25,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/photos_photo.md b/old_docs/API_docs_v65/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v65/constructors/photos_photo.md +++ b/old_docs/API_docs_v65/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/photos_photos.md b/old_docs/API_docs_v65/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v65/constructors/photos_photos.md +++ b/old_docs/API_docs_v65/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/photos_photosSlice.md b/old_docs/API_docs_v65/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v65/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v65/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v65/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v65/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v65/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v65/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v65/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v65/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/replyInlineMarkup.md b/old_docs/API_docs_v65/constructors/replyInlineMarkup.md index 80d2ff77..95257485 100644 --- a/old_docs/API_docs_v65/constructors/replyInlineMarkup.md +++ b/old_docs/API_docs_v65/constructors/replyInlineMarkup.md @@ -21,7 +21,7 @@ description: replyInlineMarkup attributes, type and example ### Example: ``` -$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow]]; +$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v65/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v65/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v65/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/resPQ.md b/old_docs/API_docs_v65/constructors/resPQ.md index 5d6c0d6b..f4dcf3e9 100644 --- a/old_docs/API_docs_v65/constructors/resPQ.md +++ b/old_docs/API_docs_v65/constructors/resPQ.md @@ -24,7 +24,7 @@ description: resPQ attributes, type and example ### Example: ``` -$resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => 'string', 'server_public_key_fingerprints' => [long]]; +$resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => 'string', 'server_public_key_fingerprints' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/shippingOption.md b/old_docs/API_docs_v65/constructors/shippingOption.md index 32ec5182..53a0405f 100644 --- a/old_docs/API_docs_v65/constructors/shippingOption.md +++ b/old_docs/API_docs_v65/constructors/shippingOption.md @@ -23,7 +23,7 @@ description: shippingOption attributes, type and example ### Example: ``` -$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice]]; +$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/stickerPack.md b/old_docs/API_docs_v65/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v65/constructors/stickerPack.md +++ b/old_docs/API_docs_v65/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/stickerSetMultiCovered.md b/old_docs/API_docs_v65/constructors/stickerSetMultiCovered.md index 4dd5a0a7..9a337fdc 100644 --- a/old_docs/API_docs_v65/constructors/stickerSetMultiCovered.md +++ b/old_docs/API_docs_v65/constructors/stickerSetMultiCovered.md @@ -22,7 +22,7 @@ description: stickerSetMultiCovered attributes, type and example ### Example: ``` -$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document]]; +$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/textConcat.md b/old_docs/API_docs_v65/constructors/textConcat.md index 4a44d3b2..bfdb9e50 100644 --- a/old_docs/API_docs_v65/constructors/textConcat.md +++ b/old_docs/API_docs_v65/constructors/textConcat.md @@ -21,7 +21,7 @@ description: textConcat attributes, type and example ### Example: ``` -$textConcat = ['_' => 'textConcat', 'texts' => [RichText]]; +$textConcat = ['_' => 'textConcat', 'texts' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/topPeerCategoryPeers.md b/old_docs/API_docs_v65/constructors/topPeerCategoryPeers.md index acd5cf08..03b78ed3 100644 --- a/old_docs/API_docs_v65/constructors/topPeerCategoryPeers.md +++ b/old_docs/API_docs_v65/constructors/topPeerCategoryPeers.md @@ -23,7 +23,7 @@ description: topPeerCategoryPeers attributes, type and example ### Example: ``` -$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer]]; +$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer, TopPeer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/updateDcOptions.md b/old_docs/API_docs_v65/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v65/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v65/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v65/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v65/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v65/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/updateDeleteMessages.md b/old_docs/API_docs_v65/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v65/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v65/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/updatePinnedDialogs.md b/old_docs/API_docs_v65/constructors/updatePinnedDialogs.md index a531ad75..c38d664c 100644 --- a/old_docs/API_docs_v65/constructors/updatePinnedDialogs.md +++ b/old_docs/API_docs_v65/constructors/updatePinnedDialogs.md @@ -21,7 +21,7 @@ description: updatePinnedDialogs attributes, type and example ### Example: ``` -$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer]]; +$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer, Peer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/updatePrivacy.md b/old_docs/API_docs_v65/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v65/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v65/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v65/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v65/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v65/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/updateServiceNotification.md b/old_docs/API_docs_v65/constructors/updateServiceNotification.md index 562d1089..92280ccf 100644 --- a/old_docs/API_docs_v65/constructors/updateServiceNotification.md +++ b/old_docs/API_docs_v65/constructors/updateServiceNotification.md @@ -26,7 +26,7 @@ description: updateServiceNotification attributes, type and example ### Example: ``` -$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/updateShortChatMessage.md b/old_docs/API_docs_v65/constructors/updateShortChatMessage.md index 08aa61a5..f6310d0d 100644 --- a/old_docs/API_docs_v65/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v65/constructors/updateShortChatMessage.md @@ -35,7 +35,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v65/constructors/updateShortMessage.md b/old_docs/API_docs_v65/constructors/updateShortMessage.md index 608d2a30..24f07b99 100644 --- a/old_docs/API_docs_v65/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v65/constructors/updateShortMessage.md @@ -34,7 +34,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v65/constructors/updateShortSentMessage.md b/old_docs/API_docs_v65/constructors/updateShortSentMessage.md index 28f82e3a..ebc40cf9 100644 --- a/old_docs/API_docs_v65/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v65/constructors/updateShortSentMessage.md @@ -27,7 +27,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$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: diff --git a/old_docs/API_docs_v65/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v65/constructors/updateStickerSetsOrder.md index 53637821..7b29b8f2 100644 --- a/old_docs/API_docs_v65/constructors/updateStickerSetsOrder.md +++ b/old_docs/API_docs_v65/constructors/updateStickerSetsOrder.md @@ -22,7 +22,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/updates.md b/old_docs/API_docs_v65/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v65/constructors/updates.md +++ b/old_docs/API_docs_v65/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/updatesCombined.md b/old_docs/API_docs_v65/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v65/constructors/updatesCombined.md +++ b/old_docs/API_docs_v65/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v65/constructors/updates_channelDifference.md b/old_docs/API_docs_v65/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v65/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v65/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v65/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v65/constructors/updates_channelDifferenceTooLong.md index 8e3a01aa..0ff98bf6 100644 --- a/old_docs/API_docs_v65/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v65/constructors/updates_channelDifferenceTooLong.md @@ -30,7 +30,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$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, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/updates_difference.md b/old_docs/API_docs_v65/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v65/constructors/updates_difference.md +++ b/old_docs/API_docs_v65/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v65/constructors/updates_differenceSlice.md b/old_docs/API_docs_v65/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v65/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v65/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v65/constructors/wallPaper.md b/old_docs/API_docs_v65/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v65/constructors/wallPaper.md +++ b/old_docs/API_docs_v65/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/constructors/webDocument.md b/old_docs/API_docs_v65/constructors/webDocument.md index 0be6cb8a..55a5b09b 100644 --- a/old_docs/API_docs_v65/constructors/webDocument.md +++ b/old_docs/API_docs_v65/constructors/webDocument.md @@ -26,7 +26,7 @@ description: webDocument attributes, type and example ### Example: ``` -$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'dc_id' => int]; +$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'dc_id' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v65/methods/README.md b/old_docs/API_docs_v65/methods/README.md index f548c313..bd61f49d 100644 --- a/old_docs/API_docs_v65/methods/README.md +++ b/old_docs/API_docs_v65/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v65/methods/account_changePhone.md b/old_docs/API_docs_v65/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v65/methods/account_changePhone.md +++ b/old_docs/API_docs_v65/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_checkUsername.md b/old_docs/API_docs_v65/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v65/methods/account_checkUsername.md +++ b/old_docs/API_docs_v65/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_confirmPhone.md b/old_docs/API_docs_v65/methods/account_confirmPhone.md index 8dd79d94..2261e6e8 100644 --- a/old_docs/API_docs_v65/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v65/methods/account_confirmPhone.md @@ -1,17 +1,19 @@ --- title: account.confirmPhone -description: account.confirmPhone parameters, return type and example +description: Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode --- ## 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 | Required | -|----------|---------------|----------| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_code\_hash|[string](../types/string.md) | Yes|obtain phone_code_hash from sendConfirmPhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The code sent by sendConfirmPhoneCode| ### Return type: [Bool](../types/Bool.md) @@ -31,13 +33,18 @@ description: account.confirmPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_deleteAccount.md b/old_docs/API_docs_v65/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v65/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v65/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_getAccountTTL.md b/old_docs/API_docs_v65/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v65/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v65/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v65/methods/account_getAuthorizations.md b/old_docs/API_docs_v65/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v65/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v65/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v65/methods/account_getNotifySettings.md b/old_docs/API_docs_v65/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v65/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v65/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_getPassword.md b/old_docs/API_docs_v65/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v65/methods/account_getPassword.md +++ b/old_docs/API_docs_v65/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v65/methods/account_getPasswordSettings.md b/old_docs/API_docs_v65/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v65/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v65/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_getPrivacy.md b/old_docs/API_docs_v65/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v65/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v65/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_getTmpPassword.md b/old_docs/API_docs_v65/methods/account_getTmpPassword.md index d9bd30d8..e9ff8d28 100644 --- a/old_docs/API_docs_v65/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v65/methods/account_getTmpPassword.md @@ -1,17 +1,19 @@ --- title: account.getTmpPassword -description: account.getTmpPassword parameters, return type and example +description: Get temporary password for buying products through bots --- ## Method: account.getTmpPassword [Back to methods index](index.md) +Get temporary password for buying products through bots + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|password\_hash|[bytes](../types/bytes.md) | Yes|The password hash| +|period|[int](../types/int.md) | Yes|The validity period| ### Return type: [account\_TmpPassword](../types/account_TmpPassword.md) @@ -31,13 +33,18 @@ description: account.getTmpPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_getWallPapers.md b/old_docs/API_docs_v65/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v65/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v65/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v65/methods/account_registerDevice.md b/old_docs/API_docs_v65/methods/account_registerDevice.md index 8be04ad2..0bf6d1ee 100644 --- a/old_docs/API_docs_v65/methods/account_registerDevice.md +++ b/old_docs/API_docs_v65/methods/account_registerDevice.md @@ -1,17 +1,19 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_reportPeer.md b/old_docs/API_docs_v65/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v65/methods/account_reportPeer.md +++ b/old_docs/API_docs_v65/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_resetAuthorization.md b/old_docs/API_docs_v65/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v65/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v65/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_resetNotifySettings.md b/old_docs/API_docs_v65/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v65/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v65/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md index 017b5f7f..9e5016a4 100644 --- a/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|phone\_number|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can the code be sent using a flash call instead of an SMS?| +|phone\_number|[string](../types/string.md) | Yes|New phone number| +|current\_number|[Bool](../types/Bool.md) | Optional|Current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md index 3665bd50..4de86a33 100644 --- a/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendConfirmPhoneCode -description: account.sendConfirmPhoneCode parameters, return type and example +description: Send confirmation phone code --- ## Method: account.sendConfirmPhoneCode [Back to methods index](index.md) +Send confirmation phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|hash|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can telegram call you instead of sending an SMS?| +|hash|[string](../types/string.md) | Yes|The hash| +|current\_number|[Bool](../types/Bool.md) | Optional|The current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendConfirmPhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_setAccountTTL.md b/old_docs/API_docs_v65/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v65/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v65/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_setPrivacy.md b/old_docs/API_docs_v65/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v65/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v65/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/account_unregisterDevice.md b/old_docs/API_docs_v65/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v65/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v65/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v65/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v65/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v65/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_updateNotifySettings.md b/old_docs/API_docs_v65/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v65/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v65/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_updateProfile.md b/old_docs/API_docs_v65/methods/account_updateProfile.md index b3d468d1..8b0c3268 100644 --- a/old_docs/API_docs_v65/methods/account_updateProfile.md +++ b/old_docs/API_docs_v65/methods/account_updateProfile.md @@ -1,18 +1,20 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Optional| -|last\_name|[string](../types/string.md) | Optional| -|about|[string](../types/string.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Optional|The first name| +|last\_name|[string](../types/string.md) | Optional|The last name| +|about|[string](../types/string.md) | Optional|The bio/about field| ### Return type: [User](../types/User.md) @@ -32,13 +34,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_updateStatus.md b/old_docs/API_docs_v65/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v65/methods/account_updateStatus.md +++ b/old_docs/API_docs_v65/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v65/methods/account_updateUsername.md b/old_docs/API_docs_v65/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v65/methods/account_updateUsername.md +++ b/old_docs/API_docs_v65/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v65/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v65/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v65/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v65/methods/auth_cancelCode.md b/old_docs/API_docs_v65/methods/auth_cancelCode.md index 05d927a1..1283e1e5 100644 --- a/old_docs/API_docs_v65/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v65/methods/auth_cancelCode.md @@ -1,17 +1,19 @@ --- title: auth.cancelCode -description: auth.cancelCode parameters, return type and example +description: Invalidate sent phone code --- ## Method: auth.cancelCode [Back to methods index](index.md) +Invalidate sent phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: auth.cancelCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/auth_checkPassword.md b/old_docs/API_docs_v65/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v65/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v65/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v65/methods/auth_checkPhone.md b/old_docs/API_docs_v65/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v65/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v65/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v65/methods/auth_dropTempAuthKeys.md index fedb7bf4..b08b9f40 100644 --- a/old_docs/API_docs_v65/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v65/methods/auth_dropTempAuthKeys.md @@ -1,16 +1,18 @@ --- title: auth.dropTempAuthKeys -description: auth.dropTempAuthKeys parameters, return type and example +description: Delete all temporary authorization keys except the ones provided --- ## Method: auth.dropTempAuthKeys [Back to methods index](index.md) +Delete all temporary authorization keys except the ones provided + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|except\_auth\_keys|Array of [long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|except\_auth\_keys|Array of [long](../types/long.md) | Yes|The temporary authorization keys to keep| ### Return type: [Bool](../types/Bool.md) @@ -22,18 +24,20 @@ description: auth.dropTempAuthKeys parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/auth_exportAuthorization.md b/old_docs/API_docs_v65/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v65/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v65/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v65/methods/auth_importAuthorization.md b/old_docs/API_docs_v65/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v65/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v65/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v65/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v65/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v65/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v65/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v65/methods/auth_logOut.md b/old_docs/API_docs_v65/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v65/methods/auth_logOut.md +++ b/old_docs/API_docs_v65/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v65/methods/auth_recoverPassword.md b/old_docs/API_docs_v65/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v65/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v65/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v65/methods/auth_resendCode.md b/old_docs/API_docs_v65/methods/auth_resendCode.md index df4803b8..4bfbf379 100644 --- a/old_docs/API_docs_v65/methods/auth_resendCode.md +++ b/old_docs/API_docs_v65/methods/auth_resendCode.md @@ -1,17 +1,19 @@ --- title: auth.resendCode -description: auth.resendCode parameters, return type and example +description: Resend the SMS verification code --- ## Method: auth.resendCode [Back to methods index](index.md) +Resend the SMS verification code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|The phone code hash| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -30,13 +32,18 @@ description: auth.resendCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v65/methods/auth_sendCode.md b/old_docs/API_docs_v65/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v65/methods/auth_sendCode.md +++ b/old_docs/API_docs_v65/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v65/methods/auth_sendInvites.md b/old_docs/API_docs_v65/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v65/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v65/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/auth_signIn.md b/old_docs/API_docs_v65/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v65/methods/auth_signIn.md +++ b/old_docs/API_docs_v65/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v65/methods/auth_signUp.md b/old_docs/API_docs_v65/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v65/methods/auth_signUp.md +++ b/old_docs/API_docs_v65/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v65/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v65/methods/bots_answerWebhookJSONQuery.md index d910db35..809576fa 100644 --- a/old_docs/API_docs_v65/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v65/methods/bots_answerWebhookJSONQuery.md @@ -31,16 +31,18 @@ description: bots.answerWebhookJSONQuery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md index abb880ef..ce28f6ca 100644 --- a/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md @@ -30,16 +30,18 @@ description: bots.sendCustomRequest parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_checkUsername.md b/old_docs/API_docs_v65/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v65/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v65/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_createChannel.md b/old_docs/API_docs_v65/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v65/methods/channels_createChannel.md +++ b/old_docs/API_docs_v65/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_deleteChannel.md b/old_docs/API_docs_v65/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v65/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v65/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_deleteMessages.md b/old_docs/API_docs_v65/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v65/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v65/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_editAbout.md b/old_docs/API_docs_v65/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v65/methods/channels_editAbout.md +++ b/old_docs/API_docs_v65/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_editAdmin.md b/old_docs/API_docs_v65/methods/channels_editAdmin.md index c62597e1..146159d9 100644 --- a/old_docs/API_docs_v65/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v65/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |role|[ChannelParticipantRole](../types/ChannelParticipantRole.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_editPhoto.md b/old_docs/API_docs_v65/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v65/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v65/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_editTitle.md b/old_docs/API_docs_v65/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v65/methods/channels_editTitle.md +++ b/old_docs/API_docs_v65/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_exportInvite.md b/old_docs/API_docs_v65/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v65/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v65/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_exportMessageLink.md b/old_docs/API_docs_v65/methods/channels_exportMessageLink.md index 026fe982..7eff4ed8 100644 --- a/old_docs/API_docs_v65/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v65/methods/channels_exportMessageLink.md @@ -10,7 +10,7 @@ description: channels.exportMessageLink parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: channels.exportMessageLink parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v65/methods/channels_getAdminedPublicChannels.md index 283a9071..01ea971f 100644 --- a/old_docs/API_docs_v65/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v65/methods/channels_getAdminedPublicChannels.md @@ -17,13 +17,18 @@ description: channels.getAdminedPublicChannels parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); ``` diff --git a/old_docs/API_docs_v65/methods/channels_getChannels.md b/old_docs/API_docs_v65/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v65/methods/channels_getChannels.md +++ b/old_docs/API_docs_v65/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/channels_getFullChannel.md b/old_docs/API_docs_v65/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v65/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v65/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v65/methods/channels_getMessages.md b/old_docs/API_docs_v65/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v65/methods/channels_getMessages.md +++ b/old_docs/API_docs_v65/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/channels_getParticipant.md b/old_docs/API_docs_v65/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v65/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v65/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_getParticipants.md b/old_docs/API_docs_v65/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v65/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v65/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_inviteToChannel.md b/old_docs/API_docs_v65/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v65/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v65/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/channels_joinChannel.md b/old_docs/API_docs_v65/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v65/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v65/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_kickFromChannel.md b/old_docs/API_docs_v65/methods/channels_kickFromChannel.md index a2182df8..e4b68581 100644 --- a/old_docs/API_docs_v65/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v65/methods/channels_kickFromChannel.md @@ -10,8 +10,8 @@ description: channels.kickFromChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |kicked|[Bool](../types/Bool.md) | Yes| @@ -24,16 +24,18 @@ description: channels.kickFromChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_leaveChannel.md b/old_docs/API_docs_v65/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v65/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v65/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_readHistory.md b/old_docs/API_docs_v65/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v65/methods/channels_readHistory.md +++ b/old_docs/API_docs_v65/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_reportSpam.md b/old_docs/API_docs_v65/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v65/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v65/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/channels_toggleInvites.md b/old_docs/API_docs_v65/methods/channels_toggleInvites.md index 19669eec..8d977fd0 100644 --- a/old_docs/API_docs_v65/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v65/methods/channels_toggleInvites.md @@ -10,7 +10,7 @@ description: channels.toggleInvites parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -32,13 +32,18 @@ description: channels.toggleInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_toggleSignatures.md b/old_docs/API_docs_v65/methods/channels_toggleSignatures.md index 4aaaeb0c..13d53d92 100644 --- a/old_docs/API_docs_v65/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v65/methods/channels_toggleSignatures.md @@ -10,7 +10,7 @@ description: channels.toggleSignatures parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: channels.toggleSignatures parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md index 3bb6d010..ecc15ce6 100644 --- a/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md @@ -11,7 +11,7 @@ description: channels.updatePinnedMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |silent|[Bool](../types/Bool.md) | Optional| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: channels.updatePinnedMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/channels_updateUsername.md b/old_docs/API_docs_v65/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v65/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v65/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/contacts_block.md b/old_docs/API_docs_v65/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v65/methods/contacts_block.md +++ b/old_docs/API_docs_v65/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v65/methods/contacts_deleteContact.md b/old_docs/API_docs_v65/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v65/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v65/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v65/methods/contacts_deleteContacts.md b/old_docs/API_docs_v65/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v65/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v65/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/contacts_exportCard.md b/old_docs/API_docs_v65/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v65/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v65/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v65/methods/contacts_getBlocked.md b/old_docs/API_docs_v65/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v65/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v65/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/contacts_getContacts.md b/old_docs/API_docs_v65/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v65/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v65/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/contacts_getStatuses.md b/old_docs/API_docs_v65/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v65/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v65/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v65/methods/contacts_getTopPeers.md b/old_docs/API_docs_v65/methods/contacts_getTopPeers.md index d29f6e02..eafcb6ec 100644 --- a/old_docs/API_docs_v65/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v65/methods/contacts_getTopPeers.md @@ -1,23 +1,25 @@ --- title: contacts.getTopPeers -description: contacts.getTopPeers parameters, return type and example +description: Get most used chats --- ## Method: contacts.getTopPeers [Back to methods index](index.md) +Get most used chats + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|correspondents|[Bool](../types/Bool.md) | Optional| -|bots\_pm|[Bool](../types/Bool.md) | Optional| -|bots\_inline|[Bool](../types/Bool.md) | Optional| -|groups|[Bool](../types/Bool.md) | Optional| -|channels|[Bool](../types/Bool.md) | Optional| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|correspondents|[Bool](../types/Bool.md) | Optional|| +|bots\_pm|[Bool](../types/Bool.md) | Optional|| +|bots\_inline|[Bool](../types/Bool.md) | Optional|| +|groups|[Bool](../types/Bool.md) | Optional|| +|channels|[Bool](../types/Bool.md) | Optional|| +|offset|[int](../types/int.md) | Yes|| +|limit|[int](../types/int.md) | Yes|| +|hash|[int](../types/int.md) | Yes|| ### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md) @@ -36,13 +38,18 @@ description: contacts.getTopPeers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/contacts_importCard.md b/old_docs/API_docs_v65/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v65/methods/contacts_importCard.md +++ b/old_docs/API_docs_v65/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/contacts_importContacts.md b/old_docs/API_docs_v65/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v65/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v65/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md index 3eab7e04..ddcf6b2f 100644 --- a/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md @@ -11,7 +11,7 @@ description: contacts.resetTopPeerRating parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |category|[TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v65/methods/contacts_resolveUsername.md b/old_docs/API_docs_v65/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v65/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v65/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v65/methods/contacts_search.md b/old_docs/API_docs_v65/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v65/methods/contacts_search.md +++ b/old_docs/API_docs_v65/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/contacts_unblock.md b/old_docs/API_docs_v65/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v65/methods/contacts_unblock.md +++ b/old_docs/API_docs_v65/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v65/methods/contest_saveDeveloperInfo.md b/old_docs/API_docs_v65/methods/contest_saveDeveloperInfo.md index c0bb9054..6a8e5fda 100644 --- a/old_docs/API_docs_v65/methods/contest_saveDeveloperInfo.md +++ b/old_docs/API_docs_v65/methods/contest_saveDeveloperInfo.md @@ -26,16 +26,18 @@ description: contest.saveDeveloperInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contest->saveDeveloperInfo(['vk_id' => int, 'name' => 'string', 'phone_number' => 'string', 'age' => int, 'city' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/destroy_auth_key.md b/old_docs/API_docs_v65/methods/destroy_auth_key.md index 1803e375..0304d9a1 100644 --- a/old_docs/API_docs_v65/methods/destroy_auth_key.md +++ b/old_docs/API_docs_v65/methods/destroy_auth_key.md @@ -17,16 +17,18 @@ description: destroy_auth_key parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DestroyAuthKeyRes = $MadelineProto->destroy_auth_key(); ``` diff --git a/old_docs/API_docs_v65/methods/destroy_session.md b/old_docs/API_docs_v65/methods/destroy_session.md index 39aa2c6e..b2525dfb 100644 --- a/old_docs/API_docs_v65/methods/destroy_session.md +++ b/old_docs/API_docs_v65/methods/destroy_session.md @@ -1,16 +1,18 @@ --- title: destroy_session -description: destroy_session parameters, return type and example +description: Destroy the current MTProto session --- ## Method: destroy\_session [Back to methods index](index.md) +Destroy the current MTProto session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|session\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|session\_id|[long](../types/long.md) | Yes|The session to destroy| ### Return type: [DestroySessionRes](../types/DestroySessionRes.md) @@ -22,16 +24,18 @@ description: destroy_session parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DestroySessionRes = $MadelineProto->destroy_session(['session_id' => long, ]); ``` diff --git a/old_docs/API_docs_v65/methods/get_future_salts.md b/old_docs/API_docs_v65/methods/get_future_salts.md index fedf036c..4c2c9c46 100644 --- a/old_docs/API_docs_v65/methods/get_future_salts.md +++ b/old_docs/API_docs_v65/methods/get_future_salts.md @@ -1,16 +1,18 @@ --- title: get_future_salts -description: get_future_salts parameters, return type and example +description: Get future salts --- ## Method: get\_future\_salts [Back to methods index](index.md) +Get future salts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|num|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|num|[int](../types/int.md) | Yes|How many salts should be fetched| ### Return type: [FutureSalts](../types/FutureSalts.md) @@ -22,16 +24,18 @@ description: get_future_salts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $FutureSalts = $MadelineProto->get_future_salts(['num' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/help_getAppChangelog.md b/old_docs/API_docs_v65/methods/help_getAppChangelog.md index 59916787..f09a7a0d 100644 --- a/old_docs/API_docs_v65/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v65/methods/help_getAppChangelog.md @@ -22,13 +22,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/help_getAppUpdate.md b/old_docs/API_docs_v65/methods/help_getAppUpdate.md index 89ff22c3..0e227d24 100644 --- a/old_docs/API_docs_v65/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v65/methods/help_getAppUpdate.md @@ -17,13 +17,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); ``` diff --git a/old_docs/API_docs_v65/methods/help_getConfig.md b/old_docs/API_docs_v65/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v65/methods/help_getConfig.md +++ b/old_docs/API_docs_v65/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v65/methods/help_getInviteText.md b/old_docs/API_docs_v65/methods/help_getInviteText.md index 6d2674d6..a8d8992e 100644 --- a/old_docs/API_docs_v65/methods/help_getInviteText.md +++ b/old_docs/API_docs_v65/methods/help_getInviteText.md @@ -17,13 +17,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); ``` diff --git a/old_docs/API_docs_v65/methods/help_getNearestDc.md b/old_docs/API_docs_v65/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v65/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v65/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v65/methods/help_getSupport.md b/old_docs/API_docs_v65/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v65/methods/help_getSupport.md +++ b/old_docs/API_docs_v65/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v65/methods/help_getTermsOfService.md b/old_docs/API_docs_v65/methods/help_getTermsOfService.md index eb686506..a588e830 100644 --- a/old_docs/API_docs_v65/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v65/methods/help_getTermsOfService.md @@ -17,13 +17,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); ``` diff --git a/old_docs/API_docs_v65/methods/help_saveAppLog.md b/old_docs/API_docs_v65/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v65/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v65/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v65/methods/help_setBotUpdatesStatus.md index 470187a0..68c9720a 100644 --- a/old_docs/API_docs_v65/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v65/methods/help_setBotUpdatesStatus.md @@ -23,16 +23,18 @@ description: help.setBotUpdatesStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/initConnection.md b/old_docs/API_docs_v65/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v65/methods/initConnection.md +++ b/old_docs/API_docs_v65/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v65/methods/invokeAfterMsg.md b/old_docs/API_docs_v65/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v65/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v65/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v65/methods/invokeAfterMsgs.md b/old_docs/API_docs_v65/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v65/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v65/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/invokeWithLayer.md b/old_docs/API_docs_v65/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v65/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v65/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v65/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v65/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v65/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v65/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_acceptEncryption.md b/old_docs/API_docs_v65/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v65/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v65/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v65/methods/messages_addChatUser.md b/old_docs/API_docs_v65/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v65/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v65/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_checkChatInvite.md b/old_docs/API_docs_v65/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v65/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v65/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v65/methods/messages_clearRecentStickers.md index ae45b249..31941a34 100644 --- a/old_docs/API_docs_v65/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v65/methods/messages_clearRecentStickers.md @@ -22,13 +22,18 @@ description: messages.clearRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_createChat.md b/old_docs/API_docs_v65/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v65/methods/messages_createChat.md +++ b/old_docs/API_docs_v65/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_deleteChatUser.md b/old_docs/API_docs_v65/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v65/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v65/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_deleteHistory.md b/old_docs/API_docs_v65/methods/messages_deleteHistory.md index d1c3f195..01686b2b 100644 --- a/old_docs/API_docs_v65/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v65/methods/messages_deleteHistory.md @@ -11,7 +11,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |just\_clear|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_deleteMessages.md b/old_docs/API_docs_v65/methods/messages_deleteMessages.md index 5472cc72..0cc6e6ed 100644 --- a/old_docs/API_docs_v65/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v65/methods/messages_deleteMessages.md @@ -30,18 +30,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_discardEncryption.md b/old_docs/API_docs_v65/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v65/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v65/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v65/methods/messages_editChatAdmin.md b/old_docs/API_docs_v65/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v65/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v65/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_editChatPhoto.md b/old_docs/API_docs_v65/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v65/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v65/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_editChatTitle.md b/old_docs/API_docs_v65/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v65/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v65/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md index c3489f9d..289100ea 100644 --- a/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md @@ -35,18 +35,20 @@ description: messages.editInlineBotMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_editMessage.md b/old_docs/API_docs_v65/methods/messages_editMessage.md index 182fa03e..63379ed9 100644 --- a/old_docs/API_docs_v65/methods/messages_editMessage.md +++ b/old_docs/API_docs_v65/methods/messages_editMessage.md @@ -11,7 +11,7 @@ description: messages.editMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| |message|[string](../types/string.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -44,18 +44,20 @@ description: messages.editMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_exportChatInvite.md b/old_docs/API_docs_v65/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v65/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v65/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_forwardMessage.md b/old_docs/API_docs_v65/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v65/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v65/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_forwardMessages.md b/old_docs/API_docs_v65/methods/messages_forwardMessages.md index 1185259d..df361517 100644 --- a/old_docs/API_docs_v65/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v65/methods/messages_forwardMessages.md @@ -13,9 +13,9 @@ description: messages.forwardMessages parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |with\_my\_score|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -55,18 +55,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_getAllChats.md b/old_docs/API_docs_v65/methods/messages_getAllChats.md index babcf17d..59bc0add 100644 --- a/old_docs/API_docs_v65/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v65/methods/messages_getAllChats.md @@ -22,15 +22,20 @@ description: messages.getAllChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_getAllDrafts.md b/old_docs/API_docs_v65/methods/messages_getAllDrafts.md index 8550c5b8..7f0f7843 100644 --- a/old_docs/API_docs_v65/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v65/methods/messages_getAllDrafts.md @@ -17,13 +17,18 @@ description: messages.getAllDrafts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getAllStickers.md b/old_docs/API_docs_v65/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/old_docs/API_docs_v65/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v65/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v65/methods/messages_getArchivedStickers.md index cdb7f0af..8c2041a3 100644 --- a/old_docs/API_docs_v65/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v65/methods/messages_getArchivedStickers.md @@ -24,13 +24,18 @@ description: messages.getArchivedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v65/methods/messages_getAttachedStickers.md index 79d4e30d..f03f0be2 100644 --- a/old_docs/API_docs_v65/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v65/methods/messages_getAttachedStickers.md @@ -22,13 +22,18 @@ description: messages.getAttachedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md index bd916755..b9039098 100644 --- a/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md @@ -11,7 +11,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |game|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |msg\_id|[int](../types/int.md) | Yes| |data|[bytes](../types/bytes.md) | Optional| @@ -36,13 +36,18 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getChats.md b/old_docs/API_docs_v65/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v65/methods/messages_getChats.md +++ b/old_docs/API_docs_v65/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_getCommonChats.md b/old_docs/API_docs_v65/methods/messages_getCommonChats.md index d713f3a5..0df79096 100644 --- a/old_docs/API_docs_v65/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v65/methods/messages_getCommonChats.md @@ -10,7 +10,7 @@ description: messages.getCommonChats parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getCommonChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getDhConfig.md b/old_docs/API_docs_v65/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v65/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v65/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getDialogs.md b/old_docs/API_docs_v65/methods/messages_getDialogs.md index e7e81a8c..041b3efe 100644 --- a/old_docs/API_docs_v65/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v65/methods/messages_getDialogs.md @@ -13,7 +13,7 @@ description: messages.getDialogs parameters, return type and example |exclude\_pinned|[Bool](../types/Bool.md) | Optional| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v65/methods/messages_getFeaturedStickers.md index 5aad1810..51097eda 100644 --- a/old_docs/API_docs_v65/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v65/methods/messages_getFeaturedStickers.md @@ -22,13 +22,18 @@ description: messages.getFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getFullChat.md b/old_docs/API_docs_v65/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v65/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v65/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v65/methods/messages_getGameHighScores.md b/old_docs/API_docs_v65/methods/messages_getGameHighScores.md index c316a8bd..4b8b1397 100644 --- a/old_docs/API_docs_v65/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v65/methods/messages_getGameHighScores.md @@ -10,9 +10,9 @@ description: messages.getGameHighScores parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -32,16 +32,18 @@ description: messages.getGameHighScores parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getHistory.md b/old_docs/API_docs_v65/methods/messages_getHistory.md index ef31c435..87b8328d 100644 --- a/old_docs/API_docs_v65/methods/messages_getHistory.md +++ b/old_docs/API_docs_v65/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| @@ -40,13 +40,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md index 90e2a427..6d965b19 100644 --- a/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md @@ -10,8 +10,8 @@ description: messages.getInlineBotResults parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |query|[string](../types/string.md) | Yes| |offset|[string](../types/string.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md index 524e387b..9305a0f4 100644 --- a/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md @@ -11,7 +11,7 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Name | Type | Required | |----------|---------------|----------| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -31,16 +31,18 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getMaskStickers.md b/old_docs/API_docs_v65/methods/messages_getMaskStickers.md index ca964647..260cfdb7 100644 --- a/old_docs/API_docs_v65/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v65/methods/messages_getMaskStickers.md @@ -22,13 +22,18 @@ description: messages.getMaskStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getMessageEditData.md b/old_docs/API_docs_v65/methods/messages_getMessageEditData.md index df71c31a..2a90a419 100644 --- a/old_docs/API_docs_v65/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v65/methods/messages_getMessageEditData.md @@ -10,7 +10,7 @@ description: messages.getMessageEditData parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getMessageEditData parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getMessages.md b/old_docs/API_docs_v65/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v65/methods/messages_getMessages.md +++ b/old_docs/API_docs_v65/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_getMessagesViews.md b/old_docs/API_docs_v65/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v65/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v65/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md index 226948ae..eff29878 100644 --- a/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md @@ -10,7 +10,7 @@ description: messages.getPeerDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peers|Array of [InputPeer](../types/InputPeer.md) | Yes| +|peers|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md) @@ -30,15 +30,20 @@ description: messages.getPeerDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_getPeerSettings.md b/old_docs/API_docs_v65/methods/messages_getPeerSettings.md index fab25034..25906b73 100644 --- a/old_docs/API_docs_v65/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v65/methods/messages_getPeerSettings.md @@ -10,7 +10,7 @@ description: messages.getPeerSettings parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [PeerSettings](../types/PeerSettings.md) @@ -30,13 +30,18 @@ description: messages.getPeerSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v65/methods/messages_getPinnedDialogs.md index ec744f01..e5499df7 100644 --- a/old_docs/API_docs_v65/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v65/methods/messages_getPinnedDialogs.md @@ -17,13 +17,18 @@ description: messages.getPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getRecentStickers.md b/old_docs/API_docs_v65/methods/messages_getRecentStickers.md index a6ae162f..5a60d345 100644 --- a/old_docs/API_docs_v65/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v65/methods/messages_getRecentStickers.md @@ -23,13 +23,18 @@ description: messages.getRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getSavedGifs.md b/old_docs/API_docs_v65/methods/messages_getSavedGifs.md index 4986d812..bcb4590d 100644 --- a/old_docs/API_docs_v65/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v65/methods/messages_getSavedGifs.md @@ -22,13 +22,18 @@ description: messages.getSavedGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getStickerSet.md b/old_docs/API_docs_v65/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v65/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v65/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getWebPage.md b/old_docs/API_docs_v65/methods/messages_getWebPage.md index e886b020..0f09af47 100644 --- a/old_docs/API_docs_v65/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v65/methods/messages_getWebPage.md @@ -30,13 +30,18 @@ description: messages.getWebPage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v65/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v65/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v65/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_hideReportSpam.md b/old_docs/API_docs_v65/methods/messages_hideReportSpam.md index d47e8aa5..0419ec79 100644 --- a/old_docs/API_docs_v65/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v65/methods/messages_hideReportSpam.md @@ -10,7 +10,7 @@ description: messages.hideReportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.hideReportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_importChatInvite.md b/old_docs/API_docs_v65/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v65/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v65/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_installStickerSet.md b/old_docs/API_docs_v65/methods/messages_installStickerSet.md index 9336cc22..f405adce 100644 --- a/old_docs/API_docs_v65/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v65/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_migrateChat.md b/old_docs/API_docs_v65/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v65/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v65/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v65/methods/messages_readFeaturedStickers.md index 02055bf3..766ba200 100644 --- a/old_docs/API_docs_v65/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v65/methods/messages_readFeaturedStickers.md @@ -22,15 +22,20 @@ description: messages.readFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_readHistory.md b/old_docs/API_docs_v65/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v65/methods/messages_readHistory.md +++ b/old_docs/API_docs_v65/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_readMessageContents.md b/old_docs/API_docs_v65/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v65/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v65/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_receivedMessages.md b/old_docs/API_docs_v65/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v65/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v65/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_receivedQueue.md b/old_docs/API_docs_v65/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v65/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v65/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md index b4bfb84f..30e926d9 100644 --- a/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md @@ -11,7 +11,7 @@ description: messages.reorderPinnedDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |force|[Bool](../types/Bool.md) | Optional| -|order|Array of [InputPeer](../types/InputPeer.md) | Yes| +|order|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +30,20 @@ description: messages.reorderPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v65/methods/messages_reorderStickerSets.md index fa094550..0e2c121d 100644 --- a/old_docs/API_docs_v65/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v65/methods/messages_reorderStickerSets.md @@ -23,15 +23,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md index aed7a891..64ebecdd 100644 --- a/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md @@ -10,7 +10,7 @@ description: messages.reportEncryptedSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportEncryptedSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_reportSpam.md b/old_docs/API_docs_v65/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v65/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v65/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_requestEncryption.md b/old_docs/API_docs_v65/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v65/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v65/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v65/methods/messages_saveDraft.md b/old_docs/API_docs_v65/methods/messages_saveDraft.md index 7a85dfe7..754b4da2 100644 --- a/old_docs/API_docs_v65/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v65/methods/messages_saveDraft.md @@ -12,7 +12,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |message|[string](../types/string.md) | Yes| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| |parse\_mode| [string](../types/string.md) | Optional | @@ -34,15 +34,20 @@ description: messages.saveDraft parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_saveGif.md b/old_docs/API_docs_v65/methods/messages_saveGif.md index b3673c91..725bc949 100644 --- a/old_docs/API_docs_v65/methods/messages_saveGif.md +++ b/old_docs/API_docs_v65/methods/messages_saveGif.md @@ -10,7 +10,7 @@ description: messages.saveGif parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveGif parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md index bc3d1627..4a8298e2 100644 --- a/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md @@ -11,7 +11,7 @@ description: messages.saveRecentSticker parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |attached|[Bool](../types/Bool.md) | Optional| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.saveRecentSticker parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_search.md b/old_docs/API_docs_v65/methods/messages_search.md index f6aa515b..11b968bf 100644 --- a/old_docs/API_docs_v65/methods/messages_search.md +++ b/old_docs/API_docs_v65/methods/messages_search.md @@ -10,7 +10,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -42,13 +42,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_searchGifs.md b/old_docs/API_docs_v65/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/old_docs/API_docs_v65/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v65/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_searchGlobal.md b/old_docs/API_docs_v65/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v65/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v65/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_sendEncrypted.md b/old_docs/API_docs_v65/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v65/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v65/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md index 0857341e..6bfb1578 100644 --- a/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md @@ -13,7 +13,7 @@ description: messages.sendInlineBotResult parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |query\_id|[long](../types/long.md) | Yes| |id|[string](../types/string.md) | Yes| @@ -40,13 +40,18 @@ description: messages.sendInlineBotResult parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_sendMedia.md b/old_docs/API_docs_v65/methods/messages_sendMedia.md index 8c6f7f7f..1530451b 100644 --- a/old_docs/API_docs_v65/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v65/methods/messages_sendMedia.md @@ -13,9 +13,9 @@ description: messages.sendMedia parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -56,16 +56,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_sendMessage.md b/old_docs/API_docs_v65/methods/messages_sendMessage.md index bec95b8c..49ace99c 100644 --- a/old_docs/API_docs_v65/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v65/methods/messages_sendMessage.md @@ -14,7 +14,7 @@ description: messages.sendMessage parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -50,6 +50,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -57,18 +58,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$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], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md index 2901a558..0282168b 100644 --- a/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md @@ -33,16 +33,18 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md index 5666e9ff..4aba8ca3 100644 --- a/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md @@ -31,16 +31,18 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md index 95376b64..5dcfe12e 100644 --- a/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md @@ -31,18 +31,20 @@ description: messages.setBotShippingResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_setGameScore.md b/old_docs/API_docs_v65/methods/messages_setGameScore.md index 615aa87b..61dfe579 100644 --- a/old_docs/API_docs_v65/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v65/methods/messages_setGameScore.md @@ -12,9 +12,9 @@ description: messages.setGameScore parameters, return type and example |----------|---------------|----------| |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -35,16 +35,18 @@ description: messages.setGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md index 8b49c4c7..c38b8c2e 100644 --- a/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md @@ -45,18 +45,20 @@ description: messages.setInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md index b5fc27d5..9fadc31e 100644 --- a/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md @@ -13,7 +13,7 @@ description: messages.setInlineGameScore parameters, return type and example |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: messages.setInlineGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_setTyping.md b/old_docs/API_docs_v65/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v65/methods/messages_setTyping.md +++ b/old_docs/API_docs_v65/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_startBot.md b/old_docs/API_docs_v65/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v65/methods/messages_startBot.md +++ b/old_docs/API_docs_v65/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md index 535a0fa1..7c5bfa9f 100644 --- a/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md @@ -11,7 +11,7 @@ description: messages.toggleDialogPin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |pinned|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: messages.toggleDialogPin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v65/methods/payments_clearSavedInfo.md b/old_docs/API_docs_v65/methods/payments_clearSavedInfo.md index fb9bae07..dc762198 100644 --- a/old_docs/API_docs_v65/methods/payments_clearSavedInfo.md +++ b/old_docs/API_docs_v65/methods/payments_clearSavedInfo.md @@ -23,13 +23,18 @@ description: payments.clearSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); ``` diff --git a/old_docs/API_docs_v65/methods/payments_getPaymentForm.md b/old_docs/API_docs_v65/methods/payments_getPaymentForm.md index 141c47f2..ee269741 100644 --- a/old_docs/API_docs_v65/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v65/methods/payments_getPaymentForm.md @@ -29,13 +29,18 @@ description: payments.getPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md index f6aa1ab6..e46563d0 100644 --- a/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md @@ -29,13 +29,18 @@ description: payments.getPaymentReceipt parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/payments_getSavedInfo.md b/old_docs/API_docs_v65/methods/payments_getSavedInfo.md index 4104679a..ae1fcf33 100644 --- a/old_docs/API_docs_v65/methods/payments_getSavedInfo.md +++ b/old_docs/API_docs_v65/methods/payments_getSavedInfo.md @@ -17,13 +17,18 @@ description: payments.getSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); ``` diff --git a/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md index 180a7279..08505110 100644 --- a/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md @@ -32,13 +32,18 @@ description: payments.sendPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); ``` diff --git a/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md index acfd1852..ebfc5c22 100644 --- a/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md @@ -31,13 +31,18 @@ description: payments.validateRequestedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); ``` diff --git a/old_docs/API_docs_v65/methods/phone_acceptCall.md b/old_docs/API_docs_v65/methods/phone_acceptCall.md index 79266f27..49029aed 100644 --- a/old_docs/API_docs_v65/methods/phone_acceptCall.md +++ b/old_docs/API_docs_v65/methods/phone_acceptCall.md @@ -1,12 +1,12 @@ --- title: phone.acceptCall -description: phone.acceptCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.acceptCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v65/methods/phone_confirmCall.md b/old_docs/API_docs_v65/methods/phone_confirmCall.md index 69e90751..5c7bb15c 100644 --- a/old_docs/API_docs_v65/methods/phone_confirmCall.md +++ b/old_docs/API_docs_v65/methods/phone_confirmCall.md @@ -1,12 +1,12 @@ --- title: phone.confirmCall -description: phone.confirmCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.confirmCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v65/methods/phone_discardCall.md b/old_docs/API_docs_v65/methods/phone_discardCall.md index c300e61c..c01d1014 100644 --- a/old_docs/API_docs_v65/methods/phone_discardCall.md +++ b/old_docs/API_docs_v65/methods/phone_discardCall.md @@ -1,12 +1,12 @@ --- title: phone.discardCall -description: phone.discardCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.discardCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v65/methods/phone_getCallConfig.md b/old_docs/API_docs_v65/methods/phone_getCallConfig.md index 3f18d7ca..636ae946 100644 --- a/old_docs/API_docs_v65/methods/phone_getCallConfig.md +++ b/old_docs/API_docs_v65/methods/phone_getCallConfig.md @@ -17,13 +17,18 @@ description: phone.getCallConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); ``` diff --git a/old_docs/API_docs_v65/methods/phone_receivedCall.md b/old_docs/API_docs_v65/methods/phone_receivedCall.md index 8ca6a4e1..00b51aed 100644 --- a/old_docs/API_docs_v65/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v65/methods/phone_receivedCall.md @@ -30,13 +30,18 @@ description: phone.receivedCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); ``` diff --git a/old_docs/API_docs_v65/methods/phone_requestCall.md b/old_docs/API_docs_v65/methods/phone_requestCall.md index c8ae48a9..be45437e 100644 --- a/old_docs/API_docs_v65/methods/phone_requestCall.md +++ b/old_docs/API_docs_v65/methods/phone_requestCall.md @@ -1,12 +1,12 @@ --- title: phone.requestCall -description: phone.requestCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.requestCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v65/methods/phone_saveCallDebug.md b/old_docs/API_docs_v65/methods/phone_saveCallDebug.md index ea3fa2d7..90135792 100644 --- a/old_docs/API_docs_v65/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v65/methods/phone_saveCallDebug.md @@ -31,13 +31,18 @@ description: phone.saveCallDebug parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v65/methods/phone_setCallRating.md b/old_docs/API_docs_v65/methods/phone_setCallRating.md index c6e5d7fa..21570b80 100644 --- a/old_docs/API_docs_v65/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v65/methods/phone_setCallRating.md @@ -31,13 +31,18 @@ description: phone.setCallRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/photos_deletePhotos.md b/old_docs/API_docs_v65/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v65/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v65/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/methods/photos_getUserPhotos.md b/old_docs/API_docs_v65/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v65/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v65/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v65/methods/photos_updateProfilePhoto.md index cc79a625..1ed6fb24 100644 --- a/old_docs/API_docs_v65/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v65/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| ### Return type: [UserProfilePhoto](../types/UserProfilePhoto.md) @@ -22,13 +22,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); ``` diff --git a/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md index 075dab4b..4b20315b 100644 --- a/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| ### Return type: [photos\_Photo](../types/photos_Photo.md) @@ -32,13 +32,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); ``` diff --git a/old_docs/API_docs_v65/methods/ping.md b/old_docs/API_docs_v65/methods/ping.md index 7c20ca86..18f5a2bd 100644 --- a/old_docs/API_docs_v65/methods/ping.md +++ b/old_docs/API_docs_v65/methods/ping.md @@ -1,16 +1,18 @@ --- title: ping -description: ping parameters, return type and example +description: pings the server --- ## Method: ping [Back to methods index](index.md) +pings the server + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ping\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ping\_id|[long](../types/long.md) | Yes|Ping ID| ### Return type: [Pong](../types/Pong.md) @@ -22,16 +24,18 @@ description: ping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Pong = $MadelineProto->ping(['ping_id' => long, ]); ``` diff --git a/old_docs/API_docs_v65/methods/ping_delay_disconnect.md b/old_docs/API_docs_v65/methods/ping_delay_disconnect.md index e8b62005..709f8026 100644 --- a/old_docs/API_docs_v65/methods/ping_delay_disconnect.md +++ b/old_docs/API_docs_v65/methods/ping_delay_disconnect.md @@ -1,17 +1,19 @@ --- title: ping_delay_disconnect -description: ping_delay_disconnect parameters, return type and example +description: Pings the server and causes disconection if the same method is not called within ping_disconnect_delay --- ## Method: ping\_delay\_disconnect [Back to methods index](index.md) +Pings the server and causes disconection if the same method is not called within ping_disconnect_delay + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ping\_id|[long](../types/long.md) | Yes| -|disconnect\_delay|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ping\_id|[long](../types/long.md) | Yes|Ping ID| +|disconnect\_delay|[int](../types/int.md) | Yes|Disconection delay| ### Return type: [Pong](../types/Pong.md) @@ -23,16 +25,18 @@ description: ping_delay_disconnect parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Pong = $MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/req_DH_params.md b/old_docs/API_docs_v65/methods/req_DH_params.md index 697540d8..b0cc4418 100644 --- a/old_docs/API_docs_v65/methods/req_DH_params.md +++ b/old_docs/API_docs_v65/methods/req_DH_params.md @@ -1,21 +1,23 @@ --- title: req_DH_params -description: req_DH_params parameters, return type and example +description: Requests Diffie-hellman parameters for key exchange --- ## Method: req\_DH\_params [Back to methods index](index.md) +Requests Diffie-hellman parameters for key exchange + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| -|server\_nonce|[int128](../types/int128.md) | Yes| -|p|[string](../types/string.md) | Yes| -|q|[string](../types/string.md) | Yes| -|public\_key\_fingerprint|[long](../types/long.md) | Yes| -|encrypted\_data|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| +|server\_nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security, given by server| +|p|[string](../types/string.md) | Yes|| +|q|[string](../types/string.md) | Yes|| +|public\_key\_fingerprint|[long](../types/long.md) | Yes|Server RSA fingerprint| +|encrypted\_data|[string](../types/string.md) | Yes|| ### Return type: [Server\_DH\_Params](../types/Server_DH_Params.md) @@ -27,16 +29,18 @@ description: req_DH_params parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Server_DH_Params = $MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => 'string', 'q' => 'string', 'public_key_fingerprint' => long, 'encrypted_data' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/req_pq.md b/old_docs/API_docs_v65/methods/req_pq.md index 7a583643..39a1715b 100644 --- a/old_docs/API_docs_v65/methods/req_pq.md +++ b/old_docs/API_docs_v65/methods/req_pq.md @@ -1,16 +1,18 @@ --- title: req_pq -description: req_pq parameters, return type and example +description: Requests PQ for factorization --- ## Method: req\_pq [Back to methods index](index.md) +Requests PQ for factorization + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| ### Return type: [ResPQ](../types/ResPQ.md) @@ -22,16 +24,18 @@ description: req_pq parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ResPQ = $MadelineProto->req_pq(['nonce' => int128, ]); ``` diff --git a/old_docs/API_docs_v65/methods/rpc_drop_answer.md b/old_docs/API_docs_v65/methods/rpc_drop_answer.md index e15ddca9..225a43b5 100644 --- a/old_docs/API_docs_v65/methods/rpc_drop_answer.md +++ b/old_docs/API_docs_v65/methods/rpc_drop_answer.md @@ -1,16 +1,18 @@ --- title: rpc_drop_answer -description: rpc_drop_answer parameters, return type and example +description: Do not send answer to provided request --- ## Method: rpc\_drop\_answer [Back to methods index](index.md) +Do not send answer to provided request + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|req\_msg\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|req\_msg\_id|[long](../types/long.md) | Yes|The message ID of the request| ### Return type: [RpcDropAnswer](../types/RpcDropAnswer.md) @@ -22,16 +24,18 @@ description: rpc_drop_answer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $RpcDropAnswer = $MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]); ``` diff --git a/old_docs/API_docs_v65/methods/set_client_DH_params.md b/old_docs/API_docs_v65/methods/set_client_DH_params.md index 8721ed40..4af21a12 100644 --- a/old_docs/API_docs_v65/methods/set_client_DH_params.md +++ b/old_docs/API_docs_v65/methods/set_client_DH_params.md @@ -1,18 +1,20 @@ --- title: set_client_DH_params -description: set_client_DH_params parameters, return type and example +description: Sets client diffie-hellman parameters --- ## Method: set\_client\_DH\_params [Back to methods index](index.md) +Sets client diffie-hellman parameters + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| -|server\_nonce|[int128](../types/int128.md) | Yes| -|encrypted\_data|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| +|server\_nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security, given by server| +|encrypted\_data|[string](../types/string.md) | Yes|| ### Return type: [Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) @@ -24,16 +26,18 @@ description: set_client_DH_params parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Set_client_DH_params_answer = $MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => 'string', ]); ``` diff --git a/old_docs/API_docs_v65/methods/updates_getChannelDifference.md b/old_docs/API_docs_v65/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v65/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v65/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v65/methods/updates_getDifference.md b/old_docs/API_docs_v65/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v65/methods/updates_getDifference.md +++ b/old_docs/API_docs_v65/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v65/methods/updates_getState.md b/old_docs/API_docs_v65/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v65/methods/updates_getState.md +++ b/old_docs/API_docs_v65/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v65/methods/upload_getFile.md b/old_docs/API_docs_v65/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v65/methods/upload_getFile.md +++ b/old_docs/API_docs_v65/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v65/methods/upload_getWebFile.md b/old_docs/API_docs_v65/methods/upload_getWebFile.md index 8744dac5..ca200db1 100644 --- a/old_docs/API_docs_v65/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v65/methods/upload_getWebFile.md @@ -31,13 +31,18 @@ description: upload.getWebFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v65/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v65/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v65/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v65/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v65/methods/upload_saveFilePart.md b/old_docs/API_docs_v65/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v65/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v65/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v65/methods/users_getFullUser.md b/old_docs/API_docs_v65/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v65/methods/users_getFullUser.md +++ b/old_docs/API_docs_v65/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v65/methods/users_getUsers.md b/old_docs/API_docs_v65/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v65/methods/users_getUsers.md +++ b/old_docs/API_docs_v65/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v65/types/Chat.md b/old_docs/API_docs_v65/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v65/types/Chat.md +++ b/old_docs/API_docs_v65/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v65/types/InputChannel.md b/old_docs/API_docs_v65/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v65/types/InputChannel.md +++ b/old_docs/API_docs_v65/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v65/types/InputDocument.md b/old_docs/API_docs_v65/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v65/types/InputDocument.md +++ b/old_docs/API_docs_v65/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v65/types/InputEncryptedChat.md b/old_docs/API_docs_v65/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v65/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v65/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v65/types/InputEncryptedFile.md b/old_docs/API_docs_v65/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v65/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v65/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v65/types/InputFile.md b/old_docs/API_docs_v65/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v65/types/InputFile.md +++ b/old_docs/API_docs_v65/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v65/types/InputMedia.md b/old_docs/API_docs_v65/types/InputMedia.md index 823d30ed..eef8d8f7 100644 --- a/old_docs/API_docs_v65/types/InputMedia.md +++ b/old_docs/API_docs_v65/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v65/types/InputPeer.md b/old_docs/API_docs_v65/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v65/types/InputPeer.md +++ b/old_docs/API_docs_v65/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v65/types/InputPhoto.md b/old_docs/API_docs_v65/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v65/types/InputPhoto.md +++ b/old_docs/API_docs_v65/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v65/types/InputUser.md b/old_docs/API_docs_v65/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v65/types/InputUser.md +++ b/old_docs/API_docs_v65/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v65/types/Peer.md b/old_docs/API_docs_v65/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v65/types/Peer.md +++ b/old_docs/API_docs_v65/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v65/types/PhoneCall.md b/old_docs/API_docs_v65/types/PhoneCall.md index e70eda8e..1a91a72e 100644 --- a/old_docs/API_docs_v65/types/PhoneCall.md +++ b/old_docs/API_docs_v65/types/PhoneCall.md @@ -9,7 +9,7 @@ description: constructors and methods of type PhoneCall 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://daniil.it/MadelineProto#calls) for an easy installation script. +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. @@ -83,8 +83,8 @@ Call states (these constants are incrementing integers, thus can be compared lik * `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://daniil.it/MadelineProto/API_docs/types/PhoneCallProtocol.html) object -* `getCallID()` - Gets the call ID, as an [InputPhoneCall](https://daniil.it/MadelineProto/API_docs/types/InputPhoneCall.html) object +* `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 @@ -102,7 +102,7 @@ Call states (these constants are incrementing integers, thus can be compared lik Accepts two optional parameters: -`$reason` - can be a [PhoneCallDiscardReason](https://daniil.it/MadelineProto/API_docs/types/PhoneCallDiscardReason.html) object (defaults to a [phoneCallDiscardReasonDisconnect](https://daniil.it/MadelineProto/API_docs/constructors/phoneCallDiscardReasonDisconnect.html) object). +`$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.` diff --git a/old_docs/API_docs_v65/types/User.md b/old_docs/API_docs_v65/types/User.md index d696a931..f748d04a 100644 --- a/old_docs/API_docs_v65/types/User.md +++ b/old_docs/API_docs_v65/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v66/constructors/account_authorizations.md b/old_docs/API_docs_v66/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v66/constructors/account_authorizations.md +++ b/old_docs/API_docs_v66/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/account_privacyRules.md b/old_docs/API_docs_v66/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v66/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v66/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/botInfo.md b/old_docs/API_docs_v66/constructors/botInfo.md index bee4a540..25a27913 100644 --- a/old_docs/API_docs_v66/constructors/botInfo.md +++ b/old_docs/API_docs_v66/constructors/botInfo.md @@ -23,7 +23,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/botInlineMessageText.md b/old_docs/API_docs_v66/constructors/botInlineMessageText.md index dc00808b..feb5e9d0 100644 --- a/old_docs/API_docs_v66/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v66/constructors/botInlineMessageText.md @@ -24,7 +24,7 @@ description: botInlineMessageText attributes, type and example ### Example: ``` -$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/cdnConfig.md b/old_docs/API_docs_v66/constructors/cdnConfig.md index 28e814e5..2bf5d200 100644 --- a/old_docs/API_docs_v66/constructors/cdnConfig.md +++ b/old_docs/API_docs_v66/constructors/cdnConfig.md @@ -21,7 +21,7 @@ description: cdnConfig attributes, type and example ### Example: ``` -$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey]]; +$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey, CdnPublicKey]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/channelFull.md b/old_docs/API_docs_v66/constructors/channelFull.md index d51c5e6d..d16eda19 100644 --- a/old_docs/API_docs_v66/constructors/channelFull.md +++ b/old_docs/API_docs_v66/constructors/channelFull.md @@ -37,7 +37,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_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]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/channelMessagesFilter.md b/old_docs/API_docs_v66/constructors/channelMessagesFilter.md index 0a731ce9..ad9a592e 100644 --- a/old_docs/API_docs_v66/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v66/constructors/channelMessagesFilter.md @@ -22,7 +22,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/channels_channelParticipant.md b/old_docs/API_docs_v66/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v66/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v66/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/channels_channelParticipants.md b/old_docs/API_docs_v66/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v66/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v66/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/chatFull.md b/old_docs/API_docs_v66/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v66/constructors/chatFull.md +++ b/old_docs/API_docs_v66/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/chatInvite.md b/old_docs/API_docs_v66/constructors/chatInvite.md index e7000f7b..e9087e0d 100644 --- a/old_docs/API_docs_v66/constructors/chatInvite.md +++ b/old_docs/API_docs_v66/constructors/chatInvite.md @@ -28,7 +28,7 @@ description: chatInvite attributes, type and example ### Example: ``` -$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [User]]; +$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: diff --git a/old_docs/API_docs_v66/constructors/chatParticipants.md b/old_docs/API_docs_v66/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v66/constructors/chatParticipants.md +++ b/old_docs/API_docs_v66/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/config.md b/old_docs/API_docs_v66/constructors/config.md index 1ce585f5..3948fa08 100644 --- a/old_docs/API_docs_v66/constructors/config.md +++ b/old_docs/API_docs_v66/constructors/config.md @@ -50,7 +50,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => 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', 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => 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', 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/contacts_blocked.md b/old_docs/API_docs_v66/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v66/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v66/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v66/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v66/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v66/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/contacts_contacts.md b/old_docs/API_docs_v66/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v66/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v66/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/contacts_found.md b/old_docs/API_docs_v66/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v66/constructors/contacts_found.md +++ b/old_docs/API_docs_v66/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/contacts_importedContacts.md b/old_docs/API_docs_v66/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v66/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v66/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v66/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v66/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v66/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/contacts_topPeers.md b/old_docs/API_docs_v66/constructors/contacts_topPeers.md index 17551f5d..07623018 100644 --- a/old_docs/API_docs_v66/constructors/contacts_topPeers.md +++ b/old_docs/API_docs_v66/constructors/contacts_topPeers.md @@ -23,7 +23,7 @@ description: contacts_topPeers attributes, type and example ### Example: ``` -$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers], 'chats' => [Chat], 'users' => [User]]; +$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers, TopPeerCategoryPeers], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/document.md b/old_docs/API_docs_v66/constructors/document.md index 8c0883bb..55d4c017 100644 --- a/old_docs/API_docs_v66/constructors/document.md +++ b/old_docs/API_docs_v66/constructors/document.md @@ -29,7 +29,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/documentAttributeAudio.md b/old_docs/API_docs_v66/constructors/documentAttributeAudio.md index 4d393890..ceb02cba 100644 --- a/old_docs/API_docs_v66/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v66/constructors/documentAttributeAudio.md @@ -12,7 +12,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| |voice|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Optional| |performer|[string](../types/string.md) | Optional| |waveform|[bytes](../types/bytes.md) | Optional| diff --git a/old_docs/API_docs_v66/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v66/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v66/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v66/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v66/constructors/documentAttributeVideo.md b/old_docs/API_docs_v66/constructors/documentAttributeVideo.md index 38ce9302..5c367fc9 100644 --- a/old_docs/API_docs_v66/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v66/constructors/documentAttributeVideo.md @@ -12,9 +12,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| |round\_message|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v66/constructors/draftMessage.md b/old_docs/API_docs_v66/constructors/draftMessage.md index 13277194..644adc43 100644 --- a/old_docs/API_docs_v66/constructors/draftMessage.md +++ b/old_docs/API_docs_v66/constructors/draftMessage.md @@ -25,7 +25,7 @@ description: draftMessage attributes, type and example ### Example: ``` -$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity], 'date' => int]; +$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'date' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/future_salts.md b/old_docs/API_docs_v66/constructors/future_salts.md index 4fb8d0f3..a0e695cc 100644 --- a/old_docs/API_docs_v66/constructors/future_salts.md +++ b/old_docs/API_docs_v66/constructors/future_salts.md @@ -23,7 +23,7 @@ description: future_salts attributes, type and example ### Example: ``` -$future_salts = ['_' => 'future_salts', 'req_msg_id' => long, 'now' => int, 'salts' => [future_salt]]; +$future_salts = ['_' => 'future_salts', 'req_msg_id' => long, 'now' => int, 'salts' => [future_salt, future_salt]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v66/constructors/inputBotInlineMessageText.md index 677e5d8c..ed3ddd1b 100644 --- a/old_docs/API_docs_v66/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v66/constructors/inputBotInlineMessageText.md @@ -24,7 +24,7 @@ description: inputBotInlineMessageText attributes, type and example ### Example: ``` -$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/inputBotInlineResultDocument.md b/old_docs/API_docs_v66/constructors/inputBotInlineResultDocument.md index 2315623b..f27421f9 100644 --- a/old_docs/API_docs_v66/constructors/inputBotInlineResultDocument.md +++ b/old_docs/API_docs_v66/constructors/inputBotInlineResultDocument.md @@ -15,7 +15,7 @@ description: inputBotInlineResultDocument attributes, type and example |type|[string](../types/string.md) | Yes| |title|[string](../types/string.md) | Optional| |description|[string](../types/string.md) | Optional| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v66/constructors/inputBotInlineResultPhoto.md b/old_docs/API_docs_v66/constructors/inputBotInlineResultPhoto.md index d39bd108..9628b4e5 100644 --- a/old_docs/API_docs_v66/constructors/inputBotInlineResultPhoto.md +++ b/old_docs/API_docs_v66/constructors/inputBotInlineResultPhoto.md @@ -13,7 +13,7 @@ description: inputBotInlineResultPhoto attributes, type and example |----------|---------------|----------| |id|[string](../types/string.md) | Yes| |type|[string](../types/string.md) | Yes| -|photo|[InputPhoto](../types/InputPhoto.md) | Optional| +|photo|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v66/constructors/inputChatPhoto.md b/old_docs/API_docs_v66/constructors/inputChatPhoto.md index e787f342..ae979308 100644 --- a/old_docs/API_docs_v66/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v66/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v66/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v66/constructors/inputChatUploadedPhoto.md index 78c28fdc..e9d2f354 100644 --- a/old_docs/API_docs_v66/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v66/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| diff --git a/old_docs/API_docs_v66/constructors/inputGameShortName.md b/old_docs/API_docs_v66/constructors/inputGameShortName.md index 64c55c18..0261912a 100644 --- a/old_docs/API_docs_v66/constructors/inputGameShortName.md +++ b/old_docs/API_docs_v66/constructors/inputGameShortName.md @@ -11,7 +11,7 @@ description: inputGameShortName attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|bot\_id|[InputUser](../types/InputUser.md) | Optional| +|bot\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |short\_name|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v66/constructors/inputMediaDocument.md b/old_docs/API_docs_v66/constructors/inputMediaDocument.md index 88fed980..66d0baba 100644 --- a/old_docs/API_docs_v66/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v66/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v66/constructors/inputMediaPhoto.md b/old_docs/API_docs_v66/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v66/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v66/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v66/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v66/constructors/inputMediaUploadedDocument.md index a2520998..71e6ea97 100644 --- a/old_docs/API_docs_v66/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v66/constructors/inputMediaUploadedDocument.md @@ -11,11 +11,11 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| @@ -25,7 +25,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument]]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v66/constructors/inputMediaUploadedPhoto.md index ac5480e1..193591c7 100644 --- a/old_docs/API_docs_v66/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v66/constructors/inputMediaUploadedPhoto.md @@ -11,9 +11,9 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| @@ -23,7 +23,7 @@ description: inputMediaUploadedPhoto attributes, type and example ### Example: ``` -$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument]]; +$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v66/constructors/inputMediaUploadedThumbDocument.md index 06ef970d..605ffe2c 100644 --- a/old_docs/API_docs_v66/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v66/constructors/inputMediaUploadedThumbDocument.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| @@ -26,7 +26,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument]]; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/inputNotifyPeer.md b/old_docs/API_docs_v66/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v66/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v66/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v66/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v66/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v66/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v66/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v66/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v66/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v66/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/inputStickeredMediaDocument.md b/old_docs/API_docs_v66/constructors/inputStickeredMediaDocument.md index ca9921e7..c281b7e5 100644 --- a/old_docs/API_docs_v66/constructors/inputStickeredMediaDocument.md +++ b/old_docs/API_docs_v66/constructors/inputStickeredMediaDocument.md @@ -11,7 +11,7 @@ description: inputStickeredMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v66/constructors/inputStickeredMediaPhoto.md b/old_docs/API_docs_v66/constructors/inputStickeredMediaPhoto.md index ac0428e1..042044b0 100644 --- a/old_docs/API_docs_v66/constructors/inputStickeredMediaPhoto.md +++ b/old_docs/API_docs_v66/constructors/inputStickeredMediaPhoto.md @@ -11,7 +11,7 @@ description: inputStickeredMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v66/constructors/inputWebDocument.md b/old_docs/API_docs_v66/constructors/inputWebDocument.md index 81f2707a..dd9a24ff 100644 --- a/old_docs/API_docs_v66/constructors/inputWebDocument.md +++ b/old_docs/API_docs_v66/constructors/inputWebDocument.md @@ -24,7 +24,7 @@ description: inputWebDocument attributes, type and example ### Example: ``` -$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/invoice.md b/old_docs/API_docs_v66/constructors/invoice.md index ddccf1b6..80a56a08 100644 --- a/old_docs/API_docs_v66/constructors/invoice.md +++ b/old_docs/API_docs_v66/constructors/invoice.md @@ -28,7 +28,7 @@ description: invoice attributes, type and example ### Example: ``` -$invoice = ['_' => 'invoice', 'test' => Bool, 'name_requested' => Bool, 'phone_requested' => Bool, 'email_requested' => Bool, 'shipping_address_requested' => Bool, 'flexible' => Bool, 'currency' => 'string', 'prices' => [LabeledPrice]]; +$invoice = ['_' => 'invoice', 'test' => Bool, 'name_requested' => Bool, 'phone_requested' => Bool, 'email_requested' => Bool, 'shipping_address_requested' => Bool, 'flexible' => Bool, 'currency' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/keyboardButtonRow.md b/old_docs/API_docs_v66/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v66/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v66/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/message.md b/old_docs/API_docs_v66/constructors/message.md index 67b2cd79..dc324ff1 100644 --- a/old_docs/API_docs_v66/constructors/message.md +++ b/old_docs/API_docs_v66/constructors/message.md @@ -38,7 +38,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; +$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v66/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v66/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v66/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messageActionChatCreate.md b/old_docs/API_docs_v66/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v66/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v66/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_allStickers.md b/old_docs/API_docs_v66/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/old_docs/API_docs_v66/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v66/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_archivedStickers.md b/old_docs/API_docs_v66/constructors/messages_archivedStickers.md index 7af238d4..c9675b57 100644 --- a/old_docs/API_docs_v66/constructors/messages_archivedStickers.md +++ b/old_docs/API_docs_v66/constructors/messages_archivedStickers.md @@ -22,7 +22,7 @@ description: messages_archivedStickers attributes, type and example ### Example: ``` -$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered]]; +$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_botResults.md b/old_docs/API_docs_v66/constructors/messages_botResults.md index 2f53b450..13edec1a 100644 --- a/old_docs/API_docs_v66/constructors/messages_botResults.md +++ b/old_docs/API_docs_v66/constructors/messages_botResults.md @@ -26,7 +26,7 @@ description: messages_botResults attributes, type and example ### Example: ``` -$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult], 'cache_time' => int]; +$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult, BotInlineResult], 'cache_time' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_channelMessages.md b/old_docs/API_docs_v66/constructors/messages_channelMessages.md index 8ec11b2d..358c0c70 100644 --- a/old_docs/API_docs_v66/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v66/constructors/messages_channelMessages.md @@ -25,7 +25,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_chatFull.md b/old_docs/API_docs_v66/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v66/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v66/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_chats.md b/old_docs/API_docs_v66/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v66/constructors/messages_chats.md +++ b/old_docs/API_docs_v66/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_chatsSlice.md b/old_docs/API_docs_v66/constructors/messages_chatsSlice.md index 4e3e0e77..614c577b 100644 --- a/old_docs/API_docs_v66/constructors/messages_chatsSlice.md +++ b/old_docs/API_docs_v66/constructors/messages_chatsSlice.md @@ -22,7 +22,7 @@ description: messages_chatsSlice attributes, type and example ### Example: ``` -$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat]]; +$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_dialogs.md b/old_docs/API_docs_v66/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v66/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v66/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v66/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v66/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v66/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v66/constructors/messages_featuredStickers.md b/old_docs/API_docs_v66/constructors/messages_featuredStickers.md index dac1fd91..0fc54db1 100644 --- a/old_docs/API_docs_v66/constructors/messages_featuredStickers.md +++ b/old_docs/API_docs_v66/constructors/messages_featuredStickers.md @@ -23,7 +23,7 @@ description: messages_featuredStickers attributes, type and example ### Example: ``` -$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered], 'unread' => [long]]; +$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered, StickerSetCovered], 'unread' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_foundGifs.md b/old_docs/API_docs_v66/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/old_docs/API_docs_v66/constructors/messages_foundGifs.md +++ b/old_docs/API_docs_v66/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_highScores.md b/old_docs/API_docs_v66/constructors/messages_highScores.md index 26eab658..df592f06 100644 --- a/old_docs/API_docs_v66/constructors/messages_highScores.md +++ b/old_docs/API_docs_v66/constructors/messages_highScores.md @@ -22,7 +22,7 @@ description: messages_highScores attributes, type and example ### Example: ``` -$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore], 'users' => [User]]; +$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore, HighScore], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_messages.md b/old_docs/API_docs_v66/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v66/constructors/messages_messages.md +++ b/old_docs/API_docs_v66/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_messagesSlice.md b/old_docs/API_docs_v66/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v66/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v66/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_peerDialogs.md b/old_docs/API_docs_v66/constructors/messages_peerDialogs.md index bec6c88c..5d25b545 100644 --- a/old_docs/API_docs_v66/constructors/messages_peerDialogs.md +++ b/old_docs/API_docs_v66/constructors/messages_peerDialogs.md @@ -25,7 +25,7 @@ description: messages_peerDialogs attributes, type and example ### Example: ``` -$messages_peerDialogs = ['_' => 'messages.peerDialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v66/constructors/messages_recentStickers.md b/old_docs/API_docs_v66/constructors/messages_recentStickers.md index be5e69a0..a8a53ffe 100644 --- a/old_docs/API_docs_v66/constructors/messages_recentStickers.md +++ b/old_docs/API_docs_v66/constructors/messages_recentStickers.md @@ -22,7 +22,7 @@ description: messages_recentStickers attributes, type and example ### Example: ``` -$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document]]; +$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_savedGifs.md b/old_docs/API_docs_v66/constructors/messages_savedGifs.md index 7e2a00eb..b4ff040d 100644 --- a/old_docs/API_docs_v66/constructors/messages_savedGifs.md +++ b/old_docs/API_docs_v66/constructors/messages_savedGifs.md @@ -22,7 +22,7 @@ description: messages_savedGifs attributes, type and example ### Example: ``` -$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document]]; +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_stickerSet.md b/old_docs/API_docs_v66/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v66/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v66/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_stickerSetInstallResultArchive.md b/old_docs/API_docs_v66/constructors/messages_stickerSetInstallResultArchive.md index f3e510bb..5b7fb05f 100644 --- a/old_docs/API_docs_v66/constructors/messages_stickerSetInstallResultArchive.md +++ b/old_docs/API_docs_v66/constructors/messages_stickerSetInstallResultArchive.md @@ -21,7 +21,7 @@ description: messages_stickerSetInstallResultArchive attributes, type and exampl ### Example: ``` -$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered]]; +$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/messages_stickers.md b/old_docs/API_docs_v66/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v66/constructors/messages_stickers.md +++ b/old_docs/API_docs_v66/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/msg_resend_req.md b/old_docs/API_docs_v66/constructors/msg_resend_req.md index 6a584a1a..13e6669d 100644 --- a/old_docs/API_docs_v66/constructors/msg_resend_req.md +++ b/old_docs/API_docs_v66/constructors/msg_resend_req.md @@ -21,7 +21,7 @@ description: msg_resend_req attributes, type and example ### Example: ``` -$msg_resend_req = ['_' => 'msg_resend_req', 'msg_ids' => [long]]; +$msg_resend_req = ['_' => 'msg_resend_req', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/msgs_ack.md b/old_docs/API_docs_v66/constructors/msgs_ack.md index 6d945079..353148ea 100644 --- a/old_docs/API_docs_v66/constructors/msgs_ack.md +++ b/old_docs/API_docs_v66/constructors/msgs_ack.md @@ -21,7 +21,7 @@ description: msgs_ack attributes, type and example ### Example: ``` -$msgs_ack = ['_' => 'msgs_ack', 'msg_ids' => [long]]; +$msgs_ack = ['_' => 'msgs_ack', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/msgs_all_info.md b/old_docs/API_docs_v66/constructors/msgs_all_info.md index 632ef421..dd630f00 100644 --- a/old_docs/API_docs_v66/constructors/msgs_all_info.md +++ b/old_docs/API_docs_v66/constructors/msgs_all_info.md @@ -22,7 +22,7 @@ description: msgs_all_info attributes, type and example ### Example: ``` -$msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long], 'info' => 'string']; +$msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long, long], 'info' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/msgs_state_req.md b/old_docs/API_docs_v66/constructors/msgs_state_req.md index 3aecb1ee..76f1f05c 100644 --- a/old_docs/API_docs_v66/constructors/msgs_state_req.md +++ b/old_docs/API_docs_v66/constructors/msgs_state_req.md @@ -21,7 +21,7 @@ description: msgs_state_req attributes, type and example ### Example: ``` -$msgs_state_req = ['_' => 'msgs_state_req', 'msg_ids' => [long]]; +$msgs_state_req = ['_' => 'msgs_state_req', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/pageBlockCollage.md b/old_docs/API_docs_v66/constructors/pageBlockCollage.md index 8685b250..3950e34d 100644 --- a/old_docs/API_docs_v66/constructors/pageBlockCollage.md +++ b/old_docs/API_docs_v66/constructors/pageBlockCollage.md @@ -22,7 +22,7 @@ description: pageBlockCollage attributes, type and example ### Example: ``` -$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/pageBlockEmbedPost.md b/old_docs/API_docs_v66/constructors/pageBlockEmbedPost.md index e0e955b9..e9434dfa 100644 --- a/old_docs/API_docs_v66/constructors/pageBlockEmbedPost.md +++ b/old_docs/API_docs_v66/constructors/pageBlockEmbedPost.md @@ -27,7 +27,7 @@ description: pageBlockEmbedPost attributes, type and example ### Example: ``` -$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock], 'caption' => RichText]; +$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/pageBlockList.md b/old_docs/API_docs_v66/constructors/pageBlockList.md index 6bf3c783..728c05a7 100644 --- a/old_docs/API_docs_v66/constructors/pageBlockList.md +++ b/old_docs/API_docs_v66/constructors/pageBlockList.md @@ -22,7 +22,7 @@ description: pageBlockList attributes, type and example ### Example: ``` -$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText]]; +$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/pageBlockSlideshow.md b/old_docs/API_docs_v66/constructors/pageBlockSlideshow.md index e48d51bb..0c18e64f 100644 --- a/old_docs/API_docs_v66/constructors/pageBlockSlideshow.md +++ b/old_docs/API_docs_v66/constructors/pageBlockSlideshow.md @@ -22,7 +22,7 @@ description: pageBlockSlideshow attributes, type and example ### Example: ``` -$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/pageFull.md b/old_docs/API_docs_v66/constructors/pageFull.md index 6a9bd9b5..aef5e376 100644 --- a/old_docs/API_docs_v66/constructors/pageFull.md +++ b/old_docs/API_docs_v66/constructors/pageFull.md @@ -23,7 +23,7 @@ description: pageFull attributes, type and example ### Example: ``` -$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock], 'photos' => [Photo], 'videos' => [Document]]; +$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'videos' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/pagePart.md b/old_docs/API_docs_v66/constructors/pagePart.md index 8c6dfe7c..b3e061a5 100644 --- a/old_docs/API_docs_v66/constructors/pagePart.md +++ b/old_docs/API_docs_v66/constructors/pagePart.md @@ -23,7 +23,7 @@ description: pagePart attributes, type and example ### Example: ``` -$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock], 'photos' => [Photo], 'videos' => [Document]]; +$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'videos' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/payments_paymentForm.md b/old_docs/API_docs_v66/constructors/payments_paymentForm.md index 6b468a10..982b4a13 100644 --- a/old_docs/API_docs_v66/constructors/payments_paymentForm.md +++ b/old_docs/API_docs_v66/constructors/payments_paymentForm.md @@ -31,7 +31,7 @@ description: payments_paymentForm attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v66/constructors/payments_paymentReceipt.md b/old_docs/API_docs_v66/constructors/payments_paymentReceipt.md index cb64a78a..f7c6589c 100644 --- a/old_docs/API_docs_v66/constructors/payments_paymentReceipt.md +++ b/old_docs/API_docs_v66/constructors/payments_paymentReceipt.md @@ -30,7 +30,7 @@ description: payments_paymentReceipt attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v66/constructors/payments_validatedRequestedInfo.md b/old_docs/API_docs_v66/constructors/payments_validatedRequestedInfo.md index a1d841b5..362544ca 100644 --- a/old_docs/API_docs_v66/constructors/payments_validatedRequestedInfo.md +++ b/old_docs/API_docs_v66/constructors/payments_validatedRequestedInfo.md @@ -22,7 +22,7 @@ description: payments_validatedRequestedInfo attributes, type and example ### Example: ``` -$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption]]; +$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption, ShippingOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/phoneCall.md b/old_docs/API_docs_v66/constructors/phoneCall.md index 279af015..703116b5 100644 --- a/old_docs/API_docs_v66/constructors/phoneCall.md +++ b/old_docs/API_docs_v66/constructors/phoneCall.md @@ -31,7 +31,7 @@ description: phoneCall attributes, type and example ### Example: ``` -$phoneCall = ['_' => 'phoneCall', '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]; +$phoneCall = ['_' => 'phoneCall', '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: diff --git a/old_docs/API_docs_v66/constructors/phone_phoneCall.md b/old_docs/API_docs_v66/constructors/phone_phoneCall.md index 38177647..00a43b98 100644 --- a/old_docs/API_docs_v66/constructors/phone_phoneCall.md +++ b/old_docs/API_docs_v66/constructors/phone_phoneCall.md @@ -22,7 +22,7 @@ description: phone_phoneCall attributes, type and example ### Example: ``` -$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User]]; +$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/photo.md b/old_docs/API_docs_v66/constructors/photo.md index 0d6edc52..293458ca 100644 --- a/old_docs/API_docs_v66/constructors/photo.md +++ b/old_docs/API_docs_v66/constructors/photo.md @@ -25,7 +25,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/photos_photo.md b/old_docs/API_docs_v66/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v66/constructors/photos_photo.md +++ b/old_docs/API_docs_v66/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/photos_photos.md b/old_docs/API_docs_v66/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v66/constructors/photos_photos.md +++ b/old_docs/API_docs_v66/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/photos_photosSlice.md b/old_docs/API_docs_v66/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v66/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v66/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v66/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v66/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v66/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v66/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v66/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v66/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/replyInlineMarkup.md b/old_docs/API_docs_v66/constructors/replyInlineMarkup.md index 80d2ff77..95257485 100644 --- a/old_docs/API_docs_v66/constructors/replyInlineMarkup.md +++ b/old_docs/API_docs_v66/constructors/replyInlineMarkup.md @@ -21,7 +21,7 @@ description: replyInlineMarkup attributes, type and example ### Example: ``` -$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow]]; +$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v66/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v66/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v66/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/resPQ.md b/old_docs/API_docs_v66/constructors/resPQ.md index 5d6c0d6b..f4dcf3e9 100644 --- a/old_docs/API_docs_v66/constructors/resPQ.md +++ b/old_docs/API_docs_v66/constructors/resPQ.md @@ -24,7 +24,7 @@ description: resPQ attributes, type and example ### Example: ``` -$resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => 'string', 'server_public_key_fingerprints' => [long]]; +$resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => 'string', 'server_public_key_fingerprints' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/shippingOption.md b/old_docs/API_docs_v66/constructors/shippingOption.md index 32ec5182..53a0405f 100644 --- a/old_docs/API_docs_v66/constructors/shippingOption.md +++ b/old_docs/API_docs_v66/constructors/shippingOption.md @@ -23,7 +23,7 @@ description: shippingOption attributes, type and example ### Example: ``` -$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice]]; +$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/stickerPack.md b/old_docs/API_docs_v66/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v66/constructors/stickerPack.md +++ b/old_docs/API_docs_v66/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/stickerSetMultiCovered.md b/old_docs/API_docs_v66/constructors/stickerSetMultiCovered.md index 4dd5a0a7..9a337fdc 100644 --- a/old_docs/API_docs_v66/constructors/stickerSetMultiCovered.md +++ b/old_docs/API_docs_v66/constructors/stickerSetMultiCovered.md @@ -22,7 +22,7 @@ description: stickerSetMultiCovered attributes, type and example ### Example: ``` -$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document]]; +$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/textConcat.md b/old_docs/API_docs_v66/constructors/textConcat.md index 4a44d3b2..bfdb9e50 100644 --- a/old_docs/API_docs_v66/constructors/textConcat.md +++ b/old_docs/API_docs_v66/constructors/textConcat.md @@ -21,7 +21,7 @@ description: textConcat attributes, type and example ### Example: ``` -$textConcat = ['_' => 'textConcat', 'texts' => [RichText]]; +$textConcat = ['_' => 'textConcat', 'texts' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/topPeerCategoryPeers.md b/old_docs/API_docs_v66/constructors/topPeerCategoryPeers.md index acd5cf08..03b78ed3 100644 --- a/old_docs/API_docs_v66/constructors/topPeerCategoryPeers.md +++ b/old_docs/API_docs_v66/constructors/topPeerCategoryPeers.md @@ -23,7 +23,7 @@ description: topPeerCategoryPeers attributes, type and example ### Example: ``` -$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer]]; +$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer, TopPeer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/updateDcOptions.md b/old_docs/API_docs_v66/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v66/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v66/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v66/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v66/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v66/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/updateDeleteMessages.md b/old_docs/API_docs_v66/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v66/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v66/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/updatePinnedDialogs.md b/old_docs/API_docs_v66/constructors/updatePinnedDialogs.md index a531ad75..c38d664c 100644 --- a/old_docs/API_docs_v66/constructors/updatePinnedDialogs.md +++ b/old_docs/API_docs_v66/constructors/updatePinnedDialogs.md @@ -21,7 +21,7 @@ description: updatePinnedDialogs attributes, type and example ### Example: ``` -$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer]]; +$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer, Peer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/updatePrivacy.md b/old_docs/API_docs_v66/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v66/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v66/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v66/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v66/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v66/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/updateServiceNotification.md b/old_docs/API_docs_v66/constructors/updateServiceNotification.md index 562d1089..92280ccf 100644 --- a/old_docs/API_docs_v66/constructors/updateServiceNotification.md +++ b/old_docs/API_docs_v66/constructors/updateServiceNotification.md @@ -26,7 +26,7 @@ description: updateServiceNotification attributes, type and example ### Example: ``` -$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/updateShortChatMessage.md b/old_docs/API_docs_v66/constructors/updateShortChatMessage.md index 08aa61a5..f6310d0d 100644 --- a/old_docs/API_docs_v66/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v66/constructors/updateShortChatMessage.md @@ -35,7 +35,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v66/constructors/updateShortMessage.md b/old_docs/API_docs_v66/constructors/updateShortMessage.md index 608d2a30..24f07b99 100644 --- a/old_docs/API_docs_v66/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v66/constructors/updateShortMessage.md @@ -34,7 +34,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v66/constructors/updateShortSentMessage.md b/old_docs/API_docs_v66/constructors/updateShortSentMessage.md index 28f82e3a..ebc40cf9 100644 --- a/old_docs/API_docs_v66/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v66/constructors/updateShortSentMessage.md @@ -27,7 +27,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$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: diff --git a/old_docs/API_docs_v66/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v66/constructors/updateStickerSetsOrder.md index 53637821..7b29b8f2 100644 --- a/old_docs/API_docs_v66/constructors/updateStickerSetsOrder.md +++ b/old_docs/API_docs_v66/constructors/updateStickerSetsOrder.md @@ -22,7 +22,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/updates.md b/old_docs/API_docs_v66/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v66/constructors/updates.md +++ b/old_docs/API_docs_v66/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/updatesCombined.md b/old_docs/API_docs_v66/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v66/constructors/updatesCombined.md +++ b/old_docs/API_docs_v66/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v66/constructors/updates_channelDifference.md b/old_docs/API_docs_v66/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v66/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v66/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v66/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v66/constructors/updates_channelDifferenceTooLong.md index 8e3a01aa..0ff98bf6 100644 --- a/old_docs/API_docs_v66/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v66/constructors/updates_channelDifferenceTooLong.md @@ -30,7 +30,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$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, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/updates_difference.md b/old_docs/API_docs_v66/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v66/constructors/updates_difference.md +++ b/old_docs/API_docs_v66/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v66/constructors/updates_differenceSlice.md b/old_docs/API_docs_v66/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v66/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v66/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v66/constructors/wallPaper.md b/old_docs/API_docs_v66/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v66/constructors/wallPaper.md +++ b/old_docs/API_docs_v66/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/constructors/webDocument.md b/old_docs/API_docs_v66/constructors/webDocument.md index 0be6cb8a..55a5b09b 100644 --- a/old_docs/API_docs_v66/constructors/webDocument.md +++ b/old_docs/API_docs_v66/constructors/webDocument.md @@ -26,7 +26,7 @@ description: webDocument attributes, type and example ### Example: ``` -$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'dc_id' => int]; +$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'dc_id' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v66/methods/README.md b/old_docs/API_docs_v66/methods/README.md index 31adb12a..617b6d40 100644 --- a/old_docs/API_docs_v66/methods/README.md +++ b/old_docs/API_docs_v66/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v66/methods/account_changePhone.md b/old_docs/API_docs_v66/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v66/methods/account_changePhone.md +++ b/old_docs/API_docs_v66/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_checkUsername.md b/old_docs/API_docs_v66/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v66/methods/account_checkUsername.md +++ b/old_docs/API_docs_v66/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_confirmPhone.md b/old_docs/API_docs_v66/methods/account_confirmPhone.md index 8dd79d94..2261e6e8 100644 --- a/old_docs/API_docs_v66/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v66/methods/account_confirmPhone.md @@ -1,17 +1,19 @@ --- title: account.confirmPhone -description: account.confirmPhone parameters, return type and example +description: Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode --- ## 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 | Required | -|----------|---------------|----------| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_code\_hash|[string](../types/string.md) | Yes|obtain phone_code_hash from sendConfirmPhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The code sent by sendConfirmPhoneCode| ### Return type: [Bool](../types/Bool.md) @@ -31,13 +33,18 @@ description: account.confirmPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_deleteAccount.md b/old_docs/API_docs_v66/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v66/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v66/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_getAccountTTL.md b/old_docs/API_docs_v66/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v66/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v66/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v66/methods/account_getAuthorizations.md b/old_docs/API_docs_v66/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v66/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v66/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v66/methods/account_getNotifySettings.md b/old_docs/API_docs_v66/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v66/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v66/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_getPassword.md b/old_docs/API_docs_v66/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v66/methods/account_getPassword.md +++ b/old_docs/API_docs_v66/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v66/methods/account_getPasswordSettings.md b/old_docs/API_docs_v66/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v66/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v66/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_getPrivacy.md b/old_docs/API_docs_v66/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v66/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v66/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_getTmpPassword.md b/old_docs/API_docs_v66/methods/account_getTmpPassword.md index d9bd30d8..e9ff8d28 100644 --- a/old_docs/API_docs_v66/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v66/methods/account_getTmpPassword.md @@ -1,17 +1,19 @@ --- title: account.getTmpPassword -description: account.getTmpPassword parameters, return type and example +description: Get temporary password for buying products through bots --- ## Method: account.getTmpPassword [Back to methods index](index.md) +Get temporary password for buying products through bots + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|password\_hash|[bytes](../types/bytes.md) | Yes|The password hash| +|period|[int](../types/int.md) | Yes|The validity period| ### Return type: [account\_TmpPassword](../types/account_TmpPassword.md) @@ -31,13 +33,18 @@ description: account.getTmpPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_getWallPapers.md b/old_docs/API_docs_v66/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v66/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v66/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v66/methods/account_registerDevice.md b/old_docs/API_docs_v66/methods/account_registerDevice.md index 8be04ad2..0bf6d1ee 100644 --- a/old_docs/API_docs_v66/methods/account_registerDevice.md +++ b/old_docs/API_docs_v66/methods/account_registerDevice.md @@ -1,17 +1,19 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_reportPeer.md b/old_docs/API_docs_v66/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v66/methods/account_reportPeer.md +++ b/old_docs/API_docs_v66/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_resetAuthorization.md b/old_docs/API_docs_v66/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v66/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v66/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_resetNotifySettings.md b/old_docs/API_docs_v66/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v66/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v66/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md index 017b5f7f..9e5016a4 100644 --- a/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|phone\_number|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can the code be sent using a flash call instead of an SMS?| +|phone\_number|[string](../types/string.md) | Yes|New phone number| +|current\_number|[Bool](../types/Bool.md) | Optional|Current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md index 3665bd50..4de86a33 100644 --- a/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendConfirmPhoneCode -description: account.sendConfirmPhoneCode parameters, return type and example +description: Send confirmation phone code --- ## Method: account.sendConfirmPhoneCode [Back to methods index](index.md) +Send confirmation phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|hash|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can telegram call you instead of sending an SMS?| +|hash|[string](../types/string.md) | Yes|The hash| +|current\_number|[Bool](../types/Bool.md) | Optional|The current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendConfirmPhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_setAccountTTL.md b/old_docs/API_docs_v66/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v66/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v66/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_setPrivacy.md b/old_docs/API_docs_v66/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v66/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v66/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/account_unregisterDevice.md b/old_docs/API_docs_v66/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v66/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v66/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v66/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v66/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v66/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_updateNotifySettings.md b/old_docs/API_docs_v66/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v66/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v66/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_updateProfile.md b/old_docs/API_docs_v66/methods/account_updateProfile.md index b3d468d1..8b0c3268 100644 --- a/old_docs/API_docs_v66/methods/account_updateProfile.md +++ b/old_docs/API_docs_v66/methods/account_updateProfile.md @@ -1,18 +1,20 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Optional| -|last\_name|[string](../types/string.md) | Optional| -|about|[string](../types/string.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Optional|The first name| +|last\_name|[string](../types/string.md) | Optional|The last name| +|about|[string](../types/string.md) | Optional|The bio/about field| ### Return type: [User](../types/User.md) @@ -32,13 +34,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_updateStatus.md b/old_docs/API_docs_v66/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v66/methods/account_updateStatus.md +++ b/old_docs/API_docs_v66/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v66/methods/account_updateUsername.md b/old_docs/API_docs_v66/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v66/methods/account_updateUsername.md +++ b/old_docs/API_docs_v66/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v66/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v66/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v66/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v66/methods/auth_cancelCode.md b/old_docs/API_docs_v66/methods/auth_cancelCode.md index 05d927a1..1283e1e5 100644 --- a/old_docs/API_docs_v66/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v66/methods/auth_cancelCode.md @@ -1,17 +1,19 @@ --- title: auth.cancelCode -description: auth.cancelCode parameters, return type and example +description: Invalidate sent phone code --- ## Method: auth.cancelCode [Back to methods index](index.md) +Invalidate sent phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: auth.cancelCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/auth_checkPassword.md b/old_docs/API_docs_v66/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v66/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v66/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v66/methods/auth_checkPhone.md b/old_docs/API_docs_v66/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v66/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v66/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v66/methods/auth_dropTempAuthKeys.md index fedb7bf4..b08b9f40 100644 --- a/old_docs/API_docs_v66/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v66/methods/auth_dropTempAuthKeys.md @@ -1,16 +1,18 @@ --- title: auth.dropTempAuthKeys -description: auth.dropTempAuthKeys parameters, return type and example +description: Delete all temporary authorization keys except the ones provided --- ## Method: auth.dropTempAuthKeys [Back to methods index](index.md) +Delete all temporary authorization keys except the ones provided + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|except\_auth\_keys|Array of [long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|except\_auth\_keys|Array of [long](../types/long.md) | Yes|The temporary authorization keys to keep| ### Return type: [Bool](../types/Bool.md) @@ -22,18 +24,20 @@ description: auth.dropTempAuthKeys parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/auth_exportAuthorization.md b/old_docs/API_docs_v66/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v66/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v66/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v66/methods/auth_importAuthorization.md b/old_docs/API_docs_v66/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v66/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v66/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v66/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v66/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v66/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v66/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v66/methods/auth_logOut.md b/old_docs/API_docs_v66/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v66/methods/auth_logOut.md +++ b/old_docs/API_docs_v66/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v66/methods/auth_recoverPassword.md b/old_docs/API_docs_v66/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v66/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v66/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v66/methods/auth_resendCode.md b/old_docs/API_docs_v66/methods/auth_resendCode.md index df4803b8..4bfbf379 100644 --- a/old_docs/API_docs_v66/methods/auth_resendCode.md +++ b/old_docs/API_docs_v66/methods/auth_resendCode.md @@ -1,17 +1,19 @@ --- title: auth.resendCode -description: auth.resendCode parameters, return type and example +description: Resend the SMS verification code --- ## Method: auth.resendCode [Back to methods index](index.md) +Resend the SMS verification code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|The phone code hash| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -30,13 +32,18 @@ description: auth.resendCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v66/methods/auth_sendCode.md b/old_docs/API_docs_v66/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v66/methods/auth_sendCode.md +++ b/old_docs/API_docs_v66/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v66/methods/auth_sendInvites.md b/old_docs/API_docs_v66/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v66/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v66/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/auth_signIn.md b/old_docs/API_docs_v66/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v66/methods/auth_signIn.md +++ b/old_docs/API_docs_v66/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v66/methods/auth_signUp.md b/old_docs/API_docs_v66/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v66/methods/auth_signUp.md +++ b/old_docs/API_docs_v66/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v66/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v66/methods/bots_answerWebhookJSONQuery.md index d910db35..809576fa 100644 --- a/old_docs/API_docs_v66/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v66/methods/bots_answerWebhookJSONQuery.md @@ -31,16 +31,18 @@ description: bots.answerWebhookJSONQuery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md index abb880ef..ce28f6ca 100644 --- a/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md @@ -30,16 +30,18 @@ description: bots.sendCustomRequest parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_checkUsername.md b/old_docs/API_docs_v66/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v66/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v66/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_createChannel.md b/old_docs/API_docs_v66/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v66/methods/channels_createChannel.md +++ b/old_docs/API_docs_v66/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_deleteChannel.md b/old_docs/API_docs_v66/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v66/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v66/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_deleteMessages.md b/old_docs/API_docs_v66/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v66/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v66/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_editAbout.md b/old_docs/API_docs_v66/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v66/methods/channels_editAbout.md +++ b/old_docs/API_docs_v66/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_editAdmin.md b/old_docs/API_docs_v66/methods/channels_editAdmin.md index c62597e1..146159d9 100644 --- a/old_docs/API_docs_v66/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v66/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |role|[ChannelParticipantRole](../types/ChannelParticipantRole.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_editPhoto.md b/old_docs/API_docs_v66/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v66/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v66/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_editTitle.md b/old_docs/API_docs_v66/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v66/methods/channels_editTitle.md +++ b/old_docs/API_docs_v66/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_exportInvite.md b/old_docs/API_docs_v66/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v66/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v66/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_exportMessageLink.md b/old_docs/API_docs_v66/methods/channels_exportMessageLink.md index 026fe982..7eff4ed8 100644 --- a/old_docs/API_docs_v66/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v66/methods/channels_exportMessageLink.md @@ -10,7 +10,7 @@ description: channels.exportMessageLink parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: channels.exportMessageLink parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v66/methods/channels_getAdminedPublicChannels.md index 283a9071..01ea971f 100644 --- a/old_docs/API_docs_v66/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v66/methods/channels_getAdminedPublicChannels.md @@ -17,13 +17,18 @@ description: channels.getAdminedPublicChannels parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); ``` diff --git a/old_docs/API_docs_v66/methods/channels_getChannels.md b/old_docs/API_docs_v66/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v66/methods/channels_getChannels.md +++ b/old_docs/API_docs_v66/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/channels_getFullChannel.md b/old_docs/API_docs_v66/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v66/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v66/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v66/methods/channels_getMessages.md b/old_docs/API_docs_v66/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v66/methods/channels_getMessages.md +++ b/old_docs/API_docs_v66/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/channels_getParticipant.md b/old_docs/API_docs_v66/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v66/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v66/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_getParticipants.md b/old_docs/API_docs_v66/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v66/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v66/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_inviteToChannel.md b/old_docs/API_docs_v66/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v66/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v66/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/channels_joinChannel.md b/old_docs/API_docs_v66/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v66/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v66/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_kickFromChannel.md b/old_docs/API_docs_v66/methods/channels_kickFromChannel.md index a2182df8..e4b68581 100644 --- a/old_docs/API_docs_v66/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v66/methods/channels_kickFromChannel.md @@ -10,8 +10,8 @@ description: channels.kickFromChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |kicked|[Bool](../types/Bool.md) | Yes| @@ -24,16 +24,18 @@ description: channels.kickFromChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_leaveChannel.md b/old_docs/API_docs_v66/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v66/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v66/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_readHistory.md b/old_docs/API_docs_v66/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v66/methods/channels_readHistory.md +++ b/old_docs/API_docs_v66/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_reportSpam.md b/old_docs/API_docs_v66/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v66/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v66/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/channels_toggleInvites.md b/old_docs/API_docs_v66/methods/channels_toggleInvites.md index 19669eec..8d977fd0 100644 --- a/old_docs/API_docs_v66/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v66/methods/channels_toggleInvites.md @@ -10,7 +10,7 @@ description: channels.toggleInvites parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -32,13 +32,18 @@ description: channels.toggleInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_toggleSignatures.md b/old_docs/API_docs_v66/methods/channels_toggleSignatures.md index 4aaaeb0c..13d53d92 100644 --- a/old_docs/API_docs_v66/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v66/methods/channels_toggleSignatures.md @@ -10,7 +10,7 @@ description: channels.toggleSignatures parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: channels.toggleSignatures parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md index 3bb6d010..ecc15ce6 100644 --- a/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md @@ -11,7 +11,7 @@ description: channels.updatePinnedMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |silent|[Bool](../types/Bool.md) | Optional| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: channels.updatePinnedMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/channels_updateUsername.md b/old_docs/API_docs_v66/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v66/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v66/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/contacts_block.md b/old_docs/API_docs_v66/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v66/methods/contacts_block.md +++ b/old_docs/API_docs_v66/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v66/methods/contacts_deleteContact.md b/old_docs/API_docs_v66/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v66/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v66/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v66/methods/contacts_deleteContacts.md b/old_docs/API_docs_v66/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v66/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v66/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/contacts_exportCard.md b/old_docs/API_docs_v66/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v66/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v66/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v66/methods/contacts_getBlocked.md b/old_docs/API_docs_v66/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v66/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v66/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/contacts_getContacts.md b/old_docs/API_docs_v66/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v66/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v66/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/contacts_getStatuses.md b/old_docs/API_docs_v66/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v66/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v66/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v66/methods/contacts_getTopPeers.md b/old_docs/API_docs_v66/methods/contacts_getTopPeers.md index d29f6e02..eafcb6ec 100644 --- a/old_docs/API_docs_v66/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v66/methods/contacts_getTopPeers.md @@ -1,23 +1,25 @@ --- title: contacts.getTopPeers -description: contacts.getTopPeers parameters, return type and example +description: Get most used chats --- ## Method: contacts.getTopPeers [Back to methods index](index.md) +Get most used chats + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|correspondents|[Bool](../types/Bool.md) | Optional| -|bots\_pm|[Bool](../types/Bool.md) | Optional| -|bots\_inline|[Bool](../types/Bool.md) | Optional| -|groups|[Bool](../types/Bool.md) | Optional| -|channels|[Bool](../types/Bool.md) | Optional| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|correspondents|[Bool](../types/Bool.md) | Optional|| +|bots\_pm|[Bool](../types/Bool.md) | Optional|| +|bots\_inline|[Bool](../types/Bool.md) | Optional|| +|groups|[Bool](../types/Bool.md) | Optional|| +|channels|[Bool](../types/Bool.md) | Optional|| +|offset|[int](../types/int.md) | Yes|| +|limit|[int](../types/int.md) | Yes|| +|hash|[int](../types/int.md) | Yes|| ### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md) @@ -36,13 +38,18 @@ description: contacts.getTopPeers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/contacts_importCard.md b/old_docs/API_docs_v66/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v66/methods/contacts_importCard.md +++ b/old_docs/API_docs_v66/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/contacts_importContacts.md b/old_docs/API_docs_v66/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v66/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v66/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md index 3eab7e04..ddcf6b2f 100644 --- a/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md @@ -11,7 +11,7 @@ description: contacts.resetTopPeerRating parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |category|[TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v66/methods/contacts_resolveUsername.md b/old_docs/API_docs_v66/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v66/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v66/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v66/methods/contacts_search.md b/old_docs/API_docs_v66/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v66/methods/contacts_search.md +++ b/old_docs/API_docs_v66/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/contacts_unblock.md b/old_docs/API_docs_v66/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v66/methods/contacts_unblock.md +++ b/old_docs/API_docs_v66/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v66/methods/contest_saveDeveloperInfo.md b/old_docs/API_docs_v66/methods/contest_saveDeveloperInfo.md index c0bb9054..6a8e5fda 100644 --- a/old_docs/API_docs_v66/methods/contest_saveDeveloperInfo.md +++ b/old_docs/API_docs_v66/methods/contest_saveDeveloperInfo.md @@ -26,16 +26,18 @@ description: contest.saveDeveloperInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contest->saveDeveloperInfo(['vk_id' => int, 'name' => 'string', 'phone_number' => 'string', 'age' => int, 'city' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/destroy_auth_key.md b/old_docs/API_docs_v66/methods/destroy_auth_key.md index 1803e375..0304d9a1 100644 --- a/old_docs/API_docs_v66/methods/destroy_auth_key.md +++ b/old_docs/API_docs_v66/methods/destroy_auth_key.md @@ -17,16 +17,18 @@ description: destroy_auth_key parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DestroyAuthKeyRes = $MadelineProto->destroy_auth_key(); ``` diff --git a/old_docs/API_docs_v66/methods/destroy_session.md b/old_docs/API_docs_v66/methods/destroy_session.md index 39aa2c6e..b2525dfb 100644 --- a/old_docs/API_docs_v66/methods/destroy_session.md +++ b/old_docs/API_docs_v66/methods/destroy_session.md @@ -1,16 +1,18 @@ --- title: destroy_session -description: destroy_session parameters, return type and example +description: Destroy the current MTProto session --- ## Method: destroy\_session [Back to methods index](index.md) +Destroy the current MTProto session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|session\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|session\_id|[long](../types/long.md) | Yes|The session to destroy| ### Return type: [DestroySessionRes](../types/DestroySessionRes.md) @@ -22,16 +24,18 @@ description: destroy_session parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DestroySessionRes = $MadelineProto->destroy_session(['session_id' => long, ]); ``` diff --git a/old_docs/API_docs_v66/methods/get_future_salts.md b/old_docs/API_docs_v66/methods/get_future_salts.md index fedf036c..4c2c9c46 100644 --- a/old_docs/API_docs_v66/methods/get_future_salts.md +++ b/old_docs/API_docs_v66/methods/get_future_salts.md @@ -1,16 +1,18 @@ --- title: get_future_salts -description: get_future_salts parameters, return type and example +description: Get future salts --- ## Method: get\_future\_salts [Back to methods index](index.md) +Get future salts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|num|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|num|[int](../types/int.md) | Yes|How many salts should be fetched| ### Return type: [FutureSalts](../types/FutureSalts.md) @@ -22,16 +24,18 @@ description: get_future_salts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $FutureSalts = $MadelineProto->get_future_salts(['num' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/help_getAppChangelog.md b/old_docs/API_docs_v66/methods/help_getAppChangelog.md index 59916787..f09a7a0d 100644 --- a/old_docs/API_docs_v66/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v66/methods/help_getAppChangelog.md @@ -22,13 +22,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/help_getAppUpdate.md b/old_docs/API_docs_v66/methods/help_getAppUpdate.md index 89ff22c3..0e227d24 100644 --- a/old_docs/API_docs_v66/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v66/methods/help_getAppUpdate.md @@ -17,13 +17,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); ``` diff --git a/old_docs/API_docs_v66/methods/help_getCdnConfig.md b/old_docs/API_docs_v66/methods/help_getCdnConfig.md index 3079e605..ba2a6c9a 100644 --- a/old_docs/API_docs_v66/methods/help_getCdnConfig.md +++ b/old_docs/API_docs_v66/methods/help_getCdnConfig.md @@ -24,16 +24,18 @@ description: help.getCdnConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $CdnConfig = $MadelineProto->help->getCdnConfig(); ``` diff --git a/old_docs/API_docs_v66/methods/help_getConfig.md b/old_docs/API_docs_v66/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v66/methods/help_getConfig.md +++ b/old_docs/API_docs_v66/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v66/methods/help_getInviteText.md b/old_docs/API_docs_v66/methods/help_getInviteText.md index 6d2674d6..a8d8992e 100644 --- a/old_docs/API_docs_v66/methods/help_getInviteText.md +++ b/old_docs/API_docs_v66/methods/help_getInviteText.md @@ -17,13 +17,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); ``` diff --git a/old_docs/API_docs_v66/methods/help_getNearestDc.md b/old_docs/API_docs_v66/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v66/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v66/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v66/methods/help_getSupport.md b/old_docs/API_docs_v66/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v66/methods/help_getSupport.md +++ b/old_docs/API_docs_v66/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v66/methods/help_getTermsOfService.md b/old_docs/API_docs_v66/methods/help_getTermsOfService.md index eb686506..a588e830 100644 --- a/old_docs/API_docs_v66/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v66/methods/help_getTermsOfService.md @@ -17,13 +17,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); ``` diff --git a/old_docs/API_docs_v66/methods/help_saveAppLog.md b/old_docs/API_docs_v66/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v66/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v66/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v66/methods/help_setBotUpdatesStatus.md index 470187a0..68c9720a 100644 --- a/old_docs/API_docs_v66/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v66/methods/help_setBotUpdatesStatus.md @@ -23,16 +23,18 @@ description: help.setBotUpdatesStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/initConnection.md b/old_docs/API_docs_v66/methods/initConnection.md index c0307677..d17f66ba 100644 --- a/old_docs/API_docs_v66/methods/initConnection.md +++ b/old_docs/API_docs_v66/methods/initConnection.md @@ -1,21 +1,23 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -35,16 +37,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v66/methods/invokeAfterMsg.md b/old_docs/API_docs_v66/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v66/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v66/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v66/methods/invokeAfterMsgs.md b/old_docs/API_docs_v66/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v66/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v66/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/invokeWithLayer.md b/old_docs/API_docs_v66/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v66/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v66/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v66/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v66/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v66/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v66/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_acceptEncryption.md b/old_docs/API_docs_v66/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v66/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v66/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v66/methods/messages_addChatUser.md b/old_docs/API_docs_v66/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v66/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v66/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_checkChatInvite.md b/old_docs/API_docs_v66/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v66/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v66/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v66/methods/messages_clearRecentStickers.md index ae45b249..31941a34 100644 --- a/old_docs/API_docs_v66/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v66/methods/messages_clearRecentStickers.md @@ -22,13 +22,18 @@ description: messages.clearRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_createChat.md b/old_docs/API_docs_v66/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v66/methods/messages_createChat.md +++ b/old_docs/API_docs_v66/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_deleteChatUser.md b/old_docs/API_docs_v66/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v66/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v66/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_deleteHistory.md b/old_docs/API_docs_v66/methods/messages_deleteHistory.md index d1c3f195..01686b2b 100644 --- a/old_docs/API_docs_v66/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v66/methods/messages_deleteHistory.md @@ -11,7 +11,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |just\_clear|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_deleteMessages.md b/old_docs/API_docs_v66/methods/messages_deleteMessages.md index 5472cc72..0cc6e6ed 100644 --- a/old_docs/API_docs_v66/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v66/methods/messages_deleteMessages.md @@ -30,18 +30,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_discardEncryption.md b/old_docs/API_docs_v66/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v66/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v66/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v66/methods/messages_editChatAdmin.md b/old_docs/API_docs_v66/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v66/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v66/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_editChatPhoto.md b/old_docs/API_docs_v66/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v66/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v66/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_editChatTitle.md b/old_docs/API_docs_v66/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v66/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v66/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md index c3489f9d..289100ea 100644 --- a/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md @@ -35,18 +35,20 @@ description: messages.editInlineBotMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_editMessage.md b/old_docs/API_docs_v66/methods/messages_editMessage.md index 182fa03e..63379ed9 100644 --- a/old_docs/API_docs_v66/methods/messages_editMessage.md +++ b/old_docs/API_docs_v66/methods/messages_editMessage.md @@ -11,7 +11,7 @@ description: messages.editMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| |message|[string](../types/string.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -44,18 +44,20 @@ description: messages.editMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_exportChatInvite.md b/old_docs/API_docs_v66/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v66/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v66/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_forwardMessage.md b/old_docs/API_docs_v66/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v66/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v66/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_forwardMessages.md b/old_docs/API_docs_v66/methods/messages_forwardMessages.md index 1185259d..df361517 100644 --- a/old_docs/API_docs_v66/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v66/methods/messages_forwardMessages.md @@ -13,9 +13,9 @@ description: messages.forwardMessages parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |with\_my\_score|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -55,18 +55,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_getAllChats.md b/old_docs/API_docs_v66/methods/messages_getAllChats.md index babcf17d..59bc0add 100644 --- a/old_docs/API_docs_v66/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v66/methods/messages_getAllChats.md @@ -22,15 +22,20 @@ description: messages.getAllChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_getAllDrafts.md b/old_docs/API_docs_v66/methods/messages_getAllDrafts.md index 8550c5b8..7f0f7843 100644 --- a/old_docs/API_docs_v66/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v66/methods/messages_getAllDrafts.md @@ -17,13 +17,18 @@ description: messages.getAllDrafts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getAllStickers.md b/old_docs/API_docs_v66/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/old_docs/API_docs_v66/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v66/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v66/methods/messages_getArchivedStickers.md index cdb7f0af..8c2041a3 100644 --- a/old_docs/API_docs_v66/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v66/methods/messages_getArchivedStickers.md @@ -24,13 +24,18 @@ description: messages.getArchivedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v66/methods/messages_getAttachedStickers.md index 79d4e30d..f03f0be2 100644 --- a/old_docs/API_docs_v66/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v66/methods/messages_getAttachedStickers.md @@ -22,13 +22,18 @@ description: messages.getAttachedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md index bd916755..b9039098 100644 --- a/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md @@ -11,7 +11,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |game|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |msg\_id|[int](../types/int.md) | Yes| |data|[bytes](../types/bytes.md) | Optional| @@ -36,13 +36,18 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getChats.md b/old_docs/API_docs_v66/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v66/methods/messages_getChats.md +++ b/old_docs/API_docs_v66/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_getCommonChats.md b/old_docs/API_docs_v66/methods/messages_getCommonChats.md index d713f3a5..0df79096 100644 --- a/old_docs/API_docs_v66/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v66/methods/messages_getCommonChats.md @@ -10,7 +10,7 @@ description: messages.getCommonChats parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getCommonChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getDhConfig.md b/old_docs/API_docs_v66/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v66/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v66/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getDialogs.md b/old_docs/API_docs_v66/methods/messages_getDialogs.md index e7e81a8c..041b3efe 100644 --- a/old_docs/API_docs_v66/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v66/methods/messages_getDialogs.md @@ -13,7 +13,7 @@ description: messages.getDialogs parameters, return type and example |exclude\_pinned|[Bool](../types/Bool.md) | Optional| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v66/methods/messages_getFeaturedStickers.md index 5aad1810..51097eda 100644 --- a/old_docs/API_docs_v66/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v66/methods/messages_getFeaturedStickers.md @@ -22,13 +22,18 @@ description: messages.getFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getFullChat.md b/old_docs/API_docs_v66/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v66/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v66/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v66/methods/messages_getGameHighScores.md b/old_docs/API_docs_v66/methods/messages_getGameHighScores.md index c316a8bd..4b8b1397 100644 --- a/old_docs/API_docs_v66/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v66/methods/messages_getGameHighScores.md @@ -10,9 +10,9 @@ description: messages.getGameHighScores parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -32,16 +32,18 @@ description: messages.getGameHighScores parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getHistory.md b/old_docs/API_docs_v66/methods/messages_getHistory.md index ef31c435..87b8328d 100644 --- a/old_docs/API_docs_v66/methods/messages_getHistory.md +++ b/old_docs/API_docs_v66/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| @@ -40,13 +40,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md index 90e2a427..6d965b19 100644 --- a/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md @@ -10,8 +10,8 @@ description: messages.getInlineBotResults parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |query|[string](../types/string.md) | Yes| |offset|[string](../types/string.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md index 524e387b..9305a0f4 100644 --- a/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md @@ -11,7 +11,7 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Name | Type | Required | |----------|---------------|----------| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -31,16 +31,18 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getMaskStickers.md b/old_docs/API_docs_v66/methods/messages_getMaskStickers.md index ca964647..260cfdb7 100644 --- a/old_docs/API_docs_v66/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v66/methods/messages_getMaskStickers.md @@ -22,13 +22,18 @@ description: messages.getMaskStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getMessageEditData.md b/old_docs/API_docs_v66/methods/messages_getMessageEditData.md index df71c31a..2a90a419 100644 --- a/old_docs/API_docs_v66/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v66/methods/messages_getMessageEditData.md @@ -10,7 +10,7 @@ description: messages.getMessageEditData parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getMessageEditData parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getMessages.md b/old_docs/API_docs_v66/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v66/methods/messages_getMessages.md +++ b/old_docs/API_docs_v66/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_getMessagesViews.md b/old_docs/API_docs_v66/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v66/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v66/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md index 226948ae..eff29878 100644 --- a/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md @@ -10,7 +10,7 @@ description: messages.getPeerDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peers|Array of [InputPeer](../types/InputPeer.md) | Yes| +|peers|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md) @@ -30,15 +30,20 @@ description: messages.getPeerDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_getPeerSettings.md b/old_docs/API_docs_v66/methods/messages_getPeerSettings.md index fab25034..25906b73 100644 --- a/old_docs/API_docs_v66/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v66/methods/messages_getPeerSettings.md @@ -10,7 +10,7 @@ description: messages.getPeerSettings parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [PeerSettings](../types/PeerSettings.md) @@ -30,13 +30,18 @@ description: messages.getPeerSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v66/methods/messages_getPinnedDialogs.md index ec744f01..e5499df7 100644 --- a/old_docs/API_docs_v66/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v66/methods/messages_getPinnedDialogs.md @@ -17,13 +17,18 @@ description: messages.getPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getRecentStickers.md b/old_docs/API_docs_v66/methods/messages_getRecentStickers.md index a6ae162f..5a60d345 100644 --- a/old_docs/API_docs_v66/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v66/methods/messages_getRecentStickers.md @@ -23,13 +23,18 @@ description: messages.getRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getSavedGifs.md b/old_docs/API_docs_v66/methods/messages_getSavedGifs.md index 4986d812..bcb4590d 100644 --- a/old_docs/API_docs_v66/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v66/methods/messages_getSavedGifs.md @@ -22,13 +22,18 @@ description: messages.getSavedGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getStickerSet.md b/old_docs/API_docs_v66/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v66/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v66/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getWebPage.md b/old_docs/API_docs_v66/methods/messages_getWebPage.md index e886b020..0f09af47 100644 --- a/old_docs/API_docs_v66/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v66/methods/messages_getWebPage.md @@ -30,13 +30,18 @@ description: messages.getWebPage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v66/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v66/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v66/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_hideReportSpam.md b/old_docs/API_docs_v66/methods/messages_hideReportSpam.md index d47e8aa5..0419ec79 100644 --- a/old_docs/API_docs_v66/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v66/methods/messages_hideReportSpam.md @@ -10,7 +10,7 @@ description: messages.hideReportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.hideReportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_importChatInvite.md b/old_docs/API_docs_v66/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v66/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v66/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_installStickerSet.md b/old_docs/API_docs_v66/methods/messages_installStickerSet.md index 9336cc22..f405adce 100644 --- a/old_docs/API_docs_v66/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v66/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_migrateChat.md b/old_docs/API_docs_v66/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v66/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v66/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v66/methods/messages_readFeaturedStickers.md index 02055bf3..766ba200 100644 --- a/old_docs/API_docs_v66/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v66/methods/messages_readFeaturedStickers.md @@ -22,15 +22,20 @@ description: messages.readFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_readHistory.md b/old_docs/API_docs_v66/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v66/methods/messages_readHistory.md +++ b/old_docs/API_docs_v66/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_readMessageContents.md b/old_docs/API_docs_v66/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v66/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v66/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_receivedMessages.md b/old_docs/API_docs_v66/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v66/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v66/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_receivedQueue.md b/old_docs/API_docs_v66/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v66/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v66/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md index b4bfb84f..30e926d9 100644 --- a/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md @@ -11,7 +11,7 @@ description: messages.reorderPinnedDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |force|[Bool](../types/Bool.md) | Optional| -|order|Array of [InputPeer](../types/InputPeer.md) | Yes| +|order|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +30,20 @@ description: messages.reorderPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v66/methods/messages_reorderStickerSets.md index fa094550..0e2c121d 100644 --- a/old_docs/API_docs_v66/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v66/methods/messages_reorderStickerSets.md @@ -23,15 +23,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md index aed7a891..64ebecdd 100644 --- a/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md @@ -10,7 +10,7 @@ description: messages.reportEncryptedSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportEncryptedSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_reportSpam.md b/old_docs/API_docs_v66/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v66/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v66/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_requestEncryption.md b/old_docs/API_docs_v66/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v66/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v66/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v66/methods/messages_saveDraft.md b/old_docs/API_docs_v66/methods/messages_saveDraft.md index 7a85dfe7..754b4da2 100644 --- a/old_docs/API_docs_v66/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v66/methods/messages_saveDraft.md @@ -12,7 +12,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |message|[string](../types/string.md) | Yes| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| |parse\_mode| [string](../types/string.md) | Optional | @@ -34,15 +34,20 @@ description: messages.saveDraft parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_saveGif.md b/old_docs/API_docs_v66/methods/messages_saveGif.md index b3673c91..725bc949 100644 --- a/old_docs/API_docs_v66/methods/messages_saveGif.md +++ b/old_docs/API_docs_v66/methods/messages_saveGif.md @@ -10,7 +10,7 @@ description: messages.saveGif parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveGif parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md index bc3d1627..4a8298e2 100644 --- a/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md @@ -11,7 +11,7 @@ description: messages.saveRecentSticker parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |attached|[Bool](../types/Bool.md) | Optional| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.saveRecentSticker parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_search.md b/old_docs/API_docs_v66/methods/messages_search.md index f6aa515b..11b968bf 100644 --- a/old_docs/API_docs_v66/methods/messages_search.md +++ b/old_docs/API_docs_v66/methods/messages_search.md @@ -10,7 +10,7 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| @@ -42,13 +42,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_searchGifs.md b/old_docs/API_docs_v66/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/old_docs/API_docs_v66/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v66/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_searchGlobal.md b/old_docs/API_docs_v66/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v66/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v66/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_sendEncrypted.md b/old_docs/API_docs_v66/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v66/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v66/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md index 0857341e..6bfb1578 100644 --- a/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md @@ -13,7 +13,7 @@ description: messages.sendInlineBotResult parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |query\_id|[long](../types/long.md) | Yes| |id|[string](../types/string.md) | Yes| @@ -40,13 +40,18 @@ description: messages.sendInlineBotResult parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_sendMedia.md b/old_docs/API_docs_v66/methods/messages_sendMedia.md index 8c6f7f7f..1530451b 100644 --- a/old_docs/API_docs_v66/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v66/methods/messages_sendMedia.md @@ -13,9 +13,9 @@ description: messages.sendMedia parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -56,16 +56,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_sendMessage.md b/old_docs/API_docs_v66/methods/messages_sendMessage.md index bec95b8c..49ace99c 100644 --- a/old_docs/API_docs_v66/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v66/methods/messages_sendMessage.md @@ -14,7 +14,7 @@ description: messages.sendMessage parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -50,6 +50,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -57,18 +58,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$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], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md index 2901a558..0282168b 100644 --- a/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md @@ -33,16 +33,18 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md index 5666e9ff..4aba8ca3 100644 --- a/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md @@ -31,16 +31,18 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md index 95376b64..5dcfe12e 100644 --- a/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md @@ -31,18 +31,20 @@ description: messages.setBotShippingResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_setGameScore.md b/old_docs/API_docs_v66/methods/messages_setGameScore.md index 615aa87b..61dfe579 100644 --- a/old_docs/API_docs_v66/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v66/methods/messages_setGameScore.md @@ -12,9 +12,9 @@ description: messages.setGameScore parameters, return type and example |----------|---------------|----------| |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -35,16 +35,18 @@ description: messages.setGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md index 8b49c4c7..c38b8c2e 100644 --- a/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md @@ -45,18 +45,20 @@ description: messages.setInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md index b5fc27d5..9fadc31e 100644 --- a/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md @@ -13,7 +13,7 @@ description: messages.setInlineGameScore parameters, return type and example |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: messages.setInlineGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_setTyping.md b/old_docs/API_docs_v66/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v66/methods/messages_setTyping.md +++ b/old_docs/API_docs_v66/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_startBot.md b/old_docs/API_docs_v66/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v66/methods/messages_startBot.md +++ b/old_docs/API_docs_v66/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md index 535a0fa1..7c5bfa9f 100644 --- a/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md @@ -11,7 +11,7 @@ description: messages.toggleDialogPin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |pinned|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: messages.toggleDialogPin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v66/methods/payments_clearSavedInfo.md b/old_docs/API_docs_v66/methods/payments_clearSavedInfo.md index fb9bae07..dc762198 100644 --- a/old_docs/API_docs_v66/methods/payments_clearSavedInfo.md +++ b/old_docs/API_docs_v66/methods/payments_clearSavedInfo.md @@ -23,13 +23,18 @@ description: payments.clearSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); ``` diff --git a/old_docs/API_docs_v66/methods/payments_getPaymentForm.md b/old_docs/API_docs_v66/methods/payments_getPaymentForm.md index 141c47f2..ee269741 100644 --- a/old_docs/API_docs_v66/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v66/methods/payments_getPaymentForm.md @@ -29,13 +29,18 @@ description: payments.getPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md index f6aa1ab6..e46563d0 100644 --- a/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md @@ -29,13 +29,18 @@ description: payments.getPaymentReceipt parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/payments_getSavedInfo.md b/old_docs/API_docs_v66/methods/payments_getSavedInfo.md index 4104679a..ae1fcf33 100644 --- a/old_docs/API_docs_v66/methods/payments_getSavedInfo.md +++ b/old_docs/API_docs_v66/methods/payments_getSavedInfo.md @@ -17,13 +17,18 @@ description: payments.getSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); ``` diff --git a/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md index 180a7279..08505110 100644 --- a/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md @@ -32,13 +32,18 @@ description: payments.sendPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); ``` diff --git a/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md index acfd1852..ebfc5c22 100644 --- a/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md @@ -31,13 +31,18 @@ description: payments.validateRequestedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); ``` diff --git a/old_docs/API_docs_v66/methods/phone_acceptCall.md b/old_docs/API_docs_v66/methods/phone_acceptCall.md index 79266f27..49029aed 100644 --- a/old_docs/API_docs_v66/methods/phone_acceptCall.md +++ b/old_docs/API_docs_v66/methods/phone_acceptCall.md @@ -1,12 +1,12 @@ --- title: phone.acceptCall -description: phone.acceptCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.acceptCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v66/methods/phone_confirmCall.md b/old_docs/API_docs_v66/methods/phone_confirmCall.md index 69e90751..5c7bb15c 100644 --- a/old_docs/API_docs_v66/methods/phone_confirmCall.md +++ b/old_docs/API_docs_v66/methods/phone_confirmCall.md @@ -1,12 +1,12 @@ --- title: phone.confirmCall -description: phone.confirmCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.confirmCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v66/methods/phone_discardCall.md b/old_docs/API_docs_v66/methods/phone_discardCall.md index c300e61c..c01d1014 100644 --- a/old_docs/API_docs_v66/methods/phone_discardCall.md +++ b/old_docs/API_docs_v66/methods/phone_discardCall.md @@ -1,12 +1,12 @@ --- title: phone.discardCall -description: phone.discardCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.discardCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v66/methods/phone_getCallConfig.md b/old_docs/API_docs_v66/methods/phone_getCallConfig.md index 3f18d7ca..636ae946 100644 --- a/old_docs/API_docs_v66/methods/phone_getCallConfig.md +++ b/old_docs/API_docs_v66/methods/phone_getCallConfig.md @@ -17,13 +17,18 @@ description: phone.getCallConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); ``` diff --git a/old_docs/API_docs_v66/methods/phone_receivedCall.md b/old_docs/API_docs_v66/methods/phone_receivedCall.md index 8ca6a4e1..00b51aed 100644 --- a/old_docs/API_docs_v66/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v66/methods/phone_receivedCall.md @@ -30,13 +30,18 @@ description: phone.receivedCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); ``` diff --git a/old_docs/API_docs_v66/methods/phone_requestCall.md b/old_docs/API_docs_v66/methods/phone_requestCall.md index c8ae48a9..be45437e 100644 --- a/old_docs/API_docs_v66/methods/phone_requestCall.md +++ b/old_docs/API_docs_v66/methods/phone_requestCall.md @@ -1,12 +1,12 @@ --- title: phone.requestCall -description: phone.requestCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.requestCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v66/methods/phone_saveCallDebug.md b/old_docs/API_docs_v66/methods/phone_saveCallDebug.md index ea3fa2d7..90135792 100644 --- a/old_docs/API_docs_v66/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v66/methods/phone_saveCallDebug.md @@ -31,13 +31,18 @@ description: phone.saveCallDebug parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v66/methods/phone_setCallRating.md b/old_docs/API_docs_v66/methods/phone_setCallRating.md index c6e5d7fa..21570b80 100644 --- a/old_docs/API_docs_v66/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v66/methods/phone_setCallRating.md @@ -31,13 +31,18 @@ description: phone.setCallRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/photos_deletePhotos.md b/old_docs/API_docs_v66/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v66/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v66/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/methods/photos_getUserPhotos.md b/old_docs/API_docs_v66/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v66/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v66/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v66/methods/photos_updateProfilePhoto.md index cc79a625..1ed6fb24 100644 --- a/old_docs/API_docs_v66/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v66/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| ### Return type: [UserProfilePhoto](../types/UserProfilePhoto.md) @@ -22,13 +22,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); ``` diff --git a/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md index 075dab4b..4b20315b 100644 --- a/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| ### Return type: [photos\_Photo](../types/photos_Photo.md) @@ -32,13 +32,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); ``` diff --git a/old_docs/API_docs_v66/methods/ping.md b/old_docs/API_docs_v66/methods/ping.md index 7c20ca86..18f5a2bd 100644 --- a/old_docs/API_docs_v66/methods/ping.md +++ b/old_docs/API_docs_v66/methods/ping.md @@ -1,16 +1,18 @@ --- title: ping -description: ping parameters, return type and example +description: pings the server --- ## Method: ping [Back to methods index](index.md) +pings the server + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ping\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ping\_id|[long](../types/long.md) | Yes|Ping ID| ### Return type: [Pong](../types/Pong.md) @@ -22,16 +24,18 @@ description: ping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Pong = $MadelineProto->ping(['ping_id' => long, ]); ``` diff --git a/old_docs/API_docs_v66/methods/ping_delay_disconnect.md b/old_docs/API_docs_v66/methods/ping_delay_disconnect.md index e8b62005..709f8026 100644 --- a/old_docs/API_docs_v66/methods/ping_delay_disconnect.md +++ b/old_docs/API_docs_v66/methods/ping_delay_disconnect.md @@ -1,17 +1,19 @@ --- title: ping_delay_disconnect -description: ping_delay_disconnect parameters, return type and example +description: Pings the server and causes disconection if the same method is not called within ping_disconnect_delay --- ## Method: ping\_delay\_disconnect [Back to methods index](index.md) +Pings the server and causes disconection if the same method is not called within ping_disconnect_delay + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ping\_id|[long](../types/long.md) | Yes| -|disconnect\_delay|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ping\_id|[long](../types/long.md) | Yes|Ping ID| +|disconnect\_delay|[int](../types/int.md) | Yes|Disconection delay| ### Return type: [Pong](../types/Pong.md) @@ -23,16 +25,18 @@ description: ping_delay_disconnect parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Pong = $MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/req_DH_params.md b/old_docs/API_docs_v66/methods/req_DH_params.md index 697540d8..b0cc4418 100644 --- a/old_docs/API_docs_v66/methods/req_DH_params.md +++ b/old_docs/API_docs_v66/methods/req_DH_params.md @@ -1,21 +1,23 @@ --- title: req_DH_params -description: req_DH_params parameters, return type and example +description: Requests Diffie-hellman parameters for key exchange --- ## Method: req\_DH\_params [Back to methods index](index.md) +Requests Diffie-hellman parameters for key exchange + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| -|server\_nonce|[int128](../types/int128.md) | Yes| -|p|[string](../types/string.md) | Yes| -|q|[string](../types/string.md) | Yes| -|public\_key\_fingerprint|[long](../types/long.md) | Yes| -|encrypted\_data|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| +|server\_nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security, given by server| +|p|[string](../types/string.md) | Yes|| +|q|[string](../types/string.md) | Yes|| +|public\_key\_fingerprint|[long](../types/long.md) | Yes|Server RSA fingerprint| +|encrypted\_data|[string](../types/string.md) | Yes|| ### Return type: [Server\_DH\_Params](../types/Server_DH_Params.md) @@ -27,16 +29,18 @@ description: req_DH_params parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Server_DH_Params = $MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => 'string', 'q' => 'string', 'public_key_fingerprint' => long, 'encrypted_data' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/req_pq.md b/old_docs/API_docs_v66/methods/req_pq.md index 7a583643..39a1715b 100644 --- a/old_docs/API_docs_v66/methods/req_pq.md +++ b/old_docs/API_docs_v66/methods/req_pq.md @@ -1,16 +1,18 @@ --- title: req_pq -description: req_pq parameters, return type and example +description: Requests PQ for factorization --- ## Method: req\_pq [Back to methods index](index.md) +Requests PQ for factorization + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| ### Return type: [ResPQ](../types/ResPQ.md) @@ -22,16 +24,18 @@ description: req_pq parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ResPQ = $MadelineProto->req_pq(['nonce' => int128, ]); ``` diff --git a/old_docs/API_docs_v66/methods/rpc_drop_answer.md b/old_docs/API_docs_v66/methods/rpc_drop_answer.md index e15ddca9..225a43b5 100644 --- a/old_docs/API_docs_v66/methods/rpc_drop_answer.md +++ b/old_docs/API_docs_v66/methods/rpc_drop_answer.md @@ -1,16 +1,18 @@ --- title: rpc_drop_answer -description: rpc_drop_answer parameters, return type and example +description: Do not send answer to provided request --- ## Method: rpc\_drop\_answer [Back to methods index](index.md) +Do not send answer to provided request + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|req\_msg\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|req\_msg\_id|[long](../types/long.md) | Yes|The message ID of the request| ### Return type: [RpcDropAnswer](../types/RpcDropAnswer.md) @@ -22,16 +24,18 @@ description: rpc_drop_answer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $RpcDropAnswer = $MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]); ``` diff --git a/old_docs/API_docs_v66/methods/set_client_DH_params.md b/old_docs/API_docs_v66/methods/set_client_DH_params.md index 8721ed40..4af21a12 100644 --- a/old_docs/API_docs_v66/methods/set_client_DH_params.md +++ b/old_docs/API_docs_v66/methods/set_client_DH_params.md @@ -1,18 +1,20 @@ --- title: set_client_DH_params -description: set_client_DH_params parameters, return type and example +description: Sets client diffie-hellman parameters --- ## Method: set\_client\_DH\_params [Back to methods index](index.md) +Sets client diffie-hellman parameters + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| -|server\_nonce|[int128](../types/int128.md) | Yes| -|encrypted\_data|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| +|server\_nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security, given by server| +|encrypted\_data|[string](../types/string.md) | Yes|| ### Return type: [Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) @@ -24,16 +26,18 @@ description: set_client_DH_params parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Set_client_DH_params_answer = $MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => 'string', ]); ``` diff --git a/old_docs/API_docs_v66/methods/updates_getChannelDifference.md b/old_docs/API_docs_v66/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v66/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v66/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v66/methods/updates_getDifference.md b/old_docs/API_docs_v66/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v66/methods/updates_getDifference.md +++ b/old_docs/API_docs_v66/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v66/methods/updates_getState.md b/old_docs/API_docs_v66/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v66/methods/updates_getState.md +++ b/old_docs/API_docs_v66/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v66/methods/upload_getCdnFile.md b/old_docs/API_docs_v66/methods/upload_getCdnFile.md index 3a0cd50e..7e1eefcc 100644 --- a/old_docs/API_docs_v66/methods/upload_getCdnFile.md +++ b/old_docs/API_docs_v66/methods/upload_getCdnFile.md @@ -1,12 +1,12 @@ --- title: upload.getCdnFile -description: upload.getCdnFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v66/methods/upload_getFile.md b/old_docs/API_docs_v66/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v66/methods/upload_getFile.md +++ b/old_docs/API_docs_v66/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v66/methods/upload_getWebFile.md b/old_docs/API_docs_v66/methods/upload_getWebFile.md index 8744dac5..ca200db1 100644 --- a/old_docs/API_docs_v66/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v66/methods/upload_getWebFile.md @@ -31,13 +31,18 @@ description: upload.getWebFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v66/methods/upload_reuploadCdnFile.md b/old_docs/API_docs_v66/methods/upload_reuploadCdnFile.md index 4c00bbd0..13d93ec1 100644 --- a/old_docs/API_docs_v66/methods/upload_reuploadCdnFile.md +++ b/old_docs/API_docs_v66/methods/upload_reuploadCdnFile.md @@ -1,12 +1,12 @@ --- title: upload.reuploadCdnFile -description: upload.reuploadCdnFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v66/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v66/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v66/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v66/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v66/methods/upload_saveFilePart.md b/old_docs/API_docs_v66/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v66/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v66/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v66/methods/users_getFullUser.md b/old_docs/API_docs_v66/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v66/methods/users_getFullUser.md +++ b/old_docs/API_docs_v66/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v66/methods/users_getUsers.md b/old_docs/API_docs_v66/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v66/methods/users_getUsers.md +++ b/old_docs/API_docs_v66/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v66/types/Chat.md b/old_docs/API_docs_v66/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v66/types/Chat.md +++ b/old_docs/API_docs_v66/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v66/types/InputChannel.md b/old_docs/API_docs_v66/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v66/types/InputChannel.md +++ b/old_docs/API_docs_v66/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v66/types/InputDocument.md b/old_docs/API_docs_v66/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v66/types/InputDocument.md +++ b/old_docs/API_docs_v66/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v66/types/InputEncryptedChat.md b/old_docs/API_docs_v66/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v66/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v66/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v66/types/InputEncryptedFile.md b/old_docs/API_docs_v66/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v66/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v66/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v66/types/InputFile.md b/old_docs/API_docs_v66/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v66/types/InputFile.md +++ b/old_docs/API_docs_v66/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v66/types/InputMedia.md b/old_docs/API_docs_v66/types/InputMedia.md index 823d30ed..eef8d8f7 100644 --- a/old_docs/API_docs_v66/types/InputMedia.md +++ b/old_docs/API_docs_v66/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v66/types/InputPeer.md b/old_docs/API_docs_v66/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v66/types/InputPeer.md +++ b/old_docs/API_docs_v66/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v66/types/InputPhoto.md b/old_docs/API_docs_v66/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v66/types/InputPhoto.md +++ b/old_docs/API_docs_v66/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v66/types/InputUser.md b/old_docs/API_docs_v66/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v66/types/InputUser.md +++ b/old_docs/API_docs_v66/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v66/types/Peer.md b/old_docs/API_docs_v66/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v66/types/Peer.md +++ b/old_docs/API_docs_v66/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v66/types/PhoneCall.md b/old_docs/API_docs_v66/types/PhoneCall.md index e70eda8e..1a91a72e 100644 --- a/old_docs/API_docs_v66/types/PhoneCall.md +++ b/old_docs/API_docs_v66/types/PhoneCall.md @@ -9,7 +9,7 @@ description: constructors and methods of type PhoneCall 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://daniil.it/MadelineProto#calls) for an easy installation script. +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. @@ -83,8 +83,8 @@ Call states (these constants are incrementing integers, thus can be compared lik * `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://daniil.it/MadelineProto/API_docs/types/PhoneCallProtocol.html) object -* `getCallID()` - Gets the call ID, as an [InputPhoneCall](https://daniil.it/MadelineProto/API_docs/types/InputPhoneCall.html) object +* `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 @@ -102,7 +102,7 @@ Call states (these constants are incrementing integers, thus can be compared lik Accepts two optional parameters: -`$reason` - can be a [PhoneCallDiscardReason](https://daniil.it/MadelineProto/API_docs/types/PhoneCallDiscardReason.html) object (defaults to a [phoneCallDiscardReasonDisconnect](https://daniil.it/MadelineProto/API_docs/constructors/phoneCallDiscardReasonDisconnect.html) object). +`$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.` diff --git a/old_docs/API_docs_v66/types/User.md b/old_docs/API_docs_v66/types/User.md index d696a931..f748d04a 100644 --- a/old_docs/API_docs_v66/types/User.md +++ b/old_docs/API_docs_v66/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v68/constructors/account_authorizations.md b/old_docs/API_docs_v68/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v68/constructors/account_authorizations.md +++ b/old_docs/API_docs_v68/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/account_privacyRules.md b/old_docs/API_docs_v68/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v68/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v68/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/botInfo.md b/old_docs/API_docs_v68/constructors/botInfo.md index bee4a540..25a27913 100644 --- a/old_docs/API_docs_v68/constructors/botInfo.md +++ b/old_docs/API_docs_v68/constructors/botInfo.md @@ -23,7 +23,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/botInlineMessageText.md b/old_docs/API_docs_v68/constructors/botInlineMessageText.md index dc00808b..feb5e9d0 100644 --- a/old_docs/API_docs_v68/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v68/constructors/botInlineMessageText.md @@ -24,7 +24,7 @@ description: botInlineMessageText attributes, type and example ### Example: ``` -$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/cdnConfig.md b/old_docs/API_docs_v68/constructors/cdnConfig.md index 28e814e5..2bf5d200 100644 --- a/old_docs/API_docs_v68/constructors/cdnConfig.md +++ b/old_docs/API_docs_v68/constructors/cdnConfig.md @@ -21,7 +21,7 @@ description: cdnConfig attributes, type and example ### Example: ``` -$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey]]; +$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey, CdnPublicKey]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/channelFull.md b/old_docs/API_docs_v68/constructors/channelFull.md index 189f946e..9f691324 100644 --- a/old_docs/API_docs_v68/constructors/channelFull.md +++ b/old_docs/API_docs_v68/constructors/channelFull.md @@ -38,7 +38,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_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]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/channelMessagesFilter.md b/old_docs/API_docs_v68/constructors/channelMessagesFilter.md index 0a731ce9..ad9a592e 100644 --- a/old_docs/API_docs_v68/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v68/constructors/channelMessagesFilter.md @@ -22,7 +22,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/channels_adminLogResults.md b/old_docs/API_docs_v68/constructors/channels_adminLogResults.md index f0eb0e66..1ef19a76 100644 --- a/old_docs/API_docs_v68/constructors/channels_adminLogResults.md +++ b/old_docs/API_docs_v68/constructors/channels_adminLogResults.md @@ -23,7 +23,7 @@ description: channels_adminLogResults attributes, type and example ### Example: ``` -$channels_adminLogResults = ['_' => 'channels.adminLogResults', 'events' => [ChannelAdminLogEvent], 'chats' => [Chat], 'users' => [User]]; +$channels_adminLogResults = ['_' => 'channels.adminLogResults', 'events' => [ChannelAdminLogEvent, ChannelAdminLogEvent], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/channels_channelParticipant.md b/old_docs/API_docs_v68/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v68/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v68/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/channels_channelParticipants.md b/old_docs/API_docs_v68/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v68/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v68/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/chatFull.md b/old_docs/API_docs_v68/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v68/constructors/chatFull.md +++ b/old_docs/API_docs_v68/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/chatInvite.md b/old_docs/API_docs_v68/constructors/chatInvite.md index e7000f7b..e9087e0d 100644 --- a/old_docs/API_docs_v68/constructors/chatInvite.md +++ b/old_docs/API_docs_v68/constructors/chatInvite.md @@ -28,7 +28,7 @@ description: chatInvite attributes, type and example ### Example: ``` -$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [User]]; +$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: diff --git a/old_docs/API_docs_v68/constructors/chatParticipants.md b/old_docs/API_docs_v68/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v68/constructors/chatParticipants.md +++ b/old_docs/API_docs_v68/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/config.md b/old_docs/API_docs_v68/constructors/config.md index b361c9b9..d86e86b3 100644 --- a/old_docs/API_docs_v68/constructors/config.md +++ b/old_docs/API_docs_v68/constructors/config.md @@ -52,7 +52,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => 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', 'suggested_lang_code' => 'string', 'lang_pack_version' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => 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', 'suggested_lang_code' => 'string', 'lang_pack_version' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/contacts_blocked.md b/old_docs/API_docs_v68/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v68/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v68/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v68/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v68/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v68/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/contacts_contacts.md b/old_docs/API_docs_v68/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v68/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v68/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/contacts_found.md b/old_docs/API_docs_v68/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v68/constructors/contacts_found.md +++ b/old_docs/API_docs_v68/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/contacts_importedContacts.md b/old_docs/API_docs_v68/constructors/contacts_importedContacts.md index 59c3e1f2..c9dd414a 100644 --- a/old_docs/API_docs_v68/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v68/constructors/contacts_importedContacts.md @@ -23,7 +23,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]]; +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v68/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v68/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v68/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/contacts_topPeers.md b/old_docs/API_docs_v68/constructors/contacts_topPeers.md index 17551f5d..07623018 100644 --- a/old_docs/API_docs_v68/constructors/contacts_topPeers.md +++ b/old_docs/API_docs_v68/constructors/contacts_topPeers.md @@ -23,7 +23,7 @@ description: contacts_topPeers attributes, type and example ### Example: ``` -$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers], 'chats' => [Chat], 'users' => [User]]; +$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers, TopPeerCategoryPeers], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/document.md b/old_docs/API_docs_v68/constructors/document.md index 8c0883bb..55d4c017 100644 --- a/old_docs/API_docs_v68/constructors/document.md +++ b/old_docs/API_docs_v68/constructors/document.md @@ -29,7 +29,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/documentAttributeAudio.md b/old_docs/API_docs_v68/constructors/documentAttributeAudio.md index 4d393890..ceb02cba 100644 --- a/old_docs/API_docs_v68/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v68/constructors/documentAttributeAudio.md @@ -12,7 +12,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| |voice|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Optional| |performer|[string](../types/string.md) | Optional| |waveform|[bytes](../types/bytes.md) | Optional| diff --git a/old_docs/API_docs_v68/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v68/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v68/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v68/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v68/constructors/documentAttributeVideo.md b/old_docs/API_docs_v68/constructors/documentAttributeVideo.md index 38ce9302..5c367fc9 100644 --- a/old_docs/API_docs_v68/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v68/constructors/documentAttributeVideo.md @@ -12,9 +12,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| |round\_message|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v68/constructors/draftMessage.md b/old_docs/API_docs_v68/constructors/draftMessage.md index 13277194..644adc43 100644 --- a/old_docs/API_docs_v68/constructors/draftMessage.md +++ b/old_docs/API_docs_v68/constructors/draftMessage.md @@ -25,7 +25,7 @@ description: draftMessage attributes, type and example ### Example: ``` -$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity], 'date' => int]; +$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'date' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/future_salts.md b/old_docs/API_docs_v68/constructors/future_salts.md index 4fb8d0f3..a0e695cc 100644 --- a/old_docs/API_docs_v68/constructors/future_salts.md +++ b/old_docs/API_docs_v68/constructors/future_salts.md @@ -23,7 +23,7 @@ description: future_salts attributes, type and example ### Example: ``` -$future_salts = ['_' => 'future_salts', 'req_msg_id' => long, 'now' => int, 'salts' => [future_salt]]; +$future_salts = ['_' => 'future_salts', 'req_msg_id' => long, 'now' => int, 'salts' => [future_salt, future_salt]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/help_configSimple.md b/old_docs/API_docs_v68/constructors/help_configSimple.md index 0b670a2b..63d274a4 100644 --- a/old_docs/API_docs_v68/constructors/help_configSimple.md +++ b/old_docs/API_docs_v68/constructors/help_configSimple.md @@ -24,7 +24,7 @@ description: help_configSimple attributes, type and example ### Example: ``` -$help_configSimple = ['_' => 'help.configSimple', 'date' => int, 'expires' => int, 'dc_id' => int, 'ip_port_list' => [ipPort]]; +$help_configSimple = ['_' => 'help.configSimple', 'date' => int, 'expires' => int, 'dc_id' => int, 'ip_port_list' => [ipPort, ipPort]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v68/constructors/inputBotInlineMessageText.md index 677e5d8c..ed3ddd1b 100644 --- a/old_docs/API_docs_v68/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v68/constructors/inputBotInlineMessageText.md @@ -24,7 +24,7 @@ description: inputBotInlineMessageText attributes, type and example ### Example: ``` -$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/inputBotInlineResultDocument.md b/old_docs/API_docs_v68/constructors/inputBotInlineResultDocument.md index 2315623b..f27421f9 100644 --- a/old_docs/API_docs_v68/constructors/inputBotInlineResultDocument.md +++ b/old_docs/API_docs_v68/constructors/inputBotInlineResultDocument.md @@ -15,7 +15,7 @@ description: inputBotInlineResultDocument attributes, type and example |type|[string](../types/string.md) | Yes| |title|[string](../types/string.md) | Optional| |description|[string](../types/string.md) | Optional| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v68/constructors/inputBotInlineResultPhoto.md b/old_docs/API_docs_v68/constructors/inputBotInlineResultPhoto.md index d39bd108..9628b4e5 100644 --- a/old_docs/API_docs_v68/constructors/inputBotInlineResultPhoto.md +++ b/old_docs/API_docs_v68/constructors/inputBotInlineResultPhoto.md @@ -13,7 +13,7 @@ description: inputBotInlineResultPhoto attributes, type and example |----------|---------------|----------| |id|[string](../types/string.md) | Yes| |type|[string](../types/string.md) | Yes| -|photo|[InputPhoto](../types/InputPhoto.md) | Optional| +|photo|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v68/constructors/inputChatPhoto.md b/old_docs/API_docs_v68/constructors/inputChatPhoto.md index e787f342..ae979308 100644 --- a/old_docs/API_docs_v68/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v68/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v68/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v68/constructors/inputChatUploadedPhoto.md index 78c28fdc..e9d2f354 100644 --- a/old_docs/API_docs_v68/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v68/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| diff --git a/old_docs/API_docs_v68/constructors/inputGameShortName.md b/old_docs/API_docs_v68/constructors/inputGameShortName.md index 64c55c18..0261912a 100644 --- a/old_docs/API_docs_v68/constructors/inputGameShortName.md +++ b/old_docs/API_docs_v68/constructors/inputGameShortName.md @@ -11,7 +11,7 @@ description: inputGameShortName attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|bot\_id|[InputUser](../types/InputUser.md) | Optional| +|bot\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |short\_name|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v68/constructors/inputMediaDocument.md b/old_docs/API_docs_v68/constructors/inputMediaDocument.md index 88fed980..66d0baba 100644 --- a/old_docs/API_docs_v68/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v68/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v68/constructors/inputMediaPhoto.md b/old_docs/API_docs_v68/constructors/inputMediaPhoto.md index e015f691..9e923ffb 100644 --- a/old_docs/API_docs_v68/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v68/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v68/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v68/constructors/inputMediaUploadedDocument.md index a2520998..71e6ea97 100644 --- a/old_docs/API_docs_v68/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v68/constructors/inputMediaUploadedDocument.md @@ -11,11 +11,11 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| @@ -25,7 +25,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument]]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v68/constructors/inputMediaUploadedPhoto.md index ac5480e1..193591c7 100644 --- a/old_docs/API_docs_v68/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v68/constructors/inputMediaUploadedPhoto.md @@ -11,9 +11,9 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| @@ -23,7 +23,7 @@ description: inputMediaUploadedPhoto attributes, type and example ### Example: ``` -$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument]]; +$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/inputMediaUploadedThumbDocument.md b/old_docs/API_docs_v68/constructors/inputMediaUploadedThumbDocument.md index 06ef970d..605ffe2c 100644 --- a/old_docs/API_docs_v68/constructors/inputMediaUploadedThumbDocument.md +++ b/old_docs/API_docs_v68/constructors/inputMediaUploadedThumbDocument.md @@ -11,12 +11,12 @@ description: inputMediaUploadedThumbDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| @@ -26,7 +26,7 @@ description: inputMediaUploadedThumbDocument attributes, type and example ### Example: ``` -$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument]]; +$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/inputNotifyPeer.md b/old_docs/API_docs_v68/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v68/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v68/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v68/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v68/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v68/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v68/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v68/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v68/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v68/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/inputStickerSetItem.md b/old_docs/API_docs_v68/constructors/inputStickerSetItem.md index 84ae0e46..749330b9 100644 --- a/old_docs/API_docs_v68/constructors/inputStickerSetItem.md +++ b/old_docs/API_docs_v68/constructors/inputStickerSetItem.md @@ -11,7 +11,7 @@ description: inputStickerSetItem attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |emoji|[string](../types/string.md) | Yes| |mask\_coords|[MaskCoords](../types/MaskCoords.md) | Optional| diff --git a/old_docs/API_docs_v68/constructors/inputStickeredMediaDocument.md b/old_docs/API_docs_v68/constructors/inputStickeredMediaDocument.md index ca9921e7..c281b7e5 100644 --- a/old_docs/API_docs_v68/constructors/inputStickeredMediaDocument.md +++ b/old_docs/API_docs_v68/constructors/inputStickeredMediaDocument.md @@ -11,7 +11,7 @@ description: inputStickeredMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v68/constructors/inputStickeredMediaPhoto.md b/old_docs/API_docs_v68/constructors/inputStickeredMediaPhoto.md index ac0428e1..042044b0 100644 --- a/old_docs/API_docs_v68/constructors/inputStickeredMediaPhoto.md +++ b/old_docs/API_docs_v68/constructors/inputStickeredMediaPhoto.md @@ -11,7 +11,7 @@ description: inputStickeredMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v68/constructors/inputWebDocument.md b/old_docs/API_docs_v68/constructors/inputWebDocument.md index 81f2707a..dd9a24ff 100644 --- a/old_docs/API_docs_v68/constructors/inputWebDocument.md +++ b/old_docs/API_docs_v68/constructors/inputWebDocument.md @@ -24,7 +24,7 @@ description: inputWebDocument attributes, type and example ### Example: ``` -$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/invoice.md b/old_docs/API_docs_v68/constructors/invoice.md index ddccf1b6..80a56a08 100644 --- a/old_docs/API_docs_v68/constructors/invoice.md +++ b/old_docs/API_docs_v68/constructors/invoice.md @@ -28,7 +28,7 @@ description: invoice attributes, type and example ### Example: ``` -$invoice = ['_' => 'invoice', 'test' => Bool, 'name_requested' => Bool, 'phone_requested' => Bool, 'email_requested' => Bool, 'shipping_address_requested' => Bool, 'flexible' => Bool, 'currency' => 'string', 'prices' => [LabeledPrice]]; +$invoice = ['_' => 'invoice', 'test' => Bool, 'name_requested' => Bool, 'phone_requested' => Bool, 'email_requested' => Bool, 'shipping_address_requested' => Bool, 'flexible' => Bool, 'currency' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/keyboardButtonRow.md b/old_docs/API_docs_v68/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v68/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v68/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/langPackDifference.md b/old_docs/API_docs_v68/constructors/langPackDifference.md index 0d077158..3447d739 100644 --- a/old_docs/API_docs_v68/constructors/langPackDifference.md +++ b/old_docs/API_docs_v68/constructors/langPackDifference.md @@ -24,7 +24,7 @@ description: langPackDifference attributes, type and example ### Example: ``` -$langPackDifference = ['_' => 'langPackDifference', 'lang_code' => 'string', 'from_version' => int, 'version' => int, 'strings' => [LangPackString]]; +$langPackDifference = ['_' => 'langPackDifference', 'lang_code' => 'string', 'from_version' => int, 'version' => int, 'strings' => [LangPackString, LangPackString]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/message.md b/old_docs/API_docs_v68/constructors/message.md index 67b2cd79..dc324ff1 100644 --- a/old_docs/API_docs_v68/constructors/message.md +++ b/old_docs/API_docs_v68/constructors/message.md @@ -38,7 +38,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; +$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v68/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v68/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v68/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messageActionChatCreate.md b/old_docs/API_docs_v68/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v68/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v68/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_allStickers.md b/old_docs/API_docs_v68/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/old_docs/API_docs_v68/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v68/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_archivedStickers.md b/old_docs/API_docs_v68/constructors/messages_archivedStickers.md index 7af238d4..c9675b57 100644 --- a/old_docs/API_docs_v68/constructors/messages_archivedStickers.md +++ b/old_docs/API_docs_v68/constructors/messages_archivedStickers.md @@ -22,7 +22,7 @@ description: messages_archivedStickers attributes, type and example ### Example: ``` -$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered]]; +$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_botResults.md b/old_docs/API_docs_v68/constructors/messages_botResults.md index 2f53b450..13edec1a 100644 --- a/old_docs/API_docs_v68/constructors/messages_botResults.md +++ b/old_docs/API_docs_v68/constructors/messages_botResults.md @@ -26,7 +26,7 @@ description: messages_botResults attributes, type and example ### Example: ``` -$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult], 'cache_time' => int]; +$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult, BotInlineResult], 'cache_time' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_channelMessages.md b/old_docs/API_docs_v68/constructors/messages_channelMessages.md index 8ec11b2d..358c0c70 100644 --- a/old_docs/API_docs_v68/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v68/constructors/messages_channelMessages.md @@ -25,7 +25,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_chatFull.md b/old_docs/API_docs_v68/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v68/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v68/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_chats.md b/old_docs/API_docs_v68/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v68/constructors/messages_chats.md +++ b/old_docs/API_docs_v68/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_chatsSlice.md b/old_docs/API_docs_v68/constructors/messages_chatsSlice.md index 4e3e0e77..614c577b 100644 --- a/old_docs/API_docs_v68/constructors/messages_chatsSlice.md +++ b/old_docs/API_docs_v68/constructors/messages_chatsSlice.md @@ -22,7 +22,7 @@ description: messages_chatsSlice attributes, type and example ### Example: ``` -$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat]]; +$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_dialogs.md b/old_docs/API_docs_v68/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v68/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v68/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v68/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v68/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v68/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v68/constructors/messages_featuredStickers.md b/old_docs/API_docs_v68/constructors/messages_featuredStickers.md index dac1fd91..0fc54db1 100644 --- a/old_docs/API_docs_v68/constructors/messages_featuredStickers.md +++ b/old_docs/API_docs_v68/constructors/messages_featuredStickers.md @@ -23,7 +23,7 @@ description: messages_featuredStickers attributes, type and example ### Example: ``` -$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered], 'unread' => [long]]; +$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered, StickerSetCovered], 'unread' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_foundGifs.md b/old_docs/API_docs_v68/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/old_docs/API_docs_v68/constructors/messages_foundGifs.md +++ b/old_docs/API_docs_v68/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_highScores.md b/old_docs/API_docs_v68/constructors/messages_highScores.md index 26eab658..df592f06 100644 --- a/old_docs/API_docs_v68/constructors/messages_highScores.md +++ b/old_docs/API_docs_v68/constructors/messages_highScores.md @@ -22,7 +22,7 @@ description: messages_highScores attributes, type and example ### Example: ``` -$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore], 'users' => [User]]; +$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore, HighScore], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_messages.md b/old_docs/API_docs_v68/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v68/constructors/messages_messages.md +++ b/old_docs/API_docs_v68/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_messagesSlice.md b/old_docs/API_docs_v68/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v68/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v68/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_peerDialogs.md b/old_docs/API_docs_v68/constructors/messages_peerDialogs.md index bec6c88c..5d25b545 100644 --- a/old_docs/API_docs_v68/constructors/messages_peerDialogs.md +++ b/old_docs/API_docs_v68/constructors/messages_peerDialogs.md @@ -25,7 +25,7 @@ description: messages_peerDialogs attributes, type and example ### Example: ``` -$messages_peerDialogs = ['_' => 'messages.peerDialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v68/constructors/messages_recentStickers.md b/old_docs/API_docs_v68/constructors/messages_recentStickers.md index be5e69a0..a8a53ffe 100644 --- a/old_docs/API_docs_v68/constructors/messages_recentStickers.md +++ b/old_docs/API_docs_v68/constructors/messages_recentStickers.md @@ -22,7 +22,7 @@ description: messages_recentStickers attributes, type and example ### Example: ``` -$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document]]; +$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_savedGifs.md b/old_docs/API_docs_v68/constructors/messages_savedGifs.md index 7e2a00eb..b4ff040d 100644 --- a/old_docs/API_docs_v68/constructors/messages_savedGifs.md +++ b/old_docs/API_docs_v68/constructors/messages_savedGifs.md @@ -22,7 +22,7 @@ description: messages_savedGifs attributes, type and example ### Example: ``` -$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document]]; +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_stickerSet.md b/old_docs/API_docs_v68/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v68/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v68/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_stickerSetInstallResultArchive.md b/old_docs/API_docs_v68/constructors/messages_stickerSetInstallResultArchive.md index f3e510bb..5b7fb05f 100644 --- a/old_docs/API_docs_v68/constructors/messages_stickerSetInstallResultArchive.md +++ b/old_docs/API_docs_v68/constructors/messages_stickerSetInstallResultArchive.md @@ -21,7 +21,7 @@ description: messages_stickerSetInstallResultArchive attributes, type and exampl ### Example: ``` -$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered]]; +$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/messages_stickers.md b/old_docs/API_docs_v68/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v68/constructors/messages_stickers.md +++ b/old_docs/API_docs_v68/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/msg_resend_req.md b/old_docs/API_docs_v68/constructors/msg_resend_req.md index 6a584a1a..13e6669d 100644 --- a/old_docs/API_docs_v68/constructors/msg_resend_req.md +++ b/old_docs/API_docs_v68/constructors/msg_resend_req.md @@ -21,7 +21,7 @@ description: msg_resend_req attributes, type and example ### Example: ``` -$msg_resend_req = ['_' => 'msg_resend_req', 'msg_ids' => [long]]; +$msg_resend_req = ['_' => 'msg_resend_req', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/msgs_ack.md b/old_docs/API_docs_v68/constructors/msgs_ack.md index 6d945079..353148ea 100644 --- a/old_docs/API_docs_v68/constructors/msgs_ack.md +++ b/old_docs/API_docs_v68/constructors/msgs_ack.md @@ -21,7 +21,7 @@ description: msgs_ack attributes, type and example ### Example: ``` -$msgs_ack = ['_' => 'msgs_ack', 'msg_ids' => [long]]; +$msgs_ack = ['_' => 'msgs_ack', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/msgs_all_info.md b/old_docs/API_docs_v68/constructors/msgs_all_info.md index 632ef421..dd630f00 100644 --- a/old_docs/API_docs_v68/constructors/msgs_all_info.md +++ b/old_docs/API_docs_v68/constructors/msgs_all_info.md @@ -22,7 +22,7 @@ description: msgs_all_info attributes, type and example ### Example: ``` -$msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long], 'info' => 'string']; +$msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long, long], 'info' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/msgs_state_req.md b/old_docs/API_docs_v68/constructors/msgs_state_req.md index 3aecb1ee..76f1f05c 100644 --- a/old_docs/API_docs_v68/constructors/msgs_state_req.md +++ b/old_docs/API_docs_v68/constructors/msgs_state_req.md @@ -21,7 +21,7 @@ description: msgs_state_req attributes, type and example ### Example: ``` -$msgs_state_req = ['_' => 'msgs_state_req', 'msg_ids' => [long]]; +$msgs_state_req = ['_' => 'msgs_state_req', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/pageBlockCollage.md b/old_docs/API_docs_v68/constructors/pageBlockCollage.md index 8685b250..3950e34d 100644 --- a/old_docs/API_docs_v68/constructors/pageBlockCollage.md +++ b/old_docs/API_docs_v68/constructors/pageBlockCollage.md @@ -22,7 +22,7 @@ description: pageBlockCollage attributes, type and example ### Example: ``` -$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/pageBlockEmbedPost.md b/old_docs/API_docs_v68/constructors/pageBlockEmbedPost.md index e0e955b9..e9434dfa 100644 --- a/old_docs/API_docs_v68/constructors/pageBlockEmbedPost.md +++ b/old_docs/API_docs_v68/constructors/pageBlockEmbedPost.md @@ -27,7 +27,7 @@ description: pageBlockEmbedPost attributes, type and example ### Example: ``` -$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock], 'caption' => RichText]; +$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/pageBlockList.md b/old_docs/API_docs_v68/constructors/pageBlockList.md index 6bf3c783..728c05a7 100644 --- a/old_docs/API_docs_v68/constructors/pageBlockList.md +++ b/old_docs/API_docs_v68/constructors/pageBlockList.md @@ -22,7 +22,7 @@ description: pageBlockList attributes, type and example ### Example: ``` -$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText]]; +$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/pageBlockSlideshow.md b/old_docs/API_docs_v68/constructors/pageBlockSlideshow.md index e48d51bb..0c18e64f 100644 --- a/old_docs/API_docs_v68/constructors/pageBlockSlideshow.md +++ b/old_docs/API_docs_v68/constructors/pageBlockSlideshow.md @@ -22,7 +22,7 @@ description: pageBlockSlideshow attributes, type and example ### Example: ``` -$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/pageFull.md b/old_docs/API_docs_v68/constructors/pageFull.md index 7dabe40d..4ea43cd0 100644 --- a/old_docs/API_docs_v68/constructors/pageFull.md +++ b/old_docs/API_docs_v68/constructors/pageFull.md @@ -23,7 +23,7 @@ description: pageFull attributes, type and example ### Example: ``` -$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock], 'photos' => [Photo], 'documents' => [Document]]; +$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/pagePart.md b/old_docs/API_docs_v68/constructors/pagePart.md index a6969c73..32e8ac28 100644 --- a/old_docs/API_docs_v68/constructors/pagePart.md +++ b/old_docs/API_docs_v68/constructors/pagePart.md @@ -23,7 +23,7 @@ description: pagePart attributes, type and example ### Example: ``` -$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock], 'photos' => [Photo], 'documents' => [Document]]; +$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/payments_paymentForm.md b/old_docs/API_docs_v68/constructors/payments_paymentForm.md index 6b468a10..982b4a13 100644 --- a/old_docs/API_docs_v68/constructors/payments_paymentForm.md +++ b/old_docs/API_docs_v68/constructors/payments_paymentForm.md @@ -31,7 +31,7 @@ description: payments_paymentForm attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v68/constructors/payments_paymentReceipt.md b/old_docs/API_docs_v68/constructors/payments_paymentReceipt.md index cb64a78a..f7c6589c 100644 --- a/old_docs/API_docs_v68/constructors/payments_paymentReceipt.md +++ b/old_docs/API_docs_v68/constructors/payments_paymentReceipt.md @@ -30,7 +30,7 @@ description: payments_paymentReceipt attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v68/constructors/payments_validatedRequestedInfo.md b/old_docs/API_docs_v68/constructors/payments_validatedRequestedInfo.md index a1d841b5..362544ca 100644 --- a/old_docs/API_docs_v68/constructors/payments_validatedRequestedInfo.md +++ b/old_docs/API_docs_v68/constructors/payments_validatedRequestedInfo.md @@ -22,7 +22,7 @@ description: payments_validatedRequestedInfo attributes, type and example ### Example: ``` -$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption]]; +$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption, ShippingOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/phoneCall.md b/old_docs/API_docs_v68/constructors/phoneCall.md index 279af015..703116b5 100644 --- a/old_docs/API_docs_v68/constructors/phoneCall.md +++ b/old_docs/API_docs_v68/constructors/phoneCall.md @@ -31,7 +31,7 @@ description: phoneCall attributes, type and example ### Example: ``` -$phoneCall = ['_' => 'phoneCall', '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]; +$phoneCall = ['_' => 'phoneCall', '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: diff --git a/old_docs/API_docs_v68/constructors/phone_phoneCall.md b/old_docs/API_docs_v68/constructors/phone_phoneCall.md index 38177647..00a43b98 100644 --- a/old_docs/API_docs_v68/constructors/phone_phoneCall.md +++ b/old_docs/API_docs_v68/constructors/phone_phoneCall.md @@ -22,7 +22,7 @@ description: phone_phoneCall attributes, type and example ### Example: ``` -$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User]]; +$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/photo.md b/old_docs/API_docs_v68/constructors/photo.md index 0d6edc52..293458ca 100644 --- a/old_docs/API_docs_v68/constructors/photo.md +++ b/old_docs/API_docs_v68/constructors/photo.md @@ -25,7 +25,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/photos_photo.md b/old_docs/API_docs_v68/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v68/constructors/photos_photo.md +++ b/old_docs/API_docs_v68/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/photos_photos.md b/old_docs/API_docs_v68/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v68/constructors/photos_photos.md +++ b/old_docs/API_docs_v68/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/photos_photosSlice.md b/old_docs/API_docs_v68/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v68/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v68/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v68/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v68/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v68/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v68/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v68/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v68/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/replyInlineMarkup.md b/old_docs/API_docs_v68/constructors/replyInlineMarkup.md index 80d2ff77..95257485 100644 --- a/old_docs/API_docs_v68/constructors/replyInlineMarkup.md +++ b/old_docs/API_docs_v68/constructors/replyInlineMarkup.md @@ -21,7 +21,7 @@ description: replyInlineMarkup attributes, type and example ### Example: ``` -$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow]]; +$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v68/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v68/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v68/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/resPQ.md b/old_docs/API_docs_v68/constructors/resPQ.md index 5d6c0d6b..f4dcf3e9 100644 --- a/old_docs/API_docs_v68/constructors/resPQ.md +++ b/old_docs/API_docs_v68/constructors/resPQ.md @@ -24,7 +24,7 @@ description: resPQ attributes, type and example ### Example: ``` -$resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => 'string', 'server_public_key_fingerprints' => [long]]; +$resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => 'string', 'server_public_key_fingerprints' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/shippingOption.md b/old_docs/API_docs_v68/constructors/shippingOption.md index 32ec5182..53a0405f 100644 --- a/old_docs/API_docs_v68/constructors/shippingOption.md +++ b/old_docs/API_docs_v68/constructors/shippingOption.md @@ -23,7 +23,7 @@ description: shippingOption attributes, type and example ### Example: ``` -$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice]]; +$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/stickerPack.md b/old_docs/API_docs_v68/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v68/constructors/stickerPack.md +++ b/old_docs/API_docs_v68/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/stickerSetMultiCovered.md b/old_docs/API_docs_v68/constructors/stickerSetMultiCovered.md index 4dd5a0a7..9a337fdc 100644 --- a/old_docs/API_docs_v68/constructors/stickerSetMultiCovered.md +++ b/old_docs/API_docs_v68/constructors/stickerSetMultiCovered.md @@ -22,7 +22,7 @@ description: stickerSetMultiCovered attributes, type and example ### Example: ``` -$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document]]; +$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/textConcat.md b/old_docs/API_docs_v68/constructors/textConcat.md index 4a44d3b2..bfdb9e50 100644 --- a/old_docs/API_docs_v68/constructors/textConcat.md +++ b/old_docs/API_docs_v68/constructors/textConcat.md @@ -21,7 +21,7 @@ description: textConcat attributes, type and example ### Example: ``` -$textConcat = ['_' => 'textConcat', 'texts' => [RichText]]; +$textConcat = ['_' => 'textConcat', 'texts' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/topPeerCategoryPeers.md b/old_docs/API_docs_v68/constructors/topPeerCategoryPeers.md index acd5cf08..03b78ed3 100644 --- a/old_docs/API_docs_v68/constructors/topPeerCategoryPeers.md +++ b/old_docs/API_docs_v68/constructors/topPeerCategoryPeers.md @@ -23,7 +23,7 @@ description: topPeerCategoryPeers attributes, type and example ### Example: ``` -$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer]]; +$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer, TopPeer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/updateDcOptions.md b/old_docs/API_docs_v68/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v68/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v68/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v68/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v68/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v68/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/updateDeleteMessages.md b/old_docs/API_docs_v68/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v68/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v68/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/updatePinnedDialogs.md b/old_docs/API_docs_v68/constructors/updatePinnedDialogs.md index a531ad75..c38d664c 100644 --- a/old_docs/API_docs_v68/constructors/updatePinnedDialogs.md +++ b/old_docs/API_docs_v68/constructors/updatePinnedDialogs.md @@ -21,7 +21,7 @@ description: updatePinnedDialogs attributes, type and example ### Example: ``` -$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer]]; +$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer, Peer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/updatePrivacy.md b/old_docs/API_docs_v68/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v68/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v68/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v68/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v68/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v68/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/updateServiceNotification.md b/old_docs/API_docs_v68/constructors/updateServiceNotification.md index 562d1089..92280ccf 100644 --- a/old_docs/API_docs_v68/constructors/updateServiceNotification.md +++ b/old_docs/API_docs_v68/constructors/updateServiceNotification.md @@ -26,7 +26,7 @@ description: updateServiceNotification attributes, type and example ### Example: ``` -$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/updateShortChatMessage.md b/old_docs/API_docs_v68/constructors/updateShortChatMessage.md index 08aa61a5..f6310d0d 100644 --- a/old_docs/API_docs_v68/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v68/constructors/updateShortChatMessage.md @@ -35,7 +35,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v68/constructors/updateShortMessage.md b/old_docs/API_docs_v68/constructors/updateShortMessage.md index 608d2a30..24f07b99 100644 --- a/old_docs/API_docs_v68/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v68/constructors/updateShortMessage.md @@ -34,7 +34,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v68/constructors/updateShortSentMessage.md b/old_docs/API_docs_v68/constructors/updateShortSentMessage.md index 28f82e3a..ebc40cf9 100644 --- a/old_docs/API_docs_v68/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v68/constructors/updateShortSentMessage.md @@ -27,7 +27,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$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: diff --git a/old_docs/API_docs_v68/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v68/constructors/updateStickerSetsOrder.md index 53637821..7b29b8f2 100644 --- a/old_docs/API_docs_v68/constructors/updateStickerSetsOrder.md +++ b/old_docs/API_docs_v68/constructors/updateStickerSetsOrder.md @@ -22,7 +22,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/updates.md b/old_docs/API_docs_v68/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v68/constructors/updates.md +++ b/old_docs/API_docs_v68/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/updatesCombined.md b/old_docs/API_docs_v68/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v68/constructors/updatesCombined.md +++ b/old_docs/API_docs_v68/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v68/constructors/updates_channelDifference.md b/old_docs/API_docs_v68/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v68/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v68/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v68/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v68/constructors/updates_channelDifferenceTooLong.md index 8e3a01aa..0ff98bf6 100644 --- a/old_docs/API_docs_v68/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v68/constructors/updates_channelDifferenceTooLong.md @@ -30,7 +30,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$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, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/updates_difference.md b/old_docs/API_docs_v68/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v68/constructors/updates_difference.md +++ b/old_docs/API_docs_v68/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v68/constructors/updates_differenceSlice.md b/old_docs/API_docs_v68/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v68/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v68/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v68/constructors/wallPaper.md b/old_docs/API_docs_v68/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v68/constructors/wallPaper.md +++ b/old_docs/API_docs_v68/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/constructors/webDocument.md b/old_docs/API_docs_v68/constructors/webDocument.md index 0be6cb8a..55a5b09b 100644 --- a/old_docs/API_docs_v68/constructors/webDocument.md +++ b/old_docs/API_docs_v68/constructors/webDocument.md @@ -26,7 +26,7 @@ description: webDocument attributes, type and example ### Example: ``` -$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'dc_id' => int]; +$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'dc_id' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v68/methods/README.md b/old_docs/API_docs_v68/methods/README.md index 36373a90..c924660b 100644 --- a/old_docs/API_docs_v68/methods/README.md +++ b/old_docs/API_docs_v68/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v68/methods/account_changePhone.md b/old_docs/API_docs_v68/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v68/methods/account_changePhone.md +++ b/old_docs/API_docs_v68/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_checkUsername.md b/old_docs/API_docs_v68/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v68/methods/account_checkUsername.md +++ b/old_docs/API_docs_v68/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_confirmPhone.md b/old_docs/API_docs_v68/methods/account_confirmPhone.md index 8dd79d94..2261e6e8 100644 --- a/old_docs/API_docs_v68/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v68/methods/account_confirmPhone.md @@ -1,17 +1,19 @@ --- title: account.confirmPhone -description: account.confirmPhone parameters, return type and example +description: Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode --- ## 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 | Required | -|----------|---------------|----------| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_code\_hash|[string](../types/string.md) | Yes|obtain phone_code_hash from sendConfirmPhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The code sent by sendConfirmPhoneCode| ### Return type: [Bool](../types/Bool.md) @@ -31,13 +33,18 @@ description: account.confirmPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_deleteAccount.md b/old_docs/API_docs_v68/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v68/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v68/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_getAccountTTL.md b/old_docs/API_docs_v68/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v68/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v68/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v68/methods/account_getAuthorizations.md b/old_docs/API_docs_v68/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v68/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v68/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v68/methods/account_getNotifySettings.md b/old_docs/API_docs_v68/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v68/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v68/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_getPassword.md b/old_docs/API_docs_v68/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v68/methods/account_getPassword.md +++ b/old_docs/API_docs_v68/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v68/methods/account_getPasswordSettings.md b/old_docs/API_docs_v68/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v68/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v68/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_getPrivacy.md b/old_docs/API_docs_v68/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v68/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v68/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_getTmpPassword.md b/old_docs/API_docs_v68/methods/account_getTmpPassword.md index d9bd30d8..e9ff8d28 100644 --- a/old_docs/API_docs_v68/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v68/methods/account_getTmpPassword.md @@ -1,17 +1,19 @@ --- title: account.getTmpPassword -description: account.getTmpPassword parameters, return type and example +description: Get temporary password for buying products through bots --- ## Method: account.getTmpPassword [Back to methods index](index.md) +Get temporary password for buying products through bots + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|password\_hash|[bytes](../types/bytes.md) | Yes|The password hash| +|period|[int](../types/int.md) | Yes|The validity period| ### Return type: [account\_TmpPassword](../types/account_TmpPassword.md) @@ -31,13 +33,18 @@ description: account.getTmpPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_getWallPapers.md b/old_docs/API_docs_v68/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v68/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v68/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v68/methods/account_registerDevice.md b/old_docs/API_docs_v68/methods/account_registerDevice.md index 8be04ad2..0bf6d1ee 100644 --- a/old_docs/API_docs_v68/methods/account_registerDevice.md +++ b/old_docs/API_docs_v68/methods/account_registerDevice.md @@ -1,17 +1,19 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_reportPeer.md b/old_docs/API_docs_v68/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v68/methods/account_reportPeer.md +++ b/old_docs/API_docs_v68/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_resetAuthorization.md b/old_docs/API_docs_v68/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v68/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v68/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_resetNotifySettings.md b/old_docs/API_docs_v68/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v68/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v68/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md index 017b5f7f..9e5016a4 100644 --- a/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|phone\_number|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can the code be sent using a flash call instead of an SMS?| +|phone\_number|[string](../types/string.md) | Yes|New phone number| +|current\_number|[Bool](../types/Bool.md) | Optional|Current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md index 3665bd50..4de86a33 100644 --- a/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendConfirmPhoneCode -description: account.sendConfirmPhoneCode parameters, return type and example +description: Send confirmation phone code --- ## Method: account.sendConfirmPhoneCode [Back to methods index](index.md) +Send confirmation phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|hash|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can telegram call you instead of sending an SMS?| +|hash|[string](../types/string.md) | Yes|The hash| +|current\_number|[Bool](../types/Bool.md) | Optional|The current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendConfirmPhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_setAccountTTL.md b/old_docs/API_docs_v68/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v68/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v68/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_setPrivacy.md b/old_docs/API_docs_v68/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v68/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v68/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/account_unregisterDevice.md b/old_docs/API_docs_v68/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v68/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v68/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v68/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v68/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v68/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_updateNotifySettings.md b/old_docs/API_docs_v68/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v68/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v68/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_updateProfile.md b/old_docs/API_docs_v68/methods/account_updateProfile.md index b3d468d1..8b0c3268 100644 --- a/old_docs/API_docs_v68/methods/account_updateProfile.md +++ b/old_docs/API_docs_v68/methods/account_updateProfile.md @@ -1,18 +1,20 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Optional| -|last\_name|[string](../types/string.md) | Optional| -|about|[string](../types/string.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Optional|The first name| +|last\_name|[string](../types/string.md) | Optional|The last name| +|about|[string](../types/string.md) | Optional|The bio/about field| ### Return type: [User](../types/User.md) @@ -32,13 +34,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_updateStatus.md b/old_docs/API_docs_v68/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v68/methods/account_updateStatus.md +++ b/old_docs/API_docs_v68/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v68/methods/account_updateUsername.md b/old_docs/API_docs_v68/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v68/methods/account_updateUsername.md +++ b/old_docs/API_docs_v68/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v68/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v68/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v68/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v68/methods/auth_cancelCode.md b/old_docs/API_docs_v68/methods/auth_cancelCode.md index 05d927a1..1283e1e5 100644 --- a/old_docs/API_docs_v68/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v68/methods/auth_cancelCode.md @@ -1,17 +1,19 @@ --- title: auth.cancelCode -description: auth.cancelCode parameters, return type and example +description: Invalidate sent phone code --- ## Method: auth.cancelCode [Back to methods index](index.md) +Invalidate sent phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: auth.cancelCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/auth_checkPassword.md b/old_docs/API_docs_v68/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v68/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v68/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v68/methods/auth_checkPhone.md b/old_docs/API_docs_v68/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v68/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v68/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v68/methods/auth_dropTempAuthKeys.md index fedb7bf4..b08b9f40 100644 --- a/old_docs/API_docs_v68/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v68/methods/auth_dropTempAuthKeys.md @@ -1,16 +1,18 @@ --- title: auth.dropTempAuthKeys -description: auth.dropTempAuthKeys parameters, return type and example +description: Delete all temporary authorization keys except the ones provided --- ## Method: auth.dropTempAuthKeys [Back to methods index](index.md) +Delete all temporary authorization keys except the ones provided + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|except\_auth\_keys|Array of [long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|except\_auth\_keys|Array of [long](../types/long.md) | Yes|The temporary authorization keys to keep| ### Return type: [Bool](../types/Bool.md) @@ -22,18 +24,20 @@ description: auth.dropTempAuthKeys parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/auth_exportAuthorization.md b/old_docs/API_docs_v68/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v68/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v68/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v68/methods/auth_importAuthorization.md b/old_docs/API_docs_v68/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v68/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v68/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v68/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v68/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v68/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v68/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v68/methods/auth_logOut.md b/old_docs/API_docs_v68/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v68/methods/auth_logOut.md +++ b/old_docs/API_docs_v68/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v68/methods/auth_recoverPassword.md b/old_docs/API_docs_v68/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v68/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v68/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v68/methods/auth_resendCode.md b/old_docs/API_docs_v68/methods/auth_resendCode.md index df4803b8..4bfbf379 100644 --- a/old_docs/API_docs_v68/methods/auth_resendCode.md +++ b/old_docs/API_docs_v68/methods/auth_resendCode.md @@ -1,17 +1,19 @@ --- title: auth.resendCode -description: auth.resendCode parameters, return type and example +description: Resend the SMS verification code --- ## Method: auth.resendCode [Back to methods index](index.md) +Resend the SMS verification code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|The phone code hash| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -30,13 +32,18 @@ description: auth.resendCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v68/methods/auth_sendCode.md b/old_docs/API_docs_v68/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v68/methods/auth_sendCode.md +++ b/old_docs/API_docs_v68/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v68/methods/auth_sendInvites.md b/old_docs/API_docs_v68/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v68/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v68/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/auth_signIn.md b/old_docs/API_docs_v68/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v68/methods/auth_signIn.md +++ b/old_docs/API_docs_v68/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v68/methods/auth_signUp.md b/old_docs/API_docs_v68/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v68/methods/auth_signUp.md +++ b/old_docs/API_docs_v68/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v68/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v68/methods/bots_answerWebhookJSONQuery.md index d910db35..809576fa 100644 --- a/old_docs/API_docs_v68/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v68/methods/bots_answerWebhookJSONQuery.md @@ -31,16 +31,18 @@ description: bots.answerWebhookJSONQuery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md index abb880ef..ce28f6ca 100644 --- a/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md @@ -30,16 +30,18 @@ description: bots.sendCustomRequest parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_checkUsername.md b/old_docs/API_docs_v68/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v68/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v68/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_createChannel.md b/old_docs/API_docs_v68/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v68/methods/channels_createChannel.md +++ b/old_docs/API_docs_v68/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_deleteChannel.md b/old_docs/API_docs_v68/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v68/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v68/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_deleteMessages.md b/old_docs/API_docs_v68/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v68/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v68/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_editAbout.md b/old_docs/API_docs_v68/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v68/methods/channels_editAbout.md +++ b/old_docs/API_docs_v68/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_editAdmin.md b/old_docs/API_docs_v68/methods/channels_editAdmin.md index 07f8cc11..36ae5241 100644 --- a/old_docs/API_docs_v68/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v68/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_editBanned.md b/old_docs/API_docs_v68/methods/channels_editBanned.md index d26e857f..4f5dc25c 100644 --- a/old_docs/API_docs_v68/methods/channels_editBanned.md +++ b/old_docs/API_docs_v68/methods/channels_editBanned.md @@ -10,8 +10,8 @@ description: channels.editBanned parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Yes| @@ -35,16 +35,18 @@ description: channels.editBanned parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_editPhoto.md b/old_docs/API_docs_v68/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v68/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v68/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_editTitle.md b/old_docs/API_docs_v68/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v68/methods/channels_editTitle.md +++ b/old_docs/API_docs_v68/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_exportInvite.md b/old_docs/API_docs_v68/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v68/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v68/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_exportMessageLink.md b/old_docs/API_docs_v68/methods/channels_exportMessageLink.md index 026fe982..7eff4ed8 100644 --- a/old_docs/API_docs_v68/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v68/methods/channels_exportMessageLink.md @@ -10,7 +10,7 @@ description: channels.exportMessageLink parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: channels.exportMessageLink parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_getAdminLog.md b/old_docs/API_docs_v68/methods/channels_getAdminLog.md index 247d82f5..2b4d08d6 100644 --- a/old_docs/API_docs_v68/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v68/methods/channels_getAdminLog.md @@ -10,10 +10,10 @@ description: channels.getAdminLog parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |q|[string](../types/string.md) | Yes| |events\_filter|[ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md) | Optional| -|admins|Array of [InputUser](../types/InputUser.md) | Optional| +|admins|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |max\_id|[long](../types/long.md) | Yes| |min\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -37,15 +37,20 @@ description: channels.getAdminLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$channels_AdminLogResults = $MadelineProto->channels->getAdminLog(['channel' => InputChannel, 'q' => 'string', 'events_filter' => ChannelAdminLogEventsFilter, 'admins' => [InputUser], 'max_id' => long, 'min_id' => long, 'limit' => int, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v68/methods/channels_getAdminedPublicChannels.md index 283a9071..01ea971f 100644 --- a/old_docs/API_docs_v68/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v68/methods/channels_getAdminedPublicChannels.md @@ -17,13 +17,18 @@ description: channels.getAdminedPublicChannels parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); ``` diff --git a/old_docs/API_docs_v68/methods/channels_getChannels.md b/old_docs/API_docs_v68/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v68/methods/channels_getChannels.md +++ b/old_docs/API_docs_v68/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/channels_getFullChannel.md b/old_docs/API_docs_v68/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v68/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v68/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v68/methods/channels_getMessages.md b/old_docs/API_docs_v68/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v68/methods/channels_getMessages.md +++ b/old_docs/API_docs_v68/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/channels_getParticipant.md b/old_docs/API_docs_v68/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v68/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v68/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_getParticipants.md b/old_docs/API_docs_v68/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v68/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v68/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_inviteToChannel.md b/old_docs/API_docs_v68/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v68/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v68/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/channels_joinChannel.md b/old_docs/API_docs_v68/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v68/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v68/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_leaveChannel.md b/old_docs/API_docs_v68/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v68/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v68/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_readHistory.md b/old_docs/API_docs_v68/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v68/methods/channels_readHistory.md +++ b/old_docs/API_docs_v68/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_reportSpam.md b/old_docs/API_docs_v68/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v68/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v68/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/channels_toggleInvites.md b/old_docs/API_docs_v68/methods/channels_toggleInvites.md index 19669eec..8d977fd0 100644 --- a/old_docs/API_docs_v68/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v68/methods/channels_toggleInvites.md @@ -10,7 +10,7 @@ description: channels.toggleInvites parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -32,13 +32,18 @@ description: channels.toggleInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_toggleSignatures.md b/old_docs/API_docs_v68/methods/channels_toggleSignatures.md index 4aaaeb0c..13d53d92 100644 --- a/old_docs/API_docs_v68/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v68/methods/channels_toggleSignatures.md @@ -10,7 +10,7 @@ description: channels.toggleSignatures parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: channels.toggleSignatures parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md index 3bb6d010..ecc15ce6 100644 --- a/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md @@ -11,7 +11,7 @@ description: channels.updatePinnedMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |silent|[Bool](../types/Bool.md) | Optional| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: channels.updatePinnedMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/channels_updateUsername.md b/old_docs/API_docs_v68/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v68/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v68/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/contacts_block.md b/old_docs/API_docs_v68/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v68/methods/contacts_block.md +++ b/old_docs/API_docs_v68/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v68/methods/contacts_deleteContact.md b/old_docs/API_docs_v68/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v68/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v68/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v68/methods/contacts_deleteContacts.md b/old_docs/API_docs_v68/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v68/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v68/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/contacts_exportCard.md b/old_docs/API_docs_v68/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v68/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v68/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v68/methods/contacts_getBlocked.md b/old_docs/API_docs_v68/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v68/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v68/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/contacts_getContacts.md b/old_docs/API_docs_v68/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v68/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v68/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/contacts_getStatuses.md b/old_docs/API_docs_v68/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v68/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v68/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v68/methods/contacts_getTopPeers.md b/old_docs/API_docs_v68/methods/contacts_getTopPeers.md index f72133a5..560f15c6 100644 --- a/old_docs/API_docs_v68/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v68/methods/contacts_getTopPeers.md @@ -1,24 +1,26 @@ --- title: contacts.getTopPeers -description: contacts.getTopPeers parameters, return type and example +description: Get most used chats --- ## Method: contacts.getTopPeers [Back to methods index](index.md) +Get most used chats + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|correspondents|[Bool](../types/Bool.md) | Optional| -|bots\_pm|[Bool](../types/Bool.md) | Optional| -|bots\_inline|[Bool](../types/Bool.md) | Optional| -|phone\_calls|[Bool](../types/Bool.md) | Optional| -|groups|[Bool](../types/Bool.md) | Optional| -|channels|[Bool](../types/Bool.md) | Optional| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|correspondents|[Bool](../types/Bool.md) | Optional|| +|bots\_pm|[Bool](../types/Bool.md) | Optional|| +|bots\_inline|[Bool](../types/Bool.md) | Optional|| +|phone\_calls|[Bool](../types/Bool.md) | Optional|| +|groups|[Bool](../types/Bool.md) | Optional|| +|channels|[Bool](../types/Bool.md) | Optional|| +|offset|[int](../types/int.md) | Yes|| +|limit|[int](../types/int.md) | Yes|| +|hash|[int](../types/int.md) | Yes|| ### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md) @@ -37,13 +39,18 @@ description: contacts.getTopPeers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v68/methods/contacts_importCard.md b/old_docs/API_docs_v68/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v68/methods/contacts_importCard.md +++ b/old_docs/API_docs_v68/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/contacts_importContacts.md b/old_docs/API_docs_v68/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v68/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v68/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md index 3eab7e04..ddcf6b2f 100644 --- a/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md @@ -11,7 +11,7 @@ description: contacts.resetTopPeerRating parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |category|[TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v68/methods/contacts_resolveUsername.md b/old_docs/API_docs_v68/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v68/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v68/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v68/methods/contacts_search.md b/old_docs/API_docs_v68/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v68/methods/contacts_search.md +++ b/old_docs/API_docs_v68/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/contacts_unblock.md b/old_docs/API_docs_v68/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v68/methods/contacts_unblock.md +++ b/old_docs/API_docs_v68/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v68/methods/contest_saveDeveloperInfo.md b/old_docs/API_docs_v68/methods/contest_saveDeveloperInfo.md index c0bb9054..6a8e5fda 100644 --- a/old_docs/API_docs_v68/methods/contest_saveDeveloperInfo.md +++ b/old_docs/API_docs_v68/methods/contest_saveDeveloperInfo.md @@ -26,16 +26,18 @@ description: contest.saveDeveloperInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contest->saveDeveloperInfo(['vk_id' => int, 'name' => 'string', 'phone_number' => 'string', 'age' => int, 'city' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/destroy_auth_key.md b/old_docs/API_docs_v68/methods/destroy_auth_key.md index 1803e375..0304d9a1 100644 --- a/old_docs/API_docs_v68/methods/destroy_auth_key.md +++ b/old_docs/API_docs_v68/methods/destroy_auth_key.md @@ -17,16 +17,18 @@ description: destroy_auth_key parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DestroyAuthKeyRes = $MadelineProto->destroy_auth_key(); ``` diff --git a/old_docs/API_docs_v68/methods/destroy_session.md b/old_docs/API_docs_v68/methods/destroy_session.md index 39aa2c6e..b2525dfb 100644 --- a/old_docs/API_docs_v68/methods/destroy_session.md +++ b/old_docs/API_docs_v68/methods/destroy_session.md @@ -1,16 +1,18 @@ --- title: destroy_session -description: destroy_session parameters, return type and example +description: Destroy the current MTProto session --- ## Method: destroy\_session [Back to methods index](index.md) +Destroy the current MTProto session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|session\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|session\_id|[long](../types/long.md) | Yes|The session to destroy| ### Return type: [DestroySessionRes](../types/DestroySessionRes.md) @@ -22,16 +24,18 @@ description: destroy_session parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DestroySessionRes = $MadelineProto->destroy_session(['session_id' => long, ]); ``` diff --git a/old_docs/API_docs_v68/methods/get_future_salts.md b/old_docs/API_docs_v68/methods/get_future_salts.md index fedf036c..4c2c9c46 100644 --- a/old_docs/API_docs_v68/methods/get_future_salts.md +++ b/old_docs/API_docs_v68/methods/get_future_salts.md @@ -1,16 +1,18 @@ --- title: get_future_salts -description: get_future_salts parameters, return type and example +description: Get future salts --- ## Method: get\_future\_salts [Back to methods index](index.md) +Get future salts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|num|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|num|[int](../types/int.md) | Yes|How many salts should be fetched| ### Return type: [FutureSalts](../types/FutureSalts.md) @@ -22,16 +24,18 @@ description: get_future_salts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $FutureSalts = $MadelineProto->get_future_salts(['num' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/help_getAppChangelog.md b/old_docs/API_docs_v68/methods/help_getAppChangelog.md index 59916787..f09a7a0d 100644 --- a/old_docs/API_docs_v68/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v68/methods/help_getAppChangelog.md @@ -22,13 +22,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/help_getAppUpdate.md b/old_docs/API_docs_v68/methods/help_getAppUpdate.md index 89ff22c3..0e227d24 100644 --- a/old_docs/API_docs_v68/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v68/methods/help_getAppUpdate.md @@ -17,13 +17,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); ``` diff --git a/old_docs/API_docs_v68/methods/help_getCdnConfig.md b/old_docs/API_docs_v68/methods/help_getCdnConfig.md index 3079e605..ba2a6c9a 100644 --- a/old_docs/API_docs_v68/methods/help_getCdnConfig.md +++ b/old_docs/API_docs_v68/methods/help_getCdnConfig.md @@ -24,16 +24,18 @@ description: help.getCdnConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $CdnConfig = $MadelineProto->help->getCdnConfig(); ``` diff --git a/old_docs/API_docs_v68/methods/help_getConfig.md b/old_docs/API_docs_v68/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v68/methods/help_getConfig.md +++ b/old_docs/API_docs_v68/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v68/methods/help_getInviteText.md b/old_docs/API_docs_v68/methods/help_getInviteText.md index 6d2674d6..a8d8992e 100644 --- a/old_docs/API_docs_v68/methods/help_getInviteText.md +++ b/old_docs/API_docs_v68/methods/help_getInviteText.md @@ -17,13 +17,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); ``` diff --git a/old_docs/API_docs_v68/methods/help_getNearestDc.md b/old_docs/API_docs_v68/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v68/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v68/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v68/methods/help_getSupport.md b/old_docs/API_docs_v68/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v68/methods/help_getSupport.md +++ b/old_docs/API_docs_v68/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v68/methods/help_getTermsOfService.md b/old_docs/API_docs_v68/methods/help_getTermsOfService.md index eb686506..a588e830 100644 --- a/old_docs/API_docs_v68/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v68/methods/help_getTermsOfService.md @@ -17,13 +17,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); ``` diff --git a/old_docs/API_docs_v68/methods/help_saveAppLog.md b/old_docs/API_docs_v68/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v68/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v68/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v68/methods/help_setBotUpdatesStatus.md index 470187a0..68c9720a 100644 --- a/old_docs/API_docs_v68/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v68/methods/help_setBotUpdatesStatus.md @@ -23,16 +23,18 @@ description: help.setBotUpdatesStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/initConnection.md b/old_docs/API_docs_v68/methods/initConnection.md index ef40e7f5..3c81c311 100644 --- a/old_docs/API_docs_v68/methods/initConnection.md +++ b/old_docs/API_docs_v68/methods/initConnection.md @@ -1,23 +1,25 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|system\_lang\_code|[string](../types/string.md) | Yes| -|lang\_pack|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|system\_lang\_code|[string](../types/string.md) | Yes|Language code| +|lang\_pack|[string](../types/string.md) | Yes|Language pack to use| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -37,16 +39,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v68/methods/invokeAfterMsg.md b/old_docs/API_docs_v68/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v68/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v68/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v68/methods/invokeAfterMsgs.md b/old_docs/API_docs_v68/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v68/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v68/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/invokeWithLayer.md b/old_docs/API_docs_v68/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v68/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v68/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v68/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v68/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v68/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v68/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v68/methods/langpack_getDifference.md b/old_docs/API_docs_v68/methods/langpack_getDifference.md index 116e78e2..b1078532 100644 --- a/old_docs/API_docs_v68/methods/langpack_getDifference.md +++ b/old_docs/API_docs_v68/methods/langpack_getDifference.md @@ -29,13 +29,18 @@ description: langpack.getDifference parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getDifference(['from_version' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/langpack_getLangPack.md b/old_docs/API_docs_v68/methods/langpack_getLangPack.md index b5686e61..7d440b66 100644 --- a/old_docs/API_docs_v68/methods/langpack_getLangPack.md +++ b/old_docs/API_docs_v68/methods/langpack_getLangPack.md @@ -29,13 +29,18 @@ description: langpack.getLangPack parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getLangPack(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/langpack_getLanguages.md b/old_docs/API_docs_v68/methods/langpack_getLanguages.md index cb65e5a0..8afce13f 100644 --- a/old_docs/API_docs_v68/methods/langpack_getLanguages.md +++ b/old_docs/API_docs_v68/methods/langpack_getLanguages.md @@ -24,13 +24,18 @@ description: langpack.getLanguages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_LangPackLanguage = $MadelineProto->langpack->getLanguages(); ``` diff --git a/old_docs/API_docs_v68/methods/langpack_getStrings.md b/old_docs/API_docs_v68/methods/langpack_getStrings.md index ce58daf9..9791f621 100644 --- a/old_docs/API_docs_v68/methods/langpack_getStrings.md +++ b/old_docs/API_docs_v68/methods/langpack_getStrings.md @@ -30,15 +30,20 @@ description: langpack.getStrings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string'], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string', 'string'], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_acceptEncryption.md b/old_docs/API_docs_v68/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v68/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v68/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v68/methods/messages_addChatUser.md b/old_docs/API_docs_v68/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v68/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v68/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_checkChatInvite.md b/old_docs/API_docs_v68/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v68/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v68/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v68/methods/messages_clearRecentStickers.md index ae45b249..31941a34 100644 --- a/old_docs/API_docs_v68/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v68/methods/messages_clearRecentStickers.md @@ -22,13 +22,18 @@ description: messages.clearRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_createChat.md b/old_docs/API_docs_v68/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v68/methods/messages_createChat.md +++ b/old_docs/API_docs_v68/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_deleteChatUser.md b/old_docs/API_docs_v68/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v68/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v68/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_deleteHistory.md b/old_docs/API_docs_v68/methods/messages_deleteHistory.md index d1c3f195..01686b2b 100644 --- a/old_docs/API_docs_v68/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v68/methods/messages_deleteHistory.md @@ -11,7 +11,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |just\_clear|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_deleteMessages.md b/old_docs/API_docs_v68/methods/messages_deleteMessages.md index 5472cc72..0cc6e6ed 100644 --- a/old_docs/API_docs_v68/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v68/methods/messages_deleteMessages.md @@ -30,18 +30,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_discardEncryption.md b/old_docs/API_docs_v68/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v68/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v68/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v68/methods/messages_editChatAdmin.md b/old_docs/API_docs_v68/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v68/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v68/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_editChatPhoto.md b/old_docs/API_docs_v68/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v68/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v68/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_editChatTitle.md b/old_docs/API_docs_v68/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v68/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v68/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md index c3489f9d..289100ea 100644 --- a/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md @@ -35,18 +35,20 @@ description: messages.editInlineBotMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_editMessage.md b/old_docs/API_docs_v68/methods/messages_editMessage.md index 182fa03e..63379ed9 100644 --- a/old_docs/API_docs_v68/methods/messages_editMessage.md +++ b/old_docs/API_docs_v68/methods/messages_editMessage.md @@ -11,7 +11,7 @@ description: messages.editMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| |message|[string](../types/string.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -44,18 +44,20 @@ description: messages.editMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_exportChatInvite.md b/old_docs/API_docs_v68/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v68/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v68/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_forwardMessage.md b/old_docs/API_docs_v68/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v68/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v68/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_forwardMessages.md b/old_docs/API_docs_v68/methods/messages_forwardMessages.md index 1185259d..df361517 100644 --- a/old_docs/API_docs_v68/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v68/methods/messages_forwardMessages.md @@ -13,9 +13,9 @@ description: messages.forwardMessages parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |with\_my\_score|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -55,18 +55,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_getAllChats.md b/old_docs/API_docs_v68/methods/messages_getAllChats.md index babcf17d..59bc0add 100644 --- a/old_docs/API_docs_v68/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v68/methods/messages_getAllChats.md @@ -22,15 +22,20 @@ description: messages.getAllChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_getAllDrafts.md b/old_docs/API_docs_v68/methods/messages_getAllDrafts.md index 8550c5b8..7f0f7843 100644 --- a/old_docs/API_docs_v68/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v68/methods/messages_getAllDrafts.md @@ -17,13 +17,18 @@ description: messages.getAllDrafts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getAllStickers.md b/old_docs/API_docs_v68/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/old_docs/API_docs_v68/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v68/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v68/methods/messages_getArchivedStickers.md index cdb7f0af..8c2041a3 100644 --- a/old_docs/API_docs_v68/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v68/methods/messages_getArchivedStickers.md @@ -24,13 +24,18 @@ description: messages.getArchivedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v68/methods/messages_getAttachedStickers.md index 79d4e30d..f03f0be2 100644 --- a/old_docs/API_docs_v68/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v68/methods/messages_getAttachedStickers.md @@ -22,13 +22,18 @@ description: messages.getAttachedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md index bd916755..b9039098 100644 --- a/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md @@ -11,7 +11,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |game|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |msg\_id|[int](../types/int.md) | Yes| |data|[bytes](../types/bytes.md) | Optional| @@ -36,13 +36,18 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getChats.md b/old_docs/API_docs_v68/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v68/methods/messages_getChats.md +++ b/old_docs/API_docs_v68/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_getCommonChats.md b/old_docs/API_docs_v68/methods/messages_getCommonChats.md index d713f3a5..0df79096 100644 --- a/old_docs/API_docs_v68/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v68/methods/messages_getCommonChats.md @@ -10,7 +10,7 @@ description: messages.getCommonChats parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getCommonChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getDhConfig.md b/old_docs/API_docs_v68/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v68/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v68/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getDialogs.md b/old_docs/API_docs_v68/methods/messages_getDialogs.md index e7e81a8c..041b3efe 100644 --- a/old_docs/API_docs_v68/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v68/methods/messages_getDialogs.md @@ -13,7 +13,7 @@ description: messages.getDialogs parameters, return type and example |exclude\_pinned|[Bool](../types/Bool.md) | Optional| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v68/methods/messages_getFeaturedStickers.md index 5aad1810..51097eda 100644 --- a/old_docs/API_docs_v68/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v68/methods/messages_getFeaturedStickers.md @@ -22,13 +22,18 @@ description: messages.getFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getFullChat.md b/old_docs/API_docs_v68/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v68/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v68/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v68/methods/messages_getGameHighScores.md b/old_docs/API_docs_v68/methods/messages_getGameHighScores.md index c316a8bd..4b8b1397 100644 --- a/old_docs/API_docs_v68/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v68/methods/messages_getGameHighScores.md @@ -10,9 +10,9 @@ description: messages.getGameHighScores parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -32,16 +32,18 @@ description: messages.getGameHighScores parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getHistory.md b/old_docs/API_docs_v68/methods/messages_getHistory.md index ef31c435..87b8328d 100644 --- a/old_docs/API_docs_v68/methods/messages_getHistory.md +++ b/old_docs/API_docs_v68/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| @@ -40,13 +40,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md index 90e2a427..6d965b19 100644 --- a/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md @@ -10,8 +10,8 @@ description: messages.getInlineBotResults parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |query|[string](../types/string.md) | Yes| |offset|[string](../types/string.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md index 524e387b..9305a0f4 100644 --- a/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md @@ -11,7 +11,7 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Name | Type | Required | |----------|---------------|----------| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -31,16 +31,18 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getMaskStickers.md b/old_docs/API_docs_v68/methods/messages_getMaskStickers.md index ca964647..260cfdb7 100644 --- a/old_docs/API_docs_v68/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v68/methods/messages_getMaskStickers.md @@ -22,13 +22,18 @@ description: messages.getMaskStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getMessageEditData.md b/old_docs/API_docs_v68/methods/messages_getMessageEditData.md index df71c31a..2a90a419 100644 --- a/old_docs/API_docs_v68/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v68/methods/messages_getMessageEditData.md @@ -10,7 +10,7 @@ description: messages.getMessageEditData parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getMessageEditData parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getMessages.md b/old_docs/API_docs_v68/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v68/methods/messages_getMessages.md +++ b/old_docs/API_docs_v68/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_getMessagesViews.md b/old_docs/API_docs_v68/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v68/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v68/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md index 226948ae..eff29878 100644 --- a/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md @@ -10,7 +10,7 @@ description: messages.getPeerDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peers|Array of [InputPeer](../types/InputPeer.md) | Yes| +|peers|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md) @@ -30,15 +30,20 @@ description: messages.getPeerDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_getPeerSettings.md b/old_docs/API_docs_v68/methods/messages_getPeerSettings.md index fab25034..25906b73 100644 --- a/old_docs/API_docs_v68/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v68/methods/messages_getPeerSettings.md @@ -10,7 +10,7 @@ description: messages.getPeerSettings parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [PeerSettings](../types/PeerSettings.md) @@ -30,13 +30,18 @@ description: messages.getPeerSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v68/methods/messages_getPinnedDialogs.md index ec744f01..e5499df7 100644 --- a/old_docs/API_docs_v68/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v68/methods/messages_getPinnedDialogs.md @@ -17,13 +17,18 @@ description: messages.getPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getRecentStickers.md b/old_docs/API_docs_v68/methods/messages_getRecentStickers.md index a6ae162f..5a60d345 100644 --- a/old_docs/API_docs_v68/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v68/methods/messages_getRecentStickers.md @@ -23,13 +23,18 @@ description: messages.getRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getSavedGifs.md b/old_docs/API_docs_v68/methods/messages_getSavedGifs.md index 4986d812..bcb4590d 100644 --- a/old_docs/API_docs_v68/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v68/methods/messages_getSavedGifs.md @@ -22,13 +22,18 @@ description: messages.getSavedGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getStickerSet.md b/old_docs/API_docs_v68/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v68/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v68/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getWebPage.md b/old_docs/API_docs_v68/methods/messages_getWebPage.md index e886b020..0f09af47 100644 --- a/old_docs/API_docs_v68/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v68/methods/messages_getWebPage.md @@ -30,13 +30,18 @@ description: messages.getWebPage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v68/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v68/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v68/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_hideReportSpam.md b/old_docs/API_docs_v68/methods/messages_hideReportSpam.md index d47e8aa5..0419ec79 100644 --- a/old_docs/API_docs_v68/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v68/methods/messages_hideReportSpam.md @@ -10,7 +10,7 @@ description: messages.hideReportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.hideReportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_importChatInvite.md b/old_docs/API_docs_v68/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v68/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v68/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_installStickerSet.md b/old_docs/API_docs_v68/methods/messages_installStickerSet.md index 9336cc22..f405adce 100644 --- a/old_docs/API_docs_v68/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v68/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_migrateChat.md b/old_docs/API_docs_v68/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v68/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v68/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v68/methods/messages_readFeaturedStickers.md index 02055bf3..766ba200 100644 --- a/old_docs/API_docs_v68/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v68/methods/messages_readFeaturedStickers.md @@ -22,15 +22,20 @@ description: messages.readFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_readHistory.md b/old_docs/API_docs_v68/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v68/methods/messages_readHistory.md +++ b/old_docs/API_docs_v68/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_readMessageContents.md b/old_docs/API_docs_v68/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v68/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v68/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_receivedMessages.md b/old_docs/API_docs_v68/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v68/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v68/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_receivedQueue.md b/old_docs/API_docs_v68/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v68/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v68/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md index b4bfb84f..30e926d9 100644 --- a/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md @@ -11,7 +11,7 @@ description: messages.reorderPinnedDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |force|[Bool](../types/Bool.md) | Optional| -|order|Array of [InputPeer](../types/InputPeer.md) | Yes| +|order|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +30,20 @@ description: messages.reorderPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v68/methods/messages_reorderStickerSets.md index fa094550..0e2c121d 100644 --- a/old_docs/API_docs_v68/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v68/methods/messages_reorderStickerSets.md @@ -23,15 +23,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md index aed7a891..64ebecdd 100644 --- a/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md @@ -10,7 +10,7 @@ description: messages.reportEncryptedSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportEncryptedSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_reportSpam.md b/old_docs/API_docs_v68/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v68/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v68/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_requestEncryption.md b/old_docs/API_docs_v68/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v68/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v68/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v68/methods/messages_saveDraft.md b/old_docs/API_docs_v68/methods/messages_saveDraft.md index 7a85dfe7..754b4da2 100644 --- a/old_docs/API_docs_v68/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v68/methods/messages_saveDraft.md @@ -12,7 +12,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |message|[string](../types/string.md) | Yes| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| |parse\_mode| [string](../types/string.md) | Optional | @@ -34,15 +34,20 @@ description: messages.saveDraft parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_saveGif.md b/old_docs/API_docs_v68/methods/messages_saveGif.md index b3673c91..725bc949 100644 --- a/old_docs/API_docs_v68/methods/messages_saveGif.md +++ b/old_docs/API_docs_v68/methods/messages_saveGif.md @@ -10,7 +10,7 @@ description: messages.saveGif parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveGif parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md index bc3d1627..4a8298e2 100644 --- a/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md @@ -11,7 +11,7 @@ description: messages.saveRecentSticker parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |attached|[Bool](../types/Bool.md) | Optional| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.saveRecentSticker parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_search.md b/old_docs/API_docs_v68/methods/messages_search.md index a45d9508..dfc4eb56 100644 --- a/old_docs/API_docs_v68/methods/messages_search.md +++ b/old_docs/API_docs_v68/methods/messages_search.md @@ -10,9 +10,9 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| -|from\_id|[InputUser](../types/InputUser.md) | Optional| +|from\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -43,13 +43,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'from_id' => InputUser, 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_searchGifs.md b/old_docs/API_docs_v68/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/old_docs/API_docs_v68/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v68/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_searchGlobal.md b/old_docs/API_docs_v68/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v68/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v68/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_sendEncrypted.md b/old_docs/API_docs_v68/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v68/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v68/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md index 0857341e..6bfb1578 100644 --- a/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md @@ -13,7 +13,7 @@ description: messages.sendInlineBotResult parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |query\_id|[long](../types/long.md) | Yes| |id|[string](../types/string.md) | Yes| @@ -40,13 +40,18 @@ description: messages.sendInlineBotResult parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_sendMedia.md b/old_docs/API_docs_v68/methods/messages_sendMedia.md index 8c6f7f7f..1530451b 100644 --- a/old_docs/API_docs_v68/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v68/methods/messages_sendMedia.md @@ -13,9 +13,9 @@ description: messages.sendMedia parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -56,16 +56,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_sendMessage.md b/old_docs/API_docs_v68/methods/messages_sendMessage.md index bec95b8c..49ace99c 100644 --- a/old_docs/API_docs_v68/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v68/methods/messages_sendMessage.md @@ -14,7 +14,7 @@ description: messages.sendMessage parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -50,6 +50,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -57,18 +58,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$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], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md index 2901a558..0282168b 100644 --- a/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md @@ -33,16 +33,18 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md index 5666e9ff..4aba8ca3 100644 --- a/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md @@ -31,16 +31,18 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md index 95376b64..5dcfe12e 100644 --- a/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md @@ -31,18 +31,20 @@ description: messages.setBotShippingResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_setGameScore.md b/old_docs/API_docs_v68/methods/messages_setGameScore.md index 615aa87b..61dfe579 100644 --- a/old_docs/API_docs_v68/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v68/methods/messages_setGameScore.md @@ -12,9 +12,9 @@ description: messages.setGameScore parameters, return type and example |----------|---------------|----------| |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -35,16 +35,18 @@ description: messages.setGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md index 8b49c4c7..c38b8c2e 100644 --- a/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md @@ -45,18 +45,20 @@ description: messages.setInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md index b5fc27d5..9fadc31e 100644 --- a/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md @@ -13,7 +13,7 @@ description: messages.setInlineGameScore parameters, return type and example |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: messages.setInlineGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_setTyping.md b/old_docs/API_docs_v68/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v68/methods/messages_setTyping.md +++ b/old_docs/API_docs_v68/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_startBot.md b/old_docs/API_docs_v68/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v68/methods/messages_startBot.md +++ b/old_docs/API_docs_v68/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md index 535a0fa1..7c5bfa9f 100644 --- a/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md @@ -11,7 +11,7 @@ description: messages.toggleDialogPin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |pinned|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: messages.toggleDialogPin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v68/methods/messages_uploadMedia.md b/old_docs/API_docs_v68/methods/messages_uploadMedia.md index 8a79defa..74515f11 100644 --- a/old_docs/API_docs_v68/methods/messages_uploadMedia.md +++ b/old_docs/API_docs_v68/methods/messages_uploadMedia.md @@ -10,8 +10,8 @@ description: messages.uploadMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [MessageMedia](../types/MessageMedia.md) @@ -32,16 +32,18 @@ description: messages.uploadMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->uploadMedia(['peer' => InputPeer, 'media' => InputMedia, ]); ``` diff --git a/old_docs/API_docs_v68/methods/payments_clearSavedInfo.md b/old_docs/API_docs_v68/methods/payments_clearSavedInfo.md index fb9bae07..dc762198 100644 --- a/old_docs/API_docs_v68/methods/payments_clearSavedInfo.md +++ b/old_docs/API_docs_v68/methods/payments_clearSavedInfo.md @@ -23,13 +23,18 @@ description: payments.clearSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); ``` diff --git a/old_docs/API_docs_v68/methods/payments_getPaymentForm.md b/old_docs/API_docs_v68/methods/payments_getPaymentForm.md index 141c47f2..ee269741 100644 --- a/old_docs/API_docs_v68/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v68/methods/payments_getPaymentForm.md @@ -29,13 +29,18 @@ description: payments.getPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md index f6aa1ab6..e46563d0 100644 --- a/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md @@ -29,13 +29,18 @@ description: payments.getPaymentReceipt parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/payments_getSavedInfo.md b/old_docs/API_docs_v68/methods/payments_getSavedInfo.md index 4104679a..ae1fcf33 100644 --- a/old_docs/API_docs_v68/methods/payments_getSavedInfo.md +++ b/old_docs/API_docs_v68/methods/payments_getSavedInfo.md @@ -17,13 +17,18 @@ description: payments.getSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); ``` diff --git a/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md index 180a7279..08505110 100644 --- a/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md @@ -32,13 +32,18 @@ description: payments.sendPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); ``` diff --git a/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md index acfd1852..ebfc5c22 100644 --- a/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md @@ -31,13 +31,18 @@ description: payments.validateRequestedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); ``` diff --git a/old_docs/API_docs_v68/methods/phone_acceptCall.md b/old_docs/API_docs_v68/methods/phone_acceptCall.md index 79266f27..49029aed 100644 --- a/old_docs/API_docs_v68/methods/phone_acceptCall.md +++ b/old_docs/API_docs_v68/methods/phone_acceptCall.md @@ -1,12 +1,12 @@ --- title: phone.acceptCall -description: phone.acceptCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.acceptCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v68/methods/phone_confirmCall.md b/old_docs/API_docs_v68/methods/phone_confirmCall.md index 69e90751..5c7bb15c 100644 --- a/old_docs/API_docs_v68/methods/phone_confirmCall.md +++ b/old_docs/API_docs_v68/methods/phone_confirmCall.md @@ -1,12 +1,12 @@ --- title: phone.confirmCall -description: phone.confirmCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.confirmCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v68/methods/phone_discardCall.md b/old_docs/API_docs_v68/methods/phone_discardCall.md index c300e61c..c01d1014 100644 --- a/old_docs/API_docs_v68/methods/phone_discardCall.md +++ b/old_docs/API_docs_v68/methods/phone_discardCall.md @@ -1,12 +1,12 @@ --- title: phone.discardCall -description: phone.discardCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.discardCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v68/methods/phone_getCallConfig.md b/old_docs/API_docs_v68/methods/phone_getCallConfig.md index 3f18d7ca..636ae946 100644 --- a/old_docs/API_docs_v68/methods/phone_getCallConfig.md +++ b/old_docs/API_docs_v68/methods/phone_getCallConfig.md @@ -17,13 +17,18 @@ description: phone.getCallConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); ``` diff --git a/old_docs/API_docs_v68/methods/phone_receivedCall.md b/old_docs/API_docs_v68/methods/phone_receivedCall.md index 8ca6a4e1..00b51aed 100644 --- a/old_docs/API_docs_v68/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v68/methods/phone_receivedCall.md @@ -30,13 +30,18 @@ description: phone.receivedCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); ``` diff --git a/old_docs/API_docs_v68/methods/phone_requestCall.md b/old_docs/API_docs_v68/methods/phone_requestCall.md index c8ae48a9..be45437e 100644 --- a/old_docs/API_docs_v68/methods/phone_requestCall.md +++ b/old_docs/API_docs_v68/methods/phone_requestCall.md @@ -1,12 +1,12 @@ --- title: phone.requestCall -description: phone.requestCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.requestCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v68/methods/phone_saveCallDebug.md b/old_docs/API_docs_v68/methods/phone_saveCallDebug.md index ea3fa2d7..90135792 100644 --- a/old_docs/API_docs_v68/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v68/methods/phone_saveCallDebug.md @@ -31,13 +31,18 @@ description: phone.saveCallDebug parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v68/methods/phone_setCallRating.md b/old_docs/API_docs_v68/methods/phone_setCallRating.md index c6e5d7fa..21570b80 100644 --- a/old_docs/API_docs_v68/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v68/methods/phone_setCallRating.md @@ -31,13 +31,18 @@ description: phone.setCallRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/photos_deletePhotos.md b/old_docs/API_docs_v68/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v68/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v68/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/photos_getUserPhotos.md b/old_docs/API_docs_v68/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v68/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v68/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v68/methods/photos_updateProfilePhoto.md index cc79a625..1ed6fb24 100644 --- a/old_docs/API_docs_v68/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v68/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| ### Return type: [UserProfilePhoto](../types/UserProfilePhoto.md) @@ -22,13 +22,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); ``` diff --git a/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md index 075dab4b..4b20315b 100644 --- a/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| ### Return type: [photos\_Photo](../types/photos_Photo.md) @@ -32,13 +32,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); ``` diff --git a/old_docs/API_docs_v68/methods/ping.md b/old_docs/API_docs_v68/methods/ping.md index 7c20ca86..18f5a2bd 100644 --- a/old_docs/API_docs_v68/methods/ping.md +++ b/old_docs/API_docs_v68/methods/ping.md @@ -1,16 +1,18 @@ --- title: ping -description: ping parameters, return type and example +description: pings the server --- ## Method: ping [Back to methods index](index.md) +pings the server + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ping\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ping\_id|[long](../types/long.md) | Yes|Ping ID| ### Return type: [Pong](../types/Pong.md) @@ -22,16 +24,18 @@ description: ping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Pong = $MadelineProto->ping(['ping_id' => long, ]); ``` diff --git a/old_docs/API_docs_v68/methods/ping_delay_disconnect.md b/old_docs/API_docs_v68/methods/ping_delay_disconnect.md index e8b62005..709f8026 100644 --- a/old_docs/API_docs_v68/methods/ping_delay_disconnect.md +++ b/old_docs/API_docs_v68/methods/ping_delay_disconnect.md @@ -1,17 +1,19 @@ --- title: ping_delay_disconnect -description: ping_delay_disconnect parameters, return type and example +description: Pings the server and causes disconection if the same method is not called within ping_disconnect_delay --- ## Method: ping\_delay\_disconnect [Back to methods index](index.md) +Pings the server and causes disconection if the same method is not called within ping_disconnect_delay + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ping\_id|[long](../types/long.md) | Yes| -|disconnect\_delay|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ping\_id|[long](../types/long.md) | Yes|Ping ID| +|disconnect\_delay|[int](../types/int.md) | Yes|Disconection delay| ### Return type: [Pong](../types/Pong.md) @@ -23,16 +25,18 @@ description: ping_delay_disconnect parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Pong = $MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/req_DH_params.md b/old_docs/API_docs_v68/methods/req_DH_params.md index 697540d8..b0cc4418 100644 --- a/old_docs/API_docs_v68/methods/req_DH_params.md +++ b/old_docs/API_docs_v68/methods/req_DH_params.md @@ -1,21 +1,23 @@ --- title: req_DH_params -description: req_DH_params parameters, return type and example +description: Requests Diffie-hellman parameters for key exchange --- ## Method: req\_DH\_params [Back to methods index](index.md) +Requests Diffie-hellman parameters for key exchange + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| -|server\_nonce|[int128](../types/int128.md) | Yes| -|p|[string](../types/string.md) | Yes| -|q|[string](../types/string.md) | Yes| -|public\_key\_fingerprint|[long](../types/long.md) | Yes| -|encrypted\_data|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| +|server\_nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security, given by server| +|p|[string](../types/string.md) | Yes|| +|q|[string](../types/string.md) | Yes|| +|public\_key\_fingerprint|[long](../types/long.md) | Yes|Server RSA fingerprint| +|encrypted\_data|[string](../types/string.md) | Yes|| ### Return type: [Server\_DH\_Params](../types/Server_DH_Params.md) @@ -27,16 +29,18 @@ description: req_DH_params parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Server_DH_Params = $MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => 'string', 'q' => 'string', 'public_key_fingerprint' => long, 'encrypted_data' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/req_pq.md b/old_docs/API_docs_v68/methods/req_pq.md index 7a583643..39a1715b 100644 --- a/old_docs/API_docs_v68/methods/req_pq.md +++ b/old_docs/API_docs_v68/methods/req_pq.md @@ -1,16 +1,18 @@ --- title: req_pq -description: req_pq parameters, return type and example +description: Requests PQ for factorization --- ## Method: req\_pq [Back to methods index](index.md) +Requests PQ for factorization + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| ### Return type: [ResPQ](../types/ResPQ.md) @@ -22,16 +24,18 @@ description: req_pq parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ResPQ = $MadelineProto->req_pq(['nonce' => int128, ]); ``` diff --git a/old_docs/API_docs_v68/methods/rpc_drop_answer.md b/old_docs/API_docs_v68/methods/rpc_drop_answer.md index e15ddca9..225a43b5 100644 --- a/old_docs/API_docs_v68/methods/rpc_drop_answer.md +++ b/old_docs/API_docs_v68/methods/rpc_drop_answer.md @@ -1,16 +1,18 @@ --- title: rpc_drop_answer -description: rpc_drop_answer parameters, return type and example +description: Do not send answer to provided request --- ## Method: rpc\_drop\_answer [Back to methods index](index.md) +Do not send answer to provided request + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|req\_msg\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|req\_msg\_id|[long](../types/long.md) | Yes|The message ID of the request| ### Return type: [RpcDropAnswer](../types/RpcDropAnswer.md) @@ -22,16 +24,18 @@ description: rpc_drop_answer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $RpcDropAnswer = $MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]); ``` diff --git a/old_docs/API_docs_v68/methods/set_client_DH_params.md b/old_docs/API_docs_v68/methods/set_client_DH_params.md index 8721ed40..4af21a12 100644 --- a/old_docs/API_docs_v68/methods/set_client_DH_params.md +++ b/old_docs/API_docs_v68/methods/set_client_DH_params.md @@ -1,18 +1,20 @@ --- title: set_client_DH_params -description: set_client_DH_params parameters, return type and example +description: Sets client diffie-hellman parameters --- ## Method: set\_client\_DH\_params [Back to methods index](index.md) +Sets client diffie-hellman parameters + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| -|server\_nonce|[int128](../types/int128.md) | Yes| -|encrypted\_data|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| +|server\_nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security, given by server| +|encrypted\_data|[string](../types/string.md) | Yes|| ### Return type: [Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) @@ -24,16 +26,18 @@ description: set_client_DH_params parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Set_client_DH_params_answer = $MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => 'string', ]); ``` diff --git a/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md index e7fa6ed4..f70d14fb 100644 --- a/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md +++ b/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md @@ -31,16 +31,18 @@ description: stickers.addStickerToSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->addStickerToSet(['stickerset' => InputStickerSet, 'sticker' => InputStickerSetItem, ]); ``` diff --git a/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md index 218dd205..440b93d4 100644 --- a/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md +++ b/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md @@ -10,7 +10,7 @@ description: stickers.changeStickerPosition parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|sticker|[InputDocument](../types/InputDocument.md) | Optional| +|sticker|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |position|[int](../types/int.md) | Yes| @@ -31,16 +31,18 @@ description: stickers.changeStickerPosition parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->stickers->changeStickerPosition(['sticker' => InputDocument, 'position' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/stickers_createStickerSet.md b/old_docs/API_docs_v68/methods/stickers_createStickerSet.md index ba8a2d71..1db94b11 100644 --- a/old_docs/API_docs_v68/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v68/methods/stickers_createStickerSet.md @@ -11,7 +11,7 @@ description: stickers.createStickerSet parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |masks|[Bool](../types/Bool.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |title|[string](../types/string.md) | Yes| |short\_name|[string](../types/string.md) | Yes| |stickers|Array of [InputStickerSetItem](../types/InputStickerSetItem.md) | Yes| @@ -41,18 +41,20 @@ description: stickers.createStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem, InputStickerSetItem], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md index daf51689..300a2c70 100644 --- a/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md +++ b/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md @@ -10,7 +10,7 @@ description: stickers.removeStickerFromSet parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|sticker|[InputDocument](../types/InputDocument.md) | Optional| +|sticker|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,16 +30,18 @@ description: stickers.removeStickerFromSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->stickers->removeStickerFromSet(['sticker' => InputDocument, ]); ``` diff --git a/old_docs/API_docs_v68/methods/updates_getChannelDifference.md b/old_docs/API_docs_v68/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v68/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v68/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v68/methods/updates_getDifference.md b/old_docs/API_docs_v68/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v68/methods/updates_getDifference.md +++ b/old_docs/API_docs_v68/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v68/methods/updates_getState.md b/old_docs/API_docs_v68/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v68/methods/updates_getState.md +++ b/old_docs/API_docs_v68/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v68/methods/upload_getCdnFile.md b/old_docs/API_docs_v68/methods/upload_getCdnFile.md index 3a0cd50e..7e1eefcc 100644 --- a/old_docs/API_docs_v68/methods/upload_getCdnFile.md +++ b/old_docs/API_docs_v68/methods/upload_getCdnFile.md @@ -1,12 +1,12 @@ --- title: upload.getCdnFile -description: upload.getCdnFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v68/methods/upload_getFile.md b/old_docs/API_docs_v68/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v68/methods/upload_getFile.md +++ b/old_docs/API_docs_v68/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v68/methods/upload_getWebFile.md b/old_docs/API_docs_v68/methods/upload_getWebFile.md index 8744dac5..ca200db1 100644 --- a/old_docs/API_docs_v68/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v68/methods/upload_getWebFile.md @@ -31,13 +31,18 @@ description: upload.getWebFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v68/methods/upload_reuploadCdnFile.md b/old_docs/API_docs_v68/methods/upload_reuploadCdnFile.md index 4c00bbd0..13d93ec1 100644 --- a/old_docs/API_docs_v68/methods/upload_reuploadCdnFile.md +++ b/old_docs/API_docs_v68/methods/upload_reuploadCdnFile.md @@ -1,12 +1,12 @@ --- title: upload.reuploadCdnFile -description: upload.reuploadCdnFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v68/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v68/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v68/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v68/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v68/methods/upload_saveFilePart.md b/old_docs/API_docs_v68/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v68/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v68/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v68/methods/users_getFullUser.md b/old_docs/API_docs_v68/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v68/methods/users_getFullUser.md +++ b/old_docs/API_docs_v68/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v68/methods/users_getUsers.md b/old_docs/API_docs_v68/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v68/methods/users_getUsers.md +++ b/old_docs/API_docs_v68/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v68/types/Chat.md b/old_docs/API_docs_v68/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v68/types/Chat.md +++ b/old_docs/API_docs_v68/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v68/types/InputChannel.md b/old_docs/API_docs_v68/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v68/types/InputChannel.md +++ b/old_docs/API_docs_v68/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v68/types/InputDocument.md b/old_docs/API_docs_v68/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v68/types/InputDocument.md +++ b/old_docs/API_docs_v68/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v68/types/InputEncryptedChat.md b/old_docs/API_docs_v68/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v68/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v68/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v68/types/InputEncryptedFile.md b/old_docs/API_docs_v68/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v68/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v68/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v68/types/InputFile.md b/old_docs/API_docs_v68/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v68/types/InputFile.md +++ b/old_docs/API_docs_v68/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v68/types/InputMedia.md b/old_docs/API_docs_v68/types/InputMedia.md index 823d30ed..eef8d8f7 100644 --- a/old_docs/API_docs_v68/types/InputMedia.md +++ b/old_docs/API_docs_v68/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v68/types/InputPeer.md b/old_docs/API_docs_v68/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v68/types/InputPeer.md +++ b/old_docs/API_docs_v68/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v68/types/InputPhoto.md b/old_docs/API_docs_v68/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v68/types/InputPhoto.md +++ b/old_docs/API_docs_v68/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v68/types/InputUser.md b/old_docs/API_docs_v68/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v68/types/InputUser.md +++ b/old_docs/API_docs_v68/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v68/types/Peer.md b/old_docs/API_docs_v68/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v68/types/Peer.md +++ b/old_docs/API_docs_v68/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v68/types/PhoneCall.md b/old_docs/API_docs_v68/types/PhoneCall.md index e70eda8e..1a91a72e 100644 --- a/old_docs/API_docs_v68/types/PhoneCall.md +++ b/old_docs/API_docs_v68/types/PhoneCall.md @@ -9,7 +9,7 @@ description: constructors and methods of type PhoneCall 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://daniil.it/MadelineProto#calls) for an easy installation script. +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. @@ -83,8 +83,8 @@ Call states (these constants are incrementing integers, thus can be compared lik * `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://daniil.it/MadelineProto/API_docs/types/PhoneCallProtocol.html) object -* `getCallID()` - Gets the call ID, as an [InputPhoneCall](https://daniil.it/MadelineProto/API_docs/types/InputPhoneCall.html) object +* `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 @@ -102,7 +102,7 @@ Call states (these constants are incrementing integers, thus can be compared lik Accepts two optional parameters: -`$reason` - can be a [PhoneCallDiscardReason](https://daniil.it/MadelineProto/API_docs/types/PhoneCallDiscardReason.html) object (defaults to a [phoneCallDiscardReasonDisconnect](https://daniil.it/MadelineProto/API_docs/constructors/phoneCallDiscardReasonDisconnect.html) object). +`$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.` diff --git a/old_docs/API_docs_v68/types/User.md b/old_docs/API_docs_v68/types/User.md index d696a931..f748d04a 100644 --- a/old_docs/API_docs_v68/types/User.md +++ b/old_docs/API_docs_v68/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v70/constructors/account_authorizations.md b/old_docs/API_docs_v70/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v70/constructors/account_authorizations.md +++ b/old_docs/API_docs_v70/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/account_privacyRules.md b/old_docs/API_docs_v70/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v70/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v70/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/botInfo.md b/old_docs/API_docs_v70/constructors/botInfo.md index bee4a540..25a27913 100644 --- a/old_docs/API_docs_v70/constructors/botInfo.md +++ b/old_docs/API_docs_v70/constructors/botInfo.md @@ -23,7 +23,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/botInlineMessageText.md b/old_docs/API_docs_v70/constructors/botInlineMessageText.md index dc00808b..feb5e9d0 100644 --- a/old_docs/API_docs_v70/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v70/constructors/botInlineMessageText.md @@ -24,7 +24,7 @@ description: botInlineMessageText attributes, type and example ### Example: ``` -$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/cdnConfig.md b/old_docs/API_docs_v70/constructors/cdnConfig.md index 28e814e5..2bf5d200 100644 --- a/old_docs/API_docs_v70/constructors/cdnConfig.md +++ b/old_docs/API_docs_v70/constructors/cdnConfig.md @@ -21,7 +21,7 @@ description: cdnConfig attributes, type and example ### Example: ``` -$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey]]; +$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey, CdnPublicKey]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/channelFull.md b/old_docs/API_docs_v70/constructors/channelFull.md index 189f946e..9f691324 100644 --- a/old_docs/API_docs_v70/constructors/channelFull.md +++ b/old_docs/API_docs_v70/constructors/channelFull.md @@ -38,7 +38,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_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]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/channelMessagesFilter.md b/old_docs/API_docs_v70/constructors/channelMessagesFilter.md index 0a731ce9..ad9a592e 100644 --- a/old_docs/API_docs_v70/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v70/constructors/channelMessagesFilter.md @@ -22,7 +22,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/channels_adminLogResults.md b/old_docs/API_docs_v70/constructors/channels_adminLogResults.md index f0eb0e66..1ef19a76 100644 --- a/old_docs/API_docs_v70/constructors/channels_adminLogResults.md +++ b/old_docs/API_docs_v70/constructors/channels_adminLogResults.md @@ -23,7 +23,7 @@ description: channels_adminLogResults attributes, type and example ### Example: ``` -$channels_adminLogResults = ['_' => 'channels.adminLogResults', 'events' => [ChannelAdminLogEvent], 'chats' => [Chat], 'users' => [User]]; +$channels_adminLogResults = ['_' => 'channels.adminLogResults', 'events' => [ChannelAdminLogEvent, ChannelAdminLogEvent], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/channels_channelParticipant.md b/old_docs/API_docs_v70/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v70/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v70/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/channels_channelParticipants.md b/old_docs/API_docs_v70/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v70/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v70/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/chatFull.md b/old_docs/API_docs_v70/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v70/constructors/chatFull.md +++ b/old_docs/API_docs_v70/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/chatInvite.md b/old_docs/API_docs_v70/constructors/chatInvite.md index e7000f7b..e9087e0d 100644 --- a/old_docs/API_docs_v70/constructors/chatInvite.md +++ b/old_docs/API_docs_v70/constructors/chatInvite.md @@ -28,7 +28,7 @@ description: chatInvite attributes, type and example ### Example: ``` -$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [User]]; +$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: diff --git a/old_docs/API_docs_v70/constructors/chatParticipants.md b/old_docs/API_docs_v70/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v70/constructors/chatParticipants.md +++ b/old_docs/API_docs_v70/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/config.md b/old_docs/API_docs_v70/constructors/config.md index b361c9b9..d86e86b3 100644 --- a/old_docs/API_docs_v70/constructors/config.md +++ b/old_docs/API_docs_v70/constructors/config.md @@ -52,7 +52,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => 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', 'suggested_lang_code' => 'string', 'lang_pack_version' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => 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', 'suggested_lang_code' => 'string', 'lang_pack_version' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/contacts_blocked.md b/old_docs/API_docs_v70/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v70/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v70/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v70/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v70/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v70/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/contacts_contacts.md b/old_docs/API_docs_v70/constructors/contacts_contacts.md index 87f05daf..0158a612 100644 --- a/old_docs/API_docs_v70/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v70/constructors/contacts_contacts.md @@ -22,7 +22,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/contacts_found.md b/old_docs/API_docs_v70/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v70/constructors/contacts_found.md +++ b/old_docs/API_docs_v70/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/contacts_importedContacts.md b/old_docs/API_docs_v70/constructors/contacts_importedContacts.md index ae85f35e..e4d017c0 100644 --- a/old_docs/API_docs_v70/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v70/constructors/contacts_importedContacts.md @@ -24,7 +24,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'popular_invites' => [PopularContact], 'retry_contacts' => [long], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v70/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v70/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v70/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v70/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/contacts_topPeers.md b/old_docs/API_docs_v70/constructors/contacts_topPeers.md index 17551f5d..07623018 100644 --- a/old_docs/API_docs_v70/constructors/contacts_topPeers.md +++ b/old_docs/API_docs_v70/constructors/contacts_topPeers.md @@ -23,7 +23,7 @@ description: contacts_topPeers attributes, type and example ### Example: ``` -$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers], 'chats' => [Chat], 'users' => [User]]; +$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers, TopPeerCategoryPeers], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/document.md b/old_docs/API_docs_v70/constructors/document.md index 8c0883bb..55d4c017 100644 --- a/old_docs/API_docs_v70/constructors/document.md +++ b/old_docs/API_docs_v70/constructors/document.md @@ -29,7 +29,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/documentAttributeAudio.md b/old_docs/API_docs_v70/constructors/documentAttributeAudio.md index 4d393890..ceb02cba 100644 --- a/old_docs/API_docs_v70/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v70/constructors/documentAttributeAudio.md @@ -12,7 +12,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| |voice|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Optional| |performer|[string](../types/string.md) | Optional| |waveform|[bytes](../types/bytes.md) | Optional| diff --git a/old_docs/API_docs_v70/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v70/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v70/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v70/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v70/constructors/documentAttributeVideo.md b/old_docs/API_docs_v70/constructors/documentAttributeVideo.md index 38ce9302..5c367fc9 100644 --- a/old_docs/API_docs_v70/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v70/constructors/documentAttributeVideo.md @@ -12,9 +12,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| |round\_message|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v70/constructors/draftMessage.md b/old_docs/API_docs_v70/constructors/draftMessage.md index 13277194..644adc43 100644 --- a/old_docs/API_docs_v70/constructors/draftMessage.md +++ b/old_docs/API_docs_v70/constructors/draftMessage.md @@ -25,7 +25,7 @@ description: draftMessage attributes, type and example ### Example: ``` -$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity], 'date' => int]; +$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'date' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/future_salts.md b/old_docs/API_docs_v70/constructors/future_salts.md index 4fb8d0f3..a0e695cc 100644 --- a/old_docs/API_docs_v70/constructors/future_salts.md +++ b/old_docs/API_docs_v70/constructors/future_salts.md @@ -23,7 +23,7 @@ description: future_salts attributes, type and example ### Example: ``` -$future_salts = ['_' => 'future_salts', 'req_msg_id' => long, 'now' => int, 'salts' => [future_salt]]; +$future_salts = ['_' => 'future_salts', 'req_msg_id' => long, 'now' => int, 'salts' => [future_salt, future_salt]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/help_configSimple.md b/old_docs/API_docs_v70/constructors/help_configSimple.md index 0b670a2b..63d274a4 100644 --- a/old_docs/API_docs_v70/constructors/help_configSimple.md +++ b/old_docs/API_docs_v70/constructors/help_configSimple.md @@ -24,7 +24,7 @@ description: help_configSimple attributes, type and example ### Example: ``` -$help_configSimple = ['_' => 'help.configSimple', 'date' => int, 'expires' => int, 'dc_id' => int, 'ip_port_list' => [ipPort]]; +$help_configSimple = ['_' => 'help.configSimple', 'date' => int, 'expires' => int, 'dc_id' => int, 'ip_port_list' => [ipPort, ipPort]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v70/constructors/inputBotInlineMessageText.md index 677e5d8c..ed3ddd1b 100644 --- a/old_docs/API_docs_v70/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v70/constructors/inputBotInlineMessageText.md @@ -24,7 +24,7 @@ description: inputBotInlineMessageText attributes, type and example ### Example: ``` -$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/inputBotInlineResultDocument.md b/old_docs/API_docs_v70/constructors/inputBotInlineResultDocument.md index 2315623b..f27421f9 100644 --- a/old_docs/API_docs_v70/constructors/inputBotInlineResultDocument.md +++ b/old_docs/API_docs_v70/constructors/inputBotInlineResultDocument.md @@ -15,7 +15,7 @@ description: inputBotInlineResultDocument attributes, type and example |type|[string](../types/string.md) | Yes| |title|[string](../types/string.md) | Optional| |description|[string](../types/string.md) | Optional| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v70/constructors/inputBotInlineResultPhoto.md b/old_docs/API_docs_v70/constructors/inputBotInlineResultPhoto.md index d39bd108..9628b4e5 100644 --- a/old_docs/API_docs_v70/constructors/inputBotInlineResultPhoto.md +++ b/old_docs/API_docs_v70/constructors/inputBotInlineResultPhoto.md @@ -13,7 +13,7 @@ description: inputBotInlineResultPhoto attributes, type and example |----------|---------------|----------| |id|[string](../types/string.md) | Yes| |type|[string](../types/string.md) | Yes| -|photo|[InputPhoto](../types/InputPhoto.md) | Optional| +|photo|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v70/constructors/inputChatPhoto.md b/old_docs/API_docs_v70/constructors/inputChatPhoto.md index e787f342..ae979308 100644 --- a/old_docs/API_docs_v70/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v70/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v70/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v70/constructors/inputChatUploadedPhoto.md index 78c28fdc..e9d2f354 100644 --- a/old_docs/API_docs_v70/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v70/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| diff --git a/old_docs/API_docs_v70/constructors/inputGameShortName.md b/old_docs/API_docs_v70/constructors/inputGameShortName.md index 64c55c18..0261912a 100644 --- a/old_docs/API_docs_v70/constructors/inputGameShortName.md +++ b/old_docs/API_docs_v70/constructors/inputGameShortName.md @@ -11,7 +11,7 @@ description: inputGameShortName attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|bot\_id|[InputUser](../types/InputUser.md) | Optional| +|bot\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |short\_name|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v70/constructors/inputMediaDocument.md b/old_docs/API_docs_v70/constructors/inputMediaDocument.md index 1e97ec2d..ac7b262e 100644 --- a/old_docs/API_docs_v70/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v70/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |caption|[string](../types/string.md) | Yes| |ttl\_seconds|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v70/constructors/inputMediaPhoto.md b/old_docs/API_docs_v70/constructors/inputMediaPhoto.md index e952098b..f14440b0 100644 --- a/old_docs/API_docs_v70/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v70/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| |ttl\_seconds|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v70/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v70/constructors/inputMediaUploadedDocument.md index 0aa3c653..aec5b910 100644 --- a/old_docs/API_docs_v70/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v70/constructors/inputMediaUploadedDocument.md @@ -11,12 +11,12 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Optional| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Optional| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |ttl\_seconds|[int](../types/int.md) | Optional| @@ -27,7 +27,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument], 'ttl_seconds' => int]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument], 'ttl_seconds' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v70/constructors/inputMediaUploadedPhoto.md index 7ace8cee..ff6085c5 100644 --- a/old_docs/API_docs_v70/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v70/constructors/inputMediaUploadedPhoto.md @@ -11,9 +11,9 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |ttl\_seconds|[int](../types/int.md) | Optional| @@ -24,7 +24,7 @@ description: inputMediaUploadedPhoto attributes, type and example ### Example: ``` -$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument], 'ttl_seconds' => int]; +$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument, InputDocument], 'ttl_seconds' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/inputNotifyPeer.md b/old_docs/API_docs_v70/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v70/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v70/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v70/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v70/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v70/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v70/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v70/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v70/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v70/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/inputStickerSetItem.md b/old_docs/API_docs_v70/constructors/inputStickerSetItem.md index 84ae0e46..749330b9 100644 --- a/old_docs/API_docs_v70/constructors/inputStickerSetItem.md +++ b/old_docs/API_docs_v70/constructors/inputStickerSetItem.md @@ -11,7 +11,7 @@ description: inputStickerSetItem attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |emoji|[string](../types/string.md) | Yes| |mask\_coords|[MaskCoords](../types/MaskCoords.md) | Optional| diff --git a/old_docs/API_docs_v70/constructors/inputStickeredMediaDocument.md b/old_docs/API_docs_v70/constructors/inputStickeredMediaDocument.md index ca9921e7..c281b7e5 100644 --- a/old_docs/API_docs_v70/constructors/inputStickeredMediaDocument.md +++ b/old_docs/API_docs_v70/constructors/inputStickeredMediaDocument.md @@ -11,7 +11,7 @@ description: inputStickeredMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v70/constructors/inputStickeredMediaPhoto.md b/old_docs/API_docs_v70/constructors/inputStickeredMediaPhoto.md index ac0428e1..042044b0 100644 --- a/old_docs/API_docs_v70/constructors/inputStickeredMediaPhoto.md +++ b/old_docs/API_docs_v70/constructors/inputStickeredMediaPhoto.md @@ -11,7 +11,7 @@ description: inputStickeredMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v70/constructors/inputWebDocument.md b/old_docs/API_docs_v70/constructors/inputWebDocument.md index 81f2707a..dd9a24ff 100644 --- a/old_docs/API_docs_v70/constructors/inputWebDocument.md +++ b/old_docs/API_docs_v70/constructors/inputWebDocument.md @@ -24,7 +24,7 @@ description: inputWebDocument attributes, type and example ### Example: ``` -$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/invoice.md b/old_docs/API_docs_v70/constructors/invoice.md index ddccf1b6..80a56a08 100644 --- a/old_docs/API_docs_v70/constructors/invoice.md +++ b/old_docs/API_docs_v70/constructors/invoice.md @@ -28,7 +28,7 @@ description: invoice attributes, type and example ### Example: ``` -$invoice = ['_' => 'invoice', 'test' => Bool, 'name_requested' => Bool, 'phone_requested' => Bool, 'email_requested' => Bool, 'shipping_address_requested' => Bool, 'flexible' => Bool, 'currency' => 'string', 'prices' => [LabeledPrice]]; +$invoice = ['_' => 'invoice', 'test' => Bool, 'name_requested' => Bool, 'phone_requested' => Bool, 'email_requested' => Bool, 'shipping_address_requested' => Bool, 'flexible' => Bool, 'currency' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/keyboardButtonRow.md b/old_docs/API_docs_v70/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v70/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v70/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/langPackDifference.md b/old_docs/API_docs_v70/constructors/langPackDifference.md index 0d077158..3447d739 100644 --- a/old_docs/API_docs_v70/constructors/langPackDifference.md +++ b/old_docs/API_docs_v70/constructors/langPackDifference.md @@ -24,7 +24,7 @@ description: langPackDifference attributes, type and example ### Example: ``` -$langPackDifference = ['_' => 'langPackDifference', 'lang_code' => 'string', 'from_version' => int, 'version' => int, 'strings' => [LangPackString]]; +$langPackDifference = ['_' => 'langPackDifference', 'lang_code' => 'string', 'from_version' => int, 'version' => int, 'strings' => [LangPackString, LangPackString]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/message.md b/old_docs/API_docs_v70/constructors/message.md index 98c4f04c..ec882b03 100644 --- a/old_docs/API_docs_v70/constructors/message.md +++ b/old_docs/API_docs_v70/constructors/message.md @@ -39,7 +39,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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']; +$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v70/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v70/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v70/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messageActionChatCreate.md b/old_docs/API_docs_v70/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v70/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v70/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_allStickers.md b/old_docs/API_docs_v70/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/old_docs/API_docs_v70/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v70/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_archivedStickers.md b/old_docs/API_docs_v70/constructors/messages_archivedStickers.md index 7af238d4..c9675b57 100644 --- a/old_docs/API_docs_v70/constructors/messages_archivedStickers.md +++ b/old_docs/API_docs_v70/constructors/messages_archivedStickers.md @@ -22,7 +22,7 @@ description: messages_archivedStickers attributes, type and example ### Example: ``` -$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered]]; +$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_botResults.md b/old_docs/API_docs_v70/constructors/messages_botResults.md index 2f53b450..13edec1a 100644 --- a/old_docs/API_docs_v70/constructors/messages_botResults.md +++ b/old_docs/API_docs_v70/constructors/messages_botResults.md @@ -26,7 +26,7 @@ description: messages_botResults attributes, type and example ### Example: ``` -$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult], 'cache_time' => int]; +$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult, BotInlineResult], 'cache_time' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_channelMessages.md b/old_docs/API_docs_v70/constructors/messages_channelMessages.md index 8ec11b2d..358c0c70 100644 --- a/old_docs/API_docs_v70/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v70/constructors/messages_channelMessages.md @@ -25,7 +25,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_chatFull.md b/old_docs/API_docs_v70/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v70/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v70/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_chats.md b/old_docs/API_docs_v70/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v70/constructors/messages_chats.md +++ b/old_docs/API_docs_v70/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_chatsSlice.md b/old_docs/API_docs_v70/constructors/messages_chatsSlice.md index 4e3e0e77..614c577b 100644 --- a/old_docs/API_docs_v70/constructors/messages_chatsSlice.md +++ b/old_docs/API_docs_v70/constructors/messages_chatsSlice.md @@ -22,7 +22,7 @@ description: messages_chatsSlice attributes, type and example ### Example: ``` -$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat]]; +$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_dialogs.md b/old_docs/API_docs_v70/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v70/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v70/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v70/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v70/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v70/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v70/constructors/messages_featuredStickers.md b/old_docs/API_docs_v70/constructors/messages_featuredStickers.md index dac1fd91..0fc54db1 100644 --- a/old_docs/API_docs_v70/constructors/messages_featuredStickers.md +++ b/old_docs/API_docs_v70/constructors/messages_featuredStickers.md @@ -23,7 +23,7 @@ description: messages_featuredStickers attributes, type and example ### Example: ``` -$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered], 'unread' => [long]]; +$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered, StickerSetCovered], 'unread' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_foundGifs.md b/old_docs/API_docs_v70/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/old_docs/API_docs_v70/constructors/messages_foundGifs.md +++ b/old_docs/API_docs_v70/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_highScores.md b/old_docs/API_docs_v70/constructors/messages_highScores.md index 26eab658..df592f06 100644 --- a/old_docs/API_docs_v70/constructors/messages_highScores.md +++ b/old_docs/API_docs_v70/constructors/messages_highScores.md @@ -22,7 +22,7 @@ description: messages_highScores attributes, type and example ### Example: ``` -$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore], 'users' => [User]]; +$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore, HighScore], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_messages.md b/old_docs/API_docs_v70/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v70/constructors/messages_messages.md +++ b/old_docs/API_docs_v70/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_messagesSlice.md b/old_docs/API_docs_v70/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v70/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v70/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_peerDialogs.md b/old_docs/API_docs_v70/constructors/messages_peerDialogs.md index bec6c88c..5d25b545 100644 --- a/old_docs/API_docs_v70/constructors/messages_peerDialogs.md +++ b/old_docs/API_docs_v70/constructors/messages_peerDialogs.md @@ -25,7 +25,7 @@ description: messages_peerDialogs attributes, type and example ### Example: ``` -$messages_peerDialogs = ['_' => 'messages.peerDialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v70/constructors/messages_recentStickers.md b/old_docs/API_docs_v70/constructors/messages_recentStickers.md index be5e69a0..a8a53ffe 100644 --- a/old_docs/API_docs_v70/constructors/messages_recentStickers.md +++ b/old_docs/API_docs_v70/constructors/messages_recentStickers.md @@ -22,7 +22,7 @@ description: messages_recentStickers attributes, type and example ### Example: ``` -$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document]]; +$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_savedGifs.md b/old_docs/API_docs_v70/constructors/messages_savedGifs.md index 7e2a00eb..b4ff040d 100644 --- a/old_docs/API_docs_v70/constructors/messages_savedGifs.md +++ b/old_docs/API_docs_v70/constructors/messages_savedGifs.md @@ -22,7 +22,7 @@ description: messages_savedGifs attributes, type and example ### Example: ``` -$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document]]; +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_stickerSet.md b/old_docs/API_docs_v70/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v70/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v70/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_stickerSetInstallResultArchive.md b/old_docs/API_docs_v70/constructors/messages_stickerSetInstallResultArchive.md index f3e510bb..5b7fb05f 100644 --- a/old_docs/API_docs_v70/constructors/messages_stickerSetInstallResultArchive.md +++ b/old_docs/API_docs_v70/constructors/messages_stickerSetInstallResultArchive.md @@ -21,7 +21,7 @@ description: messages_stickerSetInstallResultArchive attributes, type and exampl ### Example: ``` -$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered]]; +$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/messages_stickers.md b/old_docs/API_docs_v70/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v70/constructors/messages_stickers.md +++ b/old_docs/API_docs_v70/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/msg_resend_req.md b/old_docs/API_docs_v70/constructors/msg_resend_req.md index 6a584a1a..13e6669d 100644 --- a/old_docs/API_docs_v70/constructors/msg_resend_req.md +++ b/old_docs/API_docs_v70/constructors/msg_resend_req.md @@ -21,7 +21,7 @@ description: msg_resend_req attributes, type and example ### Example: ``` -$msg_resend_req = ['_' => 'msg_resend_req', 'msg_ids' => [long]]; +$msg_resend_req = ['_' => 'msg_resend_req', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/msgs_ack.md b/old_docs/API_docs_v70/constructors/msgs_ack.md index 6d945079..353148ea 100644 --- a/old_docs/API_docs_v70/constructors/msgs_ack.md +++ b/old_docs/API_docs_v70/constructors/msgs_ack.md @@ -21,7 +21,7 @@ description: msgs_ack attributes, type and example ### Example: ``` -$msgs_ack = ['_' => 'msgs_ack', 'msg_ids' => [long]]; +$msgs_ack = ['_' => 'msgs_ack', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/msgs_all_info.md b/old_docs/API_docs_v70/constructors/msgs_all_info.md index 632ef421..dd630f00 100644 --- a/old_docs/API_docs_v70/constructors/msgs_all_info.md +++ b/old_docs/API_docs_v70/constructors/msgs_all_info.md @@ -22,7 +22,7 @@ description: msgs_all_info attributes, type and example ### Example: ``` -$msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long], 'info' => 'string']; +$msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long, long], 'info' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/msgs_state_req.md b/old_docs/API_docs_v70/constructors/msgs_state_req.md index 3aecb1ee..76f1f05c 100644 --- a/old_docs/API_docs_v70/constructors/msgs_state_req.md +++ b/old_docs/API_docs_v70/constructors/msgs_state_req.md @@ -21,7 +21,7 @@ description: msgs_state_req attributes, type and example ### Example: ``` -$msgs_state_req = ['_' => 'msgs_state_req', 'msg_ids' => [long]]; +$msgs_state_req = ['_' => 'msgs_state_req', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/pageBlockCollage.md b/old_docs/API_docs_v70/constructors/pageBlockCollage.md index 8685b250..3950e34d 100644 --- a/old_docs/API_docs_v70/constructors/pageBlockCollage.md +++ b/old_docs/API_docs_v70/constructors/pageBlockCollage.md @@ -22,7 +22,7 @@ description: pageBlockCollage attributes, type and example ### Example: ``` -$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/pageBlockEmbedPost.md b/old_docs/API_docs_v70/constructors/pageBlockEmbedPost.md index e0e955b9..e9434dfa 100644 --- a/old_docs/API_docs_v70/constructors/pageBlockEmbedPost.md +++ b/old_docs/API_docs_v70/constructors/pageBlockEmbedPost.md @@ -27,7 +27,7 @@ description: pageBlockEmbedPost attributes, type and example ### Example: ``` -$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock], 'caption' => RichText]; +$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/pageBlockList.md b/old_docs/API_docs_v70/constructors/pageBlockList.md index 6bf3c783..728c05a7 100644 --- a/old_docs/API_docs_v70/constructors/pageBlockList.md +++ b/old_docs/API_docs_v70/constructors/pageBlockList.md @@ -22,7 +22,7 @@ description: pageBlockList attributes, type and example ### Example: ``` -$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText]]; +$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/pageBlockSlideshow.md b/old_docs/API_docs_v70/constructors/pageBlockSlideshow.md index e48d51bb..0c18e64f 100644 --- a/old_docs/API_docs_v70/constructors/pageBlockSlideshow.md +++ b/old_docs/API_docs_v70/constructors/pageBlockSlideshow.md @@ -22,7 +22,7 @@ description: pageBlockSlideshow attributes, type and example ### Example: ``` -$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/pageFull.md b/old_docs/API_docs_v70/constructors/pageFull.md index 7dabe40d..4ea43cd0 100644 --- a/old_docs/API_docs_v70/constructors/pageFull.md +++ b/old_docs/API_docs_v70/constructors/pageFull.md @@ -23,7 +23,7 @@ description: pageFull attributes, type and example ### Example: ``` -$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock], 'photos' => [Photo], 'documents' => [Document]]; +$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/pagePart.md b/old_docs/API_docs_v70/constructors/pagePart.md index a6969c73..32e8ac28 100644 --- a/old_docs/API_docs_v70/constructors/pagePart.md +++ b/old_docs/API_docs_v70/constructors/pagePart.md @@ -23,7 +23,7 @@ description: pagePart attributes, type and example ### Example: ``` -$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock], 'photos' => [Photo], 'documents' => [Document]]; +$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/payments_paymentForm.md b/old_docs/API_docs_v70/constructors/payments_paymentForm.md index 6b468a10..982b4a13 100644 --- a/old_docs/API_docs_v70/constructors/payments_paymentForm.md +++ b/old_docs/API_docs_v70/constructors/payments_paymentForm.md @@ -31,7 +31,7 @@ description: payments_paymentForm attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v70/constructors/payments_paymentReceipt.md b/old_docs/API_docs_v70/constructors/payments_paymentReceipt.md index cb64a78a..f7c6589c 100644 --- a/old_docs/API_docs_v70/constructors/payments_paymentReceipt.md +++ b/old_docs/API_docs_v70/constructors/payments_paymentReceipt.md @@ -30,7 +30,7 @@ description: payments_paymentReceipt attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v70/constructors/payments_validatedRequestedInfo.md b/old_docs/API_docs_v70/constructors/payments_validatedRequestedInfo.md index a1d841b5..362544ca 100644 --- a/old_docs/API_docs_v70/constructors/payments_validatedRequestedInfo.md +++ b/old_docs/API_docs_v70/constructors/payments_validatedRequestedInfo.md @@ -22,7 +22,7 @@ description: payments_validatedRequestedInfo attributes, type and example ### Example: ``` -$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption]]; +$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption, ShippingOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/phoneCall.md b/old_docs/API_docs_v70/constructors/phoneCall.md index 279af015..703116b5 100644 --- a/old_docs/API_docs_v70/constructors/phoneCall.md +++ b/old_docs/API_docs_v70/constructors/phoneCall.md @@ -31,7 +31,7 @@ description: phoneCall attributes, type and example ### Example: ``` -$phoneCall = ['_' => 'phoneCall', '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]; +$phoneCall = ['_' => 'phoneCall', '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: diff --git a/old_docs/API_docs_v70/constructors/phone_phoneCall.md b/old_docs/API_docs_v70/constructors/phone_phoneCall.md index 38177647..00a43b98 100644 --- a/old_docs/API_docs_v70/constructors/phone_phoneCall.md +++ b/old_docs/API_docs_v70/constructors/phone_phoneCall.md @@ -22,7 +22,7 @@ description: phone_phoneCall attributes, type and example ### Example: ``` -$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User]]; +$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/photo.md b/old_docs/API_docs_v70/constructors/photo.md index 0d6edc52..293458ca 100644 --- a/old_docs/API_docs_v70/constructors/photo.md +++ b/old_docs/API_docs_v70/constructors/photo.md @@ -25,7 +25,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/photos_photo.md b/old_docs/API_docs_v70/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v70/constructors/photos_photo.md +++ b/old_docs/API_docs_v70/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/photos_photos.md b/old_docs/API_docs_v70/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v70/constructors/photos_photos.md +++ b/old_docs/API_docs_v70/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/photos_photosSlice.md b/old_docs/API_docs_v70/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v70/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v70/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v70/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v70/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v70/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v70/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v70/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v70/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/replyInlineMarkup.md b/old_docs/API_docs_v70/constructors/replyInlineMarkup.md index 80d2ff77..95257485 100644 --- a/old_docs/API_docs_v70/constructors/replyInlineMarkup.md +++ b/old_docs/API_docs_v70/constructors/replyInlineMarkup.md @@ -21,7 +21,7 @@ description: replyInlineMarkup attributes, type and example ### Example: ``` -$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow]]; +$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v70/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v70/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v70/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/resPQ.md b/old_docs/API_docs_v70/constructors/resPQ.md index 5d6c0d6b..f4dcf3e9 100644 --- a/old_docs/API_docs_v70/constructors/resPQ.md +++ b/old_docs/API_docs_v70/constructors/resPQ.md @@ -24,7 +24,7 @@ description: resPQ attributes, type and example ### Example: ``` -$resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => 'string', 'server_public_key_fingerprints' => [long]]; +$resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => 'string', 'server_public_key_fingerprints' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/shippingOption.md b/old_docs/API_docs_v70/constructors/shippingOption.md index 32ec5182..53a0405f 100644 --- a/old_docs/API_docs_v70/constructors/shippingOption.md +++ b/old_docs/API_docs_v70/constructors/shippingOption.md @@ -23,7 +23,7 @@ description: shippingOption attributes, type and example ### Example: ``` -$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice]]; +$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/stickerPack.md b/old_docs/API_docs_v70/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v70/constructors/stickerPack.md +++ b/old_docs/API_docs_v70/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/stickerSetMultiCovered.md b/old_docs/API_docs_v70/constructors/stickerSetMultiCovered.md index 4dd5a0a7..9a337fdc 100644 --- a/old_docs/API_docs_v70/constructors/stickerSetMultiCovered.md +++ b/old_docs/API_docs_v70/constructors/stickerSetMultiCovered.md @@ -22,7 +22,7 @@ description: stickerSetMultiCovered attributes, type and example ### Example: ``` -$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document]]; +$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/textConcat.md b/old_docs/API_docs_v70/constructors/textConcat.md index 4a44d3b2..bfdb9e50 100644 --- a/old_docs/API_docs_v70/constructors/textConcat.md +++ b/old_docs/API_docs_v70/constructors/textConcat.md @@ -21,7 +21,7 @@ description: textConcat attributes, type and example ### Example: ``` -$textConcat = ['_' => 'textConcat', 'texts' => [RichText]]; +$textConcat = ['_' => 'textConcat', 'texts' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/topPeerCategoryPeers.md b/old_docs/API_docs_v70/constructors/topPeerCategoryPeers.md index acd5cf08..03b78ed3 100644 --- a/old_docs/API_docs_v70/constructors/topPeerCategoryPeers.md +++ b/old_docs/API_docs_v70/constructors/topPeerCategoryPeers.md @@ -23,7 +23,7 @@ description: topPeerCategoryPeers attributes, type and example ### Example: ``` -$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer]]; +$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer, TopPeer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/updateDcOptions.md b/old_docs/API_docs_v70/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v70/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v70/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v70/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v70/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v70/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/updateDeleteMessages.md b/old_docs/API_docs_v70/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v70/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v70/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/updatePinnedDialogs.md b/old_docs/API_docs_v70/constructors/updatePinnedDialogs.md index a531ad75..c38d664c 100644 --- a/old_docs/API_docs_v70/constructors/updatePinnedDialogs.md +++ b/old_docs/API_docs_v70/constructors/updatePinnedDialogs.md @@ -21,7 +21,7 @@ description: updatePinnedDialogs attributes, type and example ### Example: ``` -$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer]]; +$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer, Peer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/updatePrivacy.md b/old_docs/API_docs_v70/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v70/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v70/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v70/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v70/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v70/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/updateServiceNotification.md b/old_docs/API_docs_v70/constructors/updateServiceNotification.md index 562d1089..92280ccf 100644 --- a/old_docs/API_docs_v70/constructors/updateServiceNotification.md +++ b/old_docs/API_docs_v70/constructors/updateServiceNotification.md @@ -26,7 +26,7 @@ description: updateServiceNotification attributes, type and example ### Example: ``` -$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/updateShortChatMessage.md b/old_docs/API_docs_v70/constructors/updateShortChatMessage.md index 08aa61a5..f6310d0d 100644 --- a/old_docs/API_docs_v70/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v70/constructors/updateShortChatMessage.md @@ -35,7 +35,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v70/constructors/updateShortMessage.md b/old_docs/API_docs_v70/constructors/updateShortMessage.md index 608d2a30..24f07b99 100644 --- a/old_docs/API_docs_v70/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v70/constructors/updateShortMessage.md @@ -34,7 +34,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v70/constructors/updateShortSentMessage.md b/old_docs/API_docs_v70/constructors/updateShortSentMessage.md index 28f82e3a..ebc40cf9 100644 --- a/old_docs/API_docs_v70/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v70/constructors/updateShortSentMessage.md @@ -27,7 +27,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$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: diff --git a/old_docs/API_docs_v70/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v70/constructors/updateStickerSetsOrder.md index 53637821..7b29b8f2 100644 --- a/old_docs/API_docs_v70/constructors/updateStickerSetsOrder.md +++ b/old_docs/API_docs_v70/constructors/updateStickerSetsOrder.md @@ -22,7 +22,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/updates.md b/old_docs/API_docs_v70/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v70/constructors/updates.md +++ b/old_docs/API_docs_v70/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/updatesCombined.md b/old_docs/API_docs_v70/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v70/constructors/updatesCombined.md +++ b/old_docs/API_docs_v70/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v70/constructors/updates_channelDifference.md b/old_docs/API_docs_v70/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v70/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v70/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v70/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v70/constructors/updates_channelDifferenceTooLong.md index 8e3a01aa..0ff98bf6 100644 --- a/old_docs/API_docs_v70/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v70/constructors/updates_channelDifferenceTooLong.md @@ -30,7 +30,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$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, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/updates_difference.md b/old_docs/API_docs_v70/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v70/constructors/updates_difference.md +++ b/old_docs/API_docs_v70/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v70/constructors/updates_differenceSlice.md b/old_docs/API_docs_v70/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v70/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v70/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v70/constructors/upload_fileCdnRedirect.md b/old_docs/API_docs_v70/constructors/upload_fileCdnRedirect.md index 33aaefd2..8140b266 100644 --- a/old_docs/API_docs_v70/constructors/upload_fileCdnRedirect.md +++ b/old_docs/API_docs_v70/constructors/upload_fileCdnRedirect.md @@ -25,7 +25,7 @@ description: upload_fileCdnRedirect attributes, type and example ### Example: ``` -$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'cdn_file_hashes' => [CdnFileHash]]; +$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'cdn_file_hashes' => [CdnFileHash, CdnFileHash]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/wallPaper.md b/old_docs/API_docs_v70/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v70/constructors/wallPaper.md +++ b/old_docs/API_docs_v70/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/constructors/webDocument.md b/old_docs/API_docs_v70/constructors/webDocument.md index 0be6cb8a..55a5b09b 100644 --- a/old_docs/API_docs_v70/constructors/webDocument.md +++ b/old_docs/API_docs_v70/constructors/webDocument.md @@ -26,7 +26,7 @@ description: webDocument attributes, type and example ### Example: ``` -$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'dc_id' => int]; +$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'dc_id' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v70/methods/README.md b/old_docs/API_docs_v70/methods/README.md index 8305a302..a9ad20ad 100644 --- a/old_docs/API_docs_v70/methods/README.md +++ b/old_docs/API_docs_v70/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v70/methods/account_changePhone.md b/old_docs/API_docs_v70/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v70/methods/account_changePhone.md +++ b/old_docs/API_docs_v70/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_checkUsername.md b/old_docs/API_docs_v70/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v70/methods/account_checkUsername.md +++ b/old_docs/API_docs_v70/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_confirmPhone.md b/old_docs/API_docs_v70/methods/account_confirmPhone.md index 8dd79d94..2261e6e8 100644 --- a/old_docs/API_docs_v70/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v70/methods/account_confirmPhone.md @@ -1,17 +1,19 @@ --- title: account.confirmPhone -description: account.confirmPhone parameters, return type and example +description: Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode --- ## 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 | Required | -|----------|---------------|----------| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_code\_hash|[string](../types/string.md) | Yes|obtain phone_code_hash from sendConfirmPhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The code sent by sendConfirmPhoneCode| ### Return type: [Bool](../types/Bool.md) @@ -31,13 +33,18 @@ description: account.confirmPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_deleteAccount.md b/old_docs/API_docs_v70/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v70/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v70/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_getAccountTTL.md b/old_docs/API_docs_v70/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v70/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v70/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v70/methods/account_getAuthorizations.md b/old_docs/API_docs_v70/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v70/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v70/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v70/methods/account_getNotifySettings.md b/old_docs/API_docs_v70/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v70/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v70/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_getPassword.md b/old_docs/API_docs_v70/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v70/methods/account_getPassword.md +++ b/old_docs/API_docs_v70/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v70/methods/account_getPasswordSettings.md b/old_docs/API_docs_v70/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v70/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v70/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_getPrivacy.md b/old_docs/API_docs_v70/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v70/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v70/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_getTmpPassword.md b/old_docs/API_docs_v70/methods/account_getTmpPassword.md index d9bd30d8..e9ff8d28 100644 --- a/old_docs/API_docs_v70/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v70/methods/account_getTmpPassword.md @@ -1,17 +1,19 @@ --- title: account.getTmpPassword -description: account.getTmpPassword parameters, return type and example +description: Get temporary password for buying products through bots --- ## Method: account.getTmpPassword [Back to methods index](index.md) +Get temporary password for buying products through bots + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|password\_hash|[bytes](../types/bytes.md) | Yes|The password hash| +|period|[int](../types/int.md) | Yes|The validity period| ### Return type: [account\_TmpPassword](../types/account_TmpPassword.md) @@ -31,13 +33,18 @@ description: account.getTmpPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_getWallPapers.md b/old_docs/API_docs_v70/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v70/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v70/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v70/methods/account_registerDevice.md b/old_docs/API_docs_v70/methods/account_registerDevice.md index 8be04ad2..0bf6d1ee 100644 --- a/old_docs/API_docs_v70/methods/account_registerDevice.md +++ b/old_docs/API_docs_v70/methods/account_registerDevice.md @@ -1,17 +1,19 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_reportPeer.md b/old_docs/API_docs_v70/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v70/methods/account_reportPeer.md +++ b/old_docs/API_docs_v70/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_resetAuthorization.md b/old_docs/API_docs_v70/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v70/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v70/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_resetNotifySettings.md b/old_docs/API_docs_v70/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v70/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v70/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md index 017b5f7f..9e5016a4 100644 --- a/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|phone\_number|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can the code be sent using a flash call instead of an SMS?| +|phone\_number|[string](../types/string.md) | Yes|New phone number| +|current\_number|[Bool](../types/Bool.md) | Optional|Current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md index 3665bd50..4de86a33 100644 --- a/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendConfirmPhoneCode -description: account.sendConfirmPhoneCode parameters, return type and example +description: Send confirmation phone code --- ## Method: account.sendConfirmPhoneCode [Back to methods index](index.md) +Send confirmation phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|hash|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can telegram call you instead of sending an SMS?| +|hash|[string](../types/string.md) | Yes|The hash| +|current\_number|[Bool](../types/Bool.md) | Optional|The current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendConfirmPhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_setAccountTTL.md b/old_docs/API_docs_v70/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v70/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v70/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_setPrivacy.md b/old_docs/API_docs_v70/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v70/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v70/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/account_unregisterDevice.md b/old_docs/API_docs_v70/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v70/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v70/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v70/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v70/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v70/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_updateNotifySettings.md b/old_docs/API_docs_v70/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v70/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v70/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_updateProfile.md b/old_docs/API_docs_v70/methods/account_updateProfile.md index b3d468d1..8b0c3268 100644 --- a/old_docs/API_docs_v70/methods/account_updateProfile.md +++ b/old_docs/API_docs_v70/methods/account_updateProfile.md @@ -1,18 +1,20 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Optional| -|last\_name|[string](../types/string.md) | Optional| -|about|[string](../types/string.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Optional|The first name| +|last\_name|[string](../types/string.md) | Optional|The last name| +|about|[string](../types/string.md) | Optional|The bio/about field| ### Return type: [User](../types/User.md) @@ -32,13 +34,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_updateStatus.md b/old_docs/API_docs_v70/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v70/methods/account_updateStatus.md +++ b/old_docs/API_docs_v70/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v70/methods/account_updateUsername.md b/old_docs/API_docs_v70/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v70/methods/account_updateUsername.md +++ b/old_docs/API_docs_v70/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v70/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v70/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v70/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v70/methods/auth_cancelCode.md b/old_docs/API_docs_v70/methods/auth_cancelCode.md index 05d927a1..1283e1e5 100644 --- a/old_docs/API_docs_v70/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v70/methods/auth_cancelCode.md @@ -1,17 +1,19 @@ --- title: auth.cancelCode -description: auth.cancelCode parameters, return type and example +description: Invalidate sent phone code --- ## Method: auth.cancelCode [Back to methods index](index.md) +Invalidate sent phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: auth.cancelCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/auth_checkPassword.md b/old_docs/API_docs_v70/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v70/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v70/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v70/methods/auth_checkPhone.md b/old_docs/API_docs_v70/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v70/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v70/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v70/methods/auth_dropTempAuthKeys.md index fedb7bf4..b08b9f40 100644 --- a/old_docs/API_docs_v70/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v70/methods/auth_dropTempAuthKeys.md @@ -1,16 +1,18 @@ --- title: auth.dropTempAuthKeys -description: auth.dropTempAuthKeys parameters, return type and example +description: Delete all temporary authorization keys except the ones provided --- ## Method: auth.dropTempAuthKeys [Back to methods index](index.md) +Delete all temporary authorization keys except the ones provided + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|except\_auth\_keys|Array of [long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|except\_auth\_keys|Array of [long](../types/long.md) | Yes|The temporary authorization keys to keep| ### Return type: [Bool](../types/Bool.md) @@ -22,18 +24,20 @@ description: auth.dropTempAuthKeys parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/auth_exportAuthorization.md b/old_docs/API_docs_v70/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v70/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v70/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v70/methods/auth_importAuthorization.md b/old_docs/API_docs_v70/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v70/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v70/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v70/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v70/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v70/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v70/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v70/methods/auth_logOut.md b/old_docs/API_docs_v70/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v70/methods/auth_logOut.md +++ b/old_docs/API_docs_v70/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v70/methods/auth_recoverPassword.md b/old_docs/API_docs_v70/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v70/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v70/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v70/methods/auth_resendCode.md b/old_docs/API_docs_v70/methods/auth_resendCode.md index df4803b8..4bfbf379 100644 --- a/old_docs/API_docs_v70/methods/auth_resendCode.md +++ b/old_docs/API_docs_v70/methods/auth_resendCode.md @@ -1,17 +1,19 @@ --- title: auth.resendCode -description: auth.resendCode parameters, return type and example +description: Resend the SMS verification code --- ## Method: auth.resendCode [Back to methods index](index.md) +Resend the SMS verification code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|The phone code hash| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -30,13 +32,18 @@ description: auth.resendCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v70/methods/auth_sendCode.md b/old_docs/API_docs_v70/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v70/methods/auth_sendCode.md +++ b/old_docs/API_docs_v70/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v70/methods/auth_sendInvites.md b/old_docs/API_docs_v70/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v70/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v70/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/auth_signIn.md b/old_docs/API_docs_v70/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v70/methods/auth_signIn.md +++ b/old_docs/API_docs_v70/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v70/methods/auth_signUp.md b/old_docs/API_docs_v70/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v70/methods/auth_signUp.md +++ b/old_docs/API_docs_v70/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v70/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v70/methods/bots_answerWebhookJSONQuery.md index d910db35..809576fa 100644 --- a/old_docs/API_docs_v70/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v70/methods/bots_answerWebhookJSONQuery.md @@ -31,16 +31,18 @@ description: bots.answerWebhookJSONQuery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md index abb880ef..ce28f6ca 100644 --- a/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md @@ -30,16 +30,18 @@ description: bots.sendCustomRequest parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_checkUsername.md b/old_docs/API_docs_v70/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v70/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v70/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_createChannel.md b/old_docs/API_docs_v70/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v70/methods/channels_createChannel.md +++ b/old_docs/API_docs_v70/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_deleteChannel.md b/old_docs/API_docs_v70/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v70/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v70/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_deleteMessages.md b/old_docs/API_docs_v70/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v70/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v70/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_editAbout.md b/old_docs/API_docs_v70/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v70/methods/channels_editAbout.md +++ b/old_docs/API_docs_v70/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_editAdmin.md b/old_docs/API_docs_v70/methods/channels_editAdmin.md index 07f8cc11..36ae5241 100644 --- a/old_docs/API_docs_v70/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v70/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_editBanned.md b/old_docs/API_docs_v70/methods/channels_editBanned.md index d26e857f..4f5dc25c 100644 --- a/old_docs/API_docs_v70/methods/channels_editBanned.md +++ b/old_docs/API_docs_v70/methods/channels_editBanned.md @@ -10,8 +10,8 @@ description: channels.editBanned parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Yes| @@ -35,16 +35,18 @@ description: channels.editBanned parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_editPhoto.md b/old_docs/API_docs_v70/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v70/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v70/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_editTitle.md b/old_docs/API_docs_v70/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v70/methods/channels_editTitle.md +++ b/old_docs/API_docs_v70/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_exportInvite.md b/old_docs/API_docs_v70/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v70/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v70/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_exportMessageLink.md b/old_docs/API_docs_v70/methods/channels_exportMessageLink.md index 026fe982..7eff4ed8 100644 --- a/old_docs/API_docs_v70/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v70/methods/channels_exportMessageLink.md @@ -10,7 +10,7 @@ description: channels.exportMessageLink parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: channels.exportMessageLink parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_getAdminLog.md b/old_docs/API_docs_v70/methods/channels_getAdminLog.md index 247d82f5..2b4d08d6 100644 --- a/old_docs/API_docs_v70/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v70/methods/channels_getAdminLog.md @@ -10,10 +10,10 @@ description: channels.getAdminLog parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |q|[string](../types/string.md) | Yes| |events\_filter|[ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md) | Optional| -|admins|Array of [InputUser](../types/InputUser.md) | Optional| +|admins|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |max\_id|[long](../types/long.md) | Yes| |min\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -37,15 +37,20 @@ description: channels.getAdminLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$channels_AdminLogResults = $MadelineProto->channels->getAdminLog(['channel' => InputChannel, 'q' => 'string', 'events_filter' => ChannelAdminLogEventsFilter, 'admins' => [InputUser], 'max_id' => long, 'min_id' => long, 'limit' => int, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v70/methods/channels_getAdminedPublicChannels.md index 283a9071..01ea971f 100644 --- a/old_docs/API_docs_v70/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v70/methods/channels_getAdminedPublicChannels.md @@ -17,13 +17,18 @@ description: channels.getAdminedPublicChannels parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); ``` diff --git a/old_docs/API_docs_v70/methods/channels_getChannels.md b/old_docs/API_docs_v70/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v70/methods/channels_getChannels.md +++ b/old_docs/API_docs_v70/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/channels_getFullChannel.md b/old_docs/API_docs_v70/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v70/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v70/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v70/methods/channels_getMessages.md b/old_docs/API_docs_v70/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v70/methods/channels_getMessages.md +++ b/old_docs/API_docs_v70/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/channels_getParticipant.md b/old_docs/API_docs_v70/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v70/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v70/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_getParticipants.md b/old_docs/API_docs_v70/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v70/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v70/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_inviteToChannel.md b/old_docs/API_docs_v70/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v70/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v70/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/channels_joinChannel.md b/old_docs/API_docs_v70/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v70/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v70/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_leaveChannel.md b/old_docs/API_docs_v70/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v70/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v70/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_readHistory.md b/old_docs/API_docs_v70/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v70/methods/channels_readHistory.md +++ b/old_docs/API_docs_v70/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_reportSpam.md b/old_docs/API_docs_v70/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v70/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v70/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/channels_toggleInvites.md b/old_docs/API_docs_v70/methods/channels_toggleInvites.md index 19669eec..8d977fd0 100644 --- a/old_docs/API_docs_v70/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v70/methods/channels_toggleInvites.md @@ -10,7 +10,7 @@ description: channels.toggleInvites parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -32,13 +32,18 @@ description: channels.toggleInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_toggleSignatures.md b/old_docs/API_docs_v70/methods/channels_toggleSignatures.md index 4aaaeb0c..13d53d92 100644 --- a/old_docs/API_docs_v70/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v70/methods/channels_toggleSignatures.md @@ -10,7 +10,7 @@ description: channels.toggleSignatures parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: channels.toggleSignatures parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md index 3bb6d010..ecc15ce6 100644 --- a/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md @@ -11,7 +11,7 @@ description: channels.updatePinnedMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |silent|[Bool](../types/Bool.md) | Optional| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: channels.updatePinnedMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/channels_updateUsername.md b/old_docs/API_docs_v70/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v70/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v70/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/contacts_block.md b/old_docs/API_docs_v70/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v70/methods/contacts_block.md +++ b/old_docs/API_docs_v70/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v70/methods/contacts_deleteContact.md b/old_docs/API_docs_v70/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v70/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v70/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v70/methods/contacts_deleteContacts.md b/old_docs/API_docs_v70/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v70/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v70/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/contacts_exportCard.md b/old_docs/API_docs_v70/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v70/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v70/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v70/methods/contacts_getBlocked.md b/old_docs/API_docs_v70/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v70/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v70/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/contacts_getContacts.md b/old_docs/API_docs_v70/methods/contacts_getContacts.md index a6779111..fad838e4 100644 --- a/old_docs/API_docs_v70/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v70/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[string](../types/string.md) | Yes|| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/contacts_getStatuses.md b/old_docs/API_docs_v70/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v70/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v70/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v70/methods/contacts_getTopPeers.md b/old_docs/API_docs_v70/methods/contacts_getTopPeers.md index f72133a5..560f15c6 100644 --- a/old_docs/API_docs_v70/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v70/methods/contacts_getTopPeers.md @@ -1,24 +1,26 @@ --- title: contacts.getTopPeers -description: contacts.getTopPeers parameters, return type and example +description: Get most used chats --- ## Method: contacts.getTopPeers [Back to methods index](index.md) +Get most used chats + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|correspondents|[Bool](../types/Bool.md) | Optional| -|bots\_pm|[Bool](../types/Bool.md) | Optional| -|bots\_inline|[Bool](../types/Bool.md) | Optional| -|phone\_calls|[Bool](../types/Bool.md) | Optional| -|groups|[Bool](../types/Bool.md) | Optional| -|channels|[Bool](../types/Bool.md) | Optional| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|correspondents|[Bool](../types/Bool.md) | Optional|| +|bots\_pm|[Bool](../types/Bool.md) | Optional|| +|bots\_inline|[Bool](../types/Bool.md) | Optional|| +|phone\_calls|[Bool](../types/Bool.md) | Optional|| +|groups|[Bool](../types/Bool.md) | Optional|| +|channels|[Bool](../types/Bool.md) | Optional|| +|offset|[int](../types/int.md) | Yes|| +|limit|[int](../types/int.md) | Yes|| +|hash|[int](../types/int.md) | Yes|| ### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md) @@ -37,13 +39,18 @@ description: contacts.getTopPeers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v70/methods/contacts_importCard.md b/old_docs/API_docs_v70/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v70/methods/contacts_importCard.md +++ b/old_docs/API_docs_v70/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/contacts_importContacts.md b/old_docs/API_docs_v70/methods/contacts_importContacts.md index 2f070493..7c9b7536 100644 --- a/old_docs/API_docs_v70/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v70/methods/contacts_importContacts.md @@ -1,17 +1,19 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| -|replace|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| +|replace|[Bool](../types/Bool.md) | Yes|| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -23,15 +25,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md index 3eab7e04..ddcf6b2f 100644 --- a/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md @@ -11,7 +11,7 @@ description: contacts.resetTopPeerRating parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |category|[TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v70/methods/contacts_resolveUsername.md b/old_docs/API_docs_v70/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v70/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v70/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v70/methods/contacts_search.md b/old_docs/API_docs_v70/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v70/methods/contacts_search.md +++ b/old_docs/API_docs_v70/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/contacts_unblock.md b/old_docs/API_docs_v70/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v70/methods/contacts_unblock.md +++ b/old_docs/API_docs_v70/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v70/methods/contest_saveDeveloperInfo.md b/old_docs/API_docs_v70/methods/contest_saveDeveloperInfo.md index c0bb9054..6a8e5fda 100644 --- a/old_docs/API_docs_v70/methods/contest_saveDeveloperInfo.md +++ b/old_docs/API_docs_v70/methods/contest_saveDeveloperInfo.md @@ -26,16 +26,18 @@ description: contest.saveDeveloperInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contest->saveDeveloperInfo(['vk_id' => int, 'name' => 'string', 'phone_number' => 'string', 'age' => int, 'city' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/destroy_auth_key.md b/old_docs/API_docs_v70/methods/destroy_auth_key.md index 1803e375..0304d9a1 100644 --- a/old_docs/API_docs_v70/methods/destroy_auth_key.md +++ b/old_docs/API_docs_v70/methods/destroy_auth_key.md @@ -17,16 +17,18 @@ description: destroy_auth_key parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DestroyAuthKeyRes = $MadelineProto->destroy_auth_key(); ``` diff --git a/old_docs/API_docs_v70/methods/destroy_session.md b/old_docs/API_docs_v70/methods/destroy_session.md index 39aa2c6e..b2525dfb 100644 --- a/old_docs/API_docs_v70/methods/destroy_session.md +++ b/old_docs/API_docs_v70/methods/destroy_session.md @@ -1,16 +1,18 @@ --- title: destroy_session -description: destroy_session parameters, return type and example +description: Destroy the current MTProto session --- ## Method: destroy\_session [Back to methods index](index.md) +Destroy the current MTProto session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|session\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|session\_id|[long](../types/long.md) | Yes|The session to destroy| ### Return type: [DestroySessionRes](../types/DestroySessionRes.md) @@ -22,16 +24,18 @@ description: destroy_session parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DestroySessionRes = $MadelineProto->destroy_session(['session_id' => long, ]); ``` diff --git a/old_docs/API_docs_v70/methods/get_future_salts.md b/old_docs/API_docs_v70/methods/get_future_salts.md index fedf036c..4c2c9c46 100644 --- a/old_docs/API_docs_v70/methods/get_future_salts.md +++ b/old_docs/API_docs_v70/methods/get_future_salts.md @@ -1,16 +1,18 @@ --- title: get_future_salts -description: get_future_salts parameters, return type and example +description: Get future salts --- ## Method: get\_future\_salts [Back to methods index](index.md) +Get future salts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|num|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|num|[int](../types/int.md) | Yes|How many salts should be fetched| ### Return type: [FutureSalts](../types/FutureSalts.md) @@ -22,16 +24,18 @@ description: get_future_salts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $FutureSalts = $MadelineProto->get_future_salts(['num' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/help_getAppChangelog.md b/old_docs/API_docs_v70/methods/help_getAppChangelog.md index 59916787..f09a7a0d 100644 --- a/old_docs/API_docs_v70/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v70/methods/help_getAppChangelog.md @@ -22,13 +22,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/help_getAppUpdate.md b/old_docs/API_docs_v70/methods/help_getAppUpdate.md index 89ff22c3..0e227d24 100644 --- a/old_docs/API_docs_v70/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v70/methods/help_getAppUpdate.md @@ -17,13 +17,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); ``` diff --git a/old_docs/API_docs_v70/methods/help_getCdnConfig.md b/old_docs/API_docs_v70/methods/help_getCdnConfig.md index 3079e605..ba2a6c9a 100644 --- a/old_docs/API_docs_v70/methods/help_getCdnConfig.md +++ b/old_docs/API_docs_v70/methods/help_getCdnConfig.md @@ -24,16 +24,18 @@ description: help.getCdnConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $CdnConfig = $MadelineProto->help->getCdnConfig(); ``` diff --git a/old_docs/API_docs_v70/methods/help_getConfig.md b/old_docs/API_docs_v70/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v70/methods/help_getConfig.md +++ b/old_docs/API_docs_v70/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v70/methods/help_getInviteText.md b/old_docs/API_docs_v70/methods/help_getInviteText.md index 6d2674d6..a8d8992e 100644 --- a/old_docs/API_docs_v70/methods/help_getInviteText.md +++ b/old_docs/API_docs_v70/methods/help_getInviteText.md @@ -17,13 +17,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); ``` diff --git a/old_docs/API_docs_v70/methods/help_getNearestDc.md b/old_docs/API_docs_v70/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v70/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v70/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v70/methods/help_getSupport.md b/old_docs/API_docs_v70/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v70/methods/help_getSupport.md +++ b/old_docs/API_docs_v70/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v70/methods/help_getTermsOfService.md b/old_docs/API_docs_v70/methods/help_getTermsOfService.md index eb686506..a588e830 100644 --- a/old_docs/API_docs_v70/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v70/methods/help_getTermsOfService.md @@ -17,13 +17,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); ``` diff --git a/old_docs/API_docs_v70/methods/help_saveAppLog.md b/old_docs/API_docs_v70/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v70/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v70/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v70/methods/help_setBotUpdatesStatus.md index 470187a0..68c9720a 100644 --- a/old_docs/API_docs_v70/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v70/methods/help_setBotUpdatesStatus.md @@ -23,16 +23,18 @@ description: help.setBotUpdatesStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/initConnection.md b/old_docs/API_docs_v70/methods/initConnection.md index ef40e7f5..3c81c311 100644 --- a/old_docs/API_docs_v70/methods/initConnection.md +++ b/old_docs/API_docs_v70/methods/initConnection.md @@ -1,23 +1,25 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|system\_lang\_code|[string](../types/string.md) | Yes| -|lang\_pack|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|system\_lang\_code|[string](../types/string.md) | Yes|Language code| +|lang\_pack|[string](../types/string.md) | Yes|Language pack to use| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -37,16 +39,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v70/methods/invokeAfterMsg.md b/old_docs/API_docs_v70/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v70/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v70/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v70/methods/invokeAfterMsgs.md b/old_docs/API_docs_v70/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v70/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v70/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/invokeWithLayer.md b/old_docs/API_docs_v70/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v70/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v70/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v70/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v70/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v70/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v70/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v70/methods/langpack_getDifference.md b/old_docs/API_docs_v70/methods/langpack_getDifference.md index 116e78e2..b1078532 100644 --- a/old_docs/API_docs_v70/methods/langpack_getDifference.md +++ b/old_docs/API_docs_v70/methods/langpack_getDifference.md @@ -29,13 +29,18 @@ description: langpack.getDifference parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getDifference(['from_version' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/langpack_getLangPack.md b/old_docs/API_docs_v70/methods/langpack_getLangPack.md index b5686e61..7d440b66 100644 --- a/old_docs/API_docs_v70/methods/langpack_getLangPack.md +++ b/old_docs/API_docs_v70/methods/langpack_getLangPack.md @@ -29,13 +29,18 @@ description: langpack.getLangPack parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getLangPack(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/langpack_getLanguages.md b/old_docs/API_docs_v70/methods/langpack_getLanguages.md index cb65e5a0..8afce13f 100644 --- a/old_docs/API_docs_v70/methods/langpack_getLanguages.md +++ b/old_docs/API_docs_v70/methods/langpack_getLanguages.md @@ -24,13 +24,18 @@ description: langpack.getLanguages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_LangPackLanguage = $MadelineProto->langpack->getLanguages(); ``` diff --git a/old_docs/API_docs_v70/methods/langpack_getStrings.md b/old_docs/API_docs_v70/methods/langpack_getStrings.md index ce58daf9..9791f621 100644 --- a/old_docs/API_docs_v70/methods/langpack_getStrings.md +++ b/old_docs/API_docs_v70/methods/langpack_getStrings.md @@ -30,15 +30,20 @@ description: langpack.getStrings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string'], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string', 'string'], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_acceptEncryption.md b/old_docs/API_docs_v70/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v70/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v70/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v70/methods/messages_addChatUser.md b/old_docs/API_docs_v70/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v70/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v70/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_checkChatInvite.md b/old_docs/API_docs_v70/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v70/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v70/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v70/methods/messages_clearRecentStickers.md index ae45b249..31941a34 100644 --- a/old_docs/API_docs_v70/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v70/methods/messages_clearRecentStickers.md @@ -22,13 +22,18 @@ description: messages.clearRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_createChat.md b/old_docs/API_docs_v70/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v70/methods/messages_createChat.md +++ b/old_docs/API_docs_v70/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_deleteChatUser.md b/old_docs/API_docs_v70/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v70/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v70/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_deleteHistory.md b/old_docs/API_docs_v70/methods/messages_deleteHistory.md index d1c3f195..01686b2b 100644 --- a/old_docs/API_docs_v70/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v70/methods/messages_deleteHistory.md @@ -11,7 +11,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |just\_clear|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_deleteMessages.md b/old_docs/API_docs_v70/methods/messages_deleteMessages.md index 5472cc72..0cc6e6ed 100644 --- a/old_docs/API_docs_v70/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v70/methods/messages_deleteMessages.md @@ -30,18 +30,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_discardEncryption.md b/old_docs/API_docs_v70/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v70/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v70/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v70/methods/messages_editChatAdmin.md b/old_docs/API_docs_v70/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v70/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v70/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_editChatPhoto.md b/old_docs/API_docs_v70/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v70/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v70/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_editChatTitle.md b/old_docs/API_docs_v70/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v70/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v70/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md index c3489f9d..289100ea 100644 --- a/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md @@ -35,18 +35,20 @@ description: messages.editInlineBotMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_editMessage.md b/old_docs/API_docs_v70/methods/messages_editMessage.md index 182fa03e..63379ed9 100644 --- a/old_docs/API_docs_v70/methods/messages_editMessage.md +++ b/old_docs/API_docs_v70/methods/messages_editMessage.md @@ -11,7 +11,7 @@ description: messages.editMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| |message|[string](../types/string.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -44,18 +44,20 @@ description: messages.editMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_exportChatInvite.md b/old_docs/API_docs_v70/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v70/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v70/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_forwardMessage.md b/old_docs/API_docs_v70/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v70/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v70/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_forwardMessages.md b/old_docs/API_docs_v70/methods/messages_forwardMessages.md index 1185259d..df361517 100644 --- a/old_docs/API_docs_v70/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v70/methods/messages_forwardMessages.md @@ -13,9 +13,9 @@ description: messages.forwardMessages parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |with\_my\_score|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -55,18 +55,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_getAllChats.md b/old_docs/API_docs_v70/methods/messages_getAllChats.md index babcf17d..59bc0add 100644 --- a/old_docs/API_docs_v70/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v70/methods/messages_getAllChats.md @@ -22,15 +22,20 @@ description: messages.getAllChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_getAllDrafts.md b/old_docs/API_docs_v70/methods/messages_getAllDrafts.md index 8550c5b8..7f0f7843 100644 --- a/old_docs/API_docs_v70/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v70/methods/messages_getAllDrafts.md @@ -17,13 +17,18 @@ description: messages.getAllDrafts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getAllStickers.md b/old_docs/API_docs_v70/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/old_docs/API_docs_v70/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v70/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v70/methods/messages_getArchivedStickers.md index cdb7f0af..8c2041a3 100644 --- a/old_docs/API_docs_v70/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v70/methods/messages_getArchivedStickers.md @@ -24,13 +24,18 @@ description: messages.getArchivedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v70/methods/messages_getAttachedStickers.md index 79d4e30d..f03f0be2 100644 --- a/old_docs/API_docs_v70/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v70/methods/messages_getAttachedStickers.md @@ -22,13 +22,18 @@ description: messages.getAttachedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md index bd916755..b9039098 100644 --- a/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md @@ -11,7 +11,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |game|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |msg\_id|[int](../types/int.md) | Yes| |data|[bytes](../types/bytes.md) | Optional| @@ -36,13 +36,18 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getChats.md b/old_docs/API_docs_v70/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v70/methods/messages_getChats.md +++ b/old_docs/API_docs_v70/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_getCommonChats.md b/old_docs/API_docs_v70/methods/messages_getCommonChats.md index d713f3a5..0df79096 100644 --- a/old_docs/API_docs_v70/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v70/methods/messages_getCommonChats.md @@ -10,7 +10,7 @@ description: messages.getCommonChats parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getCommonChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getDhConfig.md b/old_docs/API_docs_v70/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v70/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v70/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getDialogs.md b/old_docs/API_docs_v70/methods/messages_getDialogs.md index e7e81a8c..041b3efe 100644 --- a/old_docs/API_docs_v70/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v70/methods/messages_getDialogs.md @@ -13,7 +13,7 @@ description: messages.getDialogs parameters, return type and example |exclude\_pinned|[Bool](../types/Bool.md) | Optional| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v70/methods/messages_getFeaturedStickers.md index 5aad1810..51097eda 100644 --- a/old_docs/API_docs_v70/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v70/methods/messages_getFeaturedStickers.md @@ -22,13 +22,18 @@ description: messages.getFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getFullChat.md b/old_docs/API_docs_v70/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v70/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v70/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v70/methods/messages_getGameHighScores.md b/old_docs/API_docs_v70/methods/messages_getGameHighScores.md index c316a8bd..4b8b1397 100644 --- a/old_docs/API_docs_v70/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v70/methods/messages_getGameHighScores.md @@ -10,9 +10,9 @@ description: messages.getGameHighScores parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -32,16 +32,18 @@ description: messages.getGameHighScores parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getHistory.md b/old_docs/API_docs_v70/methods/messages_getHistory.md index ef31c435..87b8328d 100644 --- a/old_docs/API_docs_v70/methods/messages_getHistory.md +++ b/old_docs/API_docs_v70/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| @@ -40,13 +40,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md index 90e2a427..6d965b19 100644 --- a/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md @@ -10,8 +10,8 @@ description: messages.getInlineBotResults parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |query|[string](../types/string.md) | Yes| |offset|[string](../types/string.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md index 524e387b..9305a0f4 100644 --- a/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md @@ -11,7 +11,7 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Name | Type | Required | |----------|---------------|----------| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -31,16 +31,18 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getMaskStickers.md b/old_docs/API_docs_v70/methods/messages_getMaskStickers.md index ca964647..260cfdb7 100644 --- a/old_docs/API_docs_v70/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v70/methods/messages_getMaskStickers.md @@ -22,13 +22,18 @@ description: messages.getMaskStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getMessageEditData.md b/old_docs/API_docs_v70/methods/messages_getMessageEditData.md index df71c31a..2a90a419 100644 --- a/old_docs/API_docs_v70/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v70/methods/messages_getMessageEditData.md @@ -10,7 +10,7 @@ description: messages.getMessageEditData parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getMessageEditData parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getMessages.md b/old_docs/API_docs_v70/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v70/methods/messages_getMessages.md +++ b/old_docs/API_docs_v70/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_getMessagesViews.md b/old_docs/API_docs_v70/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v70/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v70/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md index 226948ae..eff29878 100644 --- a/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md @@ -10,7 +10,7 @@ description: messages.getPeerDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peers|Array of [InputPeer](../types/InputPeer.md) | Yes| +|peers|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md) @@ -30,15 +30,20 @@ description: messages.getPeerDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_getPeerSettings.md b/old_docs/API_docs_v70/methods/messages_getPeerSettings.md index fab25034..25906b73 100644 --- a/old_docs/API_docs_v70/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v70/methods/messages_getPeerSettings.md @@ -10,7 +10,7 @@ description: messages.getPeerSettings parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [PeerSettings](../types/PeerSettings.md) @@ -30,13 +30,18 @@ description: messages.getPeerSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v70/methods/messages_getPinnedDialogs.md index ec744f01..e5499df7 100644 --- a/old_docs/API_docs_v70/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v70/methods/messages_getPinnedDialogs.md @@ -17,13 +17,18 @@ description: messages.getPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getRecentStickers.md b/old_docs/API_docs_v70/methods/messages_getRecentStickers.md index a6ae162f..5a60d345 100644 --- a/old_docs/API_docs_v70/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v70/methods/messages_getRecentStickers.md @@ -23,13 +23,18 @@ description: messages.getRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getSavedGifs.md b/old_docs/API_docs_v70/methods/messages_getSavedGifs.md index 4986d812..bcb4590d 100644 --- a/old_docs/API_docs_v70/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v70/methods/messages_getSavedGifs.md @@ -22,13 +22,18 @@ description: messages.getSavedGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getStickerSet.md b/old_docs/API_docs_v70/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v70/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v70/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getWebPage.md b/old_docs/API_docs_v70/methods/messages_getWebPage.md index e886b020..0f09af47 100644 --- a/old_docs/API_docs_v70/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v70/methods/messages_getWebPage.md @@ -30,13 +30,18 @@ description: messages.getWebPage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v70/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v70/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v70/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_hideReportSpam.md b/old_docs/API_docs_v70/methods/messages_hideReportSpam.md index d47e8aa5..0419ec79 100644 --- a/old_docs/API_docs_v70/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v70/methods/messages_hideReportSpam.md @@ -10,7 +10,7 @@ description: messages.hideReportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.hideReportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_importChatInvite.md b/old_docs/API_docs_v70/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v70/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v70/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_installStickerSet.md b/old_docs/API_docs_v70/methods/messages_installStickerSet.md index 9336cc22..f405adce 100644 --- a/old_docs/API_docs_v70/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v70/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_migrateChat.md b/old_docs/API_docs_v70/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v70/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v70/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v70/methods/messages_readFeaturedStickers.md index 02055bf3..766ba200 100644 --- a/old_docs/API_docs_v70/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v70/methods/messages_readFeaturedStickers.md @@ -22,15 +22,20 @@ description: messages.readFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_readHistory.md b/old_docs/API_docs_v70/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v70/methods/messages_readHistory.md +++ b/old_docs/API_docs_v70/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_readMessageContents.md b/old_docs/API_docs_v70/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v70/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v70/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_receivedMessages.md b/old_docs/API_docs_v70/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v70/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v70/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_receivedQueue.md b/old_docs/API_docs_v70/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v70/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v70/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md index b4bfb84f..30e926d9 100644 --- a/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md @@ -11,7 +11,7 @@ description: messages.reorderPinnedDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |force|[Bool](../types/Bool.md) | Optional| -|order|Array of [InputPeer](../types/InputPeer.md) | Yes| +|order|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +30,20 @@ description: messages.reorderPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v70/methods/messages_reorderStickerSets.md index fa094550..0e2c121d 100644 --- a/old_docs/API_docs_v70/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v70/methods/messages_reorderStickerSets.md @@ -23,15 +23,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md index aed7a891..64ebecdd 100644 --- a/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md @@ -10,7 +10,7 @@ description: messages.reportEncryptedSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportEncryptedSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_reportSpam.md b/old_docs/API_docs_v70/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v70/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v70/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_requestEncryption.md b/old_docs/API_docs_v70/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v70/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v70/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v70/methods/messages_saveDraft.md b/old_docs/API_docs_v70/methods/messages_saveDraft.md index 7a85dfe7..754b4da2 100644 --- a/old_docs/API_docs_v70/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v70/methods/messages_saveDraft.md @@ -12,7 +12,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |message|[string](../types/string.md) | Yes| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| |parse\_mode| [string](../types/string.md) | Optional | @@ -34,15 +34,20 @@ description: messages.saveDraft parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_saveGif.md b/old_docs/API_docs_v70/methods/messages_saveGif.md index b3673c91..725bc949 100644 --- a/old_docs/API_docs_v70/methods/messages_saveGif.md +++ b/old_docs/API_docs_v70/methods/messages_saveGif.md @@ -10,7 +10,7 @@ description: messages.saveGif parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveGif parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md index bc3d1627..4a8298e2 100644 --- a/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md @@ -11,7 +11,7 @@ description: messages.saveRecentSticker parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |attached|[Bool](../types/Bool.md) | Optional| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.saveRecentSticker parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_search.md b/old_docs/API_docs_v70/methods/messages_search.md index a45d9508..dfc4eb56 100644 --- a/old_docs/API_docs_v70/methods/messages_search.md +++ b/old_docs/API_docs_v70/methods/messages_search.md @@ -10,9 +10,9 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| -|from\_id|[InputUser](../types/InputUser.md) | Optional| +|from\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -43,13 +43,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'from_id' => InputUser, 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_searchGifs.md b/old_docs/API_docs_v70/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/old_docs/API_docs_v70/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v70/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_searchGlobal.md b/old_docs/API_docs_v70/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v70/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v70/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_sendEncrypted.md b/old_docs/API_docs_v70/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v70/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v70/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md index 0857341e..6bfb1578 100644 --- a/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md @@ -13,7 +13,7 @@ description: messages.sendInlineBotResult parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |query\_id|[long](../types/long.md) | Yes| |id|[string](../types/string.md) | Yes| @@ -40,13 +40,18 @@ description: messages.sendInlineBotResult parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_sendMedia.md b/old_docs/API_docs_v70/methods/messages_sendMedia.md index 8c6f7f7f..1530451b 100644 --- a/old_docs/API_docs_v70/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v70/methods/messages_sendMedia.md @@ -13,9 +13,9 @@ description: messages.sendMedia parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -56,16 +56,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_sendMessage.md b/old_docs/API_docs_v70/methods/messages_sendMessage.md index bec95b8c..49ace99c 100644 --- a/old_docs/API_docs_v70/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v70/methods/messages_sendMessage.md @@ -14,7 +14,7 @@ description: messages.sendMessage parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -50,6 +50,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -57,18 +58,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$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], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md b/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md index 8ab8154b..2e66b51a 100644 --- a/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md +++ b/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md @@ -10,7 +10,7 @@ description: messages.sendScreenshotNotification parameters, return type and exa | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.sendScreenshotNotification parameters, return type and exa ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendScreenshotNotification(['peer' => InputPeer, 'reply_to_msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md index 2901a558..0282168b 100644 --- a/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md @@ -33,16 +33,18 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md index 5666e9ff..4aba8ca3 100644 --- a/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md @@ -31,16 +31,18 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md index 95376b64..5dcfe12e 100644 --- a/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md @@ -31,18 +31,20 @@ description: messages.setBotShippingResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_setGameScore.md b/old_docs/API_docs_v70/methods/messages_setGameScore.md index 615aa87b..61dfe579 100644 --- a/old_docs/API_docs_v70/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v70/methods/messages_setGameScore.md @@ -12,9 +12,9 @@ description: messages.setGameScore parameters, return type and example |----------|---------------|----------| |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -35,16 +35,18 @@ description: messages.setGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md index 8b49c4c7..c38b8c2e 100644 --- a/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md @@ -45,18 +45,20 @@ description: messages.setInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md index b5fc27d5..9fadc31e 100644 --- a/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md @@ -13,7 +13,7 @@ description: messages.setInlineGameScore parameters, return type and example |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: messages.setInlineGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_setTyping.md b/old_docs/API_docs_v70/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v70/methods/messages_setTyping.md +++ b/old_docs/API_docs_v70/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_startBot.md b/old_docs/API_docs_v70/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v70/methods/messages_startBot.md +++ b/old_docs/API_docs_v70/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md index 535a0fa1..7c5bfa9f 100644 --- a/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md @@ -11,7 +11,7 @@ description: messages.toggleDialogPin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |pinned|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: messages.toggleDialogPin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v70/methods/messages_uploadMedia.md b/old_docs/API_docs_v70/methods/messages_uploadMedia.md index 8a79defa..74515f11 100644 --- a/old_docs/API_docs_v70/methods/messages_uploadMedia.md +++ b/old_docs/API_docs_v70/methods/messages_uploadMedia.md @@ -10,8 +10,8 @@ description: messages.uploadMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [MessageMedia](../types/MessageMedia.md) @@ -32,16 +32,18 @@ description: messages.uploadMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->uploadMedia(['peer' => InputPeer, 'media' => InputMedia, ]); ``` diff --git a/old_docs/API_docs_v70/methods/payments_clearSavedInfo.md b/old_docs/API_docs_v70/methods/payments_clearSavedInfo.md index fb9bae07..dc762198 100644 --- a/old_docs/API_docs_v70/methods/payments_clearSavedInfo.md +++ b/old_docs/API_docs_v70/methods/payments_clearSavedInfo.md @@ -23,13 +23,18 @@ description: payments.clearSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); ``` diff --git a/old_docs/API_docs_v70/methods/payments_getPaymentForm.md b/old_docs/API_docs_v70/methods/payments_getPaymentForm.md index 141c47f2..ee269741 100644 --- a/old_docs/API_docs_v70/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v70/methods/payments_getPaymentForm.md @@ -29,13 +29,18 @@ description: payments.getPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md index f6aa1ab6..e46563d0 100644 --- a/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md @@ -29,13 +29,18 @@ description: payments.getPaymentReceipt parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/payments_getSavedInfo.md b/old_docs/API_docs_v70/methods/payments_getSavedInfo.md index 4104679a..ae1fcf33 100644 --- a/old_docs/API_docs_v70/methods/payments_getSavedInfo.md +++ b/old_docs/API_docs_v70/methods/payments_getSavedInfo.md @@ -17,13 +17,18 @@ description: payments.getSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); ``` diff --git a/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md index 180a7279..08505110 100644 --- a/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md @@ -32,13 +32,18 @@ description: payments.sendPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); ``` diff --git a/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md index acfd1852..ebfc5c22 100644 --- a/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md @@ -31,13 +31,18 @@ description: payments.validateRequestedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); ``` diff --git a/old_docs/API_docs_v70/methods/phone_acceptCall.md b/old_docs/API_docs_v70/methods/phone_acceptCall.md index 79266f27..49029aed 100644 --- a/old_docs/API_docs_v70/methods/phone_acceptCall.md +++ b/old_docs/API_docs_v70/methods/phone_acceptCall.md @@ -1,12 +1,12 @@ --- title: phone.acceptCall -description: phone.acceptCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.acceptCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v70/methods/phone_confirmCall.md b/old_docs/API_docs_v70/methods/phone_confirmCall.md index 69e90751..5c7bb15c 100644 --- a/old_docs/API_docs_v70/methods/phone_confirmCall.md +++ b/old_docs/API_docs_v70/methods/phone_confirmCall.md @@ -1,12 +1,12 @@ --- title: phone.confirmCall -description: phone.confirmCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.confirmCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v70/methods/phone_discardCall.md b/old_docs/API_docs_v70/methods/phone_discardCall.md index c300e61c..c01d1014 100644 --- a/old_docs/API_docs_v70/methods/phone_discardCall.md +++ b/old_docs/API_docs_v70/methods/phone_discardCall.md @@ -1,12 +1,12 @@ --- title: phone.discardCall -description: phone.discardCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.discardCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v70/methods/phone_getCallConfig.md b/old_docs/API_docs_v70/methods/phone_getCallConfig.md index 3f18d7ca..636ae946 100644 --- a/old_docs/API_docs_v70/methods/phone_getCallConfig.md +++ b/old_docs/API_docs_v70/methods/phone_getCallConfig.md @@ -17,13 +17,18 @@ description: phone.getCallConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); ``` diff --git a/old_docs/API_docs_v70/methods/phone_receivedCall.md b/old_docs/API_docs_v70/methods/phone_receivedCall.md index 8ca6a4e1..00b51aed 100644 --- a/old_docs/API_docs_v70/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v70/methods/phone_receivedCall.md @@ -30,13 +30,18 @@ description: phone.receivedCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); ``` diff --git a/old_docs/API_docs_v70/methods/phone_requestCall.md b/old_docs/API_docs_v70/methods/phone_requestCall.md index c8ae48a9..be45437e 100644 --- a/old_docs/API_docs_v70/methods/phone_requestCall.md +++ b/old_docs/API_docs_v70/methods/phone_requestCall.md @@ -1,12 +1,12 @@ --- title: phone.requestCall -description: phone.requestCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.requestCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v70/methods/phone_saveCallDebug.md b/old_docs/API_docs_v70/methods/phone_saveCallDebug.md index ea3fa2d7..90135792 100644 --- a/old_docs/API_docs_v70/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v70/methods/phone_saveCallDebug.md @@ -31,13 +31,18 @@ description: phone.saveCallDebug parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v70/methods/phone_setCallRating.md b/old_docs/API_docs_v70/methods/phone_setCallRating.md index c6e5d7fa..21570b80 100644 --- a/old_docs/API_docs_v70/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v70/methods/phone_setCallRating.md @@ -31,13 +31,18 @@ description: phone.setCallRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/photos_deletePhotos.md b/old_docs/API_docs_v70/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v70/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v70/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/photos_getUserPhotos.md b/old_docs/API_docs_v70/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v70/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v70/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v70/methods/photos_updateProfilePhoto.md index cc79a625..1ed6fb24 100644 --- a/old_docs/API_docs_v70/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v70/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| ### Return type: [UserProfilePhoto](../types/UserProfilePhoto.md) @@ -22,13 +22,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); ``` diff --git a/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md index 075dab4b..4b20315b 100644 --- a/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| ### Return type: [photos\_Photo](../types/photos_Photo.md) @@ -32,13 +32,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); ``` diff --git a/old_docs/API_docs_v70/methods/ping.md b/old_docs/API_docs_v70/methods/ping.md index 7c20ca86..18f5a2bd 100644 --- a/old_docs/API_docs_v70/methods/ping.md +++ b/old_docs/API_docs_v70/methods/ping.md @@ -1,16 +1,18 @@ --- title: ping -description: ping parameters, return type and example +description: pings the server --- ## Method: ping [Back to methods index](index.md) +pings the server + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ping\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ping\_id|[long](../types/long.md) | Yes|Ping ID| ### Return type: [Pong](../types/Pong.md) @@ -22,16 +24,18 @@ description: ping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Pong = $MadelineProto->ping(['ping_id' => long, ]); ``` diff --git a/old_docs/API_docs_v70/methods/ping_delay_disconnect.md b/old_docs/API_docs_v70/methods/ping_delay_disconnect.md index e8b62005..709f8026 100644 --- a/old_docs/API_docs_v70/methods/ping_delay_disconnect.md +++ b/old_docs/API_docs_v70/methods/ping_delay_disconnect.md @@ -1,17 +1,19 @@ --- title: ping_delay_disconnect -description: ping_delay_disconnect parameters, return type and example +description: Pings the server and causes disconection if the same method is not called within ping_disconnect_delay --- ## Method: ping\_delay\_disconnect [Back to methods index](index.md) +Pings the server and causes disconection if the same method is not called within ping_disconnect_delay + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ping\_id|[long](../types/long.md) | Yes| -|disconnect\_delay|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ping\_id|[long](../types/long.md) | Yes|Ping ID| +|disconnect\_delay|[int](../types/int.md) | Yes|Disconection delay| ### Return type: [Pong](../types/Pong.md) @@ -23,16 +25,18 @@ description: ping_delay_disconnect parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Pong = $MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/req_DH_params.md b/old_docs/API_docs_v70/methods/req_DH_params.md index 697540d8..b0cc4418 100644 --- a/old_docs/API_docs_v70/methods/req_DH_params.md +++ b/old_docs/API_docs_v70/methods/req_DH_params.md @@ -1,21 +1,23 @@ --- title: req_DH_params -description: req_DH_params parameters, return type and example +description: Requests Diffie-hellman parameters for key exchange --- ## Method: req\_DH\_params [Back to methods index](index.md) +Requests Diffie-hellman parameters for key exchange + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| -|server\_nonce|[int128](../types/int128.md) | Yes| -|p|[string](../types/string.md) | Yes| -|q|[string](../types/string.md) | Yes| -|public\_key\_fingerprint|[long](../types/long.md) | Yes| -|encrypted\_data|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| +|server\_nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security, given by server| +|p|[string](../types/string.md) | Yes|| +|q|[string](../types/string.md) | Yes|| +|public\_key\_fingerprint|[long](../types/long.md) | Yes|Server RSA fingerprint| +|encrypted\_data|[string](../types/string.md) | Yes|| ### Return type: [Server\_DH\_Params](../types/Server_DH_Params.md) @@ -27,16 +29,18 @@ description: req_DH_params parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Server_DH_Params = $MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => 'string', 'q' => 'string', 'public_key_fingerprint' => long, 'encrypted_data' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/req_pq.md b/old_docs/API_docs_v70/methods/req_pq.md index 7a583643..39a1715b 100644 --- a/old_docs/API_docs_v70/methods/req_pq.md +++ b/old_docs/API_docs_v70/methods/req_pq.md @@ -1,16 +1,18 @@ --- title: req_pq -description: req_pq parameters, return type and example +description: Requests PQ for factorization --- ## Method: req\_pq [Back to methods index](index.md) +Requests PQ for factorization + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| ### Return type: [ResPQ](../types/ResPQ.md) @@ -22,16 +24,18 @@ description: req_pq parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ResPQ = $MadelineProto->req_pq(['nonce' => int128, ]); ``` diff --git a/old_docs/API_docs_v70/methods/rpc_drop_answer.md b/old_docs/API_docs_v70/methods/rpc_drop_answer.md index e15ddca9..225a43b5 100644 --- a/old_docs/API_docs_v70/methods/rpc_drop_answer.md +++ b/old_docs/API_docs_v70/methods/rpc_drop_answer.md @@ -1,16 +1,18 @@ --- title: rpc_drop_answer -description: rpc_drop_answer parameters, return type and example +description: Do not send answer to provided request --- ## Method: rpc\_drop\_answer [Back to methods index](index.md) +Do not send answer to provided request + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|req\_msg\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|req\_msg\_id|[long](../types/long.md) | Yes|The message ID of the request| ### Return type: [RpcDropAnswer](../types/RpcDropAnswer.md) @@ -22,16 +24,18 @@ description: rpc_drop_answer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $RpcDropAnswer = $MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]); ``` diff --git a/old_docs/API_docs_v70/methods/set_client_DH_params.md b/old_docs/API_docs_v70/methods/set_client_DH_params.md index 8721ed40..4af21a12 100644 --- a/old_docs/API_docs_v70/methods/set_client_DH_params.md +++ b/old_docs/API_docs_v70/methods/set_client_DH_params.md @@ -1,18 +1,20 @@ --- title: set_client_DH_params -description: set_client_DH_params parameters, return type and example +description: Sets client diffie-hellman parameters --- ## Method: set\_client\_DH\_params [Back to methods index](index.md) +Sets client diffie-hellman parameters + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| -|server\_nonce|[int128](../types/int128.md) | Yes| -|encrypted\_data|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| +|server\_nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security, given by server| +|encrypted\_data|[string](../types/string.md) | Yes|| ### Return type: [Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) @@ -24,16 +26,18 @@ description: set_client_DH_params parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Set_client_DH_params_answer = $MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => 'string', ]); ``` diff --git a/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md index e7fa6ed4..f70d14fb 100644 --- a/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md +++ b/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md @@ -31,16 +31,18 @@ description: stickers.addStickerToSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->addStickerToSet(['stickerset' => InputStickerSet, 'sticker' => InputStickerSetItem, ]); ``` diff --git a/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md index bcbbc57d..05597041 100644 --- a/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md +++ b/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md @@ -10,7 +10,7 @@ description: stickers.changeStickerPosition parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|sticker|[InputDocument](../types/InputDocument.md) | Optional| +|sticker|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |position|[int](../types/int.md) | Yes| @@ -31,16 +31,18 @@ description: stickers.changeStickerPosition parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->changeStickerPosition(['sticker' => InputDocument, 'position' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/stickers_createStickerSet.md b/old_docs/API_docs_v70/methods/stickers_createStickerSet.md index ba8a2d71..1db94b11 100644 --- a/old_docs/API_docs_v70/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v70/methods/stickers_createStickerSet.md @@ -11,7 +11,7 @@ description: stickers.createStickerSet parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |masks|[Bool](../types/Bool.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |title|[string](../types/string.md) | Yes| |short\_name|[string](../types/string.md) | Yes| |stickers|Array of [InputStickerSetItem](../types/InputStickerSetItem.md) | Yes| @@ -41,18 +41,20 @@ description: stickers.createStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem, InputStickerSetItem], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md index adb64e07..6a37b6a4 100644 --- a/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md +++ b/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md @@ -10,7 +10,7 @@ description: stickers.removeStickerFromSet parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|sticker|[InputDocument](../types/InputDocument.md) | Optional| +|sticker|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| ### Return type: [messages\_StickerSet](../types/messages_StickerSet.md) @@ -30,16 +30,18 @@ description: stickers.removeStickerFromSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->removeStickerFromSet(['sticker' => InputDocument, ]); ``` diff --git a/old_docs/API_docs_v70/methods/updates_getChannelDifference.md b/old_docs/API_docs_v70/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v70/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v70/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v70/methods/updates_getDifference.md b/old_docs/API_docs_v70/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v70/methods/updates_getDifference.md +++ b/old_docs/API_docs_v70/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v70/methods/updates_getState.md b/old_docs/API_docs_v70/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v70/methods/updates_getState.md +++ b/old_docs/API_docs_v70/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v70/methods/upload_getCdnFile.md b/old_docs/API_docs_v70/methods/upload_getCdnFile.md index 3a0cd50e..7e1eefcc 100644 --- a/old_docs/API_docs_v70/methods/upload_getCdnFile.md +++ b/old_docs/API_docs_v70/methods/upload_getCdnFile.md @@ -1,12 +1,12 @@ --- title: upload.getCdnFile -description: upload.getCdnFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v70/methods/upload_getCdnFileHashes.md b/old_docs/API_docs_v70/methods/upload_getCdnFileHashes.md index 2ab7792b..2bf24b5e 100644 --- a/old_docs/API_docs_v70/methods/upload_getCdnFileHashes.md +++ b/old_docs/API_docs_v70/methods/upload_getCdnFileHashes.md @@ -1,12 +1,12 @@ --- title: upload.getCdnFileHashes -description: upload.getCdnFileHashes parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v70/methods/upload_getFile.md b/old_docs/API_docs_v70/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v70/methods/upload_getFile.md +++ b/old_docs/API_docs_v70/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v70/methods/upload_getWebFile.md b/old_docs/API_docs_v70/methods/upload_getWebFile.md index 8744dac5..ca200db1 100644 --- a/old_docs/API_docs_v70/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v70/methods/upload_getWebFile.md @@ -31,13 +31,18 @@ description: upload.getWebFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v70/methods/upload_reuploadCdnFile.md b/old_docs/API_docs_v70/methods/upload_reuploadCdnFile.md index 4c00bbd0..13d93ec1 100644 --- a/old_docs/API_docs_v70/methods/upload_reuploadCdnFile.md +++ b/old_docs/API_docs_v70/methods/upload_reuploadCdnFile.md @@ -1,12 +1,12 @@ --- title: upload.reuploadCdnFile -description: upload.reuploadCdnFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v70/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v70/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v70/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v70/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v70/methods/upload_saveFilePart.md b/old_docs/API_docs_v70/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v70/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v70/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v70/methods/users_getFullUser.md b/old_docs/API_docs_v70/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v70/methods/users_getFullUser.md +++ b/old_docs/API_docs_v70/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v70/methods/users_getUsers.md b/old_docs/API_docs_v70/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v70/methods/users_getUsers.md +++ b/old_docs/API_docs_v70/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v70/types/Chat.md b/old_docs/API_docs_v70/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v70/types/Chat.md +++ b/old_docs/API_docs_v70/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v70/types/InputChannel.md b/old_docs/API_docs_v70/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v70/types/InputChannel.md +++ b/old_docs/API_docs_v70/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v70/types/InputDocument.md b/old_docs/API_docs_v70/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v70/types/InputDocument.md +++ b/old_docs/API_docs_v70/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v70/types/InputEncryptedChat.md b/old_docs/API_docs_v70/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v70/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v70/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v70/types/InputEncryptedFile.md b/old_docs/API_docs_v70/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v70/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v70/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v70/types/InputFile.md b/old_docs/API_docs_v70/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v70/types/InputFile.md +++ b/old_docs/API_docs_v70/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v70/types/InputMedia.md b/old_docs/API_docs_v70/types/InputMedia.md index e22c3a6c..0f83936f 100644 --- a/old_docs/API_docs_v70/types/InputMedia.md +++ b/old_docs/API_docs_v70/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v70/types/InputPeer.md b/old_docs/API_docs_v70/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v70/types/InputPeer.md +++ b/old_docs/API_docs_v70/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v70/types/InputPhoto.md b/old_docs/API_docs_v70/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v70/types/InputPhoto.md +++ b/old_docs/API_docs_v70/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v70/types/InputUser.md b/old_docs/API_docs_v70/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v70/types/InputUser.md +++ b/old_docs/API_docs_v70/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v70/types/Peer.md b/old_docs/API_docs_v70/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v70/types/Peer.md +++ b/old_docs/API_docs_v70/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v70/types/PhoneCall.md b/old_docs/API_docs_v70/types/PhoneCall.md index e70eda8e..1a91a72e 100644 --- a/old_docs/API_docs_v70/types/PhoneCall.md +++ b/old_docs/API_docs_v70/types/PhoneCall.md @@ -9,7 +9,7 @@ description: constructors and methods of type PhoneCall 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://daniil.it/MadelineProto#calls) for an easy installation script. +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. @@ -83,8 +83,8 @@ Call states (these constants are incrementing integers, thus can be compared lik * `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://daniil.it/MadelineProto/API_docs/types/PhoneCallProtocol.html) object -* `getCallID()` - Gets the call ID, as an [InputPhoneCall](https://daniil.it/MadelineProto/API_docs/types/InputPhoneCall.html) object +* `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 @@ -102,7 +102,7 @@ Call states (these constants are incrementing integers, thus can be compared lik Accepts two optional parameters: -`$reason` - can be a [PhoneCallDiscardReason](https://daniil.it/MadelineProto/API_docs/types/PhoneCallDiscardReason.html) object (defaults to a [phoneCallDiscardReasonDisconnect](https://daniil.it/MadelineProto/API_docs/constructors/phoneCallDiscardReasonDisconnect.html) object). +`$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.` diff --git a/old_docs/API_docs_v70/types/User.md b/old_docs/API_docs_v70/types/User.md index d696a931..f748d04a 100644 --- a/old_docs/API_docs_v70/types/User.md +++ b/old_docs/API_docs_v70/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v71/constructors/account_authorizations.md b/old_docs/API_docs_v71/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v71/constructors/account_authorizations.md +++ b/old_docs/API_docs_v71/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/account_privacyRules.md b/old_docs/API_docs_v71/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v71/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v71/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/botInfo.md b/old_docs/API_docs_v71/constructors/botInfo.md index bee4a540..25a27913 100644 --- a/old_docs/API_docs_v71/constructors/botInfo.md +++ b/old_docs/API_docs_v71/constructors/botInfo.md @@ -23,7 +23,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/botInlineMessageText.md b/old_docs/API_docs_v71/constructors/botInlineMessageText.md index dc00808b..feb5e9d0 100644 --- a/old_docs/API_docs_v71/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v71/constructors/botInlineMessageText.md @@ -24,7 +24,7 @@ description: botInlineMessageText attributes, type and example ### Example: ``` -$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/cdnConfig.md b/old_docs/API_docs_v71/constructors/cdnConfig.md index 28e814e5..2bf5d200 100644 --- a/old_docs/API_docs_v71/constructors/cdnConfig.md +++ b/old_docs/API_docs_v71/constructors/cdnConfig.md @@ -21,7 +21,7 @@ description: cdnConfig attributes, type and example ### Example: ``` -$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey]]; +$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey, CdnPublicKey]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/channelFull.md b/old_docs/API_docs_v71/constructors/channelFull.md index f5ce424f..e129d69b 100644 --- a/old_docs/API_docs_v71/constructors/channelFull.md +++ b/old_docs/API_docs_v71/constructors/channelFull.md @@ -40,7 +40,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_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]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/channelMessagesFilter.md b/old_docs/API_docs_v71/constructors/channelMessagesFilter.md index 0a731ce9..ad9a592e 100644 --- a/old_docs/API_docs_v71/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v71/constructors/channelMessagesFilter.md @@ -22,7 +22,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/channels_adminLogResults.md b/old_docs/API_docs_v71/constructors/channels_adminLogResults.md index f0eb0e66..1ef19a76 100644 --- a/old_docs/API_docs_v71/constructors/channels_adminLogResults.md +++ b/old_docs/API_docs_v71/constructors/channels_adminLogResults.md @@ -23,7 +23,7 @@ description: channels_adminLogResults attributes, type and example ### Example: ``` -$channels_adminLogResults = ['_' => 'channels.adminLogResults', 'events' => [ChannelAdminLogEvent], 'chats' => [Chat], 'users' => [User]]; +$channels_adminLogResults = ['_' => 'channels.adminLogResults', 'events' => [ChannelAdminLogEvent, ChannelAdminLogEvent], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/channels_channelParticipant.md b/old_docs/API_docs_v71/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v71/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v71/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/channels_channelParticipants.md b/old_docs/API_docs_v71/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v71/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v71/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/chatFull.md b/old_docs/API_docs_v71/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v71/constructors/chatFull.md +++ b/old_docs/API_docs_v71/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/chatInvite.md b/old_docs/API_docs_v71/constructors/chatInvite.md index e7000f7b..e9087e0d 100644 --- a/old_docs/API_docs_v71/constructors/chatInvite.md +++ b/old_docs/API_docs_v71/constructors/chatInvite.md @@ -28,7 +28,7 @@ description: chatInvite attributes, type and example ### Example: ``` -$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [User]]; +$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: diff --git a/old_docs/API_docs_v71/constructors/chatParticipants.md b/old_docs/API_docs_v71/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v71/constructors/chatParticipants.md +++ b/old_docs/API_docs_v71/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/config.md b/old_docs/API_docs_v71/constructors/config.md index 6644dd7f..a8b92505 100644 --- a/old_docs/API_docs_v71/constructors/config.md +++ b/old_docs/API_docs_v71/constructors/config.md @@ -53,7 +53,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'stickers_faved_limit' => int, 'tmp_sessions' => int, 'pinned_dialogs_count_max' => int, 'phonecalls_enabled' => Bool, 'call_receive_timeout_ms' => int, 'call_ring_timeout_ms' => int, 'call_connect_timeout_ms' => int, 'call_packet_timeout_ms' => int, 'me_url_prefix' => 'string', 'suggested_lang_code' => 'string', 'lang_pack_version' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'stickers_faved_limit' => int, 'tmp_sessions' => int, 'pinned_dialogs_count_max' => int, 'phonecalls_enabled' => Bool, 'call_receive_timeout_ms' => int, 'call_ring_timeout_ms' => int, 'call_connect_timeout_ms' => int, 'call_packet_timeout_ms' => int, 'me_url_prefix' => 'string', 'suggested_lang_code' => 'string', 'lang_pack_version' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/contacts_blocked.md b/old_docs/API_docs_v71/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v71/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v71/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v71/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v71/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v71/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/contacts_contacts.md b/old_docs/API_docs_v71/constructors/contacts_contacts.md index 17e4ddc1..f239b0b7 100644 --- a/old_docs/API_docs_v71/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v71/constructors/contacts_contacts.md @@ -23,7 +23,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'saved_count' => int, 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'saved_count' => int, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/contacts_found.md b/old_docs/API_docs_v71/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v71/constructors/contacts_found.md +++ b/old_docs/API_docs_v71/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/contacts_importedContacts.md b/old_docs/API_docs_v71/constructors/contacts_importedContacts.md index ae85f35e..e4d017c0 100644 --- a/old_docs/API_docs_v71/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v71/constructors/contacts_importedContacts.md @@ -24,7 +24,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'popular_invites' => [PopularContact], 'retry_contacts' => [long], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v71/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v71/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v71/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v71/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/contacts_topPeers.md b/old_docs/API_docs_v71/constructors/contacts_topPeers.md index 17551f5d..07623018 100644 --- a/old_docs/API_docs_v71/constructors/contacts_topPeers.md +++ b/old_docs/API_docs_v71/constructors/contacts_topPeers.md @@ -23,7 +23,7 @@ description: contacts_topPeers attributes, type and example ### Example: ``` -$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers], 'chats' => [Chat], 'users' => [User]]; +$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers, TopPeerCategoryPeers], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/document.md b/old_docs/API_docs_v71/constructors/document.md index 8c0883bb..55d4c017 100644 --- a/old_docs/API_docs_v71/constructors/document.md +++ b/old_docs/API_docs_v71/constructors/document.md @@ -29,7 +29,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/documentAttributeAudio.md b/old_docs/API_docs_v71/constructors/documentAttributeAudio.md index 4d393890..ceb02cba 100644 --- a/old_docs/API_docs_v71/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v71/constructors/documentAttributeAudio.md @@ -12,7 +12,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| |voice|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Optional| |performer|[string](../types/string.md) | Optional| |waveform|[bytes](../types/bytes.md) | Optional| diff --git a/old_docs/API_docs_v71/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v71/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v71/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v71/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v71/constructors/documentAttributeVideo.md b/old_docs/API_docs_v71/constructors/documentAttributeVideo.md index 38ce9302..5c367fc9 100644 --- a/old_docs/API_docs_v71/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v71/constructors/documentAttributeVideo.md @@ -12,9 +12,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| |round\_message|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v71/constructors/draftMessage.md b/old_docs/API_docs_v71/constructors/draftMessage.md index 13277194..644adc43 100644 --- a/old_docs/API_docs_v71/constructors/draftMessage.md +++ b/old_docs/API_docs_v71/constructors/draftMessage.md @@ -25,7 +25,7 @@ description: draftMessage attributes, type and example ### Example: ``` -$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity], 'date' => int]; +$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'date' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/future_salts.md b/old_docs/API_docs_v71/constructors/future_salts.md index 4fb8d0f3..a0e695cc 100644 --- a/old_docs/API_docs_v71/constructors/future_salts.md +++ b/old_docs/API_docs_v71/constructors/future_salts.md @@ -23,7 +23,7 @@ description: future_salts attributes, type and example ### Example: ``` -$future_salts = ['_' => 'future_salts', 'req_msg_id' => long, 'now' => int, 'salts' => [future_salt]]; +$future_salts = ['_' => 'future_salts', 'req_msg_id' => long, 'now' => int, 'salts' => [future_salt, future_salt]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/help_configSimple.md b/old_docs/API_docs_v71/constructors/help_configSimple.md index 0b670a2b..63d274a4 100644 --- a/old_docs/API_docs_v71/constructors/help_configSimple.md +++ b/old_docs/API_docs_v71/constructors/help_configSimple.md @@ -24,7 +24,7 @@ description: help_configSimple attributes, type and example ### Example: ``` -$help_configSimple = ['_' => 'help.configSimple', 'date' => int, 'expires' => int, 'dc_id' => int, 'ip_port_list' => [ipPort]]; +$help_configSimple = ['_' => 'help.configSimple', 'date' => int, 'expires' => int, 'dc_id' => int, 'ip_port_list' => [ipPort, ipPort]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v71/constructors/inputBotInlineMessageText.md index 677e5d8c..ed3ddd1b 100644 --- a/old_docs/API_docs_v71/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v71/constructors/inputBotInlineMessageText.md @@ -24,7 +24,7 @@ description: inputBotInlineMessageText attributes, type and example ### Example: ``` -$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/inputBotInlineResultDocument.md b/old_docs/API_docs_v71/constructors/inputBotInlineResultDocument.md index 2315623b..f27421f9 100644 --- a/old_docs/API_docs_v71/constructors/inputBotInlineResultDocument.md +++ b/old_docs/API_docs_v71/constructors/inputBotInlineResultDocument.md @@ -15,7 +15,7 @@ description: inputBotInlineResultDocument attributes, type and example |type|[string](../types/string.md) | Yes| |title|[string](../types/string.md) | Optional| |description|[string](../types/string.md) | Optional| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v71/constructors/inputBotInlineResultPhoto.md b/old_docs/API_docs_v71/constructors/inputBotInlineResultPhoto.md index d39bd108..9628b4e5 100644 --- a/old_docs/API_docs_v71/constructors/inputBotInlineResultPhoto.md +++ b/old_docs/API_docs_v71/constructors/inputBotInlineResultPhoto.md @@ -13,7 +13,7 @@ description: inputBotInlineResultPhoto attributes, type and example |----------|---------------|----------| |id|[string](../types/string.md) | Yes| |type|[string](../types/string.md) | Yes| -|photo|[InputPhoto](../types/InputPhoto.md) | Optional| +|photo|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v71/constructors/inputChatPhoto.md b/old_docs/API_docs_v71/constructors/inputChatPhoto.md index e787f342..ae979308 100644 --- a/old_docs/API_docs_v71/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v71/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v71/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v71/constructors/inputChatUploadedPhoto.md index 78c28fdc..e9d2f354 100644 --- a/old_docs/API_docs_v71/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v71/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| diff --git a/old_docs/API_docs_v71/constructors/inputGameShortName.md b/old_docs/API_docs_v71/constructors/inputGameShortName.md index 64c55c18..0261912a 100644 --- a/old_docs/API_docs_v71/constructors/inputGameShortName.md +++ b/old_docs/API_docs_v71/constructors/inputGameShortName.md @@ -11,7 +11,7 @@ description: inputGameShortName attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|bot\_id|[InputUser](../types/InputUser.md) | Optional| +|bot\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |short\_name|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v71/constructors/inputMediaDocument.md b/old_docs/API_docs_v71/constructors/inputMediaDocument.md index 1e97ec2d..ac7b262e 100644 --- a/old_docs/API_docs_v71/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v71/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |caption|[string](../types/string.md) | Yes| |ttl\_seconds|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v71/constructors/inputMediaPhoto.md b/old_docs/API_docs_v71/constructors/inputMediaPhoto.md index e952098b..f14440b0 100644 --- a/old_docs/API_docs_v71/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v71/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| |ttl\_seconds|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v71/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v71/constructors/inputMediaUploadedDocument.md index 0aa3c653..aec5b910 100644 --- a/old_docs/API_docs_v71/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v71/constructors/inputMediaUploadedDocument.md @@ -11,12 +11,12 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Optional| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Optional| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |ttl\_seconds|[int](../types/int.md) | Optional| @@ -27,7 +27,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument], 'ttl_seconds' => int]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument], 'ttl_seconds' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v71/constructors/inputMediaUploadedPhoto.md index 7ace8cee..ff6085c5 100644 --- a/old_docs/API_docs_v71/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v71/constructors/inputMediaUploadedPhoto.md @@ -11,9 +11,9 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |ttl\_seconds|[int](../types/int.md) | Optional| @@ -24,7 +24,7 @@ description: inputMediaUploadedPhoto attributes, type and example ### Example: ``` -$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument], 'ttl_seconds' => int]; +$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument, InputDocument], 'ttl_seconds' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/inputNotifyPeer.md b/old_docs/API_docs_v71/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v71/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v71/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v71/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v71/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v71/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v71/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v71/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v71/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v71/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/inputStickerSetItem.md b/old_docs/API_docs_v71/constructors/inputStickerSetItem.md index 84ae0e46..749330b9 100644 --- a/old_docs/API_docs_v71/constructors/inputStickerSetItem.md +++ b/old_docs/API_docs_v71/constructors/inputStickerSetItem.md @@ -11,7 +11,7 @@ description: inputStickerSetItem attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |emoji|[string](../types/string.md) | Yes| |mask\_coords|[MaskCoords](../types/MaskCoords.md) | Optional| diff --git a/old_docs/API_docs_v71/constructors/inputStickeredMediaDocument.md b/old_docs/API_docs_v71/constructors/inputStickeredMediaDocument.md index ca9921e7..c281b7e5 100644 --- a/old_docs/API_docs_v71/constructors/inputStickeredMediaDocument.md +++ b/old_docs/API_docs_v71/constructors/inputStickeredMediaDocument.md @@ -11,7 +11,7 @@ description: inputStickeredMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v71/constructors/inputStickeredMediaPhoto.md b/old_docs/API_docs_v71/constructors/inputStickeredMediaPhoto.md index ac0428e1..042044b0 100644 --- a/old_docs/API_docs_v71/constructors/inputStickeredMediaPhoto.md +++ b/old_docs/API_docs_v71/constructors/inputStickeredMediaPhoto.md @@ -11,7 +11,7 @@ description: inputStickeredMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v71/constructors/inputWebDocument.md b/old_docs/API_docs_v71/constructors/inputWebDocument.md index 81f2707a..dd9a24ff 100644 --- a/old_docs/API_docs_v71/constructors/inputWebDocument.md +++ b/old_docs/API_docs_v71/constructors/inputWebDocument.md @@ -24,7 +24,7 @@ description: inputWebDocument attributes, type and example ### Example: ``` -$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/invoice.md b/old_docs/API_docs_v71/constructors/invoice.md index ddccf1b6..80a56a08 100644 --- a/old_docs/API_docs_v71/constructors/invoice.md +++ b/old_docs/API_docs_v71/constructors/invoice.md @@ -28,7 +28,7 @@ description: invoice attributes, type and example ### Example: ``` -$invoice = ['_' => 'invoice', 'test' => Bool, 'name_requested' => Bool, 'phone_requested' => Bool, 'email_requested' => Bool, 'shipping_address_requested' => Bool, 'flexible' => Bool, 'currency' => 'string', 'prices' => [LabeledPrice]]; +$invoice = ['_' => 'invoice', 'test' => Bool, 'name_requested' => Bool, 'phone_requested' => Bool, 'email_requested' => Bool, 'shipping_address_requested' => Bool, 'flexible' => Bool, 'currency' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/keyboardButtonRow.md b/old_docs/API_docs_v71/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v71/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v71/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/langPackDifference.md b/old_docs/API_docs_v71/constructors/langPackDifference.md index 0d077158..3447d739 100644 --- a/old_docs/API_docs_v71/constructors/langPackDifference.md +++ b/old_docs/API_docs_v71/constructors/langPackDifference.md @@ -24,7 +24,7 @@ description: langPackDifference attributes, type and example ### Example: ``` -$langPackDifference = ['_' => 'langPackDifference', 'lang_code' => 'string', 'from_version' => int, 'version' => int, 'strings' => [LangPackString]]; +$langPackDifference = ['_' => 'langPackDifference', 'lang_code' => 'string', 'from_version' => int, 'version' => int, 'strings' => [LangPackString, LangPackString]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/message.md b/old_docs/API_docs_v71/constructors/message.md index 98c4f04c..ec882b03 100644 --- a/old_docs/API_docs_v71/constructors/message.md +++ b/old_docs/API_docs_v71/constructors/message.md @@ -39,7 +39,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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']; +$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v71/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v71/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v71/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messageActionChatCreate.md b/old_docs/API_docs_v71/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v71/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v71/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_allStickers.md b/old_docs/API_docs_v71/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/old_docs/API_docs_v71/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v71/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_archivedStickers.md b/old_docs/API_docs_v71/constructors/messages_archivedStickers.md index 7af238d4..c9675b57 100644 --- a/old_docs/API_docs_v71/constructors/messages_archivedStickers.md +++ b/old_docs/API_docs_v71/constructors/messages_archivedStickers.md @@ -22,7 +22,7 @@ description: messages_archivedStickers attributes, type and example ### Example: ``` -$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered]]; +$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_botResults.md b/old_docs/API_docs_v71/constructors/messages_botResults.md index 2f53b450..13edec1a 100644 --- a/old_docs/API_docs_v71/constructors/messages_botResults.md +++ b/old_docs/API_docs_v71/constructors/messages_botResults.md @@ -26,7 +26,7 @@ description: messages_botResults attributes, type and example ### Example: ``` -$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult], 'cache_time' => int]; +$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult, BotInlineResult], 'cache_time' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_channelMessages.md b/old_docs/API_docs_v71/constructors/messages_channelMessages.md index 8ec11b2d..358c0c70 100644 --- a/old_docs/API_docs_v71/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v71/constructors/messages_channelMessages.md @@ -25,7 +25,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_chatFull.md b/old_docs/API_docs_v71/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v71/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v71/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_chats.md b/old_docs/API_docs_v71/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v71/constructors/messages_chats.md +++ b/old_docs/API_docs_v71/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_chatsSlice.md b/old_docs/API_docs_v71/constructors/messages_chatsSlice.md index 4e3e0e77..614c577b 100644 --- a/old_docs/API_docs_v71/constructors/messages_chatsSlice.md +++ b/old_docs/API_docs_v71/constructors/messages_chatsSlice.md @@ -22,7 +22,7 @@ description: messages_chatsSlice attributes, type and example ### Example: ``` -$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat]]; +$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_dialogs.md b/old_docs/API_docs_v71/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v71/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v71/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v71/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v71/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v71/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v71/constructors/messages_favedStickers.md b/old_docs/API_docs_v71/constructors/messages_favedStickers.md index 7fb2fba0..1a937049 100644 --- a/old_docs/API_docs_v71/constructors/messages_favedStickers.md +++ b/old_docs/API_docs_v71/constructors/messages_favedStickers.md @@ -23,7 +23,7 @@ description: messages_favedStickers attributes, type and example ### Example: ``` -$messages_favedStickers = ['_' => 'messages.favedStickers', 'hash' => int, 'packs' => [StickerPack], 'stickers' => [Document]]; +$messages_favedStickers = ['_' => 'messages.favedStickers', 'hash' => int, 'packs' => [StickerPack, StickerPack], 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_featuredStickers.md b/old_docs/API_docs_v71/constructors/messages_featuredStickers.md index dac1fd91..0fc54db1 100644 --- a/old_docs/API_docs_v71/constructors/messages_featuredStickers.md +++ b/old_docs/API_docs_v71/constructors/messages_featuredStickers.md @@ -23,7 +23,7 @@ description: messages_featuredStickers attributes, type and example ### Example: ``` -$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered], 'unread' => [long]]; +$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered, StickerSetCovered], 'unread' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_foundGifs.md b/old_docs/API_docs_v71/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/old_docs/API_docs_v71/constructors/messages_foundGifs.md +++ b/old_docs/API_docs_v71/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_highScores.md b/old_docs/API_docs_v71/constructors/messages_highScores.md index 26eab658..df592f06 100644 --- a/old_docs/API_docs_v71/constructors/messages_highScores.md +++ b/old_docs/API_docs_v71/constructors/messages_highScores.md @@ -22,7 +22,7 @@ description: messages_highScores attributes, type and example ### Example: ``` -$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore], 'users' => [User]]; +$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore, HighScore], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_messages.md b/old_docs/API_docs_v71/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v71/constructors/messages_messages.md +++ b/old_docs/API_docs_v71/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_messagesSlice.md b/old_docs/API_docs_v71/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v71/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v71/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_peerDialogs.md b/old_docs/API_docs_v71/constructors/messages_peerDialogs.md index bec6c88c..5d25b545 100644 --- a/old_docs/API_docs_v71/constructors/messages_peerDialogs.md +++ b/old_docs/API_docs_v71/constructors/messages_peerDialogs.md @@ -25,7 +25,7 @@ description: messages_peerDialogs attributes, type and example ### Example: ``` -$messages_peerDialogs = ['_' => 'messages.peerDialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v71/constructors/messages_recentStickers.md b/old_docs/API_docs_v71/constructors/messages_recentStickers.md index be5e69a0..a8a53ffe 100644 --- a/old_docs/API_docs_v71/constructors/messages_recentStickers.md +++ b/old_docs/API_docs_v71/constructors/messages_recentStickers.md @@ -22,7 +22,7 @@ description: messages_recentStickers attributes, type and example ### Example: ``` -$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document]]; +$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_savedGifs.md b/old_docs/API_docs_v71/constructors/messages_savedGifs.md index 7e2a00eb..b4ff040d 100644 --- a/old_docs/API_docs_v71/constructors/messages_savedGifs.md +++ b/old_docs/API_docs_v71/constructors/messages_savedGifs.md @@ -22,7 +22,7 @@ description: messages_savedGifs attributes, type and example ### Example: ``` -$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document]]; +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_stickerSet.md b/old_docs/API_docs_v71/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v71/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v71/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_stickerSetInstallResultArchive.md b/old_docs/API_docs_v71/constructors/messages_stickerSetInstallResultArchive.md index f3e510bb..5b7fb05f 100644 --- a/old_docs/API_docs_v71/constructors/messages_stickerSetInstallResultArchive.md +++ b/old_docs/API_docs_v71/constructors/messages_stickerSetInstallResultArchive.md @@ -21,7 +21,7 @@ description: messages_stickerSetInstallResultArchive attributes, type and exampl ### Example: ``` -$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered]]; +$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/messages_stickers.md b/old_docs/API_docs_v71/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v71/constructors/messages_stickers.md +++ b/old_docs/API_docs_v71/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/msg_resend_req.md b/old_docs/API_docs_v71/constructors/msg_resend_req.md index 6a584a1a..13e6669d 100644 --- a/old_docs/API_docs_v71/constructors/msg_resend_req.md +++ b/old_docs/API_docs_v71/constructors/msg_resend_req.md @@ -21,7 +21,7 @@ description: msg_resend_req attributes, type and example ### Example: ``` -$msg_resend_req = ['_' => 'msg_resend_req', 'msg_ids' => [long]]; +$msg_resend_req = ['_' => 'msg_resend_req', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/msgs_ack.md b/old_docs/API_docs_v71/constructors/msgs_ack.md index 6d945079..353148ea 100644 --- a/old_docs/API_docs_v71/constructors/msgs_ack.md +++ b/old_docs/API_docs_v71/constructors/msgs_ack.md @@ -21,7 +21,7 @@ description: msgs_ack attributes, type and example ### Example: ``` -$msgs_ack = ['_' => 'msgs_ack', 'msg_ids' => [long]]; +$msgs_ack = ['_' => 'msgs_ack', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/msgs_all_info.md b/old_docs/API_docs_v71/constructors/msgs_all_info.md index 632ef421..dd630f00 100644 --- a/old_docs/API_docs_v71/constructors/msgs_all_info.md +++ b/old_docs/API_docs_v71/constructors/msgs_all_info.md @@ -22,7 +22,7 @@ description: msgs_all_info attributes, type and example ### Example: ``` -$msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long], 'info' => 'string']; +$msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long, long], 'info' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/msgs_state_req.md b/old_docs/API_docs_v71/constructors/msgs_state_req.md index 3aecb1ee..76f1f05c 100644 --- a/old_docs/API_docs_v71/constructors/msgs_state_req.md +++ b/old_docs/API_docs_v71/constructors/msgs_state_req.md @@ -21,7 +21,7 @@ description: msgs_state_req attributes, type and example ### Example: ``` -$msgs_state_req = ['_' => 'msgs_state_req', 'msg_ids' => [long]]; +$msgs_state_req = ['_' => 'msgs_state_req', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/pageBlockCollage.md b/old_docs/API_docs_v71/constructors/pageBlockCollage.md index 8685b250..3950e34d 100644 --- a/old_docs/API_docs_v71/constructors/pageBlockCollage.md +++ b/old_docs/API_docs_v71/constructors/pageBlockCollage.md @@ -22,7 +22,7 @@ description: pageBlockCollage attributes, type and example ### Example: ``` -$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/pageBlockEmbedPost.md b/old_docs/API_docs_v71/constructors/pageBlockEmbedPost.md index e0e955b9..e9434dfa 100644 --- a/old_docs/API_docs_v71/constructors/pageBlockEmbedPost.md +++ b/old_docs/API_docs_v71/constructors/pageBlockEmbedPost.md @@ -27,7 +27,7 @@ description: pageBlockEmbedPost attributes, type and example ### Example: ``` -$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock], 'caption' => RichText]; +$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/pageBlockList.md b/old_docs/API_docs_v71/constructors/pageBlockList.md index 6bf3c783..728c05a7 100644 --- a/old_docs/API_docs_v71/constructors/pageBlockList.md +++ b/old_docs/API_docs_v71/constructors/pageBlockList.md @@ -22,7 +22,7 @@ description: pageBlockList attributes, type and example ### Example: ``` -$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText]]; +$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/pageBlockSlideshow.md b/old_docs/API_docs_v71/constructors/pageBlockSlideshow.md index e48d51bb..0c18e64f 100644 --- a/old_docs/API_docs_v71/constructors/pageBlockSlideshow.md +++ b/old_docs/API_docs_v71/constructors/pageBlockSlideshow.md @@ -22,7 +22,7 @@ description: pageBlockSlideshow attributes, type and example ### Example: ``` -$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/pageFull.md b/old_docs/API_docs_v71/constructors/pageFull.md index 7dabe40d..4ea43cd0 100644 --- a/old_docs/API_docs_v71/constructors/pageFull.md +++ b/old_docs/API_docs_v71/constructors/pageFull.md @@ -23,7 +23,7 @@ description: pageFull attributes, type and example ### Example: ``` -$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock], 'photos' => [Photo], 'documents' => [Document]]; +$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/pagePart.md b/old_docs/API_docs_v71/constructors/pagePart.md index a6969c73..32e8ac28 100644 --- a/old_docs/API_docs_v71/constructors/pagePart.md +++ b/old_docs/API_docs_v71/constructors/pagePart.md @@ -23,7 +23,7 @@ description: pagePart attributes, type and example ### Example: ``` -$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock], 'photos' => [Photo], 'documents' => [Document]]; +$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/payments_paymentForm.md b/old_docs/API_docs_v71/constructors/payments_paymentForm.md index 6b468a10..982b4a13 100644 --- a/old_docs/API_docs_v71/constructors/payments_paymentForm.md +++ b/old_docs/API_docs_v71/constructors/payments_paymentForm.md @@ -31,7 +31,7 @@ description: payments_paymentForm attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v71/constructors/payments_paymentReceipt.md b/old_docs/API_docs_v71/constructors/payments_paymentReceipt.md index cb64a78a..f7c6589c 100644 --- a/old_docs/API_docs_v71/constructors/payments_paymentReceipt.md +++ b/old_docs/API_docs_v71/constructors/payments_paymentReceipt.md @@ -30,7 +30,7 @@ description: payments_paymentReceipt attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v71/constructors/payments_validatedRequestedInfo.md b/old_docs/API_docs_v71/constructors/payments_validatedRequestedInfo.md index a1d841b5..362544ca 100644 --- a/old_docs/API_docs_v71/constructors/payments_validatedRequestedInfo.md +++ b/old_docs/API_docs_v71/constructors/payments_validatedRequestedInfo.md @@ -22,7 +22,7 @@ description: payments_validatedRequestedInfo attributes, type and example ### Example: ``` -$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption]]; +$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption, ShippingOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/phoneCall.md b/old_docs/API_docs_v71/constructors/phoneCall.md index 279af015..703116b5 100644 --- a/old_docs/API_docs_v71/constructors/phoneCall.md +++ b/old_docs/API_docs_v71/constructors/phoneCall.md @@ -31,7 +31,7 @@ description: phoneCall attributes, type and example ### Example: ``` -$phoneCall = ['_' => 'phoneCall', '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]; +$phoneCall = ['_' => 'phoneCall', '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: diff --git a/old_docs/API_docs_v71/constructors/phone_phoneCall.md b/old_docs/API_docs_v71/constructors/phone_phoneCall.md index 38177647..00a43b98 100644 --- a/old_docs/API_docs_v71/constructors/phone_phoneCall.md +++ b/old_docs/API_docs_v71/constructors/phone_phoneCall.md @@ -22,7 +22,7 @@ description: phone_phoneCall attributes, type and example ### Example: ``` -$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User]]; +$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/photo.md b/old_docs/API_docs_v71/constructors/photo.md index 0d6edc52..293458ca 100644 --- a/old_docs/API_docs_v71/constructors/photo.md +++ b/old_docs/API_docs_v71/constructors/photo.md @@ -25,7 +25,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/photos_photo.md b/old_docs/API_docs_v71/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v71/constructors/photos_photo.md +++ b/old_docs/API_docs_v71/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/photos_photos.md b/old_docs/API_docs_v71/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v71/constructors/photos_photos.md +++ b/old_docs/API_docs_v71/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/photos_photosSlice.md b/old_docs/API_docs_v71/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v71/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v71/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v71/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v71/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v71/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v71/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v71/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v71/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/replyInlineMarkup.md b/old_docs/API_docs_v71/constructors/replyInlineMarkup.md index 80d2ff77..95257485 100644 --- a/old_docs/API_docs_v71/constructors/replyInlineMarkup.md +++ b/old_docs/API_docs_v71/constructors/replyInlineMarkup.md @@ -21,7 +21,7 @@ description: replyInlineMarkup attributes, type and example ### Example: ``` -$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow]]; +$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v71/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v71/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v71/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/resPQ.md b/old_docs/API_docs_v71/constructors/resPQ.md index 5d6c0d6b..f4dcf3e9 100644 --- a/old_docs/API_docs_v71/constructors/resPQ.md +++ b/old_docs/API_docs_v71/constructors/resPQ.md @@ -24,7 +24,7 @@ description: resPQ attributes, type and example ### Example: ``` -$resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => 'string', 'server_public_key_fingerprints' => [long]]; +$resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => 'string', 'server_public_key_fingerprints' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/shippingOption.md b/old_docs/API_docs_v71/constructors/shippingOption.md index 32ec5182..53a0405f 100644 --- a/old_docs/API_docs_v71/constructors/shippingOption.md +++ b/old_docs/API_docs_v71/constructors/shippingOption.md @@ -23,7 +23,7 @@ description: shippingOption attributes, type and example ### Example: ``` -$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice]]; +$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/stickerPack.md b/old_docs/API_docs_v71/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v71/constructors/stickerPack.md +++ b/old_docs/API_docs_v71/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/stickerSetMultiCovered.md b/old_docs/API_docs_v71/constructors/stickerSetMultiCovered.md index 4dd5a0a7..9a337fdc 100644 --- a/old_docs/API_docs_v71/constructors/stickerSetMultiCovered.md +++ b/old_docs/API_docs_v71/constructors/stickerSetMultiCovered.md @@ -22,7 +22,7 @@ description: stickerSetMultiCovered attributes, type and example ### Example: ``` -$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document]]; +$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/textConcat.md b/old_docs/API_docs_v71/constructors/textConcat.md index 4a44d3b2..bfdb9e50 100644 --- a/old_docs/API_docs_v71/constructors/textConcat.md +++ b/old_docs/API_docs_v71/constructors/textConcat.md @@ -21,7 +21,7 @@ description: textConcat attributes, type and example ### Example: ``` -$textConcat = ['_' => 'textConcat', 'texts' => [RichText]]; +$textConcat = ['_' => 'textConcat', 'texts' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/topPeerCategoryPeers.md b/old_docs/API_docs_v71/constructors/topPeerCategoryPeers.md index acd5cf08..03b78ed3 100644 --- a/old_docs/API_docs_v71/constructors/topPeerCategoryPeers.md +++ b/old_docs/API_docs_v71/constructors/topPeerCategoryPeers.md @@ -23,7 +23,7 @@ description: topPeerCategoryPeers attributes, type and example ### Example: ``` -$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer]]; +$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer, TopPeer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/updateChannelReadMessagesContents.md b/old_docs/API_docs_v71/constructors/updateChannelReadMessagesContents.md index 7b69edd8..419e7d12 100644 --- a/old_docs/API_docs_v71/constructors/updateChannelReadMessagesContents.md +++ b/old_docs/API_docs_v71/constructors/updateChannelReadMessagesContents.md @@ -22,7 +22,7 @@ description: updateChannelReadMessagesContents attributes, type and example ### Example: ``` -$updateChannelReadMessagesContents = ['_' => 'updateChannelReadMessagesContents', 'channel_id' => int, 'messages' => [int]]; +$updateChannelReadMessagesContents = ['_' => 'updateChannelReadMessagesContents', 'channel_id' => int, 'messages' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/updateDcOptions.md b/old_docs/API_docs_v71/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v71/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v71/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v71/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v71/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v71/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/updateDeleteMessages.md b/old_docs/API_docs_v71/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v71/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v71/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/updatePinnedDialogs.md b/old_docs/API_docs_v71/constructors/updatePinnedDialogs.md index a531ad75..c38d664c 100644 --- a/old_docs/API_docs_v71/constructors/updatePinnedDialogs.md +++ b/old_docs/API_docs_v71/constructors/updatePinnedDialogs.md @@ -21,7 +21,7 @@ description: updatePinnedDialogs attributes, type and example ### Example: ``` -$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer]]; +$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer, Peer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/updatePrivacy.md b/old_docs/API_docs_v71/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v71/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v71/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v71/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v71/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v71/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/updateServiceNotification.md b/old_docs/API_docs_v71/constructors/updateServiceNotification.md index 562d1089..92280ccf 100644 --- a/old_docs/API_docs_v71/constructors/updateServiceNotification.md +++ b/old_docs/API_docs_v71/constructors/updateServiceNotification.md @@ -26,7 +26,7 @@ description: updateServiceNotification attributes, type and example ### Example: ``` -$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/updateShortChatMessage.md b/old_docs/API_docs_v71/constructors/updateShortChatMessage.md index 08aa61a5..f6310d0d 100644 --- a/old_docs/API_docs_v71/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v71/constructors/updateShortChatMessage.md @@ -35,7 +35,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v71/constructors/updateShortMessage.md b/old_docs/API_docs_v71/constructors/updateShortMessage.md index 608d2a30..24f07b99 100644 --- a/old_docs/API_docs_v71/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v71/constructors/updateShortMessage.md @@ -34,7 +34,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v71/constructors/updateShortSentMessage.md b/old_docs/API_docs_v71/constructors/updateShortSentMessage.md index 28f82e3a..ebc40cf9 100644 --- a/old_docs/API_docs_v71/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v71/constructors/updateShortSentMessage.md @@ -27,7 +27,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$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: diff --git a/old_docs/API_docs_v71/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v71/constructors/updateStickerSetsOrder.md index 53637821..7b29b8f2 100644 --- a/old_docs/API_docs_v71/constructors/updateStickerSetsOrder.md +++ b/old_docs/API_docs_v71/constructors/updateStickerSetsOrder.md @@ -22,7 +22,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/updates.md b/old_docs/API_docs_v71/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v71/constructors/updates.md +++ b/old_docs/API_docs_v71/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/updatesCombined.md b/old_docs/API_docs_v71/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v71/constructors/updatesCombined.md +++ b/old_docs/API_docs_v71/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v71/constructors/updates_channelDifference.md b/old_docs/API_docs_v71/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v71/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v71/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v71/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v71/constructors/updates_channelDifferenceTooLong.md index 0b2c46be..3bb04cf4 100644 --- a/old_docs/API_docs_v71/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v71/constructors/updates_channelDifferenceTooLong.md @@ -31,7 +31,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v71/constructors/updates_difference.md b/old_docs/API_docs_v71/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v71/constructors/updates_difference.md +++ b/old_docs/API_docs_v71/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v71/constructors/updates_differenceSlice.md b/old_docs/API_docs_v71/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v71/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v71/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v71/constructors/upload_fileCdnRedirect.md b/old_docs/API_docs_v71/constructors/upload_fileCdnRedirect.md index 33aaefd2..8140b266 100644 --- a/old_docs/API_docs_v71/constructors/upload_fileCdnRedirect.md +++ b/old_docs/API_docs_v71/constructors/upload_fileCdnRedirect.md @@ -25,7 +25,7 @@ description: upload_fileCdnRedirect attributes, type and example ### Example: ``` -$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'cdn_file_hashes' => [CdnFileHash]]; +$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'cdn_file_hashes' => [CdnFileHash, CdnFileHash]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/wallPaper.md b/old_docs/API_docs_v71/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v71/constructors/wallPaper.md +++ b/old_docs/API_docs_v71/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/constructors/webDocument.md b/old_docs/API_docs_v71/constructors/webDocument.md index 0be6cb8a..55a5b09b 100644 --- a/old_docs/API_docs_v71/constructors/webDocument.md +++ b/old_docs/API_docs_v71/constructors/webDocument.md @@ -26,7 +26,7 @@ description: webDocument attributes, type and example ### Example: ``` -$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'dc_id' => int]; +$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'dc_id' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v71/methods/README.md b/old_docs/API_docs_v71/methods/README.md index 07f2ea19..124d91c5 100644 --- a/old_docs/API_docs_v71/methods/README.md +++ b/old_docs/API_docs_v71/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v71/methods/account_changePhone.md b/old_docs/API_docs_v71/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v71/methods/account_changePhone.md +++ b/old_docs/API_docs_v71/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_checkUsername.md b/old_docs/API_docs_v71/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v71/methods/account_checkUsername.md +++ b/old_docs/API_docs_v71/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_confirmPhone.md b/old_docs/API_docs_v71/methods/account_confirmPhone.md index 8dd79d94..2261e6e8 100644 --- a/old_docs/API_docs_v71/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v71/methods/account_confirmPhone.md @@ -1,17 +1,19 @@ --- title: account.confirmPhone -description: account.confirmPhone parameters, return type and example +description: Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode --- ## 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 | Required | -|----------|---------------|----------| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_code\_hash|[string](../types/string.md) | Yes|obtain phone_code_hash from sendConfirmPhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The code sent by sendConfirmPhoneCode| ### Return type: [Bool](../types/Bool.md) @@ -31,13 +33,18 @@ description: account.confirmPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_deleteAccount.md b/old_docs/API_docs_v71/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v71/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v71/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_getAccountTTL.md b/old_docs/API_docs_v71/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v71/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v71/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v71/methods/account_getAuthorizations.md b/old_docs/API_docs_v71/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v71/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v71/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v71/methods/account_getNotifySettings.md b/old_docs/API_docs_v71/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v71/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v71/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_getPassword.md b/old_docs/API_docs_v71/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v71/methods/account_getPassword.md +++ b/old_docs/API_docs_v71/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v71/methods/account_getPasswordSettings.md b/old_docs/API_docs_v71/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v71/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v71/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_getPrivacy.md b/old_docs/API_docs_v71/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v71/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v71/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_getTmpPassword.md b/old_docs/API_docs_v71/methods/account_getTmpPassword.md index d9bd30d8..e9ff8d28 100644 --- a/old_docs/API_docs_v71/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v71/methods/account_getTmpPassword.md @@ -1,17 +1,19 @@ --- title: account.getTmpPassword -description: account.getTmpPassword parameters, return type and example +description: Get temporary password for buying products through bots --- ## Method: account.getTmpPassword [Back to methods index](index.md) +Get temporary password for buying products through bots + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|password\_hash|[bytes](../types/bytes.md) | Yes|The password hash| +|period|[int](../types/int.md) | Yes|The validity period| ### Return type: [account\_TmpPassword](../types/account_TmpPassword.md) @@ -31,13 +33,18 @@ description: account.getTmpPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_getWallPapers.md b/old_docs/API_docs_v71/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v71/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v71/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v71/methods/account_registerDevice.md b/old_docs/API_docs_v71/methods/account_registerDevice.md index 8be04ad2..0bf6d1ee 100644 --- a/old_docs/API_docs_v71/methods/account_registerDevice.md +++ b/old_docs/API_docs_v71/methods/account_registerDevice.md @@ -1,17 +1,19 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_reportPeer.md b/old_docs/API_docs_v71/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v71/methods/account_reportPeer.md +++ b/old_docs/API_docs_v71/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_resetAuthorization.md b/old_docs/API_docs_v71/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v71/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v71/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_resetNotifySettings.md b/old_docs/API_docs_v71/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v71/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v71/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v71/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v71/methods/account_sendChangePhoneCode.md index 017b5f7f..9e5016a4 100644 --- a/old_docs/API_docs_v71/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v71/methods/account_sendChangePhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|phone\_number|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can the code be sent using a flash call instead of an SMS?| +|phone\_number|[string](../types/string.md) | Yes|New phone number| +|current\_number|[Bool](../types/Bool.md) | Optional|Current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v71/methods/account_sendConfirmPhoneCode.md index 3665bd50..4de86a33 100644 --- a/old_docs/API_docs_v71/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v71/methods/account_sendConfirmPhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendConfirmPhoneCode -description: account.sendConfirmPhoneCode parameters, return type and example +description: Send confirmation phone code --- ## Method: account.sendConfirmPhoneCode [Back to methods index](index.md) +Send confirmation phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|hash|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can telegram call you instead of sending an SMS?| +|hash|[string](../types/string.md) | Yes|The hash| +|current\_number|[Bool](../types/Bool.md) | Optional|The current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendConfirmPhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_setAccountTTL.md b/old_docs/API_docs_v71/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v71/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v71/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_setPrivacy.md b/old_docs/API_docs_v71/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v71/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v71/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/account_unregisterDevice.md b/old_docs/API_docs_v71/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v71/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v71/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v71/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v71/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v71/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_updateNotifySettings.md b/old_docs/API_docs_v71/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v71/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v71/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v71/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v71/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v71/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_updateProfile.md b/old_docs/API_docs_v71/methods/account_updateProfile.md index b3d468d1..8b0c3268 100644 --- a/old_docs/API_docs_v71/methods/account_updateProfile.md +++ b/old_docs/API_docs_v71/methods/account_updateProfile.md @@ -1,18 +1,20 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Optional| -|last\_name|[string](../types/string.md) | Optional| -|about|[string](../types/string.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Optional|The first name| +|last\_name|[string](../types/string.md) | Optional|The last name| +|about|[string](../types/string.md) | Optional|The bio/about field| ### Return type: [User](../types/User.md) @@ -32,13 +34,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_updateStatus.md b/old_docs/API_docs_v71/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v71/methods/account_updateStatus.md +++ b/old_docs/API_docs_v71/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v71/methods/account_updateUsername.md b/old_docs/API_docs_v71/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v71/methods/account_updateUsername.md +++ b/old_docs/API_docs_v71/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v71/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v71/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v71/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v71/methods/auth_cancelCode.md b/old_docs/API_docs_v71/methods/auth_cancelCode.md index 05d927a1..1283e1e5 100644 --- a/old_docs/API_docs_v71/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v71/methods/auth_cancelCode.md @@ -1,17 +1,19 @@ --- title: auth.cancelCode -description: auth.cancelCode parameters, return type and example +description: Invalidate sent phone code --- ## Method: auth.cancelCode [Back to methods index](index.md) +Invalidate sent phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: auth.cancelCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/auth_checkPassword.md b/old_docs/API_docs_v71/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v71/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v71/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v71/methods/auth_checkPhone.md b/old_docs/API_docs_v71/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v71/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v71/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v71/methods/auth_dropTempAuthKeys.md index fedb7bf4..b08b9f40 100644 --- a/old_docs/API_docs_v71/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v71/methods/auth_dropTempAuthKeys.md @@ -1,16 +1,18 @@ --- title: auth.dropTempAuthKeys -description: auth.dropTempAuthKeys parameters, return type and example +description: Delete all temporary authorization keys except the ones provided --- ## Method: auth.dropTempAuthKeys [Back to methods index](index.md) +Delete all temporary authorization keys except the ones provided + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|except\_auth\_keys|Array of [long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|except\_auth\_keys|Array of [long](../types/long.md) | Yes|The temporary authorization keys to keep| ### Return type: [Bool](../types/Bool.md) @@ -22,18 +24,20 @@ description: auth.dropTempAuthKeys parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/auth_exportAuthorization.md b/old_docs/API_docs_v71/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v71/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v71/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v71/methods/auth_importAuthorization.md b/old_docs/API_docs_v71/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v71/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v71/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v71/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v71/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v71/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v71/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v71/methods/auth_logOut.md b/old_docs/API_docs_v71/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v71/methods/auth_logOut.md +++ b/old_docs/API_docs_v71/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v71/methods/auth_recoverPassword.md b/old_docs/API_docs_v71/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v71/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v71/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v71/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v71/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v71/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v71/methods/auth_resendCode.md b/old_docs/API_docs_v71/methods/auth_resendCode.md index df4803b8..4bfbf379 100644 --- a/old_docs/API_docs_v71/methods/auth_resendCode.md +++ b/old_docs/API_docs_v71/methods/auth_resendCode.md @@ -1,17 +1,19 @@ --- title: auth.resendCode -description: auth.resendCode parameters, return type and example +description: Resend the SMS verification code --- ## Method: auth.resendCode [Back to methods index](index.md) +Resend the SMS verification code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|The phone code hash| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -30,13 +32,18 @@ description: auth.resendCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v71/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v71/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v71/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v71/methods/auth_sendCode.md b/old_docs/API_docs_v71/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v71/methods/auth_sendCode.md +++ b/old_docs/API_docs_v71/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v71/methods/auth_sendInvites.md b/old_docs/API_docs_v71/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v71/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v71/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/auth_signIn.md b/old_docs/API_docs_v71/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v71/methods/auth_signIn.md +++ b/old_docs/API_docs_v71/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v71/methods/auth_signUp.md b/old_docs/API_docs_v71/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v71/methods/auth_signUp.md +++ b/old_docs/API_docs_v71/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v71/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v71/methods/bots_answerWebhookJSONQuery.md index d910db35..809576fa 100644 --- a/old_docs/API_docs_v71/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v71/methods/bots_answerWebhookJSONQuery.md @@ -31,16 +31,18 @@ description: bots.answerWebhookJSONQuery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v71/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v71/methods/bots_sendCustomRequest.md index abb880ef..ce28f6ca 100644 --- a/old_docs/API_docs_v71/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v71/methods/bots_sendCustomRequest.md @@ -30,16 +30,18 @@ description: bots.sendCustomRequest parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_checkUsername.md b/old_docs/API_docs_v71/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v71/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v71/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_createChannel.md b/old_docs/API_docs_v71/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v71/methods/channels_createChannel.md +++ b/old_docs/API_docs_v71/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_deleteChannel.md b/old_docs/API_docs_v71/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v71/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v71/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_deleteMessages.md b/old_docs/API_docs_v71/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v71/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v71/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_editAbout.md b/old_docs/API_docs_v71/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v71/methods/channels_editAbout.md +++ b/old_docs/API_docs_v71/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_editAdmin.md b/old_docs/API_docs_v71/methods/channels_editAdmin.md index 07f8cc11..36ae5241 100644 --- a/old_docs/API_docs_v71/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v71/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_editBanned.md b/old_docs/API_docs_v71/methods/channels_editBanned.md index d26e857f..4f5dc25c 100644 --- a/old_docs/API_docs_v71/methods/channels_editBanned.md +++ b/old_docs/API_docs_v71/methods/channels_editBanned.md @@ -10,8 +10,8 @@ description: channels.editBanned parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Yes| @@ -35,16 +35,18 @@ description: channels.editBanned parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_editPhoto.md b/old_docs/API_docs_v71/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v71/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v71/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_editTitle.md b/old_docs/API_docs_v71/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v71/methods/channels_editTitle.md +++ b/old_docs/API_docs_v71/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_exportInvite.md b/old_docs/API_docs_v71/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v71/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v71/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_exportMessageLink.md b/old_docs/API_docs_v71/methods/channels_exportMessageLink.md index 026fe982..7eff4ed8 100644 --- a/old_docs/API_docs_v71/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v71/methods/channels_exportMessageLink.md @@ -10,7 +10,7 @@ description: channels.exportMessageLink parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: channels.exportMessageLink parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_getAdminLog.md b/old_docs/API_docs_v71/methods/channels_getAdminLog.md index 247d82f5..2b4d08d6 100644 --- a/old_docs/API_docs_v71/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v71/methods/channels_getAdminLog.md @@ -10,10 +10,10 @@ description: channels.getAdminLog parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |q|[string](../types/string.md) | Yes| |events\_filter|[ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md) | Optional| -|admins|Array of [InputUser](../types/InputUser.md) | Optional| +|admins|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |max\_id|[long](../types/long.md) | Yes| |min\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -37,15 +37,20 @@ description: channels.getAdminLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$channels_AdminLogResults = $MadelineProto->channels->getAdminLog(['channel' => InputChannel, 'q' => 'string', 'events_filter' => ChannelAdminLogEventsFilter, 'admins' => [InputUser], 'max_id' => long, 'min_id' => long, 'limit' => int, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v71/methods/channels_getAdminedPublicChannels.md index 283a9071..01ea971f 100644 --- a/old_docs/API_docs_v71/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v71/methods/channels_getAdminedPublicChannels.md @@ -17,13 +17,18 @@ description: channels.getAdminedPublicChannels parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); ``` diff --git a/old_docs/API_docs_v71/methods/channels_getChannels.md b/old_docs/API_docs_v71/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v71/methods/channels_getChannels.md +++ b/old_docs/API_docs_v71/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/channels_getFullChannel.md b/old_docs/API_docs_v71/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v71/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v71/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v71/methods/channels_getMessages.md b/old_docs/API_docs_v71/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v71/methods/channels_getMessages.md +++ b/old_docs/API_docs_v71/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/channels_getParticipant.md b/old_docs/API_docs_v71/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v71/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v71/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_getParticipants.md b/old_docs/API_docs_v71/methods/channels_getParticipants.md index 5d1bd833..7a9b6699 100644 --- a/old_docs/API_docs_v71/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v71/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -36,16 +36,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_inviteToChannel.md b/old_docs/API_docs_v71/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v71/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v71/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/channels_joinChannel.md b/old_docs/API_docs_v71/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v71/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v71/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_leaveChannel.md b/old_docs/API_docs_v71/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v71/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v71/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_readHistory.md b/old_docs/API_docs_v71/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v71/methods/channels_readHistory.md +++ b/old_docs/API_docs_v71/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_readMessageContents.md b/old_docs/API_docs_v71/methods/channels_readMessageContents.md index e165c81f..7e3da8e4 100644 --- a/old_docs/API_docs_v71/methods/channels_readMessageContents.md +++ b/old_docs/API_docs_v71/methods/channels_readMessageContents.md @@ -10,7 +10,7 @@ description: channels.readMessageContents parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -31,15 +31,20 @@ description: channels.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/channels_reportSpam.md b/old_docs/API_docs_v71/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v71/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v71/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/channels_setStickers.md b/old_docs/API_docs_v71/methods/channels_setStickers.md index 0431b0c9..a1f733eb 100644 --- a/old_docs/API_docs_v71/methods/channels_setStickers.md +++ b/old_docs/API_docs_v71/methods/channels_setStickers.md @@ -10,7 +10,7 @@ description: channels.setStickers parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |stickerset|[InputStickerSet](../types/InputStickerSet.md) | Optional| @@ -31,16 +31,18 @@ description: channels.setStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->setStickers(['channel' => InputChannel, 'stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_toggleInvites.md b/old_docs/API_docs_v71/methods/channels_toggleInvites.md index 19669eec..8d977fd0 100644 --- a/old_docs/API_docs_v71/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v71/methods/channels_toggleInvites.md @@ -10,7 +10,7 @@ description: channels.toggleInvites parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -32,13 +32,18 @@ description: channels.toggleInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_toggleSignatures.md b/old_docs/API_docs_v71/methods/channels_toggleSignatures.md index 4aaaeb0c..13d53d92 100644 --- a/old_docs/API_docs_v71/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v71/methods/channels_toggleSignatures.md @@ -10,7 +10,7 @@ description: channels.toggleSignatures parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: channels.toggleSignatures parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md index 3bb6d010..ecc15ce6 100644 --- a/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md @@ -11,7 +11,7 @@ description: channels.updatePinnedMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |silent|[Bool](../types/Bool.md) | Optional| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: channels.updatePinnedMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/channels_updateUsername.md b/old_docs/API_docs_v71/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v71/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v71/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/contacts_block.md b/old_docs/API_docs_v71/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v71/methods/contacts_block.md +++ b/old_docs/API_docs_v71/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v71/methods/contacts_deleteContact.md b/old_docs/API_docs_v71/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v71/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v71/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v71/methods/contacts_deleteContacts.md b/old_docs/API_docs_v71/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v71/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v71/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/contacts_exportCard.md b/old_docs/API_docs_v71/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v71/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v71/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v71/methods/contacts_getBlocked.md b/old_docs/API_docs_v71/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v71/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v71/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/contacts_getContacts.md b/old_docs/API_docs_v71/methods/contacts_getContacts.md index e7783c1b..32823094 100644 --- a/old_docs/API_docs_v71/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v71/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[int](../types/int.md) | Yes|$ids is the list ids of previously fetched contacts, $hash = $MadelineProto->gen_vector_hash($ids);| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/contacts_getStatuses.md b/old_docs/API_docs_v71/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v71/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v71/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v71/methods/contacts_getTopPeers.md b/old_docs/API_docs_v71/methods/contacts_getTopPeers.md index f72133a5..560f15c6 100644 --- a/old_docs/API_docs_v71/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v71/methods/contacts_getTopPeers.md @@ -1,24 +1,26 @@ --- title: contacts.getTopPeers -description: contacts.getTopPeers parameters, return type and example +description: Get most used chats --- ## Method: contacts.getTopPeers [Back to methods index](index.md) +Get most used chats + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|correspondents|[Bool](../types/Bool.md) | Optional| -|bots\_pm|[Bool](../types/Bool.md) | Optional| -|bots\_inline|[Bool](../types/Bool.md) | Optional| -|phone\_calls|[Bool](../types/Bool.md) | Optional| -|groups|[Bool](../types/Bool.md) | Optional| -|channels|[Bool](../types/Bool.md) | Optional| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|correspondents|[Bool](../types/Bool.md) | Optional|| +|bots\_pm|[Bool](../types/Bool.md) | Optional|| +|bots\_inline|[Bool](../types/Bool.md) | Optional|| +|phone\_calls|[Bool](../types/Bool.md) | Optional|| +|groups|[Bool](../types/Bool.md) | Optional|| +|channels|[Bool](../types/Bool.md) | Optional|| +|offset|[int](../types/int.md) | Yes|| +|limit|[int](../types/int.md) | Yes|| +|hash|[int](../types/int.md) | Yes|| ### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md) @@ -37,13 +39,18 @@ description: contacts.getTopPeers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v71/methods/contacts_importCard.md b/old_docs/API_docs_v71/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v71/methods/contacts_importCard.md +++ b/old_docs/API_docs_v71/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/contacts_importContacts.md b/old_docs/API_docs_v71/methods/contacts_importContacts.md index 7d580e83..a6b93600 100644 --- a/old_docs/API_docs_v71/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v71/methods/contacts_importContacts.md @@ -1,16 +1,18 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -22,15 +24,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/contacts_resetSaved.md b/old_docs/API_docs_v71/methods/contacts_resetSaved.md index 87f8db12..7ad65cb1 100644 --- a/old_docs/API_docs_v71/methods/contacts_resetSaved.md +++ b/old_docs/API_docs_v71/methods/contacts_resetSaved.md @@ -17,16 +17,18 @@ description: contacts.resetSaved parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetSaved(); ``` diff --git a/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md index 3eab7e04..ddcf6b2f 100644 --- a/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md @@ -11,7 +11,7 @@ description: contacts.resetTopPeerRating parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |category|[TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v71/methods/contacts_resolveUsername.md b/old_docs/API_docs_v71/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v71/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v71/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v71/methods/contacts_search.md b/old_docs/API_docs_v71/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v71/methods/contacts_search.md +++ b/old_docs/API_docs_v71/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/contacts_unblock.md b/old_docs/API_docs_v71/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v71/methods/contacts_unblock.md +++ b/old_docs/API_docs_v71/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v71/methods/contest_saveDeveloperInfo.md b/old_docs/API_docs_v71/methods/contest_saveDeveloperInfo.md index c0bb9054..6a8e5fda 100644 --- a/old_docs/API_docs_v71/methods/contest_saveDeveloperInfo.md +++ b/old_docs/API_docs_v71/methods/contest_saveDeveloperInfo.md @@ -26,16 +26,18 @@ description: contest.saveDeveloperInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contest->saveDeveloperInfo(['vk_id' => int, 'name' => 'string', 'phone_number' => 'string', 'age' => int, 'city' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/destroy_auth_key.md b/old_docs/API_docs_v71/methods/destroy_auth_key.md index 1803e375..0304d9a1 100644 --- a/old_docs/API_docs_v71/methods/destroy_auth_key.md +++ b/old_docs/API_docs_v71/methods/destroy_auth_key.md @@ -17,16 +17,18 @@ description: destroy_auth_key parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DestroyAuthKeyRes = $MadelineProto->destroy_auth_key(); ``` diff --git a/old_docs/API_docs_v71/methods/destroy_session.md b/old_docs/API_docs_v71/methods/destroy_session.md index 39aa2c6e..b2525dfb 100644 --- a/old_docs/API_docs_v71/methods/destroy_session.md +++ b/old_docs/API_docs_v71/methods/destroy_session.md @@ -1,16 +1,18 @@ --- title: destroy_session -description: destroy_session parameters, return type and example +description: Destroy the current MTProto session --- ## Method: destroy\_session [Back to methods index](index.md) +Destroy the current MTProto session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|session\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|session\_id|[long](../types/long.md) | Yes|The session to destroy| ### Return type: [DestroySessionRes](../types/DestroySessionRes.md) @@ -22,16 +24,18 @@ description: destroy_session parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DestroySessionRes = $MadelineProto->destroy_session(['session_id' => long, ]); ``` diff --git a/old_docs/API_docs_v71/methods/get_future_salts.md b/old_docs/API_docs_v71/methods/get_future_salts.md index fedf036c..4c2c9c46 100644 --- a/old_docs/API_docs_v71/methods/get_future_salts.md +++ b/old_docs/API_docs_v71/methods/get_future_salts.md @@ -1,16 +1,18 @@ --- title: get_future_salts -description: get_future_salts parameters, return type and example +description: Get future salts --- ## Method: get\_future\_salts [Back to methods index](index.md) +Get future salts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|num|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|num|[int](../types/int.md) | Yes|How many salts should be fetched| ### Return type: [FutureSalts](../types/FutureSalts.md) @@ -22,16 +24,18 @@ description: get_future_salts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $FutureSalts = $MadelineProto->get_future_salts(['num' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/help_getAppChangelog.md b/old_docs/API_docs_v71/methods/help_getAppChangelog.md index 59916787..f09a7a0d 100644 --- a/old_docs/API_docs_v71/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v71/methods/help_getAppChangelog.md @@ -22,13 +22,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/help_getAppUpdate.md b/old_docs/API_docs_v71/methods/help_getAppUpdate.md index 89ff22c3..0e227d24 100644 --- a/old_docs/API_docs_v71/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v71/methods/help_getAppUpdate.md @@ -17,13 +17,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); ``` diff --git a/old_docs/API_docs_v71/methods/help_getCdnConfig.md b/old_docs/API_docs_v71/methods/help_getCdnConfig.md index 3079e605..ba2a6c9a 100644 --- a/old_docs/API_docs_v71/methods/help_getCdnConfig.md +++ b/old_docs/API_docs_v71/methods/help_getCdnConfig.md @@ -24,16 +24,18 @@ description: help.getCdnConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $CdnConfig = $MadelineProto->help->getCdnConfig(); ``` diff --git a/old_docs/API_docs_v71/methods/help_getConfig.md b/old_docs/API_docs_v71/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v71/methods/help_getConfig.md +++ b/old_docs/API_docs_v71/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v71/methods/help_getInviteText.md b/old_docs/API_docs_v71/methods/help_getInviteText.md index 6d2674d6..a8d8992e 100644 --- a/old_docs/API_docs_v71/methods/help_getInviteText.md +++ b/old_docs/API_docs_v71/methods/help_getInviteText.md @@ -17,13 +17,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); ``` diff --git a/old_docs/API_docs_v71/methods/help_getNearestDc.md b/old_docs/API_docs_v71/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v71/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v71/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v71/methods/help_getSupport.md b/old_docs/API_docs_v71/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v71/methods/help_getSupport.md +++ b/old_docs/API_docs_v71/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v71/methods/help_getTermsOfService.md b/old_docs/API_docs_v71/methods/help_getTermsOfService.md index eb686506..a588e830 100644 --- a/old_docs/API_docs_v71/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v71/methods/help_getTermsOfService.md @@ -17,13 +17,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); ``` diff --git a/old_docs/API_docs_v71/methods/help_saveAppLog.md b/old_docs/API_docs_v71/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v71/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v71/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v71/methods/help_setBotUpdatesStatus.md index 470187a0..68c9720a 100644 --- a/old_docs/API_docs_v71/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v71/methods/help_setBotUpdatesStatus.md @@ -23,16 +23,18 @@ description: help.setBotUpdatesStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/initConnection.md b/old_docs/API_docs_v71/methods/initConnection.md index ef40e7f5..3c81c311 100644 --- a/old_docs/API_docs_v71/methods/initConnection.md +++ b/old_docs/API_docs_v71/methods/initConnection.md @@ -1,23 +1,25 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|system\_lang\_code|[string](../types/string.md) | Yes| -|lang\_pack|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|system\_lang\_code|[string](../types/string.md) | Yes|Language code| +|lang\_pack|[string](../types/string.md) | Yes|Language pack to use| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -37,16 +39,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v71/methods/invokeAfterMsg.md b/old_docs/API_docs_v71/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v71/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v71/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v71/methods/invokeAfterMsgs.md b/old_docs/API_docs_v71/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v71/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v71/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/invokeWithLayer.md b/old_docs/API_docs_v71/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v71/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v71/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v71/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v71/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v71/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v71/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v71/methods/langpack_getDifference.md b/old_docs/API_docs_v71/methods/langpack_getDifference.md index 116e78e2..b1078532 100644 --- a/old_docs/API_docs_v71/methods/langpack_getDifference.md +++ b/old_docs/API_docs_v71/methods/langpack_getDifference.md @@ -29,13 +29,18 @@ description: langpack.getDifference parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getDifference(['from_version' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/langpack_getLangPack.md b/old_docs/API_docs_v71/methods/langpack_getLangPack.md index b5686e61..7d440b66 100644 --- a/old_docs/API_docs_v71/methods/langpack_getLangPack.md +++ b/old_docs/API_docs_v71/methods/langpack_getLangPack.md @@ -29,13 +29,18 @@ description: langpack.getLangPack parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getLangPack(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/langpack_getLanguages.md b/old_docs/API_docs_v71/methods/langpack_getLanguages.md index cb65e5a0..8afce13f 100644 --- a/old_docs/API_docs_v71/methods/langpack_getLanguages.md +++ b/old_docs/API_docs_v71/methods/langpack_getLanguages.md @@ -24,13 +24,18 @@ description: langpack.getLanguages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_LangPackLanguage = $MadelineProto->langpack->getLanguages(); ``` diff --git a/old_docs/API_docs_v71/methods/langpack_getStrings.md b/old_docs/API_docs_v71/methods/langpack_getStrings.md index ce58daf9..9791f621 100644 --- a/old_docs/API_docs_v71/methods/langpack_getStrings.md +++ b/old_docs/API_docs_v71/methods/langpack_getStrings.md @@ -30,15 +30,20 @@ description: langpack.getStrings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string'], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string', 'string'], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_acceptEncryption.md b/old_docs/API_docs_v71/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v71/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v71/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v71/methods/messages_addChatUser.md b/old_docs/API_docs_v71/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v71/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v71/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_checkChatInvite.md b/old_docs/API_docs_v71/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v71/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v71/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v71/methods/messages_clearRecentStickers.md index ae45b249..31941a34 100644 --- a/old_docs/API_docs_v71/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v71/methods/messages_clearRecentStickers.md @@ -22,13 +22,18 @@ description: messages.clearRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_createChat.md b/old_docs/API_docs_v71/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v71/methods/messages_createChat.md +++ b/old_docs/API_docs_v71/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_deleteChatUser.md b/old_docs/API_docs_v71/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v71/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v71/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_deleteHistory.md b/old_docs/API_docs_v71/methods/messages_deleteHistory.md index d1c3f195..01686b2b 100644 --- a/old_docs/API_docs_v71/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v71/methods/messages_deleteHistory.md @@ -11,7 +11,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |just\_clear|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_deleteMessages.md b/old_docs/API_docs_v71/methods/messages_deleteMessages.md index 5472cc72..0cc6e6ed 100644 --- a/old_docs/API_docs_v71/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v71/methods/messages_deleteMessages.md @@ -30,18 +30,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_discardEncryption.md b/old_docs/API_docs_v71/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v71/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v71/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v71/methods/messages_editChatAdmin.md b/old_docs/API_docs_v71/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v71/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v71/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_editChatPhoto.md b/old_docs/API_docs_v71/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v71/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v71/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_editChatTitle.md b/old_docs/API_docs_v71/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v71/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v71/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v71/methods/messages_editInlineBotMessage.md index c3489f9d..289100ea 100644 --- a/old_docs/API_docs_v71/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v71/methods/messages_editInlineBotMessage.md @@ -35,18 +35,20 @@ description: messages.editInlineBotMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_editMessage.md b/old_docs/API_docs_v71/methods/messages_editMessage.md index 182fa03e..63379ed9 100644 --- a/old_docs/API_docs_v71/methods/messages_editMessage.md +++ b/old_docs/API_docs_v71/methods/messages_editMessage.md @@ -11,7 +11,7 @@ description: messages.editMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| |message|[string](../types/string.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -44,18 +44,20 @@ description: messages.editMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_exportChatInvite.md b/old_docs/API_docs_v71/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v71/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v71/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_faveSticker.md b/old_docs/API_docs_v71/methods/messages_faveSticker.md index 9264d8a3..88544c20 100644 --- a/old_docs/API_docs_v71/methods/messages_faveSticker.md +++ b/old_docs/API_docs_v71/methods/messages_faveSticker.md @@ -10,7 +10,7 @@ description: messages.faveSticker parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unfave|[Bool](../types/Bool.md) | Yes| @@ -30,16 +30,18 @@ description: messages.faveSticker parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->faveSticker(['id' => InputDocument, 'unfave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_forwardMessage.md b/old_docs/API_docs_v71/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v71/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v71/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_forwardMessages.md b/old_docs/API_docs_v71/methods/messages_forwardMessages.md index 1185259d..df361517 100644 --- a/old_docs/API_docs_v71/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v71/methods/messages_forwardMessages.md @@ -13,9 +13,9 @@ description: messages.forwardMessages parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |with\_my\_score|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -55,18 +55,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_getAllChats.md b/old_docs/API_docs_v71/methods/messages_getAllChats.md index babcf17d..59bc0add 100644 --- a/old_docs/API_docs_v71/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v71/methods/messages_getAllChats.md @@ -22,15 +22,20 @@ description: messages.getAllChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_getAllDrafts.md b/old_docs/API_docs_v71/methods/messages_getAllDrafts.md index 8550c5b8..7f0f7843 100644 --- a/old_docs/API_docs_v71/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v71/methods/messages_getAllDrafts.md @@ -17,13 +17,18 @@ description: messages.getAllDrafts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getAllStickers.md b/old_docs/API_docs_v71/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/old_docs/API_docs_v71/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v71/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v71/methods/messages_getArchivedStickers.md index cdb7f0af..8c2041a3 100644 --- a/old_docs/API_docs_v71/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v71/methods/messages_getArchivedStickers.md @@ -24,13 +24,18 @@ description: messages.getArchivedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v71/methods/messages_getAttachedStickers.md index 79d4e30d..f03f0be2 100644 --- a/old_docs/API_docs_v71/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v71/methods/messages_getAttachedStickers.md @@ -22,13 +22,18 @@ description: messages.getAttachedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md index bd916755..b9039098 100644 --- a/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md @@ -11,7 +11,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |game|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |msg\_id|[int](../types/int.md) | Yes| |data|[bytes](../types/bytes.md) | Optional| @@ -36,13 +36,18 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getChats.md b/old_docs/API_docs_v71/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v71/methods/messages_getChats.md +++ b/old_docs/API_docs_v71/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_getCommonChats.md b/old_docs/API_docs_v71/methods/messages_getCommonChats.md index d713f3a5..0df79096 100644 --- a/old_docs/API_docs_v71/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v71/methods/messages_getCommonChats.md @@ -10,7 +10,7 @@ description: messages.getCommonChats parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getCommonChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getDhConfig.md b/old_docs/API_docs_v71/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v71/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v71/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getDialogs.md b/old_docs/API_docs_v71/methods/messages_getDialogs.md index e7e81a8c..041b3efe 100644 --- a/old_docs/API_docs_v71/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v71/methods/messages_getDialogs.md @@ -13,7 +13,7 @@ description: messages.getDialogs parameters, return type and example |exclude\_pinned|[Bool](../types/Bool.md) | Optional| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v71/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/old_docs/API_docs_v71/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v71/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getFavedStickers.md b/old_docs/API_docs_v71/methods/messages_getFavedStickers.md index 51701826..fc2717f8 100644 --- a/old_docs/API_docs_v71/methods/messages_getFavedStickers.md +++ b/old_docs/API_docs_v71/methods/messages_getFavedStickers.md @@ -22,16 +22,18 @@ description: messages.getFavedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FavedStickers = $MadelineProto->messages->getFavedStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v71/methods/messages_getFeaturedStickers.md index 5aad1810..51097eda 100644 --- a/old_docs/API_docs_v71/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v71/methods/messages_getFeaturedStickers.md @@ -22,13 +22,18 @@ description: messages.getFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getFullChat.md b/old_docs/API_docs_v71/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v71/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v71/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v71/methods/messages_getGameHighScores.md b/old_docs/API_docs_v71/methods/messages_getGameHighScores.md index c316a8bd..4b8b1397 100644 --- a/old_docs/API_docs_v71/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v71/methods/messages_getGameHighScores.md @@ -10,9 +10,9 @@ description: messages.getGameHighScores parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -32,16 +32,18 @@ description: messages.getGameHighScores parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getHistory.md b/old_docs/API_docs_v71/methods/messages_getHistory.md index ef31c435..87b8328d 100644 --- a/old_docs/API_docs_v71/methods/messages_getHistory.md +++ b/old_docs/API_docs_v71/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| @@ -40,13 +40,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v71/methods/messages_getInlineBotResults.md index 90e2a427..6d965b19 100644 --- a/old_docs/API_docs_v71/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v71/methods/messages_getInlineBotResults.md @@ -10,8 +10,8 @@ description: messages.getInlineBotResults parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |query|[string](../types/string.md) | Yes| |offset|[string](../types/string.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v71/methods/messages_getInlineGameHighScores.md index 524e387b..9305a0f4 100644 --- a/old_docs/API_docs_v71/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v71/methods/messages_getInlineGameHighScores.md @@ -11,7 +11,7 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Name | Type | Required | |----------|---------------|----------| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -31,16 +31,18 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getMaskStickers.md b/old_docs/API_docs_v71/methods/messages_getMaskStickers.md index ca964647..260cfdb7 100644 --- a/old_docs/API_docs_v71/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v71/methods/messages_getMaskStickers.md @@ -22,13 +22,18 @@ description: messages.getMaskStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getMessageEditData.md b/old_docs/API_docs_v71/methods/messages_getMessageEditData.md index df71c31a..2a90a419 100644 --- a/old_docs/API_docs_v71/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v71/methods/messages_getMessageEditData.md @@ -10,7 +10,7 @@ description: messages.getMessageEditData parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getMessageEditData parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getMessages.md b/old_docs/API_docs_v71/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v71/methods/messages_getMessages.md +++ b/old_docs/API_docs_v71/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_getMessagesViews.md b/old_docs/API_docs_v71/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v71/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v71/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v71/methods/messages_getPeerDialogs.md index 226948ae..eff29878 100644 --- a/old_docs/API_docs_v71/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v71/methods/messages_getPeerDialogs.md @@ -10,7 +10,7 @@ description: messages.getPeerDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peers|Array of [InputPeer](../types/InputPeer.md) | Yes| +|peers|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md) @@ -30,15 +30,20 @@ description: messages.getPeerDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_getPeerSettings.md b/old_docs/API_docs_v71/methods/messages_getPeerSettings.md index fab25034..25906b73 100644 --- a/old_docs/API_docs_v71/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v71/methods/messages_getPeerSettings.md @@ -10,7 +10,7 @@ description: messages.getPeerSettings parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [PeerSettings](../types/PeerSettings.md) @@ -30,13 +30,18 @@ description: messages.getPeerSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v71/methods/messages_getPinnedDialogs.md index ec744f01..e5499df7 100644 --- a/old_docs/API_docs_v71/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v71/methods/messages_getPinnedDialogs.md @@ -17,13 +17,18 @@ description: messages.getPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getRecentStickers.md b/old_docs/API_docs_v71/methods/messages_getRecentStickers.md index a6ae162f..5a60d345 100644 --- a/old_docs/API_docs_v71/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v71/methods/messages_getRecentStickers.md @@ -23,13 +23,18 @@ description: messages.getRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getSavedGifs.md b/old_docs/API_docs_v71/methods/messages_getSavedGifs.md index 4986d812..bcb4590d 100644 --- a/old_docs/API_docs_v71/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v71/methods/messages_getSavedGifs.md @@ -22,13 +22,18 @@ description: messages.getSavedGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getStickerSet.md b/old_docs/API_docs_v71/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v71/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v71/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getUnreadMentions.md b/old_docs/API_docs_v71/methods/messages_getUnreadMentions.md index c79eef68..181e730c 100644 --- a/old_docs/API_docs_v71/methods/messages_getUnreadMentions.md +++ b/old_docs/API_docs_v71/methods/messages_getUnreadMentions.md @@ -10,7 +10,7 @@ description: messages.getUnreadMentions parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -34,13 +34,18 @@ description: messages.getUnreadMentions parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getUnreadMentions(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getWebPage.md b/old_docs/API_docs_v71/methods/messages_getWebPage.md index e886b020..0f09af47 100644 --- a/old_docs/API_docs_v71/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v71/methods/messages_getWebPage.md @@ -30,13 +30,18 @@ description: messages.getWebPage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v71/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v71/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v71/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_hideReportSpam.md b/old_docs/API_docs_v71/methods/messages_hideReportSpam.md index d47e8aa5..0419ec79 100644 --- a/old_docs/API_docs_v71/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v71/methods/messages_hideReportSpam.md @@ -10,7 +10,7 @@ description: messages.hideReportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.hideReportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_importChatInvite.md b/old_docs/API_docs_v71/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v71/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v71/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_installStickerSet.md b/old_docs/API_docs_v71/methods/messages_installStickerSet.md index 9336cc22..f405adce 100644 --- a/old_docs/API_docs_v71/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v71/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_migrateChat.md b/old_docs/API_docs_v71/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v71/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v71/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v71/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v71/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v71/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v71/methods/messages_readFeaturedStickers.md index 02055bf3..766ba200 100644 --- a/old_docs/API_docs_v71/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v71/methods/messages_readFeaturedStickers.md @@ -22,15 +22,20 @@ description: messages.readFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_readHistory.md b/old_docs/API_docs_v71/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v71/methods/messages_readHistory.md +++ b/old_docs/API_docs_v71/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_readMessageContents.md b/old_docs/API_docs_v71/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v71/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v71/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_receivedMessages.md b/old_docs/API_docs_v71/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v71/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v71/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_receivedQueue.md b/old_docs/API_docs_v71/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v71/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v71/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v71/methods/messages_reorderPinnedDialogs.md index b4bfb84f..30e926d9 100644 --- a/old_docs/API_docs_v71/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v71/methods/messages_reorderPinnedDialogs.md @@ -11,7 +11,7 @@ description: messages.reorderPinnedDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |force|[Bool](../types/Bool.md) | Optional| -|order|Array of [InputPeer](../types/InputPeer.md) | Yes| +|order|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +30,20 @@ description: messages.reorderPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v71/methods/messages_reorderStickerSets.md index fa094550..0e2c121d 100644 --- a/old_docs/API_docs_v71/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v71/methods/messages_reorderStickerSets.md @@ -23,15 +23,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v71/methods/messages_reportEncryptedSpam.md index aed7a891..64ebecdd 100644 --- a/old_docs/API_docs_v71/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v71/methods/messages_reportEncryptedSpam.md @@ -10,7 +10,7 @@ description: messages.reportEncryptedSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportEncryptedSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_reportSpam.md b/old_docs/API_docs_v71/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v71/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v71/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_requestEncryption.md b/old_docs/API_docs_v71/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v71/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v71/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v71/methods/messages_saveDraft.md b/old_docs/API_docs_v71/methods/messages_saveDraft.md index 7a85dfe7..754b4da2 100644 --- a/old_docs/API_docs_v71/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v71/methods/messages_saveDraft.md @@ -12,7 +12,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |message|[string](../types/string.md) | Yes| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| |parse\_mode| [string](../types/string.md) | Optional | @@ -34,15 +34,20 @@ description: messages.saveDraft parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_saveGif.md b/old_docs/API_docs_v71/methods/messages_saveGif.md index b3673c91..725bc949 100644 --- a/old_docs/API_docs_v71/methods/messages_saveGif.md +++ b/old_docs/API_docs_v71/methods/messages_saveGif.md @@ -10,7 +10,7 @@ description: messages.saveGif parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveGif parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v71/methods/messages_saveRecentSticker.md index bc3d1627..4a8298e2 100644 --- a/old_docs/API_docs_v71/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v71/methods/messages_saveRecentSticker.md @@ -11,7 +11,7 @@ description: messages.saveRecentSticker parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |attached|[Bool](../types/Bool.md) | Optional| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.saveRecentSticker parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_search.md b/old_docs/API_docs_v71/methods/messages_search.md index 368688bd..4dd3f947 100644 --- a/old_docs/API_docs_v71/methods/messages_search.md +++ b/old_docs/API_docs_v71/methods/messages_search.md @@ -10,9 +10,9 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| -|from\_id|[InputUser](../types/InputUser.md) | Optional| +|from\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -45,13 +45,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_searchGifs.md b/old_docs/API_docs_v71/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/old_docs/API_docs_v71/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v71/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_searchGlobal.md b/old_docs/API_docs_v71/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v71/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v71/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_sendEncrypted.md b/old_docs/API_docs_v71/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v71/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v71/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v71/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v71/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v71/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v71/methods/messages_sendInlineBotResult.md index 0857341e..6bfb1578 100644 --- a/old_docs/API_docs_v71/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v71/methods/messages_sendInlineBotResult.md @@ -13,7 +13,7 @@ description: messages.sendInlineBotResult parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |query\_id|[long](../types/long.md) | Yes| |id|[string](../types/string.md) | Yes| @@ -40,13 +40,18 @@ description: messages.sendInlineBotResult parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_sendMedia.md b/old_docs/API_docs_v71/methods/messages_sendMedia.md index 8c6f7f7f..1530451b 100644 --- a/old_docs/API_docs_v71/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v71/methods/messages_sendMedia.md @@ -13,9 +13,9 @@ description: messages.sendMedia parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -56,16 +56,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_sendMessage.md b/old_docs/API_docs_v71/methods/messages_sendMessage.md index bec95b8c..49ace99c 100644 --- a/old_docs/API_docs_v71/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v71/methods/messages_sendMessage.md @@ -14,7 +14,7 @@ description: messages.sendMessage parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -50,6 +50,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -57,18 +58,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$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], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_sendScreenshotNotification.md b/old_docs/API_docs_v71/methods/messages_sendScreenshotNotification.md index 8ab8154b..2e66b51a 100644 --- a/old_docs/API_docs_v71/methods/messages_sendScreenshotNotification.md +++ b/old_docs/API_docs_v71/methods/messages_sendScreenshotNotification.md @@ -10,7 +10,7 @@ description: messages.sendScreenshotNotification parameters, return type and exa | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.sendScreenshotNotification parameters, return type and exa ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendScreenshotNotification(['peer' => InputPeer, 'reply_to_msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v71/methods/messages_setBotCallbackAnswer.md index 2901a558..0282168b 100644 --- a/old_docs/API_docs_v71/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v71/methods/messages_setBotCallbackAnswer.md @@ -33,16 +33,18 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v71/methods/messages_setBotPrecheckoutResults.md index 5666e9ff..4aba8ca3 100644 --- a/old_docs/API_docs_v71/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v71/methods/messages_setBotPrecheckoutResults.md @@ -31,16 +31,18 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v71/methods/messages_setBotShippingResults.md index 95376b64..5dcfe12e 100644 --- a/old_docs/API_docs_v71/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v71/methods/messages_setBotShippingResults.md @@ -31,18 +31,20 @@ description: messages.setBotShippingResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v71/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v71/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v71/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_setGameScore.md b/old_docs/API_docs_v71/methods/messages_setGameScore.md index 615aa87b..61dfe579 100644 --- a/old_docs/API_docs_v71/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v71/methods/messages_setGameScore.md @@ -12,9 +12,9 @@ description: messages.setGameScore parameters, return type and example |----------|---------------|----------| |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -35,16 +35,18 @@ description: messages.setGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v71/methods/messages_setInlineBotResults.md index 8b49c4c7..c38b8c2e 100644 --- a/old_docs/API_docs_v71/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v71/methods/messages_setInlineBotResults.md @@ -45,18 +45,20 @@ description: messages.setInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v71/methods/messages_setInlineGameScore.md index b5fc27d5..9fadc31e 100644 --- a/old_docs/API_docs_v71/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v71/methods/messages_setInlineGameScore.md @@ -13,7 +13,7 @@ description: messages.setInlineGameScore parameters, return type and example |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: messages.setInlineGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_setTyping.md b/old_docs/API_docs_v71/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v71/methods/messages_setTyping.md +++ b/old_docs/API_docs_v71/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_startBot.md b/old_docs/API_docs_v71/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v71/methods/messages_startBot.md +++ b/old_docs/API_docs_v71/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v71/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v71/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v71/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v71/methods/messages_toggleDialogPin.md index 535a0fa1..7c5bfa9f 100644 --- a/old_docs/API_docs_v71/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v71/methods/messages_toggleDialogPin.md @@ -11,7 +11,7 @@ description: messages.toggleDialogPin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |pinned|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: messages.toggleDialogPin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v71/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v71/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v71/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v71/methods/messages_uploadMedia.md b/old_docs/API_docs_v71/methods/messages_uploadMedia.md index 8a79defa..74515f11 100644 --- a/old_docs/API_docs_v71/methods/messages_uploadMedia.md +++ b/old_docs/API_docs_v71/methods/messages_uploadMedia.md @@ -10,8 +10,8 @@ description: messages.uploadMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [MessageMedia](../types/MessageMedia.md) @@ -32,16 +32,18 @@ description: messages.uploadMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->uploadMedia(['peer' => InputPeer, 'media' => InputMedia, ]); ``` diff --git a/old_docs/API_docs_v71/methods/payments_clearSavedInfo.md b/old_docs/API_docs_v71/methods/payments_clearSavedInfo.md index fb9bae07..dc762198 100644 --- a/old_docs/API_docs_v71/methods/payments_clearSavedInfo.md +++ b/old_docs/API_docs_v71/methods/payments_clearSavedInfo.md @@ -23,13 +23,18 @@ description: payments.clearSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); ``` diff --git a/old_docs/API_docs_v71/methods/payments_getPaymentForm.md b/old_docs/API_docs_v71/methods/payments_getPaymentForm.md index 141c47f2..ee269741 100644 --- a/old_docs/API_docs_v71/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v71/methods/payments_getPaymentForm.md @@ -29,13 +29,18 @@ description: payments.getPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v71/methods/payments_getPaymentReceipt.md index f6aa1ab6..e46563d0 100644 --- a/old_docs/API_docs_v71/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v71/methods/payments_getPaymentReceipt.md @@ -29,13 +29,18 @@ description: payments.getPaymentReceipt parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/payments_getSavedInfo.md b/old_docs/API_docs_v71/methods/payments_getSavedInfo.md index 4104679a..ae1fcf33 100644 --- a/old_docs/API_docs_v71/methods/payments_getSavedInfo.md +++ b/old_docs/API_docs_v71/methods/payments_getSavedInfo.md @@ -17,13 +17,18 @@ description: payments.getSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); ``` diff --git a/old_docs/API_docs_v71/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v71/methods/payments_sendPaymentForm.md index 180a7279..08505110 100644 --- a/old_docs/API_docs_v71/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v71/methods/payments_sendPaymentForm.md @@ -32,13 +32,18 @@ description: payments.sendPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); ``` diff --git a/old_docs/API_docs_v71/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v71/methods/payments_validateRequestedInfo.md index acfd1852..ebfc5c22 100644 --- a/old_docs/API_docs_v71/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v71/methods/payments_validateRequestedInfo.md @@ -31,13 +31,18 @@ description: payments.validateRequestedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); ``` diff --git a/old_docs/API_docs_v71/methods/phone_acceptCall.md b/old_docs/API_docs_v71/methods/phone_acceptCall.md index 79266f27..49029aed 100644 --- a/old_docs/API_docs_v71/methods/phone_acceptCall.md +++ b/old_docs/API_docs_v71/methods/phone_acceptCall.md @@ -1,12 +1,12 @@ --- title: phone.acceptCall -description: phone.acceptCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.acceptCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v71/methods/phone_confirmCall.md b/old_docs/API_docs_v71/methods/phone_confirmCall.md index 69e90751..5c7bb15c 100644 --- a/old_docs/API_docs_v71/methods/phone_confirmCall.md +++ b/old_docs/API_docs_v71/methods/phone_confirmCall.md @@ -1,12 +1,12 @@ --- title: phone.confirmCall -description: phone.confirmCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.confirmCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v71/methods/phone_discardCall.md b/old_docs/API_docs_v71/methods/phone_discardCall.md index c300e61c..c01d1014 100644 --- a/old_docs/API_docs_v71/methods/phone_discardCall.md +++ b/old_docs/API_docs_v71/methods/phone_discardCall.md @@ -1,12 +1,12 @@ --- title: phone.discardCall -description: phone.discardCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.discardCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v71/methods/phone_getCallConfig.md b/old_docs/API_docs_v71/methods/phone_getCallConfig.md index 3f18d7ca..636ae946 100644 --- a/old_docs/API_docs_v71/methods/phone_getCallConfig.md +++ b/old_docs/API_docs_v71/methods/phone_getCallConfig.md @@ -17,13 +17,18 @@ description: phone.getCallConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); ``` diff --git a/old_docs/API_docs_v71/methods/phone_receivedCall.md b/old_docs/API_docs_v71/methods/phone_receivedCall.md index 8ca6a4e1..00b51aed 100644 --- a/old_docs/API_docs_v71/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v71/methods/phone_receivedCall.md @@ -30,13 +30,18 @@ description: phone.receivedCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); ``` diff --git a/old_docs/API_docs_v71/methods/phone_requestCall.md b/old_docs/API_docs_v71/methods/phone_requestCall.md index c8ae48a9..be45437e 100644 --- a/old_docs/API_docs_v71/methods/phone_requestCall.md +++ b/old_docs/API_docs_v71/methods/phone_requestCall.md @@ -1,12 +1,12 @@ --- title: phone.requestCall -description: phone.requestCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.requestCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v71/methods/phone_saveCallDebug.md b/old_docs/API_docs_v71/methods/phone_saveCallDebug.md index ea3fa2d7..90135792 100644 --- a/old_docs/API_docs_v71/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v71/methods/phone_saveCallDebug.md @@ -31,13 +31,18 @@ description: phone.saveCallDebug parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v71/methods/phone_setCallRating.md b/old_docs/API_docs_v71/methods/phone_setCallRating.md index c6e5d7fa..21570b80 100644 --- a/old_docs/API_docs_v71/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v71/methods/phone_setCallRating.md @@ -31,13 +31,18 @@ description: phone.setCallRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/photos_deletePhotos.md b/old_docs/API_docs_v71/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v71/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v71/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/photos_getUserPhotos.md b/old_docs/API_docs_v71/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v71/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v71/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v71/methods/photos_updateProfilePhoto.md index cc79a625..1ed6fb24 100644 --- a/old_docs/API_docs_v71/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v71/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| ### Return type: [UserProfilePhoto](../types/UserProfilePhoto.md) @@ -22,13 +22,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); ``` diff --git a/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md index 075dab4b..4b20315b 100644 --- a/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| ### Return type: [photos\_Photo](../types/photos_Photo.md) @@ -32,13 +32,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); ``` diff --git a/old_docs/API_docs_v71/methods/ping.md b/old_docs/API_docs_v71/methods/ping.md index 7c20ca86..18f5a2bd 100644 --- a/old_docs/API_docs_v71/methods/ping.md +++ b/old_docs/API_docs_v71/methods/ping.md @@ -1,16 +1,18 @@ --- title: ping -description: ping parameters, return type and example +description: pings the server --- ## Method: ping [Back to methods index](index.md) +pings the server + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ping\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ping\_id|[long](../types/long.md) | Yes|Ping ID| ### Return type: [Pong](../types/Pong.md) @@ -22,16 +24,18 @@ description: ping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Pong = $MadelineProto->ping(['ping_id' => long, ]); ``` diff --git a/old_docs/API_docs_v71/methods/ping_delay_disconnect.md b/old_docs/API_docs_v71/methods/ping_delay_disconnect.md index e8b62005..709f8026 100644 --- a/old_docs/API_docs_v71/methods/ping_delay_disconnect.md +++ b/old_docs/API_docs_v71/methods/ping_delay_disconnect.md @@ -1,17 +1,19 @@ --- title: ping_delay_disconnect -description: ping_delay_disconnect parameters, return type and example +description: Pings the server and causes disconection if the same method is not called within ping_disconnect_delay --- ## Method: ping\_delay\_disconnect [Back to methods index](index.md) +Pings the server and causes disconection if the same method is not called within ping_disconnect_delay + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ping\_id|[long](../types/long.md) | Yes| -|disconnect\_delay|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ping\_id|[long](../types/long.md) | Yes|Ping ID| +|disconnect\_delay|[int](../types/int.md) | Yes|Disconection delay| ### Return type: [Pong](../types/Pong.md) @@ -23,16 +25,18 @@ description: ping_delay_disconnect parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Pong = $MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/req_DH_params.md b/old_docs/API_docs_v71/methods/req_DH_params.md index 697540d8..b0cc4418 100644 --- a/old_docs/API_docs_v71/methods/req_DH_params.md +++ b/old_docs/API_docs_v71/methods/req_DH_params.md @@ -1,21 +1,23 @@ --- title: req_DH_params -description: req_DH_params parameters, return type and example +description: Requests Diffie-hellman parameters for key exchange --- ## Method: req\_DH\_params [Back to methods index](index.md) +Requests Diffie-hellman parameters for key exchange + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| -|server\_nonce|[int128](../types/int128.md) | Yes| -|p|[string](../types/string.md) | Yes| -|q|[string](../types/string.md) | Yes| -|public\_key\_fingerprint|[long](../types/long.md) | Yes| -|encrypted\_data|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| +|server\_nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security, given by server| +|p|[string](../types/string.md) | Yes|| +|q|[string](../types/string.md) | Yes|| +|public\_key\_fingerprint|[long](../types/long.md) | Yes|Server RSA fingerprint| +|encrypted\_data|[string](../types/string.md) | Yes|| ### Return type: [Server\_DH\_Params](../types/Server_DH_Params.md) @@ -27,16 +29,18 @@ description: req_DH_params parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Server_DH_Params = $MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => 'string', 'q' => 'string', 'public_key_fingerprint' => long, 'encrypted_data' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/req_pq.md b/old_docs/API_docs_v71/methods/req_pq.md index 7a583643..39a1715b 100644 --- a/old_docs/API_docs_v71/methods/req_pq.md +++ b/old_docs/API_docs_v71/methods/req_pq.md @@ -1,16 +1,18 @@ --- title: req_pq -description: req_pq parameters, return type and example +description: Requests PQ for factorization --- ## Method: req\_pq [Back to methods index](index.md) +Requests PQ for factorization + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| ### Return type: [ResPQ](../types/ResPQ.md) @@ -22,16 +24,18 @@ description: req_pq parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ResPQ = $MadelineProto->req_pq(['nonce' => int128, ]); ``` diff --git a/old_docs/API_docs_v71/methods/rpc_drop_answer.md b/old_docs/API_docs_v71/methods/rpc_drop_answer.md index e15ddca9..225a43b5 100644 --- a/old_docs/API_docs_v71/methods/rpc_drop_answer.md +++ b/old_docs/API_docs_v71/methods/rpc_drop_answer.md @@ -1,16 +1,18 @@ --- title: rpc_drop_answer -description: rpc_drop_answer parameters, return type and example +description: Do not send answer to provided request --- ## Method: rpc\_drop\_answer [Back to methods index](index.md) +Do not send answer to provided request + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|req\_msg\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|req\_msg\_id|[long](../types/long.md) | Yes|The message ID of the request| ### Return type: [RpcDropAnswer](../types/RpcDropAnswer.md) @@ -22,16 +24,18 @@ description: rpc_drop_answer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $RpcDropAnswer = $MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]); ``` diff --git a/old_docs/API_docs_v71/methods/set_client_DH_params.md b/old_docs/API_docs_v71/methods/set_client_DH_params.md index 8721ed40..4af21a12 100644 --- a/old_docs/API_docs_v71/methods/set_client_DH_params.md +++ b/old_docs/API_docs_v71/methods/set_client_DH_params.md @@ -1,18 +1,20 @@ --- title: set_client_DH_params -description: set_client_DH_params parameters, return type and example +description: Sets client diffie-hellman parameters --- ## Method: set\_client\_DH\_params [Back to methods index](index.md) +Sets client diffie-hellman parameters + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| -|server\_nonce|[int128](../types/int128.md) | Yes| -|encrypted\_data|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| +|server\_nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security, given by server| +|encrypted\_data|[string](../types/string.md) | Yes|| ### Return type: [Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) @@ -24,16 +26,18 @@ description: set_client_DH_params parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Set_client_DH_params_answer = $MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => 'string', ]); ``` diff --git a/old_docs/API_docs_v71/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v71/methods/stickers_addStickerToSet.md index e7fa6ed4..f70d14fb 100644 --- a/old_docs/API_docs_v71/methods/stickers_addStickerToSet.md +++ b/old_docs/API_docs_v71/methods/stickers_addStickerToSet.md @@ -31,16 +31,18 @@ description: stickers.addStickerToSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->addStickerToSet(['stickerset' => InputStickerSet, 'sticker' => InputStickerSetItem, ]); ``` diff --git a/old_docs/API_docs_v71/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v71/methods/stickers_changeStickerPosition.md index bcbbc57d..05597041 100644 --- a/old_docs/API_docs_v71/methods/stickers_changeStickerPosition.md +++ b/old_docs/API_docs_v71/methods/stickers_changeStickerPosition.md @@ -10,7 +10,7 @@ description: stickers.changeStickerPosition parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|sticker|[InputDocument](../types/InputDocument.md) | Optional| +|sticker|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |position|[int](../types/int.md) | Yes| @@ -31,16 +31,18 @@ description: stickers.changeStickerPosition parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->changeStickerPosition(['sticker' => InputDocument, 'position' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/stickers_createStickerSet.md b/old_docs/API_docs_v71/methods/stickers_createStickerSet.md index ba8a2d71..1db94b11 100644 --- a/old_docs/API_docs_v71/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v71/methods/stickers_createStickerSet.md @@ -11,7 +11,7 @@ description: stickers.createStickerSet parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |masks|[Bool](../types/Bool.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |title|[string](../types/string.md) | Yes| |short\_name|[string](../types/string.md) | Yes| |stickers|Array of [InputStickerSetItem](../types/InputStickerSetItem.md) | Yes| @@ -41,18 +41,20 @@ description: stickers.createStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem, InputStickerSetItem], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v71/methods/stickers_removeStickerFromSet.md index adb64e07..6a37b6a4 100644 --- a/old_docs/API_docs_v71/methods/stickers_removeStickerFromSet.md +++ b/old_docs/API_docs_v71/methods/stickers_removeStickerFromSet.md @@ -10,7 +10,7 @@ description: stickers.removeStickerFromSet parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|sticker|[InputDocument](../types/InputDocument.md) | Optional| +|sticker|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| ### Return type: [messages\_StickerSet](../types/messages_StickerSet.md) @@ -30,16 +30,18 @@ description: stickers.removeStickerFromSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->removeStickerFromSet(['sticker' => InputDocument, ]); ``` diff --git a/old_docs/API_docs_v71/methods/updates_getChannelDifference.md b/old_docs/API_docs_v71/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v71/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v71/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v71/methods/updates_getDifference.md b/old_docs/API_docs_v71/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v71/methods/updates_getDifference.md +++ b/old_docs/API_docs_v71/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v71/methods/updates_getState.md b/old_docs/API_docs_v71/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v71/methods/updates_getState.md +++ b/old_docs/API_docs_v71/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v71/methods/upload_getCdnFile.md b/old_docs/API_docs_v71/methods/upload_getCdnFile.md index 3a0cd50e..7e1eefcc 100644 --- a/old_docs/API_docs_v71/methods/upload_getCdnFile.md +++ b/old_docs/API_docs_v71/methods/upload_getCdnFile.md @@ -1,12 +1,12 @@ --- title: upload.getCdnFile -description: upload.getCdnFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v71/methods/upload_getCdnFileHashes.md b/old_docs/API_docs_v71/methods/upload_getCdnFileHashes.md index 2ab7792b..2bf24b5e 100644 --- a/old_docs/API_docs_v71/methods/upload_getCdnFileHashes.md +++ b/old_docs/API_docs_v71/methods/upload_getCdnFileHashes.md @@ -1,12 +1,12 @@ --- title: upload.getCdnFileHashes -description: upload.getCdnFileHashes parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v71/methods/upload_getFile.md b/old_docs/API_docs_v71/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v71/methods/upload_getFile.md +++ b/old_docs/API_docs_v71/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v71/methods/upload_getWebFile.md b/old_docs/API_docs_v71/methods/upload_getWebFile.md index 8744dac5..ca200db1 100644 --- a/old_docs/API_docs_v71/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v71/methods/upload_getWebFile.md @@ -31,13 +31,18 @@ description: upload.getWebFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v71/methods/upload_reuploadCdnFile.md b/old_docs/API_docs_v71/methods/upload_reuploadCdnFile.md index 4c00bbd0..13d93ec1 100644 --- a/old_docs/API_docs_v71/methods/upload_reuploadCdnFile.md +++ b/old_docs/API_docs_v71/methods/upload_reuploadCdnFile.md @@ -1,12 +1,12 @@ --- title: upload.reuploadCdnFile -description: upload.reuploadCdnFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v71/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v71/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v71/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v71/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v71/methods/upload_saveFilePart.md b/old_docs/API_docs_v71/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v71/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v71/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v71/methods/users_getFullUser.md b/old_docs/API_docs_v71/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v71/methods/users_getFullUser.md +++ b/old_docs/API_docs_v71/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v71/methods/users_getUsers.md b/old_docs/API_docs_v71/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v71/methods/users_getUsers.md +++ b/old_docs/API_docs_v71/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v71/types/Chat.md b/old_docs/API_docs_v71/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v71/types/Chat.md +++ b/old_docs/API_docs_v71/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v71/types/InputChannel.md b/old_docs/API_docs_v71/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v71/types/InputChannel.md +++ b/old_docs/API_docs_v71/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v71/types/InputDocument.md b/old_docs/API_docs_v71/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v71/types/InputDocument.md +++ b/old_docs/API_docs_v71/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v71/types/InputEncryptedChat.md b/old_docs/API_docs_v71/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v71/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v71/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v71/types/InputEncryptedFile.md b/old_docs/API_docs_v71/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v71/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v71/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v71/types/InputFile.md b/old_docs/API_docs_v71/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v71/types/InputFile.md +++ b/old_docs/API_docs_v71/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v71/types/InputMedia.md b/old_docs/API_docs_v71/types/InputMedia.md index e22c3a6c..0f83936f 100644 --- a/old_docs/API_docs_v71/types/InputMedia.md +++ b/old_docs/API_docs_v71/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v71/types/InputPeer.md b/old_docs/API_docs_v71/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v71/types/InputPeer.md +++ b/old_docs/API_docs_v71/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v71/types/InputPhoto.md b/old_docs/API_docs_v71/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v71/types/InputPhoto.md +++ b/old_docs/API_docs_v71/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v71/types/InputUser.md b/old_docs/API_docs_v71/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v71/types/InputUser.md +++ b/old_docs/API_docs_v71/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v71/types/Peer.md b/old_docs/API_docs_v71/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v71/types/Peer.md +++ b/old_docs/API_docs_v71/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v71/types/PhoneCall.md b/old_docs/API_docs_v71/types/PhoneCall.md index e70eda8e..1a91a72e 100644 --- a/old_docs/API_docs_v71/types/PhoneCall.md +++ b/old_docs/API_docs_v71/types/PhoneCall.md @@ -9,7 +9,7 @@ description: constructors and methods of type PhoneCall 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://daniil.it/MadelineProto#calls) for an easy installation script. +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. @@ -83,8 +83,8 @@ Call states (these constants are incrementing integers, thus can be compared lik * `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://daniil.it/MadelineProto/API_docs/types/PhoneCallProtocol.html) object -* `getCallID()` - Gets the call ID, as an [InputPhoneCall](https://daniil.it/MadelineProto/API_docs/types/InputPhoneCall.html) object +* `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 @@ -102,7 +102,7 @@ Call states (these constants are incrementing integers, thus can be compared lik Accepts two optional parameters: -`$reason` - can be a [PhoneCallDiscardReason](https://daniil.it/MadelineProto/API_docs/types/PhoneCallDiscardReason.html) object (defaults to a [phoneCallDiscardReasonDisconnect](https://daniil.it/MadelineProto/API_docs/constructors/phoneCallDiscardReasonDisconnect.html) object). +`$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.` diff --git a/old_docs/API_docs_v71/types/User.md b/old_docs/API_docs_v71/types/User.md index d696a931..f748d04a 100644 --- a/old_docs/API_docs_v71/types/User.md +++ b/old_docs/API_docs_v71/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v72/constructors/account_authorizations.md b/old_docs/API_docs_v72/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v72/constructors/account_authorizations.md +++ b/old_docs/API_docs_v72/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/account_privacyRules.md b/old_docs/API_docs_v72/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v72/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v72/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/botInfo.md b/old_docs/API_docs_v72/constructors/botInfo.md index bee4a540..25a27913 100644 --- a/old_docs/API_docs_v72/constructors/botInfo.md +++ b/old_docs/API_docs_v72/constructors/botInfo.md @@ -23,7 +23,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/botInlineMessageText.md b/old_docs/API_docs_v72/constructors/botInlineMessageText.md index dc00808b..feb5e9d0 100644 --- a/old_docs/API_docs_v72/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v72/constructors/botInlineMessageText.md @@ -24,7 +24,7 @@ description: botInlineMessageText attributes, type and example ### Example: ``` -$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/cdnConfig.md b/old_docs/API_docs_v72/constructors/cdnConfig.md index 28e814e5..2bf5d200 100644 --- a/old_docs/API_docs_v72/constructors/cdnConfig.md +++ b/old_docs/API_docs_v72/constructors/cdnConfig.md @@ -21,7 +21,7 @@ description: cdnConfig attributes, type and example ### Example: ``` -$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey]]; +$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey, CdnPublicKey]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/channelFull.md b/old_docs/API_docs_v72/constructors/channelFull.md index f32618fe..14974fd3 100644 --- a/old_docs/API_docs_v72/constructors/channelFull.md +++ b/old_docs/API_docs_v72/constructors/channelFull.md @@ -42,7 +42,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'hidden_prehistory' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_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]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'hidden_prehistory' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_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: diff --git a/old_docs/API_docs_v72/constructors/channelMessagesFilter.md b/old_docs/API_docs_v72/constructors/channelMessagesFilter.md index 0a731ce9..ad9a592e 100644 --- a/old_docs/API_docs_v72/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v72/constructors/channelMessagesFilter.md @@ -22,7 +22,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/channels_adminLogResults.md b/old_docs/API_docs_v72/constructors/channels_adminLogResults.md index f0eb0e66..1ef19a76 100644 --- a/old_docs/API_docs_v72/constructors/channels_adminLogResults.md +++ b/old_docs/API_docs_v72/constructors/channels_adminLogResults.md @@ -23,7 +23,7 @@ description: channels_adminLogResults attributes, type and example ### Example: ``` -$channels_adminLogResults = ['_' => 'channels.adminLogResults', 'events' => [ChannelAdminLogEvent], 'chats' => [Chat], 'users' => [User]]; +$channels_adminLogResults = ['_' => 'channels.adminLogResults', 'events' => [ChannelAdminLogEvent, ChannelAdminLogEvent], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/channels_channelParticipant.md b/old_docs/API_docs_v72/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v72/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v72/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/channels_channelParticipants.md b/old_docs/API_docs_v72/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v72/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v72/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/chatFull.md b/old_docs/API_docs_v72/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v72/constructors/chatFull.md +++ b/old_docs/API_docs_v72/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/chatInvite.md b/old_docs/API_docs_v72/constructors/chatInvite.md index e7000f7b..e9087e0d 100644 --- a/old_docs/API_docs_v72/constructors/chatInvite.md +++ b/old_docs/API_docs_v72/constructors/chatInvite.md @@ -28,7 +28,7 @@ description: chatInvite attributes, type and example ### Example: ``` -$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [User]]; +$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: diff --git a/old_docs/API_docs_v72/constructors/chatParticipants.md b/old_docs/API_docs_v72/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v72/constructors/chatParticipants.md +++ b/old_docs/API_docs_v72/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/config.md b/old_docs/API_docs_v72/constructors/config.md index a5791efb..a60081a9 100644 --- a/old_docs/API_docs_v72/constructors/config.md +++ b/old_docs/API_docs_v72/constructors/config.md @@ -54,7 +54,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_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', 'suggested_lang_code' => 'string', 'lang_pack_version' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_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', 'suggested_lang_code' => 'string', 'lang_pack_version' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/contacts_blocked.md b/old_docs/API_docs_v72/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v72/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v72/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v72/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v72/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v72/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/contacts_contacts.md b/old_docs/API_docs_v72/constructors/contacts_contacts.md index 17e4ddc1..f239b0b7 100644 --- a/old_docs/API_docs_v72/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v72/constructors/contacts_contacts.md @@ -23,7 +23,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'saved_count' => int, 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'saved_count' => int, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/contacts_found.md b/old_docs/API_docs_v72/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v72/constructors/contacts_found.md +++ b/old_docs/API_docs_v72/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/contacts_importedContacts.md b/old_docs/API_docs_v72/constructors/contacts_importedContacts.md index ae85f35e..e4d017c0 100644 --- a/old_docs/API_docs_v72/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v72/constructors/contacts_importedContacts.md @@ -24,7 +24,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'popular_invites' => [PopularContact], 'retry_contacts' => [long], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v72/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v72/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v72/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v72/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/contacts_topPeers.md b/old_docs/API_docs_v72/constructors/contacts_topPeers.md index 17551f5d..07623018 100644 --- a/old_docs/API_docs_v72/constructors/contacts_topPeers.md +++ b/old_docs/API_docs_v72/constructors/contacts_topPeers.md @@ -23,7 +23,7 @@ description: contacts_topPeers attributes, type and example ### Example: ``` -$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers], 'chats' => [Chat], 'users' => [User]]; +$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers, TopPeerCategoryPeers], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/document.md b/old_docs/API_docs_v72/constructors/document.md index 8c0883bb..55d4c017 100644 --- a/old_docs/API_docs_v72/constructors/document.md +++ b/old_docs/API_docs_v72/constructors/document.md @@ -29,7 +29,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/documentAttributeAudio.md b/old_docs/API_docs_v72/constructors/documentAttributeAudio.md index 4d393890..ceb02cba 100644 --- a/old_docs/API_docs_v72/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v72/constructors/documentAttributeAudio.md @@ -12,7 +12,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| |voice|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Optional| |performer|[string](../types/string.md) | Optional| |waveform|[bytes](../types/bytes.md) | Optional| diff --git a/old_docs/API_docs_v72/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v72/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v72/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v72/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v72/constructors/documentAttributeVideo.md b/old_docs/API_docs_v72/constructors/documentAttributeVideo.md index 38ce9302..5c367fc9 100644 --- a/old_docs/API_docs_v72/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v72/constructors/documentAttributeVideo.md @@ -12,9 +12,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| |round\_message|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v72/constructors/draftMessage.md b/old_docs/API_docs_v72/constructors/draftMessage.md index 13277194..644adc43 100644 --- a/old_docs/API_docs_v72/constructors/draftMessage.md +++ b/old_docs/API_docs_v72/constructors/draftMessage.md @@ -25,7 +25,7 @@ description: draftMessage attributes, type and example ### Example: ``` -$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity], 'date' => int]; +$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'date' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/future_salts.md b/old_docs/API_docs_v72/constructors/future_salts.md index 4fb8d0f3..a0e695cc 100644 --- a/old_docs/API_docs_v72/constructors/future_salts.md +++ b/old_docs/API_docs_v72/constructors/future_salts.md @@ -23,7 +23,7 @@ description: future_salts attributes, type and example ### Example: ``` -$future_salts = ['_' => 'future_salts', 'req_msg_id' => long, 'now' => int, 'salts' => [future_salt]]; +$future_salts = ['_' => 'future_salts', 'req_msg_id' => long, 'now' => int, 'salts' => [future_salt, future_salt]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/help_configSimple.md b/old_docs/API_docs_v72/constructors/help_configSimple.md index 0b670a2b..63d274a4 100644 --- a/old_docs/API_docs_v72/constructors/help_configSimple.md +++ b/old_docs/API_docs_v72/constructors/help_configSimple.md @@ -24,7 +24,7 @@ description: help_configSimple attributes, type and example ### Example: ``` -$help_configSimple = ['_' => 'help.configSimple', 'date' => int, 'expires' => int, 'dc_id' => int, 'ip_port_list' => [ipPort]]; +$help_configSimple = ['_' => 'help.configSimple', 'date' => int, 'expires' => int, 'dc_id' => int, 'ip_port_list' => [ipPort, ipPort]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/help_recentMeUrls.md b/old_docs/API_docs_v72/constructors/help_recentMeUrls.md index 282945dd..04d9d1e4 100644 --- a/old_docs/API_docs_v72/constructors/help_recentMeUrls.md +++ b/old_docs/API_docs_v72/constructors/help_recentMeUrls.md @@ -23,7 +23,7 @@ description: help_recentMeUrls attributes, type and example ### Example: ``` -$help_recentMeUrls = ['_' => 'help.recentMeUrls', 'urls' => [RecentMeUrl], 'chats' => [Chat], 'users' => [User]]; +$help_recentMeUrls = ['_' => 'help.recentMeUrls', 'urls' => [RecentMeUrl, RecentMeUrl], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v72/constructors/inputBotInlineMessageText.md index 677e5d8c..ed3ddd1b 100644 --- a/old_docs/API_docs_v72/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v72/constructors/inputBotInlineMessageText.md @@ -24,7 +24,7 @@ description: inputBotInlineMessageText attributes, type and example ### Example: ``` -$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/inputBotInlineResultDocument.md b/old_docs/API_docs_v72/constructors/inputBotInlineResultDocument.md index 2315623b..f27421f9 100644 --- a/old_docs/API_docs_v72/constructors/inputBotInlineResultDocument.md +++ b/old_docs/API_docs_v72/constructors/inputBotInlineResultDocument.md @@ -15,7 +15,7 @@ description: inputBotInlineResultDocument attributes, type and example |type|[string](../types/string.md) | Yes| |title|[string](../types/string.md) | Optional| |description|[string](../types/string.md) | Optional| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v72/constructors/inputBotInlineResultPhoto.md b/old_docs/API_docs_v72/constructors/inputBotInlineResultPhoto.md index d39bd108..9628b4e5 100644 --- a/old_docs/API_docs_v72/constructors/inputBotInlineResultPhoto.md +++ b/old_docs/API_docs_v72/constructors/inputBotInlineResultPhoto.md @@ -13,7 +13,7 @@ description: inputBotInlineResultPhoto attributes, type and example |----------|---------------|----------| |id|[string](../types/string.md) | Yes| |type|[string](../types/string.md) | Yes| -|photo|[InputPhoto](../types/InputPhoto.md) | Optional| +|photo|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v72/constructors/inputChatPhoto.md b/old_docs/API_docs_v72/constructors/inputChatPhoto.md index e787f342..ae979308 100644 --- a/old_docs/API_docs_v72/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v72/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v72/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v72/constructors/inputChatUploadedPhoto.md index 78c28fdc..e9d2f354 100644 --- a/old_docs/API_docs_v72/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v72/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| diff --git a/old_docs/API_docs_v72/constructors/inputGameShortName.md b/old_docs/API_docs_v72/constructors/inputGameShortName.md index 64c55c18..0261912a 100644 --- a/old_docs/API_docs_v72/constructors/inputGameShortName.md +++ b/old_docs/API_docs_v72/constructors/inputGameShortName.md @@ -11,7 +11,7 @@ description: inputGameShortName attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|bot\_id|[InputUser](../types/InputUser.md) | Optional| +|bot\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |short\_name|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v72/constructors/inputMediaDocument.md b/old_docs/API_docs_v72/constructors/inputMediaDocument.md index 1e97ec2d..ac7b262e 100644 --- a/old_docs/API_docs_v72/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v72/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |caption|[string](../types/string.md) | Yes| |ttl\_seconds|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v72/constructors/inputMediaPhoto.md b/old_docs/API_docs_v72/constructors/inputMediaPhoto.md index e952098b..f14440b0 100644 --- a/old_docs/API_docs_v72/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v72/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| |ttl\_seconds|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v72/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v72/constructors/inputMediaUploadedDocument.md index 0aa3c653..aec5b910 100644 --- a/old_docs/API_docs_v72/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v72/constructors/inputMediaUploadedDocument.md @@ -11,12 +11,12 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Optional| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Optional| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |ttl\_seconds|[int](../types/int.md) | Optional| @@ -27,7 +27,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument], 'ttl_seconds' => int]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument], 'ttl_seconds' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v72/constructors/inputMediaUploadedPhoto.md index 7ace8cee..ff6085c5 100644 --- a/old_docs/API_docs_v72/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v72/constructors/inputMediaUploadedPhoto.md @@ -11,9 +11,9 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |ttl\_seconds|[int](../types/int.md) | Optional| @@ -24,7 +24,7 @@ description: inputMediaUploadedPhoto attributes, type and example ### Example: ``` -$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument], 'ttl_seconds' => int]; +$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument, InputDocument], 'ttl_seconds' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/inputNotifyPeer.md b/old_docs/API_docs_v72/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v72/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v72/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v72/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v72/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v72/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v72/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v72/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v72/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v72/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/inputStickerSetItem.md b/old_docs/API_docs_v72/constructors/inputStickerSetItem.md index 84ae0e46..749330b9 100644 --- a/old_docs/API_docs_v72/constructors/inputStickerSetItem.md +++ b/old_docs/API_docs_v72/constructors/inputStickerSetItem.md @@ -11,7 +11,7 @@ description: inputStickerSetItem attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |emoji|[string](../types/string.md) | Yes| |mask\_coords|[MaskCoords](../types/MaskCoords.md) | Optional| diff --git a/old_docs/API_docs_v72/constructors/inputStickeredMediaDocument.md b/old_docs/API_docs_v72/constructors/inputStickeredMediaDocument.md index ca9921e7..c281b7e5 100644 --- a/old_docs/API_docs_v72/constructors/inputStickeredMediaDocument.md +++ b/old_docs/API_docs_v72/constructors/inputStickeredMediaDocument.md @@ -11,7 +11,7 @@ description: inputStickeredMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v72/constructors/inputStickeredMediaPhoto.md b/old_docs/API_docs_v72/constructors/inputStickeredMediaPhoto.md index ac0428e1..042044b0 100644 --- a/old_docs/API_docs_v72/constructors/inputStickeredMediaPhoto.md +++ b/old_docs/API_docs_v72/constructors/inputStickeredMediaPhoto.md @@ -11,7 +11,7 @@ description: inputStickeredMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v72/constructors/inputWebDocument.md b/old_docs/API_docs_v72/constructors/inputWebDocument.md index 81f2707a..dd9a24ff 100644 --- a/old_docs/API_docs_v72/constructors/inputWebDocument.md +++ b/old_docs/API_docs_v72/constructors/inputWebDocument.md @@ -24,7 +24,7 @@ description: inputWebDocument attributes, type and example ### Example: ``` -$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/invoice.md b/old_docs/API_docs_v72/constructors/invoice.md index ddccf1b6..80a56a08 100644 --- a/old_docs/API_docs_v72/constructors/invoice.md +++ b/old_docs/API_docs_v72/constructors/invoice.md @@ -28,7 +28,7 @@ description: invoice attributes, type and example ### Example: ``` -$invoice = ['_' => 'invoice', 'test' => Bool, 'name_requested' => Bool, 'phone_requested' => Bool, 'email_requested' => Bool, 'shipping_address_requested' => Bool, 'flexible' => Bool, 'currency' => 'string', 'prices' => [LabeledPrice]]; +$invoice = ['_' => 'invoice', 'test' => Bool, 'name_requested' => Bool, 'phone_requested' => Bool, 'email_requested' => Bool, 'shipping_address_requested' => Bool, 'flexible' => Bool, 'currency' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/keyboardButtonRow.md b/old_docs/API_docs_v72/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v72/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v72/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/langPackDifference.md b/old_docs/API_docs_v72/constructors/langPackDifference.md index 0d077158..3447d739 100644 --- a/old_docs/API_docs_v72/constructors/langPackDifference.md +++ b/old_docs/API_docs_v72/constructors/langPackDifference.md @@ -24,7 +24,7 @@ description: langPackDifference attributes, type and example ### Example: ``` -$langPackDifference = ['_' => 'langPackDifference', 'lang_code' => 'string', 'from_version' => int, 'version' => int, 'strings' => [LangPackString]]; +$langPackDifference = ['_' => 'langPackDifference', 'lang_code' => 'string', 'from_version' => int, 'version' => int, 'strings' => [LangPackString, LangPackString]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/message.md b/old_docs/API_docs_v72/constructors/message.md index 98c4f04c..ec882b03 100644 --- a/old_docs/API_docs_v72/constructors/message.md +++ b/old_docs/API_docs_v72/constructors/message.md @@ -39,7 +39,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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']; +$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v72/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v72/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v72/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messageActionChatCreate.md b/old_docs/API_docs_v72/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v72/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v72/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_allStickers.md b/old_docs/API_docs_v72/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/old_docs/API_docs_v72/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v72/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_archivedStickers.md b/old_docs/API_docs_v72/constructors/messages_archivedStickers.md index 7af238d4..c9675b57 100644 --- a/old_docs/API_docs_v72/constructors/messages_archivedStickers.md +++ b/old_docs/API_docs_v72/constructors/messages_archivedStickers.md @@ -22,7 +22,7 @@ description: messages_archivedStickers attributes, type and example ### Example: ``` -$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered]]; +$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_botResults.md b/old_docs/API_docs_v72/constructors/messages_botResults.md index 481be63b..d043c50e 100644 --- a/old_docs/API_docs_v72/constructors/messages_botResults.md +++ b/old_docs/API_docs_v72/constructors/messages_botResults.md @@ -27,7 +27,7 @@ description: messages_botResults attributes, type and example ### Example: ``` -$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult], 'cache_time' => int, 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v72/constructors/messages_channelMessages.md b/old_docs/API_docs_v72/constructors/messages_channelMessages.md index 8ec11b2d..358c0c70 100644 --- a/old_docs/API_docs_v72/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v72/constructors/messages_channelMessages.md @@ -25,7 +25,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_chatFull.md b/old_docs/API_docs_v72/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v72/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v72/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_chats.md b/old_docs/API_docs_v72/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v72/constructors/messages_chats.md +++ b/old_docs/API_docs_v72/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_chatsSlice.md b/old_docs/API_docs_v72/constructors/messages_chatsSlice.md index 4e3e0e77..614c577b 100644 --- a/old_docs/API_docs_v72/constructors/messages_chatsSlice.md +++ b/old_docs/API_docs_v72/constructors/messages_chatsSlice.md @@ -22,7 +22,7 @@ description: messages_chatsSlice attributes, type and example ### Example: ``` -$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat]]; +$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_dialogs.md b/old_docs/API_docs_v72/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v72/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v72/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v72/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v72/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v72/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v72/constructors/messages_favedStickers.md b/old_docs/API_docs_v72/constructors/messages_favedStickers.md index 7fb2fba0..1a937049 100644 --- a/old_docs/API_docs_v72/constructors/messages_favedStickers.md +++ b/old_docs/API_docs_v72/constructors/messages_favedStickers.md @@ -23,7 +23,7 @@ description: messages_favedStickers attributes, type and example ### Example: ``` -$messages_favedStickers = ['_' => 'messages.favedStickers', 'hash' => int, 'packs' => [StickerPack], 'stickers' => [Document]]; +$messages_favedStickers = ['_' => 'messages.favedStickers', 'hash' => int, 'packs' => [StickerPack, StickerPack], 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_featuredStickers.md b/old_docs/API_docs_v72/constructors/messages_featuredStickers.md index dac1fd91..0fc54db1 100644 --- a/old_docs/API_docs_v72/constructors/messages_featuredStickers.md +++ b/old_docs/API_docs_v72/constructors/messages_featuredStickers.md @@ -23,7 +23,7 @@ description: messages_featuredStickers attributes, type and example ### Example: ``` -$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered], 'unread' => [long]]; +$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered, StickerSetCovered], 'unread' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_foundGifs.md b/old_docs/API_docs_v72/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/old_docs/API_docs_v72/constructors/messages_foundGifs.md +++ b/old_docs/API_docs_v72/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_highScores.md b/old_docs/API_docs_v72/constructors/messages_highScores.md index 26eab658..df592f06 100644 --- a/old_docs/API_docs_v72/constructors/messages_highScores.md +++ b/old_docs/API_docs_v72/constructors/messages_highScores.md @@ -22,7 +22,7 @@ description: messages_highScores attributes, type and example ### Example: ``` -$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore], 'users' => [User]]; +$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore, HighScore], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_messages.md b/old_docs/API_docs_v72/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v72/constructors/messages_messages.md +++ b/old_docs/API_docs_v72/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_messagesSlice.md b/old_docs/API_docs_v72/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v72/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v72/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_peerDialogs.md b/old_docs/API_docs_v72/constructors/messages_peerDialogs.md index bec6c88c..5d25b545 100644 --- a/old_docs/API_docs_v72/constructors/messages_peerDialogs.md +++ b/old_docs/API_docs_v72/constructors/messages_peerDialogs.md @@ -25,7 +25,7 @@ description: messages_peerDialogs attributes, type and example ### Example: ``` -$messages_peerDialogs = ['_' => 'messages.peerDialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v72/constructors/messages_recentStickers.md b/old_docs/API_docs_v72/constructors/messages_recentStickers.md index be5e69a0..a8a53ffe 100644 --- a/old_docs/API_docs_v72/constructors/messages_recentStickers.md +++ b/old_docs/API_docs_v72/constructors/messages_recentStickers.md @@ -22,7 +22,7 @@ description: messages_recentStickers attributes, type and example ### Example: ``` -$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document]]; +$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_savedGifs.md b/old_docs/API_docs_v72/constructors/messages_savedGifs.md index 7e2a00eb..b4ff040d 100644 --- a/old_docs/API_docs_v72/constructors/messages_savedGifs.md +++ b/old_docs/API_docs_v72/constructors/messages_savedGifs.md @@ -22,7 +22,7 @@ description: messages_savedGifs attributes, type and example ### Example: ``` -$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document]]; +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_stickerSet.md b/old_docs/API_docs_v72/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v72/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v72/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_stickerSetInstallResultArchive.md b/old_docs/API_docs_v72/constructors/messages_stickerSetInstallResultArchive.md index f3e510bb..5b7fb05f 100644 --- a/old_docs/API_docs_v72/constructors/messages_stickerSetInstallResultArchive.md +++ b/old_docs/API_docs_v72/constructors/messages_stickerSetInstallResultArchive.md @@ -21,7 +21,7 @@ description: messages_stickerSetInstallResultArchive attributes, type and exampl ### Example: ``` -$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered]]; +$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/messages_stickers.md b/old_docs/API_docs_v72/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v72/constructors/messages_stickers.md +++ b/old_docs/API_docs_v72/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/msg_resend_req.md b/old_docs/API_docs_v72/constructors/msg_resend_req.md index 6a584a1a..13e6669d 100644 --- a/old_docs/API_docs_v72/constructors/msg_resend_req.md +++ b/old_docs/API_docs_v72/constructors/msg_resend_req.md @@ -21,7 +21,7 @@ description: msg_resend_req attributes, type and example ### Example: ``` -$msg_resend_req = ['_' => 'msg_resend_req', 'msg_ids' => [long]]; +$msg_resend_req = ['_' => 'msg_resend_req', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/msgs_ack.md b/old_docs/API_docs_v72/constructors/msgs_ack.md index 6d945079..353148ea 100644 --- a/old_docs/API_docs_v72/constructors/msgs_ack.md +++ b/old_docs/API_docs_v72/constructors/msgs_ack.md @@ -21,7 +21,7 @@ description: msgs_ack attributes, type and example ### Example: ``` -$msgs_ack = ['_' => 'msgs_ack', 'msg_ids' => [long]]; +$msgs_ack = ['_' => 'msgs_ack', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/msgs_all_info.md b/old_docs/API_docs_v72/constructors/msgs_all_info.md index 632ef421..dd630f00 100644 --- a/old_docs/API_docs_v72/constructors/msgs_all_info.md +++ b/old_docs/API_docs_v72/constructors/msgs_all_info.md @@ -22,7 +22,7 @@ description: msgs_all_info attributes, type and example ### Example: ``` -$msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long], 'info' => 'string']; +$msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long, long], 'info' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/msgs_state_req.md b/old_docs/API_docs_v72/constructors/msgs_state_req.md index 3aecb1ee..76f1f05c 100644 --- a/old_docs/API_docs_v72/constructors/msgs_state_req.md +++ b/old_docs/API_docs_v72/constructors/msgs_state_req.md @@ -21,7 +21,7 @@ description: msgs_state_req attributes, type and example ### Example: ``` -$msgs_state_req = ['_' => 'msgs_state_req', 'msg_ids' => [long]]; +$msgs_state_req = ['_' => 'msgs_state_req', 'msg_ids' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/pageBlockCollage.md b/old_docs/API_docs_v72/constructors/pageBlockCollage.md index 8685b250..3950e34d 100644 --- a/old_docs/API_docs_v72/constructors/pageBlockCollage.md +++ b/old_docs/API_docs_v72/constructors/pageBlockCollage.md @@ -22,7 +22,7 @@ description: pageBlockCollage attributes, type and example ### Example: ``` -$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/pageBlockEmbedPost.md b/old_docs/API_docs_v72/constructors/pageBlockEmbedPost.md index e0e955b9..e9434dfa 100644 --- a/old_docs/API_docs_v72/constructors/pageBlockEmbedPost.md +++ b/old_docs/API_docs_v72/constructors/pageBlockEmbedPost.md @@ -27,7 +27,7 @@ description: pageBlockEmbedPost attributes, type and example ### Example: ``` -$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock], 'caption' => RichText]; +$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/pageBlockList.md b/old_docs/API_docs_v72/constructors/pageBlockList.md index 6bf3c783..728c05a7 100644 --- a/old_docs/API_docs_v72/constructors/pageBlockList.md +++ b/old_docs/API_docs_v72/constructors/pageBlockList.md @@ -22,7 +22,7 @@ description: pageBlockList attributes, type and example ### Example: ``` -$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText]]; +$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/pageBlockSlideshow.md b/old_docs/API_docs_v72/constructors/pageBlockSlideshow.md index e48d51bb..0c18e64f 100644 --- a/old_docs/API_docs_v72/constructors/pageBlockSlideshow.md +++ b/old_docs/API_docs_v72/constructors/pageBlockSlideshow.md @@ -22,7 +22,7 @@ description: pageBlockSlideshow attributes, type and example ### Example: ``` -$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/pageFull.md b/old_docs/API_docs_v72/constructors/pageFull.md index 7dabe40d..4ea43cd0 100644 --- a/old_docs/API_docs_v72/constructors/pageFull.md +++ b/old_docs/API_docs_v72/constructors/pageFull.md @@ -23,7 +23,7 @@ description: pageFull attributes, type and example ### Example: ``` -$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock], 'photos' => [Photo], 'documents' => [Document]]; +$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/pagePart.md b/old_docs/API_docs_v72/constructors/pagePart.md index a6969c73..32e8ac28 100644 --- a/old_docs/API_docs_v72/constructors/pagePart.md +++ b/old_docs/API_docs_v72/constructors/pagePart.md @@ -23,7 +23,7 @@ description: pagePart attributes, type and example ### Example: ``` -$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock], 'photos' => [Photo], 'documents' => [Document]]; +$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/payments_paymentForm.md b/old_docs/API_docs_v72/constructors/payments_paymentForm.md index 6b468a10..982b4a13 100644 --- a/old_docs/API_docs_v72/constructors/payments_paymentForm.md +++ b/old_docs/API_docs_v72/constructors/payments_paymentForm.md @@ -31,7 +31,7 @@ description: payments_paymentForm attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v72/constructors/payments_paymentReceipt.md b/old_docs/API_docs_v72/constructors/payments_paymentReceipt.md index cb64a78a..f7c6589c 100644 --- a/old_docs/API_docs_v72/constructors/payments_paymentReceipt.md +++ b/old_docs/API_docs_v72/constructors/payments_paymentReceipt.md @@ -30,7 +30,7 @@ description: payments_paymentReceipt attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v72/constructors/payments_validatedRequestedInfo.md b/old_docs/API_docs_v72/constructors/payments_validatedRequestedInfo.md index a1d841b5..362544ca 100644 --- a/old_docs/API_docs_v72/constructors/payments_validatedRequestedInfo.md +++ b/old_docs/API_docs_v72/constructors/payments_validatedRequestedInfo.md @@ -22,7 +22,7 @@ description: payments_validatedRequestedInfo attributes, type and example ### Example: ``` -$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption]]; +$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption, ShippingOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/phoneCall.md b/old_docs/API_docs_v72/constructors/phoneCall.md index 279af015..703116b5 100644 --- a/old_docs/API_docs_v72/constructors/phoneCall.md +++ b/old_docs/API_docs_v72/constructors/phoneCall.md @@ -31,7 +31,7 @@ description: phoneCall attributes, type and example ### Example: ``` -$phoneCall = ['_' => 'phoneCall', '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]; +$phoneCall = ['_' => 'phoneCall', '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: diff --git a/old_docs/API_docs_v72/constructors/phone_phoneCall.md b/old_docs/API_docs_v72/constructors/phone_phoneCall.md index 38177647..00a43b98 100644 --- a/old_docs/API_docs_v72/constructors/phone_phoneCall.md +++ b/old_docs/API_docs_v72/constructors/phone_phoneCall.md @@ -22,7 +22,7 @@ description: phone_phoneCall attributes, type and example ### Example: ``` -$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User]]; +$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/photo.md b/old_docs/API_docs_v72/constructors/photo.md index 0d6edc52..293458ca 100644 --- a/old_docs/API_docs_v72/constructors/photo.md +++ b/old_docs/API_docs_v72/constructors/photo.md @@ -25,7 +25,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/photos_photo.md b/old_docs/API_docs_v72/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v72/constructors/photos_photo.md +++ b/old_docs/API_docs_v72/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/photos_photos.md b/old_docs/API_docs_v72/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v72/constructors/photos_photos.md +++ b/old_docs/API_docs_v72/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/photos_photosSlice.md b/old_docs/API_docs_v72/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v72/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v72/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v72/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v72/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v72/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v72/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v72/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v72/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/replyInlineMarkup.md b/old_docs/API_docs_v72/constructors/replyInlineMarkup.md index 80d2ff77..95257485 100644 --- a/old_docs/API_docs_v72/constructors/replyInlineMarkup.md +++ b/old_docs/API_docs_v72/constructors/replyInlineMarkup.md @@ -21,7 +21,7 @@ description: replyInlineMarkup attributes, type and example ### Example: ``` -$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow]]; +$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v72/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v72/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v72/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/resPQ.md b/old_docs/API_docs_v72/constructors/resPQ.md index 5d6c0d6b..f4dcf3e9 100644 --- a/old_docs/API_docs_v72/constructors/resPQ.md +++ b/old_docs/API_docs_v72/constructors/resPQ.md @@ -24,7 +24,7 @@ description: resPQ attributes, type and example ### Example: ``` -$resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => 'string', 'server_public_key_fingerprints' => [long]]; +$resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => 'string', 'server_public_key_fingerprints' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/shippingOption.md b/old_docs/API_docs_v72/constructors/shippingOption.md index 32ec5182..53a0405f 100644 --- a/old_docs/API_docs_v72/constructors/shippingOption.md +++ b/old_docs/API_docs_v72/constructors/shippingOption.md @@ -23,7 +23,7 @@ description: shippingOption attributes, type and example ### Example: ``` -$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice]]; +$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/stickerPack.md b/old_docs/API_docs_v72/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v72/constructors/stickerPack.md +++ b/old_docs/API_docs_v72/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/stickerSetMultiCovered.md b/old_docs/API_docs_v72/constructors/stickerSetMultiCovered.md index 4dd5a0a7..9a337fdc 100644 --- a/old_docs/API_docs_v72/constructors/stickerSetMultiCovered.md +++ b/old_docs/API_docs_v72/constructors/stickerSetMultiCovered.md @@ -22,7 +22,7 @@ description: stickerSetMultiCovered attributes, type and example ### Example: ``` -$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document]]; +$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/textConcat.md b/old_docs/API_docs_v72/constructors/textConcat.md index 4a44d3b2..bfdb9e50 100644 --- a/old_docs/API_docs_v72/constructors/textConcat.md +++ b/old_docs/API_docs_v72/constructors/textConcat.md @@ -21,7 +21,7 @@ description: textConcat attributes, type and example ### Example: ``` -$textConcat = ['_' => 'textConcat', 'texts' => [RichText]]; +$textConcat = ['_' => 'textConcat', 'texts' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/topPeerCategoryPeers.md b/old_docs/API_docs_v72/constructors/topPeerCategoryPeers.md index acd5cf08..03b78ed3 100644 --- a/old_docs/API_docs_v72/constructors/topPeerCategoryPeers.md +++ b/old_docs/API_docs_v72/constructors/topPeerCategoryPeers.md @@ -23,7 +23,7 @@ description: topPeerCategoryPeers attributes, type and example ### Example: ``` -$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer]]; +$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer, TopPeer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/updateChannelReadMessagesContents.md b/old_docs/API_docs_v72/constructors/updateChannelReadMessagesContents.md index 7b69edd8..419e7d12 100644 --- a/old_docs/API_docs_v72/constructors/updateChannelReadMessagesContents.md +++ b/old_docs/API_docs_v72/constructors/updateChannelReadMessagesContents.md @@ -22,7 +22,7 @@ description: updateChannelReadMessagesContents attributes, type and example ### Example: ``` -$updateChannelReadMessagesContents = ['_' => 'updateChannelReadMessagesContents', 'channel_id' => int, 'messages' => [int]]; +$updateChannelReadMessagesContents = ['_' => 'updateChannelReadMessagesContents', 'channel_id' => int, 'messages' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/updateDcOptions.md b/old_docs/API_docs_v72/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v72/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v72/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v72/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v72/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v72/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/updateDeleteMessages.md b/old_docs/API_docs_v72/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v72/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v72/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/updatePinnedDialogs.md b/old_docs/API_docs_v72/constructors/updatePinnedDialogs.md index a531ad75..c38d664c 100644 --- a/old_docs/API_docs_v72/constructors/updatePinnedDialogs.md +++ b/old_docs/API_docs_v72/constructors/updatePinnedDialogs.md @@ -21,7 +21,7 @@ description: updatePinnedDialogs attributes, type and example ### Example: ``` -$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer]]; +$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer, Peer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/updatePrivacy.md b/old_docs/API_docs_v72/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v72/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v72/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v72/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v72/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v72/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/updateServiceNotification.md b/old_docs/API_docs_v72/constructors/updateServiceNotification.md index 562d1089..92280ccf 100644 --- a/old_docs/API_docs_v72/constructors/updateServiceNotification.md +++ b/old_docs/API_docs_v72/constructors/updateServiceNotification.md @@ -26,7 +26,7 @@ description: updateServiceNotification attributes, type and example ### Example: ``` -$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/updateShortChatMessage.md b/old_docs/API_docs_v72/constructors/updateShortChatMessage.md index 08aa61a5..f6310d0d 100644 --- a/old_docs/API_docs_v72/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v72/constructors/updateShortChatMessage.md @@ -35,7 +35,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v72/constructors/updateShortMessage.md b/old_docs/API_docs_v72/constructors/updateShortMessage.md index 608d2a30..24f07b99 100644 --- a/old_docs/API_docs_v72/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v72/constructors/updateShortMessage.md @@ -34,7 +34,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v72/constructors/updateShortSentMessage.md b/old_docs/API_docs_v72/constructors/updateShortSentMessage.md index 28f82e3a..ebc40cf9 100644 --- a/old_docs/API_docs_v72/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v72/constructors/updateShortSentMessage.md @@ -27,7 +27,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$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: diff --git a/old_docs/API_docs_v72/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v72/constructors/updateStickerSetsOrder.md index 53637821..7b29b8f2 100644 --- a/old_docs/API_docs_v72/constructors/updateStickerSetsOrder.md +++ b/old_docs/API_docs_v72/constructors/updateStickerSetsOrder.md @@ -22,7 +22,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/updates.md b/old_docs/API_docs_v72/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v72/constructors/updates.md +++ b/old_docs/API_docs_v72/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/updatesCombined.md b/old_docs/API_docs_v72/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v72/constructors/updatesCombined.md +++ b/old_docs/API_docs_v72/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v72/constructors/updates_channelDifference.md b/old_docs/API_docs_v72/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v72/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v72/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v72/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v72/constructors/updates_channelDifferenceTooLong.md index 0b2c46be..3bb04cf4 100644 --- a/old_docs/API_docs_v72/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v72/constructors/updates_channelDifferenceTooLong.md @@ -31,7 +31,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v72/constructors/updates_difference.md b/old_docs/API_docs_v72/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v72/constructors/updates_difference.md +++ b/old_docs/API_docs_v72/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v72/constructors/updates_differenceSlice.md b/old_docs/API_docs_v72/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v72/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v72/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v72/constructors/upload_fileCdnRedirect.md b/old_docs/API_docs_v72/constructors/upload_fileCdnRedirect.md index 33aaefd2..8140b266 100644 --- a/old_docs/API_docs_v72/constructors/upload_fileCdnRedirect.md +++ b/old_docs/API_docs_v72/constructors/upload_fileCdnRedirect.md @@ -25,7 +25,7 @@ description: upload_fileCdnRedirect attributes, type and example ### Example: ``` -$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'cdn_file_hashes' => [CdnFileHash]]; +$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'cdn_file_hashes' => [CdnFileHash, CdnFileHash]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/wallPaper.md b/old_docs/API_docs_v72/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v72/constructors/wallPaper.md +++ b/old_docs/API_docs_v72/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/constructors/webDocument.md b/old_docs/API_docs_v72/constructors/webDocument.md index 0be6cb8a..55a5b09b 100644 --- a/old_docs/API_docs_v72/constructors/webDocument.md +++ b/old_docs/API_docs_v72/constructors/webDocument.md @@ -26,7 +26,7 @@ description: webDocument attributes, type and example ### Example: ``` -$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'dc_id' => int]; +$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'dc_id' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v72/methods/README.md b/old_docs/API_docs_v72/methods/README.md index 33bbeb20..892bbd35 100644 --- a/old_docs/API_docs_v72/methods/README.md +++ b/old_docs/API_docs_v72/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v72/methods/account_changePhone.md b/old_docs/API_docs_v72/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v72/methods/account_changePhone.md +++ b/old_docs/API_docs_v72/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_checkUsername.md b/old_docs/API_docs_v72/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v72/methods/account_checkUsername.md +++ b/old_docs/API_docs_v72/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_confirmPhone.md b/old_docs/API_docs_v72/methods/account_confirmPhone.md index 8dd79d94..2261e6e8 100644 --- a/old_docs/API_docs_v72/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v72/methods/account_confirmPhone.md @@ -1,17 +1,19 @@ --- title: account.confirmPhone -description: account.confirmPhone parameters, return type and example +description: Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode --- ## 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 | Required | -|----------|---------------|----------| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_code\_hash|[string](../types/string.md) | Yes|obtain phone_code_hash from sendConfirmPhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The code sent by sendConfirmPhoneCode| ### Return type: [Bool](../types/Bool.md) @@ -31,13 +33,18 @@ description: account.confirmPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_deleteAccount.md b/old_docs/API_docs_v72/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v72/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v72/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_getAccountTTL.md b/old_docs/API_docs_v72/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v72/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v72/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v72/methods/account_getAuthorizations.md b/old_docs/API_docs_v72/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v72/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v72/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v72/methods/account_getNotifySettings.md b/old_docs/API_docs_v72/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v72/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v72/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_getPassword.md b/old_docs/API_docs_v72/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v72/methods/account_getPassword.md +++ b/old_docs/API_docs_v72/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v72/methods/account_getPasswordSettings.md b/old_docs/API_docs_v72/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v72/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v72/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_getPrivacy.md b/old_docs/API_docs_v72/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v72/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v72/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_getTmpPassword.md b/old_docs/API_docs_v72/methods/account_getTmpPassword.md index d9bd30d8..e9ff8d28 100644 --- a/old_docs/API_docs_v72/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v72/methods/account_getTmpPassword.md @@ -1,17 +1,19 @@ --- title: account.getTmpPassword -description: account.getTmpPassword parameters, return type and example +description: Get temporary password for buying products through bots --- ## Method: account.getTmpPassword [Back to methods index](index.md) +Get temporary password for buying products through bots + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|password\_hash|[bytes](../types/bytes.md) | Yes|The password hash| +|period|[int](../types/int.md) | Yes|The validity period| ### Return type: [account\_TmpPassword](../types/account_TmpPassword.md) @@ -31,13 +33,18 @@ description: account.getTmpPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_getWallPapers.md b/old_docs/API_docs_v72/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v72/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v72/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v72/methods/account_registerDevice.md b/old_docs/API_docs_v72/methods/account_registerDevice.md index 8be04ad2..0bf6d1ee 100644 --- a/old_docs/API_docs_v72/methods/account_registerDevice.md +++ b/old_docs/API_docs_v72/methods/account_registerDevice.md @@ -1,17 +1,19 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_reportPeer.md b/old_docs/API_docs_v72/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v72/methods/account_reportPeer.md +++ b/old_docs/API_docs_v72/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_resetAuthorization.md b/old_docs/API_docs_v72/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v72/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v72/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_resetNotifySettings.md b/old_docs/API_docs_v72/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v72/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v72/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v72/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v72/methods/account_sendChangePhoneCode.md index 017b5f7f..9e5016a4 100644 --- a/old_docs/API_docs_v72/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v72/methods/account_sendChangePhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|phone\_number|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can the code be sent using a flash call instead of an SMS?| +|phone\_number|[string](../types/string.md) | Yes|New phone number| +|current\_number|[Bool](../types/Bool.md) | Optional|Current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v72/methods/account_sendConfirmPhoneCode.md index 3665bd50..4de86a33 100644 --- a/old_docs/API_docs_v72/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v72/methods/account_sendConfirmPhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendConfirmPhoneCode -description: account.sendConfirmPhoneCode parameters, return type and example +description: Send confirmation phone code --- ## Method: account.sendConfirmPhoneCode [Back to methods index](index.md) +Send confirmation phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|hash|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can telegram call you instead of sending an SMS?| +|hash|[string](../types/string.md) | Yes|The hash| +|current\_number|[Bool](../types/Bool.md) | Optional|The current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendConfirmPhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_setAccountTTL.md b/old_docs/API_docs_v72/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v72/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v72/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_setPrivacy.md b/old_docs/API_docs_v72/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v72/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v72/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/account_unregisterDevice.md b/old_docs/API_docs_v72/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v72/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v72/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v72/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v72/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v72/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_updateNotifySettings.md b/old_docs/API_docs_v72/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v72/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v72/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v72/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v72/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v72/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_updateProfile.md b/old_docs/API_docs_v72/methods/account_updateProfile.md index b3d468d1..8b0c3268 100644 --- a/old_docs/API_docs_v72/methods/account_updateProfile.md +++ b/old_docs/API_docs_v72/methods/account_updateProfile.md @@ -1,18 +1,20 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Optional| -|last\_name|[string](../types/string.md) | Optional| -|about|[string](../types/string.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Optional|The first name| +|last\_name|[string](../types/string.md) | Optional|The last name| +|about|[string](../types/string.md) | Optional|The bio/about field| ### Return type: [User](../types/User.md) @@ -32,13 +34,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_updateStatus.md b/old_docs/API_docs_v72/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v72/methods/account_updateStatus.md +++ b/old_docs/API_docs_v72/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v72/methods/account_updateUsername.md b/old_docs/API_docs_v72/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v72/methods/account_updateUsername.md +++ b/old_docs/API_docs_v72/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v72/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v72/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v72/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v72/methods/auth_cancelCode.md b/old_docs/API_docs_v72/methods/auth_cancelCode.md index 05d927a1..1283e1e5 100644 --- a/old_docs/API_docs_v72/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v72/methods/auth_cancelCode.md @@ -1,17 +1,19 @@ --- title: auth.cancelCode -description: auth.cancelCode parameters, return type and example +description: Invalidate sent phone code --- ## Method: auth.cancelCode [Back to methods index](index.md) +Invalidate sent phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: auth.cancelCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/auth_checkPassword.md b/old_docs/API_docs_v72/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v72/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v72/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v72/methods/auth_checkPhone.md b/old_docs/API_docs_v72/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v72/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v72/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v72/methods/auth_dropTempAuthKeys.md index fedb7bf4..b08b9f40 100644 --- a/old_docs/API_docs_v72/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v72/methods/auth_dropTempAuthKeys.md @@ -1,16 +1,18 @@ --- title: auth.dropTempAuthKeys -description: auth.dropTempAuthKeys parameters, return type and example +description: Delete all temporary authorization keys except the ones provided --- ## Method: auth.dropTempAuthKeys [Back to methods index](index.md) +Delete all temporary authorization keys except the ones provided + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|except\_auth\_keys|Array of [long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|except\_auth\_keys|Array of [long](../types/long.md) | Yes|The temporary authorization keys to keep| ### Return type: [Bool](../types/Bool.md) @@ -22,18 +24,20 @@ description: auth.dropTempAuthKeys parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/auth_exportAuthorization.md b/old_docs/API_docs_v72/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v72/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v72/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v72/methods/auth_importAuthorization.md b/old_docs/API_docs_v72/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v72/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v72/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v72/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v72/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v72/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v72/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v72/methods/auth_logOut.md b/old_docs/API_docs_v72/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v72/methods/auth_logOut.md +++ b/old_docs/API_docs_v72/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v72/methods/auth_recoverPassword.md b/old_docs/API_docs_v72/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v72/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v72/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v72/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v72/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v72/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v72/methods/auth_resendCode.md b/old_docs/API_docs_v72/methods/auth_resendCode.md index df4803b8..4bfbf379 100644 --- a/old_docs/API_docs_v72/methods/auth_resendCode.md +++ b/old_docs/API_docs_v72/methods/auth_resendCode.md @@ -1,17 +1,19 @@ --- title: auth.resendCode -description: auth.resendCode parameters, return type and example +description: Resend the SMS verification code --- ## Method: auth.resendCode [Back to methods index](index.md) +Resend the SMS verification code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|The phone code hash| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -30,13 +32,18 @@ description: auth.resendCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v72/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v72/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v72/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v72/methods/auth_sendCode.md b/old_docs/API_docs_v72/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v72/methods/auth_sendCode.md +++ b/old_docs/API_docs_v72/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v72/methods/auth_sendInvites.md b/old_docs/API_docs_v72/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v72/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v72/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/auth_signIn.md b/old_docs/API_docs_v72/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v72/methods/auth_signIn.md +++ b/old_docs/API_docs_v72/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v72/methods/auth_signUp.md b/old_docs/API_docs_v72/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v72/methods/auth_signUp.md +++ b/old_docs/API_docs_v72/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v72/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v72/methods/bots_answerWebhookJSONQuery.md index d910db35..809576fa 100644 --- a/old_docs/API_docs_v72/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v72/methods/bots_answerWebhookJSONQuery.md @@ -31,16 +31,18 @@ description: bots.answerWebhookJSONQuery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v72/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v72/methods/bots_sendCustomRequest.md index abb880ef..ce28f6ca 100644 --- a/old_docs/API_docs_v72/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v72/methods/bots_sendCustomRequest.md @@ -30,16 +30,18 @@ description: bots.sendCustomRequest parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_checkUsername.md b/old_docs/API_docs_v72/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v72/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v72/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_createChannel.md b/old_docs/API_docs_v72/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v72/methods/channels_createChannel.md +++ b/old_docs/API_docs_v72/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_deleteChannel.md b/old_docs/API_docs_v72/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v72/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v72/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_deleteHistory.md b/old_docs/API_docs_v72/methods/channels_deleteHistory.md index 552ffeaf..519cf766 100644 --- a/old_docs/API_docs_v72/methods/channels_deleteHistory.md +++ b/old_docs/API_docs_v72/methods/channels_deleteHistory.md @@ -10,7 +10,7 @@ description: channels.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -23,16 +23,18 @@ description: channels.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->deleteHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_deleteMessages.md b/old_docs/API_docs_v72/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v72/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v72/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v72/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v72/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v72/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_editAbout.md b/old_docs/API_docs_v72/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v72/methods/channels_editAbout.md +++ b/old_docs/API_docs_v72/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_editAdmin.md b/old_docs/API_docs_v72/methods/channels_editAdmin.md index 07f8cc11..36ae5241 100644 --- a/old_docs/API_docs_v72/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v72/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_editBanned.md b/old_docs/API_docs_v72/methods/channels_editBanned.md index d26e857f..4f5dc25c 100644 --- a/old_docs/API_docs_v72/methods/channels_editBanned.md +++ b/old_docs/API_docs_v72/methods/channels_editBanned.md @@ -10,8 +10,8 @@ description: channels.editBanned parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Yes| @@ -35,16 +35,18 @@ description: channels.editBanned parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_editPhoto.md b/old_docs/API_docs_v72/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v72/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v72/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_editTitle.md b/old_docs/API_docs_v72/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v72/methods/channels_editTitle.md +++ b/old_docs/API_docs_v72/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_exportInvite.md b/old_docs/API_docs_v72/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v72/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v72/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_exportMessageLink.md b/old_docs/API_docs_v72/methods/channels_exportMessageLink.md index 026fe982..7eff4ed8 100644 --- a/old_docs/API_docs_v72/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v72/methods/channels_exportMessageLink.md @@ -10,7 +10,7 @@ description: channels.exportMessageLink parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: channels.exportMessageLink parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_getAdminLog.md b/old_docs/API_docs_v72/methods/channels_getAdminLog.md index 247d82f5..2b4d08d6 100644 --- a/old_docs/API_docs_v72/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v72/methods/channels_getAdminLog.md @@ -10,10 +10,10 @@ description: channels.getAdminLog parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |q|[string](../types/string.md) | Yes| |events\_filter|[ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md) | Optional| -|admins|Array of [InputUser](../types/InputUser.md) | Optional| +|admins|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |max\_id|[long](../types/long.md) | Yes| |min\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -37,15 +37,20 @@ description: channels.getAdminLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$channels_AdminLogResults = $MadelineProto->channels->getAdminLog(['channel' => InputChannel, 'q' => 'string', 'events_filter' => ChannelAdminLogEventsFilter, 'admins' => [InputUser], 'max_id' => long, 'min_id' => long, 'limit' => int, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v72/methods/channels_getAdminedPublicChannels.md index 283a9071..01ea971f 100644 --- a/old_docs/API_docs_v72/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v72/methods/channels_getAdminedPublicChannels.md @@ -17,13 +17,18 @@ description: channels.getAdminedPublicChannels parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); ``` diff --git a/old_docs/API_docs_v72/methods/channels_getChannels.md b/old_docs/API_docs_v72/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v72/methods/channels_getChannels.md +++ b/old_docs/API_docs_v72/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/channels_getFullChannel.md b/old_docs/API_docs_v72/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v72/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v72/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v72/methods/channels_getMessages.md b/old_docs/API_docs_v72/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v72/methods/channels_getMessages.md +++ b/old_docs/API_docs_v72/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/channels_getParticipant.md b/old_docs/API_docs_v72/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v72/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v72/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_getParticipants.md b/old_docs/API_docs_v72/methods/channels_getParticipants.md index 2af62d64..45c48c25 100644 --- a/old_docs/API_docs_v72/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v72/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -37,16 +37,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_inviteToChannel.md b/old_docs/API_docs_v72/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v72/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v72/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/channels_joinChannel.md b/old_docs/API_docs_v72/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v72/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v72/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_leaveChannel.md b/old_docs/API_docs_v72/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v72/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v72/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_readHistory.md b/old_docs/API_docs_v72/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v72/methods/channels_readHistory.md +++ b/old_docs/API_docs_v72/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_readMessageContents.md b/old_docs/API_docs_v72/methods/channels_readMessageContents.md index e165c81f..7e3da8e4 100644 --- a/old_docs/API_docs_v72/methods/channels_readMessageContents.md +++ b/old_docs/API_docs_v72/methods/channels_readMessageContents.md @@ -10,7 +10,7 @@ description: channels.readMessageContents parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -31,15 +31,20 @@ description: channels.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/channels_reportSpam.md b/old_docs/API_docs_v72/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v72/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v72/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/channels_setStickers.md b/old_docs/API_docs_v72/methods/channels_setStickers.md index 0431b0c9..a1f733eb 100644 --- a/old_docs/API_docs_v72/methods/channels_setStickers.md +++ b/old_docs/API_docs_v72/methods/channels_setStickers.md @@ -10,7 +10,7 @@ description: channels.setStickers parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |stickerset|[InputStickerSet](../types/InputStickerSet.md) | Optional| @@ -31,16 +31,18 @@ description: channels.setStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->setStickers(['channel' => InputChannel, 'stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_toggleInvites.md b/old_docs/API_docs_v72/methods/channels_toggleInvites.md index 19669eec..8d977fd0 100644 --- a/old_docs/API_docs_v72/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v72/methods/channels_toggleInvites.md @@ -10,7 +10,7 @@ description: channels.toggleInvites parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -32,13 +32,18 @@ description: channels.toggleInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_togglePreHistoryHidden.md b/old_docs/API_docs_v72/methods/channels_togglePreHistoryHidden.md index 9e5e511f..421878a6 100644 --- a/old_docs/API_docs_v72/methods/channels_togglePreHistoryHidden.md +++ b/old_docs/API_docs_v72/methods/channels_togglePreHistoryHidden.md @@ -10,7 +10,7 @@ description: channels.togglePreHistoryHidden parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -23,16 +23,18 @@ description: channels.togglePreHistoryHidden parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->togglePreHistoryHidden(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_toggleSignatures.md b/old_docs/API_docs_v72/methods/channels_toggleSignatures.md index 4aaaeb0c..13d53d92 100644 --- a/old_docs/API_docs_v72/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v72/methods/channels_toggleSignatures.md @@ -10,7 +10,7 @@ description: channels.toggleSignatures parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: channels.toggleSignatures parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v72/methods/channels_updatePinnedMessage.md index 3bb6d010..ecc15ce6 100644 --- a/old_docs/API_docs_v72/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v72/methods/channels_updatePinnedMessage.md @@ -11,7 +11,7 @@ description: channels.updatePinnedMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |silent|[Bool](../types/Bool.md) | Optional| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: channels.updatePinnedMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/channels_updateUsername.md b/old_docs/API_docs_v72/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v72/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v72/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/contacts_block.md b/old_docs/API_docs_v72/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v72/methods/contacts_block.md +++ b/old_docs/API_docs_v72/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v72/methods/contacts_deleteContact.md b/old_docs/API_docs_v72/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v72/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v72/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v72/methods/contacts_deleteContacts.md b/old_docs/API_docs_v72/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v72/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v72/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/contacts_exportCard.md b/old_docs/API_docs_v72/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v72/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v72/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v72/methods/contacts_getBlocked.md b/old_docs/API_docs_v72/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v72/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v72/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/contacts_getContacts.md b/old_docs/API_docs_v72/methods/contacts_getContacts.md index e7783c1b..32823094 100644 --- a/old_docs/API_docs_v72/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v72/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[int](../types/int.md) | Yes|$ids is the list ids of previously fetched contacts, $hash = $MadelineProto->gen_vector_hash($ids);| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/contacts_getStatuses.md b/old_docs/API_docs_v72/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v72/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v72/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v72/methods/contacts_getTopPeers.md b/old_docs/API_docs_v72/methods/contacts_getTopPeers.md index f72133a5..560f15c6 100644 --- a/old_docs/API_docs_v72/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v72/methods/contacts_getTopPeers.md @@ -1,24 +1,26 @@ --- title: contacts.getTopPeers -description: contacts.getTopPeers parameters, return type and example +description: Get most used chats --- ## Method: contacts.getTopPeers [Back to methods index](index.md) +Get most used chats + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|correspondents|[Bool](../types/Bool.md) | Optional| -|bots\_pm|[Bool](../types/Bool.md) | Optional| -|bots\_inline|[Bool](../types/Bool.md) | Optional| -|phone\_calls|[Bool](../types/Bool.md) | Optional| -|groups|[Bool](../types/Bool.md) | Optional| -|channels|[Bool](../types/Bool.md) | Optional| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|correspondents|[Bool](../types/Bool.md) | Optional|| +|bots\_pm|[Bool](../types/Bool.md) | Optional|| +|bots\_inline|[Bool](../types/Bool.md) | Optional|| +|phone\_calls|[Bool](../types/Bool.md) | Optional|| +|groups|[Bool](../types/Bool.md) | Optional|| +|channels|[Bool](../types/Bool.md) | Optional|| +|offset|[int](../types/int.md) | Yes|| +|limit|[int](../types/int.md) | Yes|| +|hash|[int](../types/int.md) | Yes|| ### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md) @@ -37,13 +39,18 @@ description: contacts.getTopPeers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v72/methods/contacts_importCard.md b/old_docs/API_docs_v72/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v72/methods/contacts_importCard.md +++ b/old_docs/API_docs_v72/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/contacts_importContacts.md b/old_docs/API_docs_v72/methods/contacts_importContacts.md index 7d580e83..a6b93600 100644 --- a/old_docs/API_docs_v72/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v72/methods/contacts_importContacts.md @@ -1,16 +1,18 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -22,15 +24,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/contacts_resetSaved.md b/old_docs/API_docs_v72/methods/contacts_resetSaved.md index 87f8db12..7ad65cb1 100644 --- a/old_docs/API_docs_v72/methods/contacts_resetSaved.md +++ b/old_docs/API_docs_v72/methods/contacts_resetSaved.md @@ -17,16 +17,18 @@ description: contacts.resetSaved parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetSaved(); ``` diff --git a/old_docs/API_docs_v72/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v72/methods/contacts_resetTopPeerRating.md index 3eab7e04..ddcf6b2f 100644 --- a/old_docs/API_docs_v72/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v72/methods/contacts_resetTopPeerRating.md @@ -11,7 +11,7 @@ description: contacts.resetTopPeerRating parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |category|[TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v72/methods/contacts_resolveUsername.md b/old_docs/API_docs_v72/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v72/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v72/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v72/methods/contacts_search.md b/old_docs/API_docs_v72/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v72/methods/contacts_search.md +++ b/old_docs/API_docs_v72/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/contacts_unblock.md b/old_docs/API_docs_v72/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v72/methods/contacts_unblock.md +++ b/old_docs/API_docs_v72/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v72/methods/contest_saveDeveloperInfo.md b/old_docs/API_docs_v72/methods/contest_saveDeveloperInfo.md index c0bb9054..6a8e5fda 100644 --- a/old_docs/API_docs_v72/methods/contest_saveDeveloperInfo.md +++ b/old_docs/API_docs_v72/methods/contest_saveDeveloperInfo.md @@ -26,16 +26,18 @@ description: contest.saveDeveloperInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contest->saveDeveloperInfo(['vk_id' => int, 'name' => 'string', 'phone_number' => 'string', 'age' => int, 'city' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/destroy_auth_key.md b/old_docs/API_docs_v72/methods/destroy_auth_key.md index 1803e375..0304d9a1 100644 --- a/old_docs/API_docs_v72/methods/destroy_auth_key.md +++ b/old_docs/API_docs_v72/methods/destroy_auth_key.md @@ -17,16 +17,18 @@ description: destroy_auth_key parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DestroyAuthKeyRes = $MadelineProto->destroy_auth_key(); ``` diff --git a/old_docs/API_docs_v72/methods/destroy_session.md b/old_docs/API_docs_v72/methods/destroy_session.md index 39aa2c6e..b2525dfb 100644 --- a/old_docs/API_docs_v72/methods/destroy_session.md +++ b/old_docs/API_docs_v72/methods/destroy_session.md @@ -1,16 +1,18 @@ --- title: destroy_session -description: destroy_session parameters, return type and example +description: Destroy the current MTProto session --- ## Method: destroy\_session [Back to methods index](index.md) +Destroy the current MTProto session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|session\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|session\_id|[long](../types/long.md) | Yes|The session to destroy| ### Return type: [DestroySessionRes](../types/DestroySessionRes.md) @@ -22,16 +24,18 @@ description: destroy_session parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DestroySessionRes = $MadelineProto->destroy_session(['session_id' => long, ]); ``` diff --git a/old_docs/API_docs_v72/methods/get_future_salts.md b/old_docs/API_docs_v72/methods/get_future_salts.md index fedf036c..4c2c9c46 100644 --- a/old_docs/API_docs_v72/methods/get_future_salts.md +++ b/old_docs/API_docs_v72/methods/get_future_salts.md @@ -1,16 +1,18 @@ --- title: get_future_salts -description: get_future_salts parameters, return type and example +description: Get future salts --- ## Method: get\_future\_salts [Back to methods index](index.md) +Get future salts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|num|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|num|[int](../types/int.md) | Yes|How many salts should be fetched| ### Return type: [FutureSalts](../types/FutureSalts.md) @@ -22,16 +24,18 @@ description: get_future_salts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $FutureSalts = $MadelineProto->get_future_salts(['num' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/help_getAppChangelog.md b/old_docs/API_docs_v72/methods/help_getAppChangelog.md index 59916787..f09a7a0d 100644 --- a/old_docs/API_docs_v72/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v72/methods/help_getAppChangelog.md @@ -22,13 +22,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/help_getAppUpdate.md b/old_docs/API_docs_v72/methods/help_getAppUpdate.md index 89ff22c3..0e227d24 100644 --- a/old_docs/API_docs_v72/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v72/methods/help_getAppUpdate.md @@ -17,13 +17,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); ``` diff --git a/old_docs/API_docs_v72/methods/help_getCdnConfig.md b/old_docs/API_docs_v72/methods/help_getCdnConfig.md index 3079e605..ba2a6c9a 100644 --- a/old_docs/API_docs_v72/methods/help_getCdnConfig.md +++ b/old_docs/API_docs_v72/methods/help_getCdnConfig.md @@ -24,16 +24,18 @@ description: help.getCdnConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $CdnConfig = $MadelineProto->help->getCdnConfig(); ``` diff --git a/old_docs/API_docs_v72/methods/help_getConfig.md b/old_docs/API_docs_v72/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v72/methods/help_getConfig.md +++ b/old_docs/API_docs_v72/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v72/methods/help_getInviteText.md b/old_docs/API_docs_v72/methods/help_getInviteText.md index 6d2674d6..a8d8992e 100644 --- a/old_docs/API_docs_v72/methods/help_getInviteText.md +++ b/old_docs/API_docs_v72/methods/help_getInviteText.md @@ -17,13 +17,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); ``` diff --git a/old_docs/API_docs_v72/methods/help_getNearestDc.md b/old_docs/API_docs_v72/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v72/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v72/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v72/methods/help_getRecentMeUrls.md b/old_docs/API_docs_v72/methods/help_getRecentMeUrls.md index 76d65594..720e0f72 100644 --- a/old_docs/API_docs_v72/methods/help_getRecentMeUrls.md +++ b/old_docs/API_docs_v72/methods/help_getRecentMeUrls.md @@ -22,16 +22,18 @@ description: help.getRecentMeUrls parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_RecentMeUrls = $MadelineProto->help->getRecentMeUrls(['referer' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/help_getSupport.md b/old_docs/API_docs_v72/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v72/methods/help_getSupport.md +++ b/old_docs/API_docs_v72/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v72/methods/help_getTermsOfService.md b/old_docs/API_docs_v72/methods/help_getTermsOfService.md index eb686506..a588e830 100644 --- a/old_docs/API_docs_v72/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v72/methods/help_getTermsOfService.md @@ -17,13 +17,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); ``` diff --git a/old_docs/API_docs_v72/methods/help_saveAppLog.md b/old_docs/API_docs_v72/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v72/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v72/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v72/methods/help_setBotUpdatesStatus.md index 470187a0..68c9720a 100644 --- a/old_docs/API_docs_v72/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v72/methods/help_setBotUpdatesStatus.md @@ -23,16 +23,18 @@ description: help.setBotUpdatesStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/initConnection.md b/old_docs/API_docs_v72/methods/initConnection.md index ef40e7f5..3c81c311 100644 --- a/old_docs/API_docs_v72/methods/initConnection.md +++ b/old_docs/API_docs_v72/methods/initConnection.md @@ -1,23 +1,25 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|system\_lang\_code|[string](../types/string.md) | Yes| -|lang\_pack|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|system\_lang\_code|[string](../types/string.md) | Yes|Language code| +|lang\_pack|[string](../types/string.md) | Yes|Language pack to use| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -37,16 +39,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v72/methods/invokeAfterMsg.md b/old_docs/API_docs_v72/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v72/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v72/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v72/methods/invokeAfterMsgs.md b/old_docs/API_docs_v72/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v72/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v72/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/invokeWithLayer.md b/old_docs/API_docs_v72/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v72/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v72/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v72/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v72/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v72/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v72/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v72/methods/langpack_getDifference.md b/old_docs/API_docs_v72/methods/langpack_getDifference.md index 116e78e2..b1078532 100644 --- a/old_docs/API_docs_v72/methods/langpack_getDifference.md +++ b/old_docs/API_docs_v72/methods/langpack_getDifference.md @@ -29,13 +29,18 @@ description: langpack.getDifference parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getDifference(['from_version' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/langpack_getLangPack.md b/old_docs/API_docs_v72/methods/langpack_getLangPack.md index b5686e61..7d440b66 100644 --- a/old_docs/API_docs_v72/methods/langpack_getLangPack.md +++ b/old_docs/API_docs_v72/methods/langpack_getLangPack.md @@ -29,13 +29,18 @@ description: langpack.getLangPack parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getLangPack(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/langpack_getLanguages.md b/old_docs/API_docs_v72/methods/langpack_getLanguages.md index cb65e5a0..8afce13f 100644 --- a/old_docs/API_docs_v72/methods/langpack_getLanguages.md +++ b/old_docs/API_docs_v72/methods/langpack_getLanguages.md @@ -24,13 +24,18 @@ description: langpack.getLanguages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_LangPackLanguage = $MadelineProto->langpack->getLanguages(); ``` diff --git a/old_docs/API_docs_v72/methods/langpack_getStrings.md b/old_docs/API_docs_v72/methods/langpack_getStrings.md index ce58daf9..9791f621 100644 --- a/old_docs/API_docs_v72/methods/langpack_getStrings.md +++ b/old_docs/API_docs_v72/methods/langpack_getStrings.md @@ -30,15 +30,20 @@ description: langpack.getStrings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string'], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string', 'string'], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_acceptEncryption.md b/old_docs/API_docs_v72/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v72/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v72/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v72/methods/messages_addChatUser.md b/old_docs/API_docs_v72/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v72/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v72/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_checkChatInvite.md b/old_docs/API_docs_v72/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v72/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v72/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v72/methods/messages_clearRecentStickers.md index ae45b249..31941a34 100644 --- a/old_docs/API_docs_v72/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v72/methods/messages_clearRecentStickers.md @@ -22,13 +22,18 @@ description: messages.clearRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_createChat.md b/old_docs/API_docs_v72/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v72/methods/messages_createChat.md +++ b/old_docs/API_docs_v72/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_deleteChatUser.md b/old_docs/API_docs_v72/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v72/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v72/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_deleteHistory.md b/old_docs/API_docs_v72/methods/messages_deleteHistory.md index d1c3f195..01686b2b 100644 --- a/old_docs/API_docs_v72/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v72/methods/messages_deleteHistory.md @@ -11,7 +11,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |just\_clear|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_deleteMessages.md b/old_docs/API_docs_v72/methods/messages_deleteMessages.md index 5472cc72..0cc6e6ed 100644 --- a/old_docs/API_docs_v72/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v72/methods/messages_deleteMessages.md @@ -30,18 +30,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_discardEncryption.md b/old_docs/API_docs_v72/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v72/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v72/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v72/methods/messages_editChatAdmin.md b/old_docs/API_docs_v72/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v72/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v72/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_editChatPhoto.md b/old_docs/API_docs_v72/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v72/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v72/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_editChatTitle.md b/old_docs/API_docs_v72/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v72/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v72/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v72/methods/messages_editInlineBotMessage.md index c3489f9d..289100ea 100644 --- a/old_docs/API_docs_v72/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v72/methods/messages_editInlineBotMessage.md @@ -35,18 +35,20 @@ description: messages.editInlineBotMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_editMessage.md b/old_docs/API_docs_v72/methods/messages_editMessage.md index 4dfadde7..396c9449 100644 --- a/old_docs/API_docs_v72/methods/messages_editMessage.md +++ b/old_docs/API_docs_v72/methods/messages_editMessage.md @@ -12,7 +12,7 @@ description: messages.editMessage parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |stop\_geo\_live|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| |message|[string](../types/string.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -46,18 +46,20 @@ description: messages.editMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'stop_geo_live' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', 'geo_point' => InputGeoPoint, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'stop_geo_live' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', 'geo_point' => InputGeoPoint, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_exportChatInvite.md b/old_docs/API_docs_v72/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v72/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v72/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_faveSticker.md b/old_docs/API_docs_v72/methods/messages_faveSticker.md index 9264d8a3..88544c20 100644 --- a/old_docs/API_docs_v72/methods/messages_faveSticker.md +++ b/old_docs/API_docs_v72/methods/messages_faveSticker.md @@ -10,7 +10,7 @@ description: messages.faveSticker parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unfave|[Bool](../types/Bool.md) | Yes| @@ -30,16 +30,18 @@ description: messages.faveSticker parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->faveSticker(['id' => InputDocument, 'unfave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_forwardMessage.md b/old_docs/API_docs_v72/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v72/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v72/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_forwardMessages.md b/old_docs/API_docs_v72/methods/messages_forwardMessages.md index 1185259d..df361517 100644 --- a/old_docs/API_docs_v72/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v72/methods/messages_forwardMessages.md @@ -13,9 +13,9 @@ description: messages.forwardMessages parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |with\_my\_score|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -55,18 +55,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_getAllChats.md b/old_docs/API_docs_v72/methods/messages_getAllChats.md index babcf17d..59bc0add 100644 --- a/old_docs/API_docs_v72/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v72/methods/messages_getAllChats.md @@ -22,15 +22,20 @@ description: messages.getAllChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_getAllDrafts.md b/old_docs/API_docs_v72/methods/messages_getAllDrafts.md index 8550c5b8..7f0f7843 100644 --- a/old_docs/API_docs_v72/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v72/methods/messages_getAllDrafts.md @@ -17,13 +17,18 @@ description: messages.getAllDrafts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getAllStickers.md b/old_docs/API_docs_v72/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/old_docs/API_docs_v72/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v72/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v72/methods/messages_getArchivedStickers.md index cdb7f0af..8c2041a3 100644 --- a/old_docs/API_docs_v72/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v72/methods/messages_getArchivedStickers.md @@ -24,13 +24,18 @@ description: messages.getArchivedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v72/methods/messages_getAttachedStickers.md index 79d4e30d..f03f0be2 100644 --- a/old_docs/API_docs_v72/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v72/methods/messages_getAttachedStickers.md @@ -22,13 +22,18 @@ description: messages.getAttachedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v72/methods/messages_getBotCallbackAnswer.md index bd916755..b9039098 100644 --- a/old_docs/API_docs_v72/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v72/methods/messages_getBotCallbackAnswer.md @@ -11,7 +11,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |game|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |msg\_id|[int](../types/int.md) | Yes| |data|[bytes](../types/bytes.md) | Optional| @@ -36,13 +36,18 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getChats.md b/old_docs/API_docs_v72/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v72/methods/messages_getChats.md +++ b/old_docs/API_docs_v72/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_getCommonChats.md b/old_docs/API_docs_v72/methods/messages_getCommonChats.md index d713f3a5..0df79096 100644 --- a/old_docs/API_docs_v72/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v72/methods/messages_getCommonChats.md @@ -10,7 +10,7 @@ description: messages.getCommonChats parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getCommonChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getDhConfig.md b/old_docs/API_docs_v72/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v72/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v72/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getDialogs.md b/old_docs/API_docs_v72/methods/messages_getDialogs.md index e7e81a8c..041b3efe 100644 --- a/old_docs/API_docs_v72/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v72/methods/messages_getDialogs.md @@ -13,7 +13,7 @@ description: messages.getDialogs parameters, return type and example |exclude\_pinned|[Bool](../types/Bool.md) | Optional| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v72/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/old_docs/API_docs_v72/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v72/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getFavedStickers.md b/old_docs/API_docs_v72/methods/messages_getFavedStickers.md index 51701826..fc2717f8 100644 --- a/old_docs/API_docs_v72/methods/messages_getFavedStickers.md +++ b/old_docs/API_docs_v72/methods/messages_getFavedStickers.md @@ -22,16 +22,18 @@ description: messages.getFavedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FavedStickers = $MadelineProto->messages->getFavedStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v72/methods/messages_getFeaturedStickers.md index 5aad1810..51097eda 100644 --- a/old_docs/API_docs_v72/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v72/methods/messages_getFeaturedStickers.md @@ -22,13 +22,18 @@ description: messages.getFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getFullChat.md b/old_docs/API_docs_v72/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v72/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v72/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v72/methods/messages_getGameHighScores.md b/old_docs/API_docs_v72/methods/messages_getGameHighScores.md index c316a8bd..4b8b1397 100644 --- a/old_docs/API_docs_v72/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v72/methods/messages_getGameHighScores.md @@ -10,9 +10,9 @@ description: messages.getGameHighScores parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -32,16 +32,18 @@ description: messages.getGameHighScores parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getHistory.md b/old_docs/API_docs_v72/methods/messages_getHistory.md index ef31c435..87b8328d 100644 --- a/old_docs/API_docs_v72/methods/messages_getHistory.md +++ b/old_docs/API_docs_v72/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| @@ -40,13 +40,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v72/methods/messages_getInlineBotResults.md index 90e2a427..6d965b19 100644 --- a/old_docs/API_docs_v72/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v72/methods/messages_getInlineBotResults.md @@ -10,8 +10,8 @@ description: messages.getInlineBotResults parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |query|[string](../types/string.md) | Yes| |offset|[string](../types/string.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v72/methods/messages_getInlineGameHighScores.md index 524e387b..9305a0f4 100644 --- a/old_docs/API_docs_v72/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v72/methods/messages_getInlineGameHighScores.md @@ -11,7 +11,7 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Name | Type | Required | |----------|---------------|----------| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -31,16 +31,18 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getMaskStickers.md b/old_docs/API_docs_v72/methods/messages_getMaskStickers.md index ca964647..260cfdb7 100644 --- a/old_docs/API_docs_v72/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v72/methods/messages_getMaskStickers.md @@ -22,13 +22,18 @@ description: messages.getMaskStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getMessageEditData.md b/old_docs/API_docs_v72/methods/messages_getMessageEditData.md index df71c31a..2a90a419 100644 --- a/old_docs/API_docs_v72/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v72/methods/messages_getMessageEditData.md @@ -10,7 +10,7 @@ description: messages.getMessageEditData parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getMessageEditData parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getMessages.md b/old_docs/API_docs_v72/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v72/methods/messages_getMessages.md +++ b/old_docs/API_docs_v72/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_getMessagesViews.md b/old_docs/API_docs_v72/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v72/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v72/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v72/methods/messages_getPeerDialogs.md index 226948ae..eff29878 100644 --- a/old_docs/API_docs_v72/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v72/methods/messages_getPeerDialogs.md @@ -10,7 +10,7 @@ description: messages.getPeerDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peers|Array of [InputPeer](../types/InputPeer.md) | Yes| +|peers|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md) @@ -30,15 +30,20 @@ description: messages.getPeerDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_getPeerSettings.md b/old_docs/API_docs_v72/methods/messages_getPeerSettings.md index fab25034..25906b73 100644 --- a/old_docs/API_docs_v72/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v72/methods/messages_getPeerSettings.md @@ -10,7 +10,7 @@ description: messages.getPeerSettings parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [PeerSettings](../types/PeerSettings.md) @@ -30,13 +30,18 @@ description: messages.getPeerSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v72/methods/messages_getPinnedDialogs.md index ec744f01..e5499df7 100644 --- a/old_docs/API_docs_v72/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v72/methods/messages_getPinnedDialogs.md @@ -17,13 +17,18 @@ description: messages.getPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getRecentLocations.md b/old_docs/API_docs_v72/methods/messages_getRecentLocations.md index a362f903..be42bb77 100644 --- a/old_docs/API_docs_v72/methods/messages_getRecentLocations.md +++ b/old_docs/API_docs_v72/methods/messages_getRecentLocations.md @@ -10,7 +10,7 @@ description: messages.getRecentLocations parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -23,16 +23,18 @@ description: messages.getRecentLocations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getRecentLocations(['peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getRecentStickers.md b/old_docs/API_docs_v72/methods/messages_getRecentStickers.md index a6ae162f..5a60d345 100644 --- a/old_docs/API_docs_v72/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v72/methods/messages_getRecentStickers.md @@ -23,13 +23,18 @@ description: messages.getRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getSavedGifs.md b/old_docs/API_docs_v72/methods/messages_getSavedGifs.md index 4986d812..bcb4590d 100644 --- a/old_docs/API_docs_v72/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v72/methods/messages_getSavedGifs.md @@ -22,13 +22,18 @@ description: messages.getSavedGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getStickerSet.md b/old_docs/API_docs_v72/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v72/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v72/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getUnreadMentions.md b/old_docs/API_docs_v72/methods/messages_getUnreadMentions.md index c79eef68..181e730c 100644 --- a/old_docs/API_docs_v72/methods/messages_getUnreadMentions.md +++ b/old_docs/API_docs_v72/methods/messages_getUnreadMentions.md @@ -10,7 +10,7 @@ description: messages.getUnreadMentions parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -34,13 +34,18 @@ description: messages.getUnreadMentions parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getUnreadMentions(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getWebPage.md b/old_docs/API_docs_v72/methods/messages_getWebPage.md index e886b020..0f09af47 100644 --- a/old_docs/API_docs_v72/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v72/methods/messages_getWebPage.md @@ -30,13 +30,18 @@ description: messages.getWebPage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v72/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v72/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v72/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_hideReportSpam.md b/old_docs/API_docs_v72/methods/messages_hideReportSpam.md index d47e8aa5..0419ec79 100644 --- a/old_docs/API_docs_v72/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v72/methods/messages_hideReportSpam.md @@ -10,7 +10,7 @@ description: messages.hideReportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.hideReportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_importChatInvite.md b/old_docs/API_docs_v72/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v72/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v72/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_installStickerSet.md b/old_docs/API_docs_v72/methods/messages_installStickerSet.md index 9336cc22..f405adce 100644 --- a/old_docs/API_docs_v72/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v72/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_migrateChat.md b/old_docs/API_docs_v72/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v72/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v72/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v72/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v72/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v72/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v72/methods/messages_readFeaturedStickers.md index 02055bf3..766ba200 100644 --- a/old_docs/API_docs_v72/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v72/methods/messages_readFeaturedStickers.md @@ -22,15 +22,20 @@ description: messages.readFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_readHistory.md b/old_docs/API_docs_v72/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v72/methods/messages_readHistory.md +++ b/old_docs/API_docs_v72/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_readMentions.md b/old_docs/API_docs_v72/methods/messages_readMentions.md index 687a4053..0fec0465 100644 --- a/old_docs/API_docs_v72/methods/messages_readMentions.md +++ b/old_docs/API_docs_v72/methods/messages_readMentions.md @@ -10,7 +10,7 @@ description: messages.readMentions parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -22,16 +22,18 @@ description: messages.readMentions parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readMentions(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_readMessageContents.md b/old_docs/API_docs_v72/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v72/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v72/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_receivedMessages.md b/old_docs/API_docs_v72/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v72/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v72/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_receivedQueue.md b/old_docs/API_docs_v72/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v72/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v72/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v72/methods/messages_reorderPinnedDialogs.md index b4bfb84f..30e926d9 100644 --- a/old_docs/API_docs_v72/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v72/methods/messages_reorderPinnedDialogs.md @@ -11,7 +11,7 @@ description: messages.reorderPinnedDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |force|[Bool](../types/Bool.md) | Optional| -|order|Array of [InputPeer](../types/InputPeer.md) | Yes| +|order|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +30,20 @@ description: messages.reorderPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v72/methods/messages_reorderStickerSets.md index fa094550..0e2c121d 100644 --- a/old_docs/API_docs_v72/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v72/methods/messages_reorderStickerSets.md @@ -23,15 +23,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v72/methods/messages_reportEncryptedSpam.md index aed7a891..64ebecdd 100644 --- a/old_docs/API_docs_v72/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v72/methods/messages_reportEncryptedSpam.md @@ -10,7 +10,7 @@ description: messages.reportEncryptedSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportEncryptedSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_reportSpam.md b/old_docs/API_docs_v72/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v72/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v72/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_requestEncryption.md b/old_docs/API_docs_v72/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v72/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v72/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v72/methods/messages_saveDraft.md b/old_docs/API_docs_v72/methods/messages_saveDraft.md index 7a85dfe7..754b4da2 100644 --- a/old_docs/API_docs_v72/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v72/methods/messages_saveDraft.md @@ -12,7 +12,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |message|[string](../types/string.md) | Yes| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| |parse\_mode| [string](../types/string.md) | Optional | @@ -34,15 +34,20 @@ description: messages.saveDraft parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_saveGif.md b/old_docs/API_docs_v72/methods/messages_saveGif.md index b3673c91..725bc949 100644 --- a/old_docs/API_docs_v72/methods/messages_saveGif.md +++ b/old_docs/API_docs_v72/methods/messages_saveGif.md @@ -10,7 +10,7 @@ description: messages.saveGif parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveGif parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v72/methods/messages_saveRecentSticker.md index bc3d1627..4a8298e2 100644 --- a/old_docs/API_docs_v72/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v72/methods/messages_saveRecentSticker.md @@ -11,7 +11,7 @@ description: messages.saveRecentSticker parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |attached|[Bool](../types/Bool.md) | Optional| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.saveRecentSticker parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_search.md b/old_docs/API_docs_v72/methods/messages_search.md index 368688bd..4dd3f947 100644 --- a/old_docs/API_docs_v72/methods/messages_search.md +++ b/old_docs/API_docs_v72/methods/messages_search.md @@ -10,9 +10,9 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| -|from\_id|[InputUser](../types/InputUser.md) | Optional| +|from\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -45,13 +45,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_searchGifs.md b/old_docs/API_docs_v72/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/old_docs/API_docs_v72/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v72/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_searchGlobal.md b/old_docs/API_docs_v72/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v72/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v72/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_sendEncrypted.md b/old_docs/API_docs_v72/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v72/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v72/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v72/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v72/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v72/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v72/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v72/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v72/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v72/methods/messages_sendInlineBotResult.md index 0857341e..6bfb1578 100644 --- a/old_docs/API_docs_v72/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v72/methods/messages_sendInlineBotResult.md @@ -13,7 +13,7 @@ description: messages.sendInlineBotResult parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |query\_id|[long](../types/long.md) | Yes| |id|[string](../types/string.md) | Yes| @@ -40,13 +40,18 @@ description: messages.sendInlineBotResult parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_sendMedia.md b/old_docs/API_docs_v72/methods/messages_sendMedia.md index 8c6f7f7f..1530451b 100644 --- a/old_docs/API_docs_v72/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v72/methods/messages_sendMedia.md @@ -13,9 +13,9 @@ description: messages.sendMedia parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -56,16 +56,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_sendMessage.md b/old_docs/API_docs_v72/methods/messages_sendMessage.md index bec95b8c..49ace99c 100644 --- a/old_docs/API_docs_v72/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v72/methods/messages_sendMessage.md @@ -14,7 +14,7 @@ description: messages.sendMessage parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -50,6 +50,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -57,18 +58,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$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], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_sendScreenshotNotification.md b/old_docs/API_docs_v72/methods/messages_sendScreenshotNotification.md index 8ab8154b..2e66b51a 100644 --- a/old_docs/API_docs_v72/methods/messages_sendScreenshotNotification.md +++ b/old_docs/API_docs_v72/methods/messages_sendScreenshotNotification.md @@ -10,7 +10,7 @@ description: messages.sendScreenshotNotification parameters, return type and exa | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.sendScreenshotNotification parameters, return type and exa ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendScreenshotNotification(['peer' => InputPeer, 'reply_to_msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v72/methods/messages_setBotCallbackAnswer.md index 2901a558..0282168b 100644 --- a/old_docs/API_docs_v72/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v72/methods/messages_setBotCallbackAnswer.md @@ -33,16 +33,18 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v72/methods/messages_setBotPrecheckoutResults.md index 5666e9ff..4aba8ca3 100644 --- a/old_docs/API_docs_v72/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v72/methods/messages_setBotPrecheckoutResults.md @@ -31,16 +31,18 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v72/methods/messages_setBotShippingResults.md index 95376b64..5dcfe12e 100644 --- a/old_docs/API_docs_v72/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v72/methods/messages_setBotShippingResults.md @@ -31,18 +31,20 @@ description: messages.setBotShippingResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v72/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v72/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v72/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_setGameScore.md b/old_docs/API_docs_v72/methods/messages_setGameScore.md index 615aa87b..61dfe579 100644 --- a/old_docs/API_docs_v72/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v72/methods/messages_setGameScore.md @@ -12,9 +12,9 @@ description: messages.setGameScore parameters, return type and example |----------|---------------|----------| |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -35,16 +35,18 @@ description: messages.setGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v72/methods/messages_setInlineBotResults.md index 8b49c4c7..c38b8c2e 100644 --- a/old_docs/API_docs_v72/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v72/methods/messages_setInlineBotResults.md @@ -45,18 +45,20 @@ description: messages.setInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v72/methods/messages_setInlineGameScore.md index b5fc27d5..9fadc31e 100644 --- a/old_docs/API_docs_v72/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v72/methods/messages_setInlineGameScore.md @@ -13,7 +13,7 @@ description: messages.setInlineGameScore parameters, return type and example |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: messages.setInlineGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_setTyping.md b/old_docs/API_docs_v72/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v72/methods/messages_setTyping.md +++ b/old_docs/API_docs_v72/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_startBot.md b/old_docs/API_docs_v72/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v72/methods/messages_startBot.md +++ b/old_docs/API_docs_v72/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v72/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v72/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v72/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v72/methods/messages_toggleDialogPin.md index 535a0fa1..7c5bfa9f 100644 --- a/old_docs/API_docs_v72/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v72/methods/messages_toggleDialogPin.md @@ -11,7 +11,7 @@ description: messages.toggleDialogPin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |pinned|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: messages.toggleDialogPin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v72/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v72/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v72/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v72/methods/messages_uploadMedia.md b/old_docs/API_docs_v72/methods/messages_uploadMedia.md index 8a79defa..74515f11 100644 --- a/old_docs/API_docs_v72/methods/messages_uploadMedia.md +++ b/old_docs/API_docs_v72/methods/messages_uploadMedia.md @@ -10,8 +10,8 @@ description: messages.uploadMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [MessageMedia](../types/MessageMedia.md) @@ -32,16 +32,18 @@ description: messages.uploadMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->uploadMedia(['peer' => InputPeer, 'media' => InputMedia, ]); ``` diff --git a/old_docs/API_docs_v72/methods/payments_clearSavedInfo.md b/old_docs/API_docs_v72/methods/payments_clearSavedInfo.md index fb9bae07..dc762198 100644 --- a/old_docs/API_docs_v72/methods/payments_clearSavedInfo.md +++ b/old_docs/API_docs_v72/methods/payments_clearSavedInfo.md @@ -23,13 +23,18 @@ description: payments.clearSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); ``` diff --git a/old_docs/API_docs_v72/methods/payments_getPaymentForm.md b/old_docs/API_docs_v72/methods/payments_getPaymentForm.md index 141c47f2..ee269741 100644 --- a/old_docs/API_docs_v72/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v72/methods/payments_getPaymentForm.md @@ -29,13 +29,18 @@ description: payments.getPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v72/methods/payments_getPaymentReceipt.md index f6aa1ab6..e46563d0 100644 --- a/old_docs/API_docs_v72/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v72/methods/payments_getPaymentReceipt.md @@ -29,13 +29,18 @@ description: payments.getPaymentReceipt parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/payments_getSavedInfo.md b/old_docs/API_docs_v72/methods/payments_getSavedInfo.md index 4104679a..ae1fcf33 100644 --- a/old_docs/API_docs_v72/methods/payments_getSavedInfo.md +++ b/old_docs/API_docs_v72/methods/payments_getSavedInfo.md @@ -17,13 +17,18 @@ description: payments.getSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); ``` diff --git a/old_docs/API_docs_v72/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v72/methods/payments_sendPaymentForm.md index 180a7279..08505110 100644 --- a/old_docs/API_docs_v72/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v72/methods/payments_sendPaymentForm.md @@ -32,13 +32,18 @@ description: payments.sendPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); ``` diff --git a/old_docs/API_docs_v72/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v72/methods/payments_validateRequestedInfo.md index acfd1852..ebfc5c22 100644 --- a/old_docs/API_docs_v72/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v72/methods/payments_validateRequestedInfo.md @@ -31,13 +31,18 @@ description: payments.validateRequestedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); ``` diff --git a/old_docs/API_docs_v72/methods/phone_acceptCall.md b/old_docs/API_docs_v72/methods/phone_acceptCall.md index 79266f27..49029aed 100644 --- a/old_docs/API_docs_v72/methods/phone_acceptCall.md +++ b/old_docs/API_docs_v72/methods/phone_acceptCall.md @@ -1,12 +1,12 @@ --- title: phone.acceptCall -description: phone.acceptCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.acceptCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v72/methods/phone_confirmCall.md b/old_docs/API_docs_v72/methods/phone_confirmCall.md index 69e90751..5c7bb15c 100644 --- a/old_docs/API_docs_v72/methods/phone_confirmCall.md +++ b/old_docs/API_docs_v72/methods/phone_confirmCall.md @@ -1,12 +1,12 @@ --- title: phone.confirmCall -description: phone.confirmCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.confirmCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v72/methods/phone_discardCall.md b/old_docs/API_docs_v72/methods/phone_discardCall.md index c300e61c..c01d1014 100644 --- a/old_docs/API_docs_v72/methods/phone_discardCall.md +++ b/old_docs/API_docs_v72/methods/phone_discardCall.md @@ -1,12 +1,12 @@ --- title: phone.discardCall -description: phone.discardCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.discardCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v72/methods/phone_getCallConfig.md b/old_docs/API_docs_v72/methods/phone_getCallConfig.md index 3f18d7ca..636ae946 100644 --- a/old_docs/API_docs_v72/methods/phone_getCallConfig.md +++ b/old_docs/API_docs_v72/methods/phone_getCallConfig.md @@ -17,13 +17,18 @@ description: phone.getCallConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); ``` diff --git a/old_docs/API_docs_v72/methods/phone_receivedCall.md b/old_docs/API_docs_v72/methods/phone_receivedCall.md index 8ca6a4e1..00b51aed 100644 --- a/old_docs/API_docs_v72/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v72/methods/phone_receivedCall.md @@ -30,13 +30,18 @@ description: phone.receivedCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); ``` diff --git a/old_docs/API_docs_v72/methods/phone_requestCall.md b/old_docs/API_docs_v72/methods/phone_requestCall.md index c8ae48a9..be45437e 100644 --- a/old_docs/API_docs_v72/methods/phone_requestCall.md +++ b/old_docs/API_docs_v72/methods/phone_requestCall.md @@ -1,12 +1,12 @@ --- title: phone.requestCall -description: phone.requestCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.requestCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v72/methods/phone_saveCallDebug.md b/old_docs/API_docs_v72/methods/phone_saveCallDebug.md index ea3fa2d7..90135792 100644 --- a/old_docs/API_docs_v72/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v72/methods/phone_saveCallDebug.md @@ -31,13 +31,18 @@ description: phone.saveCallDebug parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v72/methods/phone_setCallRating.md b/old_docs/API_docs_v72/methods/phone_setCallRating.md index c6e5d7fa..21570b80 100644 --- a/old_docs/API_docs_v72/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v72/methods/phone_setCallRating.md @@ -31,13 +31,18 @@ description: phone.setCallRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/photos_deletePhotos.md b/old_docs/API_docs_v72/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v72/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v72/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/photos_getUserPhotos.md b/old_docs/API_docs_v72/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v72/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v72/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v72/methods/photos_updateProfilePhoto.md index cc79a625..1ed6fb24 100644 --- a/old_docs/API_docs_v72/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v72/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| ### Return type: [UserProfilePhoto](../types/UserProfilePhoto.md) @@ -22,13 +22,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); ``` diff --git a/old_docs/API_docs_v72/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v72/methods/photos_uploadProfilePhoto.md index 075dab4b..4b20315b 100644 --- a/old_docs/API_docs_v72/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v72/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| ### Return type: [photos\_Photo](../types/photos_Photo.md) @@ -32,13 +32,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); ``` diff --git a/old_docs/API_docs_v72/methods/ping.md b/old_docs/API_docs_v72/methods/ping.md index 7c20ca86..18f5a2bd 100644 --- a/old_docs/API_docs_v72/methods/ping.md +++ b/old_docs/API_docs_v72/methods/ping.md @@ -1,16 +1,18 @@ --- title: ping -description: ping parameters, return type and example +description: pings the server --- ## Method: ping [Back to methods index](index.md) +pings the server + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ping\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ping\_id|[long](../types/long.md) | Yes|Ping ID| ### Return type: [Pong](../types/Pong.md) @@ -22,16 +24,18 @@ description: ping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Pong = $MadelineProto->ping(['ping_id' => long, ]); ``` diff --git a/old_docs/API_docs_v72/methods/ping_delay_disconnect.md b/old_docs/API_docs_v72/methods/ping_delay_disconnect.md index e8b62005..709f8026 100644 --- a/old_docs/API_docs_v72/methods/ping_delay_disconnect.md +++ b/old_docs/API_docs_v72/methods/ping_delay_disconnect.md @@ -1,17 +1,19 @@ --- title: ping_delay_disconnect -description: ping_delay_disconnect parameters, return type and example +description: Pings the server and causes disconection if the same method is not called within ping_disconnect_delay --- ## Method: ping\_delay\_disconnect [Back to methods index](index.md) +Pings the server and causes disconection if the same method is not called within ping_disconnect_delay + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ping\_id|[long](../types/long.md) | Yes| -|disconnect\_delay|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ping\_id|[long](../types/long.md) | Yes|Ping ID| +|disconnect\_delay|[int](../types/int.md) | Yes|Disconection delay| ### Return type: [Pong](../types/Pong.md) @@ -23,16 +25,18 @@ description: ping_delay_disconnect parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Pong = $MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/req_DH_params.md b/old_docs/API_docs_v72/methods/req_DH_params.md index 697540d8..b0cc4418 100644 --- a/old_docs/API_docs_v72/methods/req_DH_params.md +++ b/old_docs/API_docs_v72/methods/req_DH_params.md @@ -1,21 +1,23 @@ --- title: req_DH_params -description: req_DH_params parameters, return type and example +description: Requests Diffie-hellman parameters for key exchange --- ## Method: req\_DH\_params [Back to methods index](index.md) +Requests Diffie-hellman parameters for key exchange + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| -|server\_nonce|[int128](../types/int128.md) | Yes| -|p|[string](../types/string.md) | Yes| -|q|[string](../types/string.md) | Yes| -|public\_key\_fingerprint|[long](../types/long.md) | Yes| -|encrypted\_data|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| +|server\_nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security, given by server| +|p|[string](../types/string.md) | Yes|| +|q|[string](../types/string.md) | Yes|| +|public\_key\_fingerprint|[long](../types/long.md) | Yes|Server RSA fingerprint| +|encrypted\_data|[string](../types/string.md) | Yes|| ### Return type: [Server\_DH\_Params](../types/Server_DH_Params.md) @@ -27,16 +29,18 @@ description: req_DH_params parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Server_DH_Params = $MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => 'string', 'q' => 'string', 'public_key_fingerprint' => long, 'encrypted_data' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/req_pq.md b/old_docs/API_docs_v72/methods/req_pq.md index 7a583643..39a1715b 100644 --- a/old_docs/API_docs_v72/methods/req_pq.md +++ b/old_docs/API_docs_v72/methods/req_pq.md @@ -1,16 +1,18 @@ --- title: req_pq -description: req_pq parameters, return type and example +description: Requests PQ for factorization --- ## Method: req\_pq [Back to methods index](index.md) +Requests PQ for factorization + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| ### Return type: [ResPQ](../types/ResPQ.md) @@ -22,16 +24,18 @@ description: req_pq parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ResPQ = $MadelineProto->req_pq(['nonce' => int128, ]); ``` diff --git a/old_docs/API_docs_v72/methods/rpc_drop_answer.md b/old_docs/API_docs_v72/methods/rpc_drop_answer.md index e15ddca9..225a43b5 100644 --- a/old_docs/API_docs_v72/methods/rpc_drop_answer.md +++ b/old_docs/API_docs_v72/methods/rpc_drop_answer.md @@ -1,16 +1,18 @@ --- title: rpc_drop_answer -description: rpc_drop_answer parameters, return type and example +description: Do not send answer to provided request --- ## Method: rpc\_drop\_answer [Back to methods index](index.md) +Do not send answer to provided request + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|req\_msg\_id|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|req\_msg\_id|[long](../types/long.md) | Yes|The message ID of the request| ### Return type: [RpcDropAnswer](../types/RpcDropAnswer.md) @@ -22,16 +24,18 @@ description: rpc_drop_answer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $RpcDropAnswer = $MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]); ``` diff --git a/old_docs/API_docs_v72/methods/set_client_DH_params.md b/old_docs/API_docs_v72/methods/set_client_DH_params.md index 8721ed40..4af21a12 100644 --- a/old_docs/API_docs_v72/methods/set_client_DH_params.md +++ b/old_docs/API_docs_v72/methods/set_client_DH_params.md @@ -1,18 +1,20 @@ --- title: set_client_DH_params -description: set_client_DH_params parameters, return type and example +description: Sets client diffie-hellman parameters --- ## Method: set\_client\_DH\_params [Back to methods index](index.md) +Sets client diffie-hellman parameters + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|nonce|[int128](../types/int128.md) | Yes| -|server\_nonce|[int128](../types/int128.md) | Yes| -|encrypted\_data|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security| +|server\_nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security, given by server| +|encrypted\_data|[string](../types/string.md) | Yes|| ### Return type: [Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) @@ -24,16 +26,18 @@ description: set_client_DH_params parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Set_client_DH_params_answer = $MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => 'string', ]); ``` diff --git a/old_docs/API_docs_v72/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v72/methods/stickers_addStickerToSet.md index e7fa6ed4..f70d14fb 100644 --- a/old_docs/API_docs_v72/methods/stickers_addStickerToSet.md +++ b/old_docs/API_docs_v72/methods/stickers_addStickerToSet.md @@ -31,16 +31,18 @@ description: stickers.addStickerToSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->addStickerToSet(['stickerset' => InputStickerSet, 'sticker' => InputStickerSetItem, ]); ``` diff --git a/old_docs/API_docs_v72/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v72/methods/stickers_changeStickerPosition.md index bcbbc57d..05597041 100644 --- a/old_docs/API_docs_v72/methods/stickers_changeStickerPosition.md +++ b/old_docs/API_docs_v72/methods/stickers_changeStickerPosition.md @@ -10,7 +10,7 @@ description: stickers.changeStickerPosition parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|sticker|[InputDocument](../types/InputDocument.md) | Optional| +|sticker|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |position|[int](../types/int.md) | Yes| @@ -31,16 +31,18 @@ description: stickers.changeStickerPosition parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->changeStickerPosition(['sticker' => InputDocument, 'position' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/stickers_createStickerSet.md b/old_docs/API_docs_v72/methods/stickers_createStickerSet.md index ba8a2d71..1db94b11 100644 --- a/old_docs/API_docs_v72/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v72/methods/stickers_createStickerSet.md @@ -11,7 +11,7 @@ description: stickers.createStickerSet parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |masks|[Bool](../types/Bool.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |title|[string](../types/string.md) | Yes| |short\_name|[string](../types/string.md) | Yes| |stickers|Array of [InputStickerSetItem](../types/InputStickerSetItem.md) | Yes| @@ -41,18 +41,20 @@ description: stickers.createStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem, InputStickerSetItem], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v72/methods/stickers_removeStickerFromSet.md index adb64e07..6a37b6a4 100644 --- a/old_docs/API_docs_v72/methods/stickers_removeStickerFromSet.md +++ b/old_docs/API_docs_v72/methods/stickers_removeStickerFromSet.md @@ -10,7 +10,7 @@ description: stickers.removeStickerFromSet parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|sticker|[InputDocument](../types/InputDocument.md) | Optional| +|sticker|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| ### Return type: [messages\_StickerSet](../types/messages_StickerSet.md) @@ -30,16 +30,18 @@ description: stickers.removeStickerFromSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->removeStickerFromSet(['sticker' => InputDocument, ]); ``` diff --git a/old_docs/API_docs_v72/methods/updates_getChannelDifference.md b/old_docs/API_docs_v72/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v72/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v72/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v72/methods/updates_getDifference.md b/old_docs/API_docs_v72/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v72/methods/updates_getDifference.md +++ b/old_docs/API_docs_v72/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v72/methods/updates_getState.md b/old_docs/API_docs_v72/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v72/methods/updates_getState.md +++ b/old_docs/API_docs_v72/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v72/methods/upload_getCdnFile.md b/old_docs/API_docs_v72/methods/upload_getCdnFile.md index 3a0cd50e..7e1eefcc 100644 --- a/old_docs/API_docs_v72/methods/upload_getCdnFile.md +++ b/old_docs/API_docs_v72/methods/upload_getCdnFile.md @@ -1,12 +1,12 @@ --- title: upload.getCdnFile -description: upload.getCdnFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v72/methods/upload_getCdnFileHashes.md b/old_docs/API_docs_v72/methods/upload_getCdnFileHashes.md index 2ab7792b..2bf24b5e 100644 --- a/old_docs/API_docs_v72/methods/upload_getCdnFileHashes.md +++ b/old_docs/API_docs_v72/methods/upload_getCdnFileHashes.md @@ -1,12 +1,12 @@ --- title: upload.getCdnFileHashes -description: upload.getCdnFileHashes parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v72/methods/upload_getFile.md b/old_docs/API_docs_v72/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v72/methods/upload_getFile.md +++ b/old_docs/API_docs_v72/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v72/methods/upload_getWebFile.md b/old_docs/API_docs_v72/methods/upload_getWebFile.md index 8744dac5..ca200db1 100644 --- a/old_docs/API_docs_v72/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v72/methods/upload_getWebFile.md @@ -31,13 +31,18 @@ description: upload.getWebFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v72/methods/upload_reuploadCdnFile.md b/old_docs/API_docs_v72/methods/upload_reuploadCdnFile.md index 4c00bbd0..13d93ec1 100644 --- a/old_docs/API_docs_v72/methods/upload_reuploadCdnFile.md +++ b/old_docs/API_docs_v72/methods/upload_reuploadCdnFile.md @@ -1,12 +1,12 @@ --- title: upload.reuploadCdnFile -description: upload.reuploadCdnFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v72/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v72/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v72/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v72/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v72/methods/upload_saveFilePart.md b/old_docs/API_docs_v72/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v72/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v72/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v72/methods/users_getFullUser.md b/old_docs/API_docs_v72/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v72/methods/users_getFullUser.md +++ b/old_docs/API_docs_v72/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v72/methods/users_getUsers.md b/old_docs/API_docs_v72/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v72/methods/users_getUsers.md +++ b/old_docs/API_docs_v72/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v72/types/Chat.md b/old_docs/API_docs_v72/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v72/types/Chat.md +++ b/old_docs/API_docs_v72/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v72/types/InputChannel.md b/old_docs/API_docs_v72/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v72/types/InputChannel.md +++ b/old_docs/API_docs_v72/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v72/types/InputDocument.md b/old_docs/API_docs_v72/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v72/types/InputDocument.md +++ b/old_docs/API_docs_v72/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v72/types/InputEncryptedChat.md b/old_docs/API_docs_v72/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v72/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v72/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v72/types/InputEncryptedFile.md b/old_docs/API_docs_v72/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v72/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v72/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v72/types/InputFile.md b/old_docs/API_docs_v72/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v72/types/InputFile.md +++ b/old_docs/API_docs_v72/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v72/types/InputMedia.md b/old_docs/API_docs_v72/types/InputMedia.md index 3012be49..6a015de1 100644 --- a/old_docs/API_docs_v72/types/InputMedia.md +++ b/old_docs/API_docs_v72/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v72/types/InputPeer.md b/old_docs/API_docs_v72/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v72/types/InputPeer.md +++ b/old_docs/API_docs_v72/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v72/types/InputPhoto.md b/old_docs/API_docs_v72/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v72/types/InputPhoto.md +++ b/old_docs/API_docs_v72/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v72/types/InputUser.md b/old_docs/API_docs_v72/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v72/types/InputUser.md +++ b/old_docs/API_docs_v72/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v72/types/Peer.md b/old_docs/API_docs_v72/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v72/types/Peer.md +++ b/old_docs/API_docs_v72/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v72/types/PhoneCall.md b/old_docs/API_docs_v72/types/PhoneCall.md index e70eda8e..1a91a72e 100644 --- a/old_docs/API_docs_v72/types/PhoneCall.md +++ b/old_docs/API_docs_v72/types/PhoneCall.md @@ -9,7 +9,7 @@ description: constructors and methods of type PhoneCall 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://daniil.it/MadelineProto#calls) for an easy installation script. +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. @@ -83,8 +83,8 @@ Call states (these constants are incrementing integers, thus can be compared lik * `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://daniil.it/MadelineProto/API_docs/types/PhoneCallProtocol.html) object -* `getCallID()` - Gets the call ID, as an [InputPhoneCall](https://daniil.it/MadelineProto/API_docs/types/InputPhoneCall.html) object +* `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 @@ -102,7 +102,7 @@ Call states (these constants are incrementing integers, thus can be compared lik Accepts two optional parameters: -`$reason` - can be a [PhoneCallDiscardReason](https://daniil.it/MadelineProto/API_docs/types/PhoneCallDiscardReason.html) object (defaults to a [phoneCallDiscardReasonDisconnect](https://daniil.it/MadelineProto/API_docs/constructors/phoneCallDiscardReasonDisconnect.html) object). +`$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.` diff --git a/old_docs/API_docs_v72/types/User.md b/old_docs/API_docs_v72/types/User.md index d696a931..f748d04a 100644 --- a/old_docs/API_docs_v72/types/User.md +++ b/old_docs/API_docs_v72/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/old_docs/API_docs_v73/constructors/account_authorizations.md b/old_docs/API_docs_v73/constructors/account_authorizations.md index 40ebc9c9..f6f24b7f 100644 --- a/old_docs/API_docs_v73/constructors/account_authorizations.md +++ b/old_docs/API_docs_v73/constructors/account_authorizations.md @@ -21,7 +21,7 @@ description: account_authorizations attributes, type and example ### Example: ``` -$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]]; +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/account_privacyRules.md b/old_docs/API_docs_v73/constructors/account_privacyRules.md index bd72a900..f0e3167b 100644 --- a/old_docs/API_docs_v73/constructors/account_privacyRules.md +++ b/old_docs/API_docs_v73/constructors/account_privacyRules.md @@ -22,7 +22,7 @@ description: account_privacyRules attributes, type and example ### Example: ``` -$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]]; +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/botInfo.md b/old_docs/API_docs_v73/constructors/botInfo.md index bee4a540..25a27913 100644 --- a/old_docs/API_docs_v73/constructors/botInfo.md +++ b/old_docs/API_docs_v73/constructors/botInfo.md @@ -23,7 +23,7 @@ description: botInfo attributes, type and example ### Example: ``` -$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand]]; +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/botInlineMessageText.md b/old_docs/API_docs_v73/constructors/botInlineMessageText.md index dc00808b..feb5e9d0 100644 --- a/old_docs/API_docs_v73/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v73/constructors/botInlineMessageText.md @@ -24,7 +24,7 @@ description: botInlineMessageText attributes, type and example ### Example: ``` -$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/cdnConfig.md b/old_docs/API_docs_v73/constructors/cdnConfig.md index 28e814e5..2bf5d200 100644 --- a/old_docs/API_docs_v73/constructors/cdnConfig.md +++ b/old_docs/API_docs_v73/constructors/cdnConfig.md @@ -21,7 +21,7 @@ description: cdnConfig attributes, type and example ### Example: ``` -$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey]]; +$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey, CdnPublicKey]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/channelFull.md b/old_docs/API_docs_v73/constructors/channelFull.md index f32618fe..14974fd3 100644 --- a/old_docs/API_docs_v73/constructors/channelFull.md +++ b/old_docs/API_docs_v73/constructors/channelFull.md @@ -42,7 +42,7 @@ description: channelFull attributes, type and example ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'hidden_prehistory' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_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]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'hidden_prehistory' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_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: diff --git a/old_docs/API_docs_v73/constructors/channelMessagesFilter.md b/old_docs/API_docs_v73/constructors/channelMessagesFilter.md index 0a731ce9..ad9a592e 100644 --- a/old_docs/API_docs_v73/constructors/channelMessagesFilter.md +++ b/old_docs/API_docs_v73/constructors/channelMessagesFilter.md @@ -22,7 +22,7 @@ description: channelMessagesFilter attributes, type and example ### Example: ``` -$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange]]; +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/channels_adminLogResults.md b/old_docs/API_docs_v73/constructors/channels_adminLogResults.md index f0eb0e66..1ef19a76 100644 --- a/old_docs/API_docs_v73/constructors/channels_adminLogResults.md +++ b/old_docs/API_docs_v73/constructors/channels_adminLogResults.md @@ -23,7 +23,7 @@ description: channels_adminLogResults attributes, type and example ### Example: ``` -$channels_adminLogResults = ['_' => 'channels.adminLogResults', 'events' => [ChannelAdminLogEvent], 'chats' => [Chat], 'users' => [User]]; +$channels_adminLogResults = ['_' => 'channels.adminLogResults', 'events' => [ChannelAdminLogEvent, ChannelAdminLogEvent], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/channels_channelParticipant.md b/old_docs/API_docs_v73/constructors/channels_channelParticipant.md index 8a640f84..7ff6a269 100644 --- a/old_docs/API_docs_v73/constructors/channels_channelParticipant.md +++ b/old_docs/API_docs_v73/constructors/channels_channelParticipant.md @@ -22,7 +22,7 @@ description: channels_channelParticipant attributes, type and example ### Example: ``` -$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User]]; +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/channels_channelParticipants.md b/old_docs/API_docs_v73/constructors/channels_channelParticipants.md index 76eb22c8..b82607c3 100644 --- a/old_docs/API_docs_v73/constructors/channels_channelParticipants.md +++ b/old_docs/API_docs_v73/constructors/channels_channelParticipants.md @@ -23,7 +23,7 @@ description: channels_channelParticipants attributes, type and example ### Example: ``` -$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User]]; +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/chatFull.md b/old_docs/API_docs_v73/constructors/chatFull.md index 7132fcf3..e83d4448 100644 --- a/old_docs/API_docs_v73/constructors/chatFull.md +++ b/old_docs/API_docs_v73/constructors/chatFull.md @@ -26,7 +26,7 @@ description: chatFull attributes, type and example ### Example: ``` -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo]]; +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/chatInvite.md b/old_docs/API_docs_v73/constructors/chatInvite.md index e7000f7b..e9087e0d 100644 --- a/old_docs/API_docs_v73/constructors/chatInvite.md +++ b/old_docs/API_docs_v73/constructors/chatInvite.md @@ -28,7 +28,7 @@ description: chatInvite attributes, type and example ### Example: ``` -$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [User]]; +$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: diff --git a/old_docs/API_docs_v73/constructors/chatParticipants.md b/old_docs/API_docs_v73/constructors/chatParticipants.md index bfab7167..ce15c5f6 100644 --- a/old_docs/API_docs_v73/constructors/chatParticipants.md +++ b/old_docs/API_docs_v73/constructors/chatParticipants.md @@ -23,7 +23,7 @@ description: chatParticipants attributes, type and example ### Example: ``` -$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int]; +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/config.md b/old_docs/API_docs_v73/constructors/config.md index 318ce485..0fdd9e25 100644 --- a/old_docs/API_docs_v73/constructors/config.md +++ b/old_docs/API_docs_v73/constructors/config.md @@ -55,7 +55,7 @@ description: config attributes, type and example ### Example: ``` -$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'default_p2p_contacts' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_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', 'suggested_lang_code' => 'string', 'lang_pack_version' => int, 'disabled_features' => [DisabledFeature]]; +$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'default_p2p_contacts' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_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', 'suggested_lang_code' => 'string', 'lang_pack_version' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/contacts_blocked.md b/old_docs/API_docs_v73/constructors/contacts_blocked.md index 885b15fa..5e0e592c 100644 --- a/old_docs/API_docs_v73/constructors/contacts_blocked.md +++ b/old_docs/API_docs_v73/constructors/contacts_blocked.md @@ -22,7 +22,7 @@ description: contacts_blocked attributes, type and example ### Example: ``` -$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v73/constructors/contacts_blockedSlice.md index 1534bfa1..2747f6c4 100644 --- a/old_docs/API_docs_v73/constructors/contacts_blockedSlice.md +++ b/old_docs/API_docs_v73/constructors/contacts_blockedSlice.md @@ -23,7 +23,7 @@ description: contacts_blockedSlice attributes, type and example ### Example: ``` -$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User]]; +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/contacts_contacts.md b/old_docs/API_docs_v73/constructors/contacts_contacts.md index 17e4ddc1..f239b0b7 100644 --- a/old_docs/API_docs_v73/constructors/contacts_contacts.md +++ b/old_docs/API_docs_v73/constructors/contacts_contacts.md @@ -23,7 +23,7 @@ description: contacts_contacts attributes, type and example ### Example: ``` -$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'saved_count' => int, 'users' => [User]]; +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'saved_count' => int, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/contacts_found.md b/old_docs/API_docs_v73/constructors/contacts_found.md index de1695b4..be49e183 100644 --- a/old_docs/API_docs_v73/constructors/contacts_found.md +++ b/old_docs/API_docs_v73/constructors/contacts_found.md @@ -23,7 +23,7 @@ description: contacts_found attributes, type and example ### Example: ``` -$contacts_found = ['_' => 'contacts.found', 'results' => [Peer], 'chats' => [Chat], 'users' => [User]]; +$contacts_found = ['_' => 'contacts.found', 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/contacts_importedContacts.md b/old_docs/API_docs_v73/constructors/contacts_importedContacts.md index ae85f35e..e4d017c0 100644 --- a/old_docs/API_docs_v73/constructors/contacts_importedContacts.md +++ b/old_docs/API_docs_v73/constructors/contacts_importedContacts.md @@ -24,7 +24,7 @@ description: contacts_importedContacts attributes, type and example ### Example: ``` -$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'popular_invites' => [PopularContact], 'retry_contacts' => [long], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v73/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v73/constructors/contacts_resolvedPeer.md index 4fef6176..3a53879d 100644 --- a/old_docs/API_docs_v73/constructors/contacts_resolvedPeer.md +++ b/old_docs/API_docs_v73/constructors/contacts_resolvedPeer.md @@ -23,7 +23,7 @@ description: contacts_resolvedPeer attributes, type and example ### Example: ``` -$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat], 'users' => [User]]; +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/contacts_topPeers.md b/old_docs/API_docs_v73/constructors/contacts_topPeers.md index 17551f5d..07623018 100644 --- a/old_docs/API_docs_v73/constructors/contacts_topPeers.md +++ b/old_docs/API_docs_v73/constructors/contacts_topPeers.md @@ -23,7 +23,7 @@ description: contacts_topPeers attributes, type and example ### Example: ``` -$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers], 'chats' => [Chat], 'users' => [User]]; +$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers, TopPeerCategoryPeers], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/document.md b/old_docs/API_docs_v73/constructors/document.md index 8c0883bb..55d4c017 100644 --- a/old_docs/API_docs_v73/constructors/document.md +++ b/old_docs/API_docs_v73/constructors/document.md @@ -29,7 +29,7 @@ description: document attributes, type and example ### Example: ``` -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/documentAttributeAudio.md b/old_docs/API_docs_v73/constructors/documentAttributeAudio.md index 4d393890..ceb02cba 100644 --- a/old_docs/API_docs_v73/constructors/documentAttributeAudio.md +++ b/old_docs/API_docs_v73/constructors/documentAttributeAudio.md @@ -12,7 +12,7 @@ description: documentAttributeAudio attributes, type and example | Name | Type | Required | |----------|---------------|----------| |voice|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| |title|[string](../types/string.md) | Optional| |performer|[string](../types/string.md) | Optional| |waveform|[bytes](../types/bytes.md) | Optional| diff --git a/old_docs/API_docs_v73/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v73/constructors/documentAttributeImageSize.md index 398b50f1..16de8acc 100644 --- a/old_docs/API_docs_v73/constructors/documentAttributeImageSize.md +++ b/old_docs/API_docs_v73/constructors/documentAttributeImageSize.md @@ -11,8 +11,8 @@ description: documentAttributeImageSize attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v73/constructors/documentAttributeVideo.md b/old_docs/API_docs_v73/constructors/documentAttributeVideo.md index 38ce9302..5c367fc9 100644 --- a/old_docs/API_docs_v73/constructors/documentAttributeVideo.md +++ b/old_docs/API_docs_v73/constructors/documentAttributeVideo.md @@ -12,9 +12,9 @@ description: documentAttributeVideo attributes, type and example | Name | Type | Required | |----------|---------------|----------| |round\_message|[Bool](../types/Bool.md) | Optional| -|duration|[int](../types/int.md) | Yes| -|w|[int](../types/int.md) | Yes| -|h|[int](../types/int.md) | Yes| +|duration|[int](../types/int.md) | Optional| +|w|[int](../types/int.md) | Optional| +|h|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v73/constructors/draftMessage.md b/old_docs/API_docs_v73/constructors/draftMessage.md index 13277194..644adc43 100644 --- a/old_docs/API_docs_v73/constructors/draftMessage.md +++ b/old_docs/API_docs_v73/constructors/draftMessage.md @@ -25,7 +25,7 @@ description: draftMessage attributes, type and example ### Example: ``` -$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity], 'date' => int]; +$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'date' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/help_recentMeUrls.md b/old_docs/API_docs_v73/constructors/help_recentMeUrls.md index 282945dd..04d9d1e4 100644 --- a/old_docs/API_docs_v73/constructors/help_recentMeUrls.md +++ b/old_docs/API_docs_v73/constructors/help_recentMeUrls.md @@ -23,7 +23,7 @@ description: help_recentMeUrls attributes, type and example ### Example: ``` -$help_recentMeUrls = ['_' => 'help.recentMeUrls', 'urls' => [RecentMeUrl], 'chats' => [Chat], 'users' => [User]]; +$help_recentMeUrls = ['_' => 'help.recentMeUrls', 'urls' => [RecentMeUrl, RecentMeUrl], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v73/constructors/inputBotInlineMessageText.md index 677e5d8c..ed3ddd1b 100644 --- a/old_docs/API_docs_v73/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v73/constructors/inputBotInlineMessageText.md @@ -24,7 +24,7 @@ description: inputBotInlineMessageText attributes, type and example ### Example: ``` -$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup]; +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/inputBotInlineResultDocument.md b/old_docs/API_docs_v73/constructors/inputBotInlineResultDocument.md index 2315623b..f27421f9 100644 --- a/old_docs/API_docs_v73/constructors/inputBotInlineResultDocument.md +++ b/old_docs/API_docs_v73/constructors/inputBotInlineResultDocument.md @@ -15,7 +15,7 @@ description: inputBotInlineResultDocument attributes, type and example |type|[string](../types/string.md) | Yes| |title|[string](../types/string.md) | Optional| |description|[string](../types/string.md) | Optional| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v73/constructors/inputBotInlineResultPhoto.md b/old_docs/API_docs_v73/constructors/inputBotInlineResultPhoto.md index d39bd108..9628b4e5 100644 --- a/old_docs/API_docs_v73/constructors/inputBotInlineResultPhoto.md +++ b/old_docs/API_docs_v73/constructors/inputBotInlineResultPhoto.md @@ -13,7 +13,7 @@ description: inputBotInlineResultPhoto attributes, type and example |----------|---------------|----------| |id|[string](../types/string.md) | Yes| |type|[string](../types/string.md) | Yes| -|photo|[InputPhoto](../types/InputPhoto.md) | Optional| +|photo|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes| diff --git a/old_docs/API_docs_v73/constructors/inputChatPhoto.md b/old_docs/API_docs_v73/constructors/inputChatPhoto.md index e787f342..ae979308 100644 --- a/old_docs/API_docs_v73/constructors/inputChatPhoto.md +++ b/old_docs/API_docs_v73/constructors/inputChatPhoto.md @@ -11,7 +11,7 @@ description: inputChatPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v73/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v73/constructors/inputChatUploadedPhoto.md index 78c28fdc..e9d2f354 100644 --- a/old_docs/API_docs_v73/constructors/inputChatUploadedPhoto.md +++ b/old_docs/API_docs_v73/constructors/inputChatUploadedPhoto.md @@ -11,7 +11,7 @@ description: inputChatUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| diff --git a/old_docs/API_docs_v73/constructors/inputGameShortName.md b/old_docs/API_docs_v73/constructors/inputGameShortName.md index 64c55c18..0261912a 100644 --- a/old_docs/API_docs_v73/constructors/inputGameShortName.md +++ b/old_docs/API_docs_v73/constructors/inputGameShortName.md @@ -11,7 +11,7 @@ description: inputGameShortName attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|bot\_id|[InputUser](../types/InputUser.md) | Optional| +|bot\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |short\_name|[string](../types/string.md) | Yes| diff --git a/old_docs/API_docs_v73/constructors/inputMediaDocument.md b/old_docs/API_docs_v73/constructors/inputMediaDocument.md index 1e97ec2d..ac7b262e 100644 --- a/old_docs/API_docs_v73/constructors/inputMediaDocument.md +++ b/old_docs/API_docs_v73/constructors/inputMediaDocument.md @@ -11,7 +11,7 @@ description: inputMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |caption|[string](../types/string.md) | Yes| |ttl\_seconds|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v73/constructors/inputMediaPhoto.md b/old_docs/API_docs_v73/constructors/inputMediaPhoto.md index e952098b..f14440b0 100644 --- a/old_docs/API_docs_v73/constructors/inputMediaPhoto.md +++ b/old_docs/API_docs_v73/constructors/inputMediaPhoto.md @@ -11,7 +11,7 @@ description: inputMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| |caption|[string](../types/string.md) | Yes| |ttl\_seconds|[int](../types/int.md) | Optional| diff --git a/old_docs/API_docs_v73/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v73/constructors/inputMediaUploadedDocument.md index 48dd1677..5660f03b 100644 --- a/old_docs/API_docs_v73/constructors/inputMediaUploadedDocument.md +++ b/old_docs/API_docs_v73/constructors/inputMediaUploadedDocument.md @@ -12,12 +12,12 @@ description: inputMediaUploadedDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| |nosound\_video|[Bool](../types/Bool.md) | Optional| -|file|[InputFile](../types/InputFile.md) | Yes| -|thumb|[InputFile](../types/InputFile.md) | Optional| -|mime\_type|[string](../types/string.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|thumb|[File path or InputFile](../types/InputFile.md) | Optional| +|mime\_type|[string](../types/string.md) | Optional| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |ttl\_seconds|[int](../types/int.md) | Optional| @@ -28,7 +28,7 @@ description: inputMediaUploadedDocument attributes, type and example ### Example: ``` -$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'nosound_video' => Bool, 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument], 'ttl_seconds' => int]; +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'nosound_video' => Bool, 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument], 'ttl_seconds' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v73/constructors/inputMediaUploadedPhoto.md index 7ace8cee..ff6085c5 100644 --- a/old_docs/API_docs_v73/constructors/inputMediaUploadedPhoto.md +++ b/old_docs/API_docs_v73/constructors/inputMediaUploadedPhoto.md @@ -11,9 +11,9 @@ description: inputMediaUploadedPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| |caption|[string](../types/string.md) | Yes| -|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |ttl\_seconds|[int](../types/int.md) | Optional| @@ -24,7 +24,7 @@ description: inputMediaUploadedPhoto attributes, type and example ### Example: ``` -$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument], 'ttl_seconds' => int]; +$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument, InputDocument], 'ttl_seconds' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/inputNotifyPeer.md b/old_docs/API_docs_v73/constructors/inputNotifyPeer.md index 2649feff..c89e5042 100644 --- a/old_docs/API_docs_v73/constructors/inputNotifyPeer.md +++ b/old_docs/API_docs_v73/constructors/inputNotifyPeer.md @@ -11,7 +11,7 @@ description: inputNotifyPeer attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| diff --git a/old_docs/API_docs_v73/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v73/constructors/inputPrivacyValueAllowUsers.md index edbf33d4..305cf267 100644 --- a/old_docs/API_docs_v73/constructors/inputPrivacyValueAllowUsers.md +++ b/old_docs/API_docs_v73/constructors/inputPrivacyValueAllowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueAllowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser]]; +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v73/constructors/inputPrivacyValueDisallowUsers.md index 0816acad..dc53acc4 100644 --- a/old_docs/API_docs_v73/constructors/inputPrivacyValueDisallowUsers.md +++ b/old_docs/API_docs_v73/constructors/inputPrivacyValueDisallowUsers.md @@ -11,7 +11,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| @@ -21,7 +21,7 @@ description: inputPrivacyValueDisallowUsers attributes, type and example ### Example: ``` -$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser]]; +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/inputSingleMedia.md b/old_docs/API_docs_v73/constructors/inputSingleMedia.md index b7b2d7f4..5d78039c 100644 --- a/old_docs/API_docs_v73/constructors/inputSingleMedia.md +++ b/old_docs/API_docs_v73/constructors/inputSingleMedia.md @@ -11,7 +11,7 @@ description: inputSingleMedia attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Message, Update or InputMedia](../types/InputMedia.md) | Optional| diff --git a/old_docs/API_docs_v73/constructors/inputStickerSetItem.md b/old_docs/API_docs_v73/constructors/inputStickerSetItem.md index 84ae0e46..749330b9 100644 --- a/old_docs/API_docs_v73/constructors/inputStickerSetItem.md +++ b/old_docs/API_docs_v73/constructors/inputStickerSetItem.md @@ -11,7 +11,7 @@ description: inputStickerSetItem attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|document|[InputDocument](../types/InputDocument.md) | Optional| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| |emoji|[string](../types/string.md) | Yes| |mask\_coords|[MaskCoords](../types/MaskCoords.md) | Optional| diff --git a/old_docs/API_docs_v73/constructors/inputStickeredMediaDocument.md b/old_docs/API_docs_v73/constructors/inputStickeredMediaDocument.md index ca9921e7..c281b7e5 100644 --- a/old_docs/API_docs_v73/constructors/inputStickeredMediaDocument.md +++ b/old_docs/API_docs_v73/constructors/inputStickeredMediaDocument.md @@ -11,7 +11,7 @@ description: inputStickeredMediaDocument attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional| diff --git a/old_docs/API_docs_v73/constructors/inputStickeredMediaPhoto.md b/old_docs/API_docs_v73/constructors/inputStickeredMediaPhoto.md index ac0428e1..042044b0 100644 --- a/old_docs/API_docs_v73/constructors/inputStickeredMediaPhoto.md +++ b/old_docs/API_docs_v73/constructors/inputStickeredMediaPhoto.md @@ -11,7 +11,7 @@ description: inputStickeredMediaPhoto attributes, type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional| diff --git a/old_docs/API_docs_v73/constructors/inputWebDocument.md b/old_docs/API_docs_v73/constructors/inputWebDocument.md index 81f2707a..dd9a24ff 100644 --- a/old_docs/API_docs_v73/constructors/inputWebDocument.md +++ b/old_docs/API_docs_v73/constructors/inputWebDocument.md @@ -24,7 +24,7 @@ description: inputWebDocument attributes, type and example ### Example: ``` -$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute]]; +$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/invoice.md b/old_docs/API_docs_v73/constructors/invoice.md index cf585377..07d6694b 100644 --- a/old_docs/API_docs_v73/constructors/invoice.md +++ b/old_docs/API_docs_v73/constructors/invoice.md @@ -30,7 +30,7 @@ description: invoice attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v73/constructors/keyboardButtonRow.md b/old_docs/API_docs_v73/constructors/keyboardButtonRow.md index 245ebe61..1b8c3572 100644 --- a/old_docs/API_docs_v73/constructors/keyboardButtonRow.md +++ b/old_docs/API_docs_v73/constructors/keyboardButtonRow.md @@ -21,7 +21,7 @@ description: keyboardButtonRow attributes, type and example ### Example: ``` -$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]]; +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/langPackDifference.md b/old_docs/API_docs_v73/constructors/langPackDifference.md index 0d077158..3447d739 100644 --- a/old_docs/API_docs_v73/constructors/langPackDifference.md +++ b/old_docs/API_docs_v73/constructors/langPackDifference.md @@ -24,7 +24,7 @@ description: langPackDifference attributes, type and example ### Example: ``` -$langPackDifference = ['_' => 'langPackDifference', 'lang_code' => 'string', 'from_version' => int, 'version' => int, 'strings' => [LangPackString]]; +$langPackDifference = ['_' => 'langPackDifference', 'lang_code' => 'string', 'from_version' => int, 'version' => int, 'strings' => [LangPackString, LangPackString]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/message.md b/old_docs/API_docs_v73/constructors/message.md index 27bf1730..71eeda88 100644 --- a/old_docs/API_docs_v73/constructors/message.md +++ b/old_docs/API_docs_v73/constructors/message.md @@ -40,7 +40,7 @@ description: message attributes, type and example ### Example: ``` -$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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]; +$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => 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: diff --git a/old_docs/API_docs_v73/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v73/constructors/messageActionChatAddUser.md index ac8a48ed..65dba8c2 100644 --- a/old_docs/API_docs_v73/constructors/messageActionChatAddUser.md +++ b/old_docs/API_docs_v73/constructors/messageActionChatAddUser.md @@ -21,7 +21,7 @@ description: messageActionChatAddUser attributes, type and example ### Example: ``` -$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int]]; +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messageActionChatCreate.md b/old_docs/API_docs_v73/constructors/messageActionChatCreate.md index 7af48f3d..0a0ba596 100644 --- a/old_docs/API_docs_v73/constructors/messageActionChatCreate.md +++ b/old_docs/API_docs_v73/constructors/messageActionChatCreate.md @@ -22,7 +22,7 @@ description: messageActionChatCreate attributes, type and example ### Example: ``` -$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int]]; +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_allStickers.md b/old_docs/API_docs_v73/constructors/messages_allStickers.md index aac036d9..1e8f527a 100644 --- a/old_docs/API_docs_v73/constructors/messages_allStickers.md +++ b/old_docs/API_docs_v73/constructors/messages_allStickers.md @@ -22,7 +22,7 @@ description: messages_allStickers attributes, type and example ### Example: ``` -$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet]]; +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_archivedStickers.md b/old_docs/API_docs_v73/constructors/messages_archivedStickers.md index 7af238d4..c9675b57 100644 --- a/old_docs/API_docs_v73/constructors/messages_archivedStickers.md +++ b/old_docs/API_docs_v73/constructors/messages_archivedStickers.md @@ -22,7 +22,7 @@ description: messages_archivedStickers attributes, type and example ### Example: ``` -$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered]]; +$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_botResults.md b/old_docs/API_docs_v73/constructors/messages_botResults.md index 481be63b..d043c50e 100644 --- a/old_docs/API_docs_v73/constructors/messages_botResults.md +++ b/old_docs/API_docs_v73/constructors/messages_botResults.md @@ -27,7 +27,7 @@ description: messages_botResults attributes, type and example ### Example: ``` -$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult], 'cache_time' => int, 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v73/constructors/messages_channelMessages.md b/old_docs/API_docs_v73/constructors/messages_channelMessages.md index 8ec11b2d..358c0c70 100644 --- a/old_docs/API_docs_v73/constructors/messages_channelMessages.md +++ b/old_docs/API_docs_v73/constructors/messages_channelMessages.md @@ -25,7 +25,7 @@ description: messages_channelMessages attributes, type and example ### Example: ``` -$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_channelMessages = ['_' => 'messages.channelMessages', 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_chatFull.md b/old_docs/API_docs_v73/constructors/messages_chatFull.md index 902c740a..ae89976e 100644 --- a/old_docs/API_docs_v73/constructors/messages_chatFull.md +++ b/old_docs/API_docs_v73/constructors/messages_chatFull.md @@ -23,7 +23,7 @@ description: messages_chatFull attributes, type and example ### Example: ``` -$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat], 'users' => [User]]; +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_chats.md b/old_docs/API_docs_v73/constructors/messages_chats.md index 3a09e032..60d362e5 100644 --- a/old_docs/API_docs_v73/constructors/messages_chats.md +++ b/old_docs/API_docs_v73/constructors/messages_chats.md @@ -21,7 +21,7 @@ description: messages_chats attributes, type and example ### Example: ``` -$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat]]; +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_chatsSlice.md b/old_docs/API_docs_v73/constructors/messages_chatsSlice.md index 4e3e0e77..614c577b 100644 --- a/old_docs/API_docs_v73/constructors/messages_chatsSlice.md +++ b/old_docs/API_docs_v73/constructors/messages_chatsSlice.md @@ -22,7 +22,7 @@ description: messages_chatsSlice attributes, type and example ### Example: ``` -$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat]]; +$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat, Chat]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_dialogs.md b/old_docs/API_docs_v73/constructors/messages_dialogs.md index b020caae..b4d072b2 100644 --- a/old_docs/API_docs_v73/constructors/messages_dialogs.md +++ b/old_docs/API_docs_v73/constructors/messages_dialogs.md @@ -24,7 +24,7 @@ description: messages_dialogs attributes, type and example ### Example: ``` -$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v73/constructors/messages_dialogsSlice.md index be799371..43ba09d3 100644 --- a/old_docs/API_docs_v73/constructors/messages_dialogsSlice.md +++ b/old_docs/API_docs_v73/constructors/messages_dialogsSlice.md @@ -25,7 +25,7 @@ description: messages_dialogsSlice attributes, type and example ### Example: ``` -$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v73/constructors/messages_favedStickers.md b/old_docs/API_docs_v73/constructors/messages_favedStickers.md index 7fb2fba0..1a937049 100644 --- a/old_docs/API_docs_v73/constructors/messages_favedStickers.md +++ b/old_docs/API_docs_v73/constructors/messages_favedStickers.md @@ -23,7 +23,7 @@ description: messages_favedStickers attributes, type and example ### Example: ``` -$messages_favedStickers = ['_' => 'messages.favedStickers', 'hash' => int, 'packs' => [StickerPack], 'stickers' => [Document]]; +$messages_favedStickers = ['_' => 'messages.favedStickers', 'hash' => int, 'packs' => [StickerPack, StickerPack], 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_featuredStickers.md b/old_docs/API_docs_v73/constructors/messages_featuredStickers.md index dac1fd91..0fc54db1 100644 --- a/old_docs/API_docs_v73/constructors/messages_featuredStickers.md +++ b/old_docs/API_docs_v73/constructors/messages_featuredStickers.md @@ -23,7 +23,7 @@ description: messages_featuredStickers attributes, type and example ### Example: ``` -$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered], 'unread' => [long]]; +$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered, StickerSetCovered], 'unread' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_foundGifs.md b/old_docs/API_docs_v73/constructors/messages_foundGifs.md index 390986d5..51a5a9dd 100644 --- a/old_docs/API_docs_v73/constructors/messages_foundGifs.md +++ b/old_docs/API_docs_v73/constructors/messages_foundGifs.md @@ -22,7 +22,7 @@ description: messages_foundGifs attributes, type and example ### Example: ``` -$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif]]; +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_highScores.md b/old_docs/API_docs_v73/constructors/messages_highScores.md index 26eab658..df592f06 100644 --- a/old_docs/API_docs_v73/constructors/messages_highScores.md +++ b/old_docs/API_docs_v73/constructors/messages_highScores.md @@ -22,7 +22,7 @@ description: messages_highScores attributes, type and example ### Example: ``` -$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore], 'users' => [User]]; +$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore, HighScore], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_messages.md b/old_docs/API_docs_v73/constructors/messages_messages.md index 24360337..847673df 100644 --- a/old_docs/API_docs_v73/constructors/messages_messages.md +++ b/old_docs/API_docs_v73/constructors/messages_messages.md @@ -23,7 +23,7 @@ description: messages_messages attributes, type and example ### Example: ``` -$messages_messages = ['_' => 'messages.messages', 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_messagesSlice.md b/old_docs/API_docs_v73/constructors/messages_messagesSlice.md index 0224a24a..42198be4 100644 --- a/old_docs/API_docs_v73/constructors/messages_messagesSlice.md +++ b/old_docs/API_docs_v73/constructors/messages_messagesSlice.md @@ -24,7 +24,7 @@ description: messages_messagesSlice attributes, type and example ### Example: ``` -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_peerDialogs.md b/old_docs/API_docs_v73/constructors/messages_peerDialogs.md index bec6c88c..5d25b545 100644 --- a/old_docs/API_docs_v73/constructors/messages_peerDialogs.md +++ b/old_docs/API_docs_v73/constructors/messages_peerDialogs.md @@ -25,7 +25,7 @@ description: messages_peerDialogs attributes, type and example ### Example: ``` -$messages_peerDialogs = ['_' => 'messages.peerDialogs', 'dialogs' => [Dialog], 'messages' => [Message], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v73/constructors/messages_recentStickers.md b/old_docs/API_docs_v73/constructors/messages_recentStickers.md index be5e69a0..a8a53ffe 100644 --- a/old_docs/API_docs_v73/constructors/messages_recentStickers.md +++ b/old_docs/API_docs_v73/constructors/messages_recentStickers.md @@ -22,7 +22,7 @@ description: messages_recentStickers attributes, type and example ### Example: ``` -$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document]]; +$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_savedGifs.md b/old_docs/API_docs_v73/constructors/messages_savedGifs.md index 7e2a00eb..b4ff040d 100644 --- a/old_docs/API_docs_v73/constructors/messages_savedGifs.md +++ b/old_docs/API_docs_v73/constructors/messages_savedGifs.md @@ -22,7 +22,7 @@ description: messages_savedGifs attributes, type and example ### Example: ``` -$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document]]; +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_stickerSet.md b/old_docs/API_docs_v73/constructors/messages_stickerSet.md index d0ab7962..9bcc5570 100644 --- a/old_docs/API_docs_v73/constructors/messages_stickerSet.md +++ b/old_docs/API_docs_v73/constructors/messages_stickerSet.md @@ -23,7 +23,7 @@ description: messages_stickerSet attributes, type and example ### Example: ``` -$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack], 'documents' => [Document]]; +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_stickerSetInstallResultArchive.md b/old_docs/API_docs_v73/constructors/messages_stickerSetInstallResultArchive.md index f3e510bb..5b7fb05f 100644 --- a/old_docs/API_docs_v73/constructors/messages_stickerSetInstallResultArchive.md +++ b/old_docs/API_docs_v73/constructors/messages_stickerSetInstallResultArchive.md @@ -21,7 +21,7 @@ description: messages_stickerSetInstallResultArchive attributes, type and exampl ### Example: ``` -$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered]]; +$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered, StickerSetCovered]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/messages_stickers.md b/old_docs/API_docs_v73/constructors/messages_stickers.md index 963b641a..8065b186 100644 --- a/old_docs/API_docs_v73/constructors/messages_stickers.md +++ b/old_docs/API_docs_v73/constructors/messages_stickers.md @@ -22,7 +22,7 @@ description: messages_stickers attributes, type and example ### Example: ``` -$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document]]; +$messages_stickers = ['_' => 'messages.stickers', 'hash' => 'string', 'stickers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/pageBlockCollage.md b/old_docs/API_docs_v73/constructors/pageBlockCollage.md index 8685b250..3950e34d 100644 --- a/old_docs/API_docs_v73/constructors/pageBlockCollage.md +++ b/old_docs/API_docs_v73/constructors/pageBlockCollage.md @@ -22,7 +22,7 @@ description: pageBlockCollage attributes, type and example ### Example: ``` -$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/pageBlockEmbedPost.md b/old_docs/API_docs_v73/constructors/pageBlockEmbedPost.md index e0e955b9..e9434dfa 100644 --- a/old_docs/API_docs_v73/constructors/pageBlockEmbedPost.md +++ b/old_docs/API_docs_v73/constructors/pageBlockEmbedPost.md @@ -27,7 +27,7 @@ description: pageBlockEmbedPost attributes, type and example ### Example: ``` -$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock], 'caption' => RichText]; +$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/pageBlockList.md b/old_docs/API_docs_v73/constructors/pageBlockList.md index 6bf3c783..728c05a7 100644 --- a/old_docs/API_docs_v73/constructors/pageBlockList.md +++ b/old_docs/API_docs_v73/constructors/pageBlockList.md @@ -22,7 +22,7 @@ description: pageBlockList attributes, type and example ### Example: ``` -$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText]]; +$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/pageBlockSlideshow.md b/old_docs/API_docs_v73/constructors/pageBlockSlideshow.md index e48d51bb..0c18e64f 100644 --- a/old_docs/API_docs_v73/constructors/pageBlockSlideshow.md +++ b/old_docs/API_docs_v73/constructors/pageBlockSlideshow.md @@ -22,7 +22,7 @@ description: pageBlockSlideshow attributes, type and example ### Example: ``` -$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock], 'caption' => RichText]; +$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock, PageBlock], 'caption' => RichText]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/pageFull.md b/old_docs/API_docs_v73/constructors/pageFull.md index 7dabe40d..4ea43cd0 100644 --- a/old_docs/API_docs_v73/constructors/pageFull.md +++ b/old_docs/API_docs_v73/constructors/pageFull.md @@ -23,7 +23,7 @@ description: pageFull attributes, type and example ### Example: ``` -$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock], 'photos' => [Photo], 'documents' => [Document]]; +$pageFull = ['_' => 'pageFull', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/pagePart.md b/old_docs/API_docs_v73/constructors/pagePart.md index a6969c73..32e8ac28 100644 --- a/old_docs/API_docs_v73/constructors/pagePart.md +++ b/old_docs/API_docs_v73/constructors/pagePart.md @@ -23,7 +23,7 @@ description: pagePart attributes, type and example ### Example: ``` -$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock], 'photos' => [Photo], 'documents' => [Document]]; +$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/payments_paymentForm.md b/old_docs/API_docs_v73/constructors/payments_paymentForm.md index 6b468a10..982b4a13 100644 --- a/old_docs/API_docs_v73/constructors/payments_paymentForm.md +++ b/old_docs/API_docs_v73/constructors/payments_paymentForm.md @@ -31,7 +31,7 @@ description: payments_paymentForm attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v73/constructors/payments_paymentReceipt.md b/old_docs/API_docs_v73/constructors/payments_paymentReceipt.md index cb64a78a..f7c6589c 100644 --- a/old_docs/API_docs_v73/constructors/payments_paymentReceipt.md +++ b/old_docs/API_docs_v73/constructors/payments_paymentReceipt.md @@ -30,7 +30,7 @@ description: payments_paymentReceipt attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v73/constructors/payments_validatedRequestedInfo.md b/old_docs/API_docs_v73/constructors/payments_validatedRequestedInfo.md index a1d841b5..362544ca 100644 --- a/old_docs/API_docs_v73/constructors/payments_validatedRequestedInfo.md +++ b/old_docs/API_docs_v73/constructors/payments_validatedRequestedInfo.md @@ -22,7 +22,7 @@ description: payments_validatedRequestedInfo attributes, type and example ### Example: ``` -$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption]]; +$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption, ShippingOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/phoneCall.md b/old_docs/API_docs_v73/constructors/phoneCall.md index 279af015..703116b5 100644 --- a/old_docs/API_docs_v73/constructors/phoneCall.md +++ b/old_docs/API_docs_v73/constructors/phoneCall.md @@ -31,7 +31,7 @@ description: phoneCall attributes, type and example ### Example: ``` -$phoneCall = ['_' => 'phoneCall', '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]; +$phoneCall = ['_' => 'phoneCall', '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: diff --git a/old_docs/API_docs_v73/constructors/phone_phoneCall.md b/old_docs/API_docs_v73/constructors/phone_phoneCall.md index 38177647..00a43b98 100644 --- a/old_docs/API_docs_v73/constructors/phone_phoneCall.md +++ b/old_docs/API_docs_v73/constructors/phone_phoneCall.md @@ -22,7 +22,7 @@ description: phone_phoneCall attributes, type and example ### Example: ``` -$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User]]; +$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/photo.md b/old_docs/API_docs_v73/constructors/photo.md index 0d6edc52..293458ca 100644 --- a/old_docs/API_docs_v73/constructors/photo.md +++ b/old_docs/API_docs_v73/constructors/photo.md @@ -25,7 +25,7 @@ description: photo attributes, type and example ### Example: ``` -$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize]]; +$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/photos_photo.md b/old_docs/API_docs_v73/constructors/photos_photo.md index fe21e1c2..94473074 100644 --- a/old_docs/API_docs_v73/constructors/photos_photo.md +++ b/old_docs/API_docs_v73/constructors/photos_photo.md @@ -22,7 +22,7 @@ description: photos_photo attributes, type and example ### Example: ``` -$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User]]; +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/photos_photos.md b/old_docs/API_docs_v73/constructors/photos_photos.md index 87cc750e..3ce418db 100644 --- a/old_docs/API_docs_v73/constructors/photos_photos.md +++ b/old_docs/API_docs_v73/constructors/photos_photos.md @@ -22,7 +22,7 @@ description: photos_photos attributes, type and example ### Example: ``` -$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo], 'users' => [User]]; +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/photos_photosSlice.md b/old_docs/API_docs_v73/constructors/photos_photosSlice.md index c19e8d96..6cda0506 100644 --- a/old_docs/API_docs_v73/constructors/photos_photosSlice.md +++ b/old_docs/API_docs_v73/constructors/photos_photosSlice.md @@ -23,7 +23,7 @@ description: photos_photosSlice attributes, type and example ### Example: ``` -$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo], 'users' => [User]]; +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v73/constructors/privacyValueAllowUsers.md index 7bd6ad78..cbf2f11d 100644 --- a/old_docs/API_docs_v73/constructors/privacyValueAllowUsers.md +++ b/old_docs/API_docs_v73/constructors/privacyValueAllowUsers.md @@ -21,7 +21,7 @@ description: privacyValueAllowUsers attributes, type and example ### Example: ``` -$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int]]; +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v73/constructors/privacyValueDisallowUsers.md index 0143d322..a27c36a5 100644 --- a/old_docs/API_docs_v73/constructors/privacyValueDisallowUsers.md +++ b/old_docs/API_docs_v73/constructors/privacyValueDisallowUsers.md @@ -21,7 +21,7 @@ description: privacyValueDisallowUsers attributes, type and example ### Example: ``` -$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int]]; +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/replyInlineMarkup.md b/old_docs/API_docs_v73/constructors/replyInlineMarkup.md index 80d2ff77..95257485 100644 --- a/old_docs/API_docs_v73/constructors/replyInlineMarkup.md +++ b/old_docs/API_docs_v73/constructors/replyInlineMarkup.md @@ -21,7 +21,7 @@ description: replyInlineMarkup attributes, type and example ### Example: ``` -$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow]]; +$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v73/constructors/replyKeyboardMarkup.md index 528ed4df..c7370b2d 100644 --- a/old_docs/API_docs_v73/constructors/replyKeyboardMarkup.md +++ b/old_docs/API_docs_v73/constructors/replyKeyboardMarkup.md @@ -24,7 +24,7 @@ description: replyKeyboardMarkup attributes, type and example ### Example: ``` -$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow]]; +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/shippingOption.md b/old_docs/API_docs_v73/constructors/shippingOption.md index 32ec5182..53a0405f 100644 --- a/old_docs/API_docs_v73/constructors/shippingOption.md +++ b/old_docs/API_docs_v73/constructors/shippingOption.md @@ -23,7 +23,7 @@ description: shippingOption attributes, type and example ### Example: ``` -$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice]]; +$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/stickerPack.md b/old_docs/API_docs_v73/constructors/stickerPack.md index b8ff5f9a..507e4e03 100644 --- a/old_docs/API_docs_v73/constructors/stickerPack.md +++ b/old_docs/API_docs_v73/constructors/stickerPack.md @@ -22,7 +22,7 @@ description: stickerPack attributes, type and example ### Example: ``` -$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long]]; +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/stickerSetMultiCovered.md b/old_docs/API_docs_v73/constructors/stickerSetMultiCovered.md index 4dd5a0a7..9a337fdc 100644 --- a/old_docs/API_docs_v73/constructors/stickerSetMultiCovered.md +++ b/old_docs/API_docs_v73/constructors/stickerSetMultiCovered.md @@ -22,7 +22,7 @@ description: stickerSetMultiCovered attributes, type and example ### Example: ``` -$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document]]; +$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document, Document]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/textConcat.md b/old_docs/API_docs_v73/constructors/textConcat.md index 4a44d3b2..bfdb9e50 100644 --- a/old_docs/API_docs_v73/constructors/textConcat.md +++ b/old_docs/API_docs_v73/constructors/textConcat.md @@ -21,7 +21,7 @@ description: textConcat attributes, type and example ### Example: ``` -$textConcat = ['_' => 'textConcat', 'texts' => [RichText]]; +$textConcat = ['_' => 'textConcat', 'texts' => [RichText, RichText]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/topPeerCategoryPeers.md b/old_docs/API_docs_v73/constructors/topPeerCategoryPeers.md index acd5cf08..03b78ed3 100644 --- a/old_docs/API_docs_v73/constructors/topPeerCategoryPeers.md +++ b/old_docs/API_docs_v73/constructors/topPeerCategoryPeers.md @@ -23,7 +23,7 @@ description: topPeerCategoryPeers attributes, type and example ### Example: ``` -$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer]]; +$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer, TopPeer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/updateChannelReadMessagesContents.md b/old_docs/API_docs_v73/constructors/updateChannelReadMessagesContents.md index 7b69edd8..419e7d12 100644 --- a/old_docs/API_docs_v73/constructors/updateChannelReadMessagesContents.md +++ b/old_docs/API_docs_v73/constructors/updateChannelReadMessagesContents.md @@ -22,7 +22,7 @@ description: updateChannelReadMessagesContents attributes, type and example ### Example: ``` -$updateChannelReadMessagesContents = ['_' => 'updateChannelReadMessagesContents', 'channel_id' => int, 'messages' => [int]]; +$updateChannelReadMessagesContents = ['_' => 'updateChannelReadMessagesContents', 'channel_id' => int, 'messages' => [int, int]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/updateDcOptions.md b/old_docs/API_docs_v73/constructors/updateDcOptions.md index ff3d9c85..d305af23 100644 --- a/old_docs/API_docs_v73/constructors/updateDcOptions.md +++ b/old_docs/API_docs_v73/constructors/updateDcOptions.md @@ -21,7 +21,7 @@ description: updateDcOptions attributes, type and example ### Example: ``` -$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption]]; +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v73/constructors/updateDeleteChannelMessages.md index 169bdbe8..cf91f5eb 100644 --- a/old_docs/API_docs_v73/constructors/updateDeleteChannelMessages.md +++ b/old_docs/API_docs_v73/constructors/updateDeleteChannelMessages.md @@ -24,7 +24,7 @@ description: updateDeleteChannelMessages attributes, type and example ### Example: ``` -$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/updateDeleteMessages.md b/old_docs/API_docs_v73/constructors/updateDeleteMessages.md index 76c332ba..5c1c0df4 100644 --- a/old_docs/API_docs_v73/constructors/updateDeleteMessages.md +++ b/old_docs/API_docs_v73/constructors/updateDeleteMessages.md @@ -23,7 +23,7 @@ description: updateDeleteMessages attributes, type and example ### Example: ``` -$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/updatePinnedDialogs.md b/old_docs/API_docs_v73/constructors/updatePinnedDialogs.md index a531ad75..c38d664c 100644 --- a/old_docs/API_docs_v73/constructors/updatePinnedDialogs.md +++ b/old_docs/API_docs_v73/constructors/updatePinnedDialogs.md @@ -21,7 +21,7 @@ description: updatePinnedDialogs attributes, type and example ### Example: ``` -$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer]]; +$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Peer, Peer]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/updatePrivacy.md b/old_docs/API_docs_v73/constructors/updatePrivacy.md index 2b6de794..86061f8d 100644 --- a/old_docs/API_docs_v73/constructors/updatePrivacy.md +++ b/old_docs/API_docs_v73/constructors/updatePrivacy.md @@ -22,7 +22,7 @@ description: updatePrivacy attributes, type and example ### Example: ``` -$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule]]; +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v73/constructors/updateReadMessagesContents.md index c3a9fca6..acdc84ee 100644 --- a/old_docs/API_docs_v73/constructors/updateReadMessagesContents.md +++ b/old_docs/API_docs_v73/constructors/updateReadMessagesContents.md @@ -23,7 +23,7 @@ description: updateReadMessagesContents attributes, type and example ### Example: ``` -$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int], 'pts' => int, 'pts_count' => int]; +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/updateServiceNotification.md b/old_docs/API_docs_v73/constructors/updateServiceNotification.md index 562d1089..92280ccf 100644 --- a/old_docs/API_docs_v73/constructors/updateServiceNotification.md +++ b/old_docs/API_docs_v73/constructors/updateServiceNotification.md @@ -26,7 +26,7 @@ description: updateServiceNotification attributes, type and example ### Example: ``` -$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/updateShortChatMessage.md b/old_docs/API_docs_v73/constructors/updateShortChatMessage.md index 08aa61a5..f6310d0d 100644 --- a/old_docs/API_docs_v73/constructors/updateShortChatMessage.md +++ b/old_docs/API_docs_v73/constructors/updateShortChatMessage.md @@ -35,7 +35,7 @@ description: updateShortChatMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v73/constructors/updateShortMessage.md b/old_docs/API_docs_v73/constructors/updateShortMessage.md index 608d2a30..24f07b99 100644 --- a/old_docs/API_docs_v73/constructors/updateShortMessage.md +++ b/old_docs/API_docs_v73/constructors/updateShortMessage.md @@ -34,7 +34,7 @@ description: updateShortMessage attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v73/constructors/updateShortSentMessage.md b/old_docs/API_docs_v73/constructors/updateShortSentMessage.md index 28f82e3a..ebc40cf9 100644 --- a/old_docs/API_docs_v73/constructors/updateShortSentMessage.md +++ b/old_docs/API_docs_v73/constructors/updateShortSentMessage.md @@ -27,7 +27,7 @@ description: updateShortSentMessage attributes, type and example ### Example: ``` -$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity]]; +$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: diff --git a/old_docs/API_docs_v73/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v73/constructors/updateStickerSetsOrder.md index 53637821..7b29b8f2 100644 --- a/old_docs/API_docs_v73/constructors/updateStickerSetsOrder.md +++ b/old_docs/API_docs_v73/constructors/updateStickerSetsOrder.md @@ -22,7 +22,7 @@ description: updateStickerSetsOrder attributes, type and example ### Example: ``` -$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long]]; +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long, long]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/updates.md b/old_docs/API_docs_v73/constructors/updates.md index ec9aa914..09dc352c 100644 --- a/old_docs/API_docs_v73/constructors/updates.md +++ b/old_docs/API_docs_v73/constructors/updates.md @@ -25,7 +25,7 @@ description: updates attributes, type and example ### Example: ``` -$updates = ['_' => 'updates', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq' => int]; +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/updatesCombined.md b/old_docs/API_docs_v73/constructors/updatesCombined.md index f9615b85..9dac829c 100644 --- a/old_docs/API_docs_v73/constructors/updatesCombined.md +++ b/old_docs/API_docs_v73/constructors/updatesCombined.md @@ -26,7 +26,7 @@ description: updatesCombined attributes, type and example ### Example: ``` -$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update], 'users' => [User], 'chats' => [Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +$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: diff --git a/old_docs/API_docs_v73/constructors/updates_channelDifference.md b/old_docs/API_docs_v73/constructors/updates_channelDifference.md index c5b2de98..1f7c4e77 100644 --- a/old_docs/API_docs_v73/constructors/updates_channelDifference.md +++ b/old_docs/API_docs_v73/constructors/updates_channelDifference.md @@ -27,7 +27,7 @@ description: updates_channelDifference attributes, type and example ### Example: ``` -$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User]]; +$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: diff --git a/old_docs/API_docs_v73/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v73/constructors/updates_channelDifferenceTooLong.md index 0b2c46be..3bb04cf4 100644 --- a/old_docs/API_docs_v73/constructors/updates_channelDifferenceTooLong.md +++ b/old_docs/API_docs_v73/constructors/updates_channelDifferenceTooLong.md @@ -31,7 +31,7 @@ description: updates_channelDifferenceTooLong attributes, type and example ### Example: ``` -$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]]; +$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: diff --git a/old_docs/API_docs_v73/constructors/updates_difference.md b/old_docs/API_docs_v73/constructors/updates_difference.md index c10753fa..8e46056d 100644 --- a/old_docs/API_docs_v73/constructors/updates_difference.md +++ b/old_docs/API_docs_v73/constructors/updates_difference.md @@ -26,7 +26,7 @@ description: updates_difference attributes, type and example ### Example: ``` -$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v73/constructors/updates_differenceSlice.md b/old_docs/API_docs_v73/constructors/updates_differenceSlice.md index 1ae8a3e7..d7de27e0 100644 --- a/old_docs/API_docs_v73/constructors/updates_differenceSlice.md +++ b/old_docs/API_docs_v73/constructors/updates_differenceSlice.md @@ -26,7 +26,7 @@ description: updates_differenceSlice attributes, type and example ### Example: ``` -$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [User], 'intermediate_state' => updates_State]; +$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: diff --git a/old_docs/API_docs_v73/constructors/upload_fileCdnRedirect.md b/old_docs/API_docs_v73/constructors/upload_fileCdnRedirect.md index 33aaefd2..8140b266 100644 --- a/old_docs/API_docs_v73/constructors/upload_fileCdnRedirect.md +++ b/old_docs/API_docs_v73/constructors/upload_fileCdnRedirect.md @@ -25,7 +25,7 @@ description: upload_fileCdnRedirect attributes, type and example ### Example: ``` -$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'cdn_file_hashes' => [CdnFileHash]]; +$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'cdn_file_hashes' => [CdnFileHash, CdnFileHash]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/wallPaper.md b/old_docs/API_docs_v73/constructors/wallPaper.md index 96ff228c..bc022bee 100644 --- a/old_docs/API_docs_v73/constructors/wallPaper.md +++ b/old_docs/API_docs_v73/constructors/wallPaper.md @@ -24,7 +24,7 @@ description: wallPaper attributes, type and example ### Example: ``` -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/constructors/webDocument.md b/old_docs/API_docs_v73/constructors/webDocument.md index 0be6cb8a..55a5b09b 100644 --- a/old_docs/API_docs_v73/constructors/webDocument.md +++ b/old_docs/API_docs_v73/constructors/webDocument.md @@ -26,7 +26,7 @@ description: webDocument attributes, type and example ### Example: ``` -$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'dc_id' => int]; +$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'dc_id' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: diff --git a/old_docs/API_docs_v73/methods/README.md b/old_docs/API_docs_v73/methods/README.md index 848959ba..1004e4b7 100644 --- a/old_docs/API_docs_v73/methods/README.md +++ b/old_docs/API_docs_v73/methods/README.md @@ -28,6 +28,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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->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) diff --git a/old_docs/API_docs_v73/methods/account_changePhone.md b/old_docs/API_docs_v73/methods/account_changePhone.md index e47ef6a7..326a88b7 100644 --- a/old_docs/API_docs_v73/methods/account_changePhone.md +++ b/old_docs/API_docs_v73/methods/account_changePhone.md @@ -1,18 +1,20 @@ --- title: account.changePhone -description: account.changePhone parameters, return type and example +description: Change the phone number associated to this account --- ## Method: account.changePhone [Back to methods index](index.md) +Change the phone number associated to this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.changePhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_checkUsername.md b/old_docs/API_docs_v73/methods/account_checkUsername.md index 40cf822f..56e42613 100644 --- a/old_docs/API_docs_v73/methods/account_checkUsername.md +++ b/old_docs/API_docs_v73/methods/account_checkUsername.md @@ -1,16 +1,18 @@ --- title: account.checkUsername -description: account.checkUsername parameters, return type and example +description: Check if this username is available --- ## Method: account.checkUsername [Back to methods index](index.md) +Check if this username is available + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The username to check| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_confirmPhone.md b/old_docs/API_docs_v73/methods/account_confirmPhone.md index 8dd79d94..2261e6e8 100644 --- a/old_docs/API_docs_v73/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v73/methods/account_confirmPhone.md @@ -1,17 +1,19 @@ --- title: account.confirmPhone -description: account.confirmPhone parameters, return type and example +description: Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode --- ## 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 | Required | -|----------|---------------|----------| -|phone\_code\_hash|[string](../types/string.md) | Yes| -|phone\_code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_code\_hash|[string](../types/string.md) | Yes|obtain phone_code_hash from sendConfirmPhoneCode| +|phone\_code|[string](../types/string.md) | Yes|The code sent by sendConfirmPhoneCode| ### Return type: [Bool](../types/Bool.md) @@ -31,13 +33,18 @@ description: account.confirmPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_deleteAccount.md b/old_docs/API_docs_v73/methods/account_deleteAccount.md index 6f1bbda9..bd97e83c 100644 --- a/old_docs/API_docs_v73/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v73/methods/account_deleteAccount.md @@ -1,16 +1,18 @@ --- title: account.deleteAccount -description: account.deleteAccount parameters, return type and example +description: Delete this account --- ## Method: account.deleteAccount [Back to methods index](index.md) +Delete this account + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|reason|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reason|[string](../types/string.md) | Yes|Why are you going away? :(| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.deleteAccount parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_getAccountTTL.md b/old_docs/API_docs_v73/methods/account_getAccountTTL.md index 538b1d7a..d06af3be 100644 --- a/old_docs/API_docs_v73/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v73/methods/account_getAccountTTL.md @@ -1,11 +1,17 @@ --- title: account.getAccountTTL -description: account.getAccountTTL parameters, return type and example +description: Get account TTL --- ## Method: account.getAccountTTL [Back to methods index](index.md) +Get account TTL + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) @@ -17,13 +23,18 @@ description: account.getAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); ``` diff --git a/old_docs/API_docs_v73/methods/account_getAuthorizations.md b/old_docs/API_docs_v73/methods/account_getAuthorizations.md index f138d517..a5376f80 100644 --- a/old_docs/API_docs_v73/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v73/methods/account_getAuthorizations.md @@ -1,11 +1,17 @@ --- title: account.getAuthorizations -description: account.getAuthorizations parameters, return type and example +description: Get all logged-in authorizations --- ## Method: account.getAuthorizations [Back to methods index](index.md) +Get all logged-in authorizations + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Authorizations](../types/account_Authorizations.md) @@ -17,13 +23,18 @@ description: account.getAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); ``` diff --git a/old_docs/API_docs_v73/methods/account_getNotifySettings.md b/old_docs/API_docs_v73/methods/account_getNotifySettings.md index a48eed2f..5aeb59b0 100644 --- a/old_docs/API_docs_v73/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v73/methods/account_getNotifySettings.md @@ -1,16 +1,18 @@ --- title: account.getNotifySettings -description: account.getNotifySettings parameters, return type and example +description: Get notification settings --- ## Method: account.getNotifySettings [Back to methods index](index.md) +Get notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) @@ -29,13 +31,18 @@ description: account.getNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_getPassword.md b/old_docs/API_docs_v73/methods/account_getPassword.md index 1abf6174..6b1a7cc1 100644 --- a/old_docs/API_docs_v73/methods/account_getPassword.md +++ b/old_docs/API_docs_v73/methods/account_getPassword.md @@ -1,11 +1,17 @@ --- title: account.getPassword -description: account.getPassword parameters, return type and example +description: Get the current password --- ## Method: account.getPassword [Back to methods index](index.md) +Get the current password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [account\_Password](../types/account_Password.md) @@ -17,13 +23,18 @@ description: account.getPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); ``` diff --git a/old_docs/API_docs_v73/methods/account_getPasswordSettings.md b/old_docs/API_docs_v73/methods/account_getPasswordSettings.md index aec5b989..7db27852 100644 --- a/old_docs/API_docs_v73/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v73/methods/account_getPasswordSettings.md @@ -1,16 +1,18 @@ --- title: account.getPasswordSettings -description: account.getPasswordSettings parameters, return type and example +description: Get the current 2FA settings --- ## Method: account.getPasswordSettings [Back to methods index](index.md) +Get the current 2FA settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) @@ -29,13 +31,18 @@ description: account.getPasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_getPrivacy.md b/old_docs/API_docs_v73/methods/account_getPrivacy.md index 8bbe9795..3063b024 100644 --- a/old_docs/API_docs_v73/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v73/methods/account_getPrivacy.md @@ -1,16 +1,18 @@ --- title: account.getPrivacy -description: account.getPrivacy parameters, return type and example +description: Get privacy settings --- ## Method: account.getPrivacy [Back to methods index](index.md) +Get privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -29,13 +31,18 @@ description: account.getPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_getTmpPassword.md b/old_docs/API_docs_v73/methods/account_getTmpPassword.md index d9bd30d8..e9ff8d28 100644 --- a/old_docs/API_docs_v73/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v73/methods/account_getTmpPassword.md @@ -1,17 +1,19 @@ --- title: account.getTmpPassword -description: account.getTmpPassword parameters, return type and example +description: Get temporary password for buying products through bots --- ## Method: account.getTmpPassword [Back to methods index](index.md) +Get temporary password for buying products through bots + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|password\_hash|[bytes](../types/bytes.md) | Yes|The password hash| +|period|[int](../types/int.md) | Yes|The validity period| ### Return type: [account\_TmpPassword](../types/account_TmpPassword.md) @@ -31,13 +33,18 @@ description: account.getTmpPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_getWallPapers.md b/old_docs/API_docs_v73/methods/account_getWallPapers.md index a71543d0..74e1a73f 100644 --- a/old_docs/API_docs_v73/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v73/methods/account_getWallPapers.md @@ -1,11 +1,17 @@ --- title: account.getWallPapers -description: account.getWallPapers parameters, return type and example +description: Returns a list of available wallpapers. --- ## Method: account.getWallPapers [Back to methods index](index.md) +Returns a list of available wallpapers. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) @@ -17,13 +23,18 @@ description: account.getWallPapers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); ``` diff --git a/old_docs/API_docs_v73/methods/account_registerDevice.md b/old_docs/API_docs_v73/methods/account_registerDevice.md index 8be04ad2..0bf6d1ee 100644 --- a/old_docs/API_docs_v73/methods/account_registerDevice.md +++ b/old_docs/API_docs_v73/methods/account_registerDevice.md @@ -1,17 +1,19 @@ --- title: account.registerDevice -description: account.registerDevice parameters, return type and example +description: Register device for push notifications --- ## Method: account.registerDevice [Back to methods index](index.md) +Register device for push notifications + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.registerDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_reportPeer.md b/old_docs/API_docs_v73/methods/account_reportPeer.md index 9cf107ca..5637e74a 100644 --- a/old_docs/API_docs_v73/methods/account_reportPeer.md +++ b/old_docs/API_docs_v73/methods/account_reportPeer.md @@ -1,17 +1,19 @@ --- title: account.reportPeer -description: account.reportPeer parameters, return type and example +description: Report for spam --- ## Method: account.reportPeer [Back to methods index](index.md) +Report for spam + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|reason|[ReportReason](../types/ReportReason.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| +|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.reportPeer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_resetAuthorization.md b/old_docs/API_docs_v73/methods/account_resetAuthorization.md index 0438cba3..99d12d73 100644 --- a/old_docs/API_docs_v73/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v73/methods/account_resetAuthorization.md @@ -1,16 +1,18 @@ --- title: account.resetAuthorization -description: account.resetAuthorization parameters, return type and example +description: Delete a certain session --- ## Method: account.resetAuthorization [Back to methods index](index.md) +Delete a certain session + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.resetAuthorization parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_resetNotifySettings.md b/old_docs/API_docs_v73/methods/account_resetNotifySettings.md index 92db4f4f..fc2f36b5 100644 --- a/old_docs/API_docs_v73/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v73/methods/account_resetNotifySettings.md @@ -1,11 +1,17 @@ --- title: account.resetNotifySettings -description: account.resetNotifySettings parameters, return type and example +description: Reset all notification settings --- ## Method: account.resetNotifySettings [Back to methods index](index.md) +Reset all notification settings + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -17,13 +23,18 @@ description: account.resetNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); ``` diff --git a/old_docs/API_docs_v73/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v73/methods/account_sendChangePhoneCode.md index 017b5f7f..9e5016a4 100644 --- a/old_docs/API_docs_v73/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v73/methods/account_sendChangePhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendChangePhoneCode -description: account.sendChangePhoneCode parameters, return type and example +description: Change the phone number --- ## Method: account.sendChangePhoneCode [Back to methods index](index.md) +Change the phone number + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|phone\_number|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can the code be sent using a flash call instead of an SMS?| +|phone\_number|[string](../types/string.md) | Yes|New phone number| +|current\_number|[Bool](../types/Bool.md) | Optional|Current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendChangePhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v73/methods/account_sendConfirmPhoneCode.md index 3665bd50..4de86a33 100644 --- a/old_docs/API_docs_v73/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v73/methods/account_sendConfirmPhoneCode.md @@ -1,18 +1,20 @@ --- title: account.sendConfirmPhoneCode -description: account.sendConfirmPhoneCode parameters, return type and example +description: Send confirmation phone code --- ## Method: account.sendConfirmPhoneCode [Back to methods index](index.md) +Send confirmation phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|hash|[string](../types/string.md) | Yes| -|current\_number|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can telegram call you instead of sending an SMS?| +|hash|[string](../types/string.md) | Yes|The hash| +|current\_number|[Bool](../types/Bool.md) | Optional|The current phone number| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -31,13 +33,18 @@ description: account.sendConfirmPhoneCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_setAccountTTL.md b/old_docs/API_docs_v73/methods/account_setAccountTTL.md index d08f59fb..98ac771b 100644 --- a/old_docs/API_docs_v73/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v73/methods/account_setAccountTTL.md @@ -1,16 +1,18 @@ --- title: account.setAccountTTL -description: account.setAccountTTL parameters, return type and example +description: Set account TTL --- ## Method: account.setAccountTTL [Back to methods index](index.md) +Set account TTL + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.setAccountTTL parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_setPrivacy.md b/old_docs/API_docs_v73/methods/account_setPrivacy.md index 401aa71c..e1cb6ca5 100644 --- a/old_docs/API_docs_v73/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v73/methods/account_setPrivacy.md @@ -1,17 +1,19 @@ --- title: account.setPrivacy -description: account.setPrivacy parameters, return type and example +description: Set privacy settings --- ## Method: account.setPrivacy [Back to methods index](index.md) +Set privacy settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes| -|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) @@ -30,15 +32,20 @@ description: account.setPrivacy parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/account_unregisterDevice.md b/old_docs/API_docs_v73/methods/account_unregisterDevice.md index 283ec7d2..6fa10e8d 100644 --- a/old_docs/API_docs_v73/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v73/methods/account_unregisterDevice.md @@ -1,17 +1,19 @@ --- title: account.unregisterDevice -description: account.unregisterDevice parameters, return type and example +description: Stop sending PUSH notifications to app --- ## Method: account.unregisterDevice [Back to methods index](index.md) +Stop sending PUSH notifications to app + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|token\_type|[int](../types/int.md) | Yes| -|token|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|token\_type|[int](../types/int.md) | Yes|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| +|token|[string](../types/string.md) | Yes|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| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.unregisterDevice parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v73/methods/account_updateDeviceLocked.md index ae6125a5..75ed7b30 100644 --- a/old_docs/API_docs_v73/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v73/methods/account_updateDeviceLocked.md @@ -1,16 +1,18 @@ --- title: account.updateDeviceLocked -description: account.updateDeviceLocked parameters, return type and example +description: Disable all notifications for a certain period --- ## Method: account.updateDeviceLocked [Back to methods index](index.md) +Disable all notifications for a certain period + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|period|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| ### Return type: [Bool](../types/Bool.md) @@ -22,13 +24,18 @@ description: account.updateDeviceLocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_updateNotifySettings.md b/old_docs/API_docs_v73/methods/account_updateNotifySettings.md index fb096250..903e2b10 100644 --- a/old_docs/API_docs_v73/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v73/methods/account_updateNotifySettings.md @@ -1,17 +1,19 @@ --- title: account.updateNotifySettings -description: account.updateNotifySettings parameters, return type and example +description: Change notification settings --- ## Method: account.updateNotifySettings [Back to methods index](index.md) +Change notification settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes| -|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: account.updateNotifySettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v73/methods/account_updatePasswordSettings.md index ffa8dcd9..f32f3a2c 100644 --- a/old_docs/API_docs_v73/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v73/methods/account_updatePasswordSettings.md @@ -1,17 +1,19 @@ --- title: account.updatePasswordSettings -description: account.updatePasswordSettings parameters, return type and example +description: Update the 2FA password settings --- ## Method: account.updatePasswordSettings [Back to methods index](index.md) +Update the 2FA password settings + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Yes| -|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current\_password\_hash|[bytes](../types/bytes.md) | Yes|$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt);| +|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| ### Return type: [Bool](../types/Bool.md) @@ -33,13 +35,18 @@ description: account.updatePasswordSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_updateProfile.md b/old_docs/API_docs_v73/methods/account_updateProfile.md index b3d468d1..8b0c3268 100644 --- a/old_docs/API_docs_v73/methods/account_updateProfile.md +++ b/old_docs/API_docs_v73/methods/account_updateProfile.md @@ -1,18 +1,20 @@ --- title: account.updateProfile -description: account.updateProfile parameters, return type and example +description: Update profile info --- ## Method: account.updateProfile [Back to methods index](index.md) +Update profile info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|first\_name|[string](../types/string.md) | Optional| -|last\_name|[string](../types/string.md) | Optional| -|about|[string](../types/string.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|first\_name|[string](../types/string.md) | Optional|The first name| +|last\_name|[string](../types/string.md) | Optional|The last name| +|about|[string](../types/string.md) | Optional|The bio/about field| ### Return type: [User](../types/User.md) @@ -32,13 +34,18 @@ description: account.updateProfile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_updateStatus.md b/old_docs/API_docs_v73/methods/account_updateStatus.md index c8fa0a79..8daba805 100644 --- a/old_docs/API_docs_v73/methods/account_updateStatus.md +++ b/old_docs/API_docs_v73/methods/account_updateStatus.md @@ -1,16 +1,18 @@ --- title: account.updateStatus -description: account.updateStatus parameters, return type and example +description: Update online status --- ## Method: account.updateStatus [Back to methods index](index.md) +Update online status + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offline|[Bool](../types/Bool.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: account.updateStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); ``` diff --git a/old_docs/API_docs_v73/methods/account_updateUsername.md b/old_docs/API_docs_v73/methods/account_updateUsername.md index 2b7576a5..7773bbfb 100644 --- a/old_docs/API_docs_v73/methods/account_updateUsername.md +++ b/old_docs/API_docs_v73/methods/account_updateUsername.md @@ -1,16 +1,18 @@ --- title: account.updateUsername -description: account.updateUsername parameters, return type and example +description: Update this user's username --- ## Method: account.updateUsername [Back to methods index](index.md) +Update this user's username + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|username|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|username|[string](../types/string.md) | Yes|The new username| ### Return type: [User](../types/User.md) @@ -31,13 +33,18 @@ description: account.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v73/methods/auth_bindTempAuthKey.md index 5bbad6d3..9a845c0c 100644 --- a/old_docs/API_docs_v73/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v73/methods/auth_bindTempAuthKey.md @@ -1,87 +1,13 @@ --- title: auth.bindTempAuthKey -description: auth.bindTempAuthKey parameters, return type and example +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 --- ## Method: auth.bindTempAuthKey [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Yes| -|nonce|[long](../types/long.md) | Yes| -|expires\_at|[int](../types/int.md) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | Yes| - - -### Return type: [Bool](../types/Bool.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| -|Timeout|A timeout occurred while fetching data from the bot| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.bindTempAuthKey -* params - `{"perm_auth_key_id": long, "nonce": long, "expires_at": int, "encrypted_message": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.bindTempAuthKey` - -Parameters: - -perm_auth_key_id - Json encoded long - -nonce - Json encoded long - -expires_at - Json encoded int - -encrypted_message - Json encoded bytes +**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** -Or, if you're into Lua: - -``` -Bool = auth.bindTempAuthKey({perm_auth_key_id=long, nonce=long, expires_at=int, encrypted_message='bytes', }) -``` - diff --git a/old_docs/API_docs_v73/methods/auth_cancelCode.md b/old_docs/API_docs_v73/methods/auth_cancelCode.md index 05d927a1..1283e1e5 100644 --- a/old_docs/API_docs_v73/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v73/methods/auth_cancelCode.md @@ -1,17 +1,19 @@ --- title: auth.cancelCode -description: auth.cancelCode parameters, return type and example +description: Invalidate sent phone code --- ## Method: auth.cancelCode [Back to methods index](index.md) +Invalidate sent phone code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +32,18 @@ description: auth.cancelCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/auth_checkPassword.md b/old_docs/API_docs_v73/methods/auth_checkPassword.md index 6b6b21cc..b8656eb8 100644 --- a/old_docs/API_docs_v73/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v73/methods/auth_checkPassword.md @@ -1,63 +1,13 @@ --- title: auth.checkPassword -description: auth.checkPassword parameters, return type and example +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.checkPassword [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|password\_hash|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **NO** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.checkPassword` - -Parameters: - -password_hash - Json encoded bytes +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** -Or, if you're into Lua: - -``` -auth_Authorization = auth.checkPassword({password_hash='bytes', }) -``` - diff --git a/old_docs/API_docs_v73/methods/auth_checkPhone.md b/old_docs/API_docs_v73/methods/auth_checkPhone.md index f6cac2e6..b1417e56 100644 --- a/old_docs/API_docs_v73/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v73/methods/auth_checkPhone.md @@ -1,16 +1,18 @@ --- title: auth.checkPhone -description: auth.checkPhone parameters, return type and example +description: Check if this phone number is registered on telegram --- ## Method: auth.checkPhone [Back to methods index](index.md) +Check if this phone number is registered on telegram + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number to check| ### Return type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) @@ -31,13 +33,18 @@ description: auth.checkPhone parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v73/methods/auth_dropTempAuthKeys.md index fedb7bf4..b08b9f40 100644 --- a/old_docs/API_docs_v73/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v73/methods/auth_dropTempAuthKeys.md @@ -1,16 +1,18 @@ --- title: auth.dropTempAuthKeys -description: auth.dropTempAuthKeys parameters, return type and example +description: Delete all temporary authorization keys except the ones provided --- ## Method: auth.dropTempAuthKeys [Back to methods index](index.md) +Delete all temporary authorization keys except the ones provided + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|except\_auth\_keys|Array of [long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|except\_auth\_keys|Array of [long](../types/long.md) | Yes|The temporary authorization keys to keep| ### Return type: [Bool](../types/Bool.md) @@ -22,18 +24,20 @@ description: auth.dropTempAuthKeys parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/auth_exportAuthorization.md b/old_docs/API_docs_v73/methods/auth_exportAuthorization.md index cbc8203b..6419f09c 100644 --- a/old_docs/API_docs_v73/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v73/methods/auth_exportAuthorization.md @@ -1,75 +1,13 @@ --- title: auth.exportAuthorization -description: auth.exportAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.exportAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|dc\_id|[int](../types/int.md) | Yes| - - -### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.exportAuthorization -* params - `{"dc_id": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.exportAuthorization` - -Parameters: - -dc_id - Json encoded int +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_ExportedAuthorization = auth.exportAuthorization({dc_id=int, }) -``` - diff --git a/old_docs/API_docs_v73/methods/auth_importAuthorization.md b/old_docs/API_docs_v73/methods/auth_importAuthorization.md index 22166510..c0ed5549 100644 --- a/old_docs/API_docs_v73/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v73/methods/auth_importAuthorization.md @@ -1,79 +1,13 @@ --- title: auth.importAuthorization -description: auth.importAuthorization parameters, return type and example +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html --- ## Method: auth.importAuthorization [Back to methods index](index.md) -### Parameters: - -| Name | Type | Required | -|----------|---------------|----------| -|id|[int](../types/int.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| - - -### Return type: [auth\_Authorization](../types/auth_Authorization.md) - -### Can bots use this method: **YES** - - -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - -### Example: - - -``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); -} - -$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]); -``` - -Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - auth.importAuthorization -* params - `{"id": int, "bytes": "bytes", }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importAuthorization` - -Parameters: - -id - Json encoded int - -bytes - Json encoded bytes +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** -Or, if you're into Lua: - -``` -auth_Authorization = auth.importAuthorization({id=int, bytes='bytes', }) -``` - diff --git a/old_docs/API_docs_v73/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v73/methods/auth_importBotAuthorization.md index 57521a13..5e675d75 100644 --- a/old_docs/API_docs_v73/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v73/methods/auth_importBotAuthorization.md @@ -1,12 +1,12 @@ --- title: auth.importBotAuthorization -description: auth.importBotAuthorization parameters, return type and example +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.importBotAuthorization [Back to methods index](index.md) -**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v73/methods/auth_logOut.md b/old_docs/API_docs_v73/methods/auth_logOut.md index 7d5bb3f7..8da72195 100644 --- a/old_docs/API_docs_v73/methods/auth_logOut.md +++ b/old_docs/API_docs_v73/methods/auth_logOut.md @@ -1,12 +1,12 @@ --- title: auth.logOut -description: auth.logOut parameters, return type and example +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.logOut [Back to methods index](index.md) -**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)** +**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_v73/methods/auth_recoverPassword.md b/old_docs/API_docs_v73/methods/auth_recoverPassword.md index 931e99fd..2a8bd3d0 100644 --- a/old_docs/API_docs_v73/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v73/methods/auth_recoverPassword.md @@ -1,16 +1,18 @@ --- title: auth.recoverPassword -description: auth.recoverPassword parameters, return type and example +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account --- ## 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 | Required | -|----------|---------------|----------| -|code|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[string](../types/string.md) | Yes|The code that was emailed to you| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) @@ -29,13 +31,18 @@ description: auth.recoverPassword parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v73/methods/auth_requestPasswordRecovery.md index c6babcd9..dbf77a6d 100644 --- a/old_docs/API_docs_v73/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v73/methods/auth_requestPasswordRecovery.md @@ -1,11 +1,17 @@ --- title: auth.requestPasswordRecovery -description: auth.requestPasswordRecovery parameters, return type and example +description: Send an email to recover the 2FA password --- ## Method: auth.requestPasswordRecovery [Back to methods index](index.md) +Send an email to recover the 2FA password + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) @@ -24,13 +30,18 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); ``` diff --git a/old_docs/API_docs_v73/methods/auth_resendCode.md b/old_docs/API_docs_v73/methods/auth_resendCode.md index df4803b8..4bfbf379 100644 --- a/old_docs/API_docs_v73/methods/auth_resendCode.md +++ b/old_docs/API_docs_v73/methods/auth_resendCode.md @@ -1,17 +1,19 @@ --- title: auth.resendCode -description: auth.resendCode parameters, return type and example +description: Resend the SMS verification code --- ## Method: auth.resendCode [Back to methods index](index.md) +Resend the SMS verification code + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_number|[string](../types/string.md) | Yes| -|phone\_code\_hash|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|The phone number| +|phone\_code\_hash|[string](../types/string.md) | Yes|The phone code hash| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -30,13 +32,18 @@ description: auth.resendCode parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v73/methods/auth_resetAuthorizations.md index fe297fa7..47b28171 100644 --- a/old_docs/API_docs_v73/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v73/methods/auth_resetAuthorizations.md @@ -1,11 +1,17 @@ --- title: auth.resetAuthorizations -description: auth.resetAuthorizations parameters, return type and example +description: Delete all logged-in sessions. --- ## Method: auth.resetAuthorizations [Back to methods index](index.md) +Delete all logged-in sessions. + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Bool](../types/Bool.md) @@ -24,13 +30,18 @@ description: auth.resetAuthorizations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); ``` diff --git a/old_docs/API_docs_v73/methods/auth_sendCode.md b/old_docs/API_docs_v73/methods/auth_sendCode.md index 22d1df94..0ecfc474 100644 --- a/old_docs/API_docs_v73/methods/auth_sendCode.md +++ b/old_docs/API_docs_v73/methods/auth_sendCode.md @@ -1,12 +1,12 @@ --- title: auth.sendCode -description: auth.sendCode parameters, return type and example +description: Use phone_login instead --- ## Method: auth.sendCode [Back to methods index](index.md) -**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v73/methods/auth_sendInvites.md b/old_docs/API_docs_v73/methods/auth_sendInvites.md index ad9636c5..391899fa 100644 --- a/old_docs/API_docs_v73/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v73/methods/auth_sendInvites.md @@ -1,17 +1,19 @@ --- title: auth.sendInvites -description: auth.sendInvites parameters, return type and example +description: Invite friends to telegram! --- ## Method: auth.sendInvites [Back to methods index](index.md) +Invite friends to telegram! + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|phone\_numbers|Array of [string](../types/string.md) | Yes| -|message|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_numbers|Array of [string](../types/string.md) | Yes|Phone numbers to invite| +|message|[string](../types/string.md) | Yes|The message to send| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: auth.sendInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/auth_signIn.md b/old_docs/API_docs_v73/methods/auth_signIn.md index ab40bb4d..b1558552 100644 --- a/old_docs/API_docs_v73/methods/auth_signIn.md +++ b/old_docs/API_docs_v73/methods/auth_signIn.md @@ -1,12 +1,12 @@ --- title: auth.signIn -description: auth.signIn parameters, return type and example +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signIn [Back to methods index](index.md) -**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)** +**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_v73/methods/auth_signUp.md b/old_docs/API_docs_v73/methods/auth_signUp.md index 042d1191..b20c210f 100644 --- a/old_docs/API_docs_v73/methods/auth_signUp.md +++ b/old_docs/API_docs_v73/methods/auth_signUp.md @@ -1,12 +1,12 @@ --- title: auth.signUp -description: auth.signUp parameters, return type and example +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) --- ## Method: auth.signUp [Back to methods index](index.md) -**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)** +**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_v73/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v73/methods/bots_answerWebhookJSONQuery.md index d910db35..809576fa 100644 --- a/old_docs/API_docs_v73/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v73/methods/bots_answerWebhookJSONQuery.md @@ -31,16 +31,18 @@ description: bots.answerWebhookJSONQuery parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v73/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v73/methods/bots_sendCustomRequest.md index abb880ef..ce28f6ca 100644 --- a/old_docs/API_docs_v73/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v73/methods/bots_sendCustomRequest.md @@ -30,16 +30,18 @@ description: bots.sendCustomRequest parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_checkUsername.md b/old_docs/API_docs_v73/methods/channels_checkUsername.md index 8fabca60..819d68ac 100644 --- a/old_docs/API_docs_v73/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v73/methods/channels_checkUsername.md @@ -10,7 +10,7 @@ description: channels.checkUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -32,13 +32,18 @@ description: channels.checkUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_createChannel.md b/old_docs/API_docs_v73/methods/channels_createChannel.md index 58808b73..cf8b66f6 100644 --- a/old_docs/API_docs_v73/methods/channels_createChannel.md +++ b/old_docs/API_docs_v73/methods/channels_createChannel.md @@ -33,13 +33,18 @@ description: channels.createChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_deleteChannel.md b/old_docs/API_docs_v73/methods/channels_deleteChannel.md index d8534073..153c5b8a 100644 --- a/old_docs/API_docs_v73/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v73/methods/channels_deleteChannel.md @@ -10,7 +10,7 @@ description: channels.deleteChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -30,13 +30,18 @@ description: channels.deleteChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_deleteHistory.md b/old_docs/API_docs_v73/methods/channels_deleteHistory.md index 552ffeaf..519cf766 100644 --- a/old_docs/API_docs_v73/methods/channels_deleteHistory.md +++ b/old_docs/API_docs_v73/methods/channels_deleteHistory.md @@ -10,7 +10,7 @@ description: channels.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -23,16 +23,18 @@ description: channels.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->deleteHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_deleteMessages.md b/old_docs/API_docs_v73/methods/channels_deleteMessages.md index f486702f..7132dac2 100644 --- a/old_docs/API_docs_v73/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v73/methods/channels_deleteMessages.md @@ -10,7 +10,7 @@ description: channels.deleteMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v73/methods/channels_deleteUserHistory.md index c6160d08..cb79f77c 100644 --- a/old_docs/API_docs_v73/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v73/methods/channels_deleteUserHistory.md @@ -10,8 +10,8 @@ description: channels.deleteUserHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -31,13 +31,18 @@ description: channels.deleteUserHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_editAbout.md b/old_docs/API_docs_v73/methods/channels_editAbout.md index ea771f2a..75ff52b4 100644 --- a/old_docs/API_docs_v73/methods/channels_editAbout.md +++ b/old_docs/API_docs_v73/methods/channels_editAbout.md @@ -10,7 +10,7 @@ description: channels.editAbout parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |about|[string](../types/string.md) | Yes| @@ -33,16 +33,18 @@ description: channels.editAbout parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_editAdmin.md b/old_docs/API_docs_v73/methods/channels_editAdmin.md index 07f8cc11..36ae5241 100644 --- a/old_docs/API_docs_v73/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v73/methods/channels_editAdmin.md @@ -10,8 +10,8 @@ description: channels.editAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Yes| @@ -40,16 +40,18 @@ description: channels.editAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_editBanned.md b/old_docs/API_docs_v73/methods/channels_editBanned.md index d26e857f..4f5dc25c 100644 --- a/old_docs/API_docs_v73/methods/channels_editBanned.md +++ b/old_docs/API_docs_v73/methods/channels_editBanned.md @@ -10,8 +10,8 @@ description: channels.editBanned parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Yes| @@ -35,16 +35,18 @@ description: channels.editBanned parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_editPhoto.md b/old_docs/API_docs_v73/methods/channels_editPhoto.md index 28ca2b86..4fca08b1 100644 --- a/old_docs/API_docs_v73/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v73/methods/channels_editPhoto.md @@ -10,7 +10,7 @@ description: channels.editPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -32,16 +32,18 @@ description: channels.editPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_editTitle.md b/old_docs/API_docs_v73/methods/channels_editTitle.md index 8c7ed23d..418f6a33 100644 --- a/old_docs/API_docs_v73/methods/channels_editTitle.md +++ b/old_docs/API_docs_v73/methods/channels_editTitle.md @@ -10,7 +10,7 @@ description: channels.editTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -32,16 +32,18 @@ description: channels.editTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_exportInvite.md b/old_docs/API_docs_v73/methods/channels_exportInvite.md index 93c231a4..9ae0bcea 100644 --- a/old_docs/API_docs_v73/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v73/methods/channels_exportInvite.md @@ -10,7 +10,7 @@ description: channels.exportInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -31,16 +31,18 @@ description: channels.exportInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_exportMessageLink.md b/old_docs/API_docs_v73/methods/channels_exportMessageLink.md index 026fe982..7eff4ed8 100644 --- a/old_docs/API_docs_v73/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v73/methods/channels_exportMessageLink.md @@ -10,7 +10,7 @@ description: channels.exportMessageLink parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: channels.exportMessageLink parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_getAdminLog.md b/old_docs/API_docs_v73/methods/channels_getAdminLog.md index 247d82f5..2b4d08d6 100644 --- a/old_docs/API_docs_v73/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v73/methods/channels_getAdminLog.md @@ -10,10 +10,10 @@ description: channels.getAdminLog parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |q|[string](../types/string.md) | Yes| |events\_filter|[ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md) | Optional| -|admins|Array of [InputUser](../types/InputUser.md) | Optional| +|admins|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |max\_id|[long](../types/long.md) | Yes| |min\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -37,15 +37,20 @@ description: channels.getAdminLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$channels_AdminLogResults = $MadelineProto->channels->getAdminLog(['channel' => InputChannel, 'q' => 'string', 'events_filter' => ChannelAdminLogEventsFilter, 'admins' => [InputUser], 'max_id' => long, 'min_id' => long, 'limit' => int, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v73/methods/channels_getAdminedPublicChannels.md index 283a9071..01ea971f 100644 --- a/old_docs/API_docs_v73/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v73/methods/channels_getAdminedPublicChannels.md @@ -17,13 +17,18 @@ description: channels.getAdminedPublicChannels parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); ``` diff --git a/old_docs/API_docs_v73/methods/channels_getChannels.md b/old_docs/API_docs_v73/methods/channels_getChannels.md index e80aa6a6..e8db92d8 100644 --- a/old_docs/API_docs_v73/methods/channels_getChannels.md +++ b/old_docs/API_docs_v73/methods/channels_getChannels.md @@ -10,7 +10,7 @@ description: channels.getChannels parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputChannel](../types/InputChannel.md) | Yes| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes| ### Return type: [messages\_Chats](../types/messages_Chats.md) @@ -31,18 +31,20 @@ description: channels.getChannels parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/channels_getFullChannel.md b/old_docs/API_docs_v73/methods/channels_getFullChannel.md index 58dbe057..a07e3b9d 100644 --- a/old_docs/API_docs_v73/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v73/methods/channels_getFullChannel.md @@ -1,12 +1,12 @@ --- title: channels.getFullChannel -description: channels.getFullChannel parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v73/methods/channels_getMessages.md b/old_docs/API_docs_v73/methods/channels_getMessages.md index 157bfe24..34102494 100644 --- a/old_docs/API_docs_v73/methods/channels_getMessages.md +++ b/old_docs/API_docs_v73/methods/channels_getMessages.md @@ -10,7 +10,7 @@ description: channels.getMessages parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,18 +32,20 @@ description: channels.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/channels_getParticipant.md b/old_docs/API_docs_v73/methods/channels_getParticipant.md index b1bebd74..ff9d6a3f 100644 --- a/old_docs/API_docs_v73/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v73/methods/channels_getParticipant.md @@ -10,8 +10,8 @@ description: channels.getParticipant parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) @@ -34,16 +34,18 @@ description: channels.getParticipant parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_getParticipants.md b/old_docs/API_docs_v73/methods/channels_getParticipants.md index 2af62d64..45c48c25 100644 --- a/old_docs/API_docs_v73/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v73/methods/channels_getParticipants.md @@ -10,7 +10,7 @@ description: channels.getParticipants parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes| |offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -37,16 +37,18 @@ description: channels.getParticipants parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_inviteToChannel.md b/old_docs/API_docs_v73/methods/channels_inviteToChannel.md index 77209642..6b4ce177 100644 --- a/old_docs/API_docs_v73/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v73/methods/channels_inviteToChannel.md @@ -10,8 +10,8 @@ description: channels.inviteToChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| ### Return type: [Updates](../types/Updates.md) @@ -45,15 +45,20 @@ description: channels.inviteToChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/channels_joinChannel.md b/old_docs/API_docs_v73/methods/channels_joinChannel.md index 4f815567..efda7cbf 100644 --- a/old_docs/API_docs_v73/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v73/methods/channels_joinChannel.md @@ -10,7 +10,7 @@ description: channels.joinChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: channels.joinChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_leaveChannel.md b/old_docs/API_docs_v73/methods/channels_leaveChannel.md index 91250560..c38a6951 100644 --- a/old_docs/API_docs_v73/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v73/methods/channels_leaveChannel.md @@ -10,7 +10,7 @@ description: channels.leaveChannel parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -33,16 +33,18 @@ description: channels.leaveChannel parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_readHistory.md b/old_docs/API_docs_v73/methods/channels_readHistory.md index 8ff32dae..c5b833d6 100644 --- a/old_docs/API_docs_v73/methods/channels_readHistory.md +++ b/old_docs/API_docs_v73/methods/channels_readHistory.md @@ -10,7 +10,7 @@ description: channels.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: channels.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_readMessageContents.md b/old_docs/API_docs_v73/methods/channels_readMessageContents.md index e165c81f..7e3da8e4 100644 --- a/old_docs/API_docs_v73/methods/channels_readMessageContents.md +++ b/old_docs/API_docs_v73/methods/channels_readMessageContents.md @@ -10,7 +10,7 @@ description: channels.readMessageContents parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -31,15 +31,20 @@ description: channels.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/channels_reportSpam.md b/old_docs/API_docs_v73/methods/channels_reportSpam.md index 2bb776a6..082536e2 100644 --- a/old_docs/API_docs_v73/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v73/methods/channels_reportSpam.md @@ -10,8 +10,8 @@ description: channels.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |id|Array of [int](../types/int.md) | Yes| @@ -32,15 +32,20 @@ description: channels.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/channels_setStickers.md b/old_docs/API_docs_v73/methods/channels_setStickers.md index 0431b0c9..a1f733eb 100644 --- a/old_docs/API_docs_v73/methods/channels_setStickers.md +++ b/old_docs/API_docs_v73/methods/channels_setStickers.md @@ -10,7 +10,7 @@ description: channels.setStickers parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |stickerset|[InputStickerSet](../types/InputStickerSet.md) | Optional| @@ -31,16 +31,18 @@ description: channels.setStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->setStickers(['channel' => InputChannel, 'stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_toggleInvites.md b/old_docs/API_docs_v73/methods/channels_toggleInvites.md index 19669eec..8d977fd0 100644 --- a/old_docs/API_docs_v73/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v73/methods/channels_toggleInvites.md @@ -10,7 +10,7 @@ description: channels.toggleInvites parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -32,13 +32,18 @@ description: channels.toggleInvites parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_togglePreHistoryHidden.md b/old_docs/API_docs_v73/methods/channels_togglePreHistoryHidden.md index 9e5e511f..421878a6 100644 --- a/old_docs/API_docs_v73/methods/channels_togglePreHistoryHidden.md +++ b/old_docs/API_docs_v73/methods/channels_togglePreHistoryHidden.md @@ -10,7 +10,7 @@ description: channels.togglePreHistoryHidden parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -23,16 +23,18 @@ description: channels.togglePreHistoryHidden parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->togglePreHistoryHidden(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_toggleSignatures.md b/old_docs/API_docs_v73/methods/channels_toggleSignatures.md index 4aaaeb0c..13d53d92 100644 --- a/old_docs/API_docs_v73/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v73/methods/channels_toggleSignatures.md @@ -10,7 +10,7 @@ description: channels.toggleSignatures parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: channels.toggleSignatures parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v73/methods/channels_updatePinnedMessage.md index 3bb6d010..ecc15ce6 100644 --- a/old_docs/API_docs_v73/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v73/methods/channels_updatePinnedMessage.md @@ -11,7 +11,7 @@ description: channels.updatePinnedMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |silent|[Bool](../types/Bool.md) | Optional| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: channels.updatePinnedMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/channels_updateUsername.md b/old_docs/API_docs_v73/methods/channels_updateUsername.md index 6651a211..9314c494 100644 --- a/old_docs/API_docs_v73/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v73/methods/channels_updateUsername.md @@ -10,7 +10,7 @@ description: channels.updateUsername parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|channel|[InputChannel](../types/InputChannel.md) | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| |username|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: channels.updateUsername parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/contacts_block.md b/old_docs/API_docs_v73/methods/contacts_block.md index c0d032d6..e647b97d 100644 --- a/old_docs/API_docs_v73/methods/contacts_block.md +++ b/old_docs/API_docs_v73/methods/contacts_block.md @@ -1,16 +1,18 @@ --- title: contacts.block -description: contacts.block parameters, return type and example +description: Block a user --- ## Method: contacts.block [Back to methods index](index.md) +Block a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.block parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v73/methods/contacts_deleteContact.md b/old_docs/API_docs_v73/methods/contacts_deleteContact.md index d7faffb9..eda39b04 100644 --- a/old_docs/API_docs_v73/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v73/methods/contacts_deleteContact.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContact -description: contacts.deleteContact parameters, return type and example +description: Delete a contact --- ## Method: contacts.deleteContact [Back to methods index](index.md) +Delete a contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| ### Return type: [contacts\_Link](../types/contacts_Link.md) @@ -29,13 +31,18 @@ description: contacts.deleteContact parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v73/methods/contacts_deleteContacts.md b/old_docs/API_docs_v73/methods/contacts_deleteContacts.md index 67a922ed..c3d6a5fb 100644 --- a/old_docs/API_docs_v73/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v73/methods/contacts_deleteContacts.md @@ -1,16 +1,18 @@ --- title: contacts.deleteContacts -description: contacts.deleteContacts parameters, return type and example +description: Delete multiple contacts --- ## Method: contacts.deleteContacts [Back to methods index](index.md) +Delete multiple contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +32,20 @@ description: contacts.deleteContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/contacts_exportCard.md b/old_docs/API_docs_v73/methods/contacts_exportCard.md index bf6d1f9f..3c582da3 100644 --- a/old_docs/API_docs_v73/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v73/methods/contacts_exportCard.md @@ -1,11 +1,17 @@ --- title: contacts.exportCard -description: contacts.exportCard parameters, return type and example +description: Export contact as card --- ## Method: contacts.exportCard [Back to methods index](index.md) +Export contact as card + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_int](../types/int.md) @@ -17,13 +23,18 @@ description: contacts.exportCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); ``` diff --git a/old_docs/API_docs_v73/methods/contacts_getBlocked.md b/old_docs/API_docs_v73/methods/contacts_getBlocked.md index faa719da..30ed4709 100644 --- a/old_docs/API_docs_v73/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v73/methods/contacts_getBlocked.md @@ -1,17 +1,19 @@ --- title: contacts.getBlocked -description: contacts.getBlocked parameters, return type and example +description: Get blocked users --- ## Method: contacts.getBlocked [Back to methods index](index.md) +Get blocked users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| +|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) @@ -23,13 +25,18 @@ description: contacts.getBlocked parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/contacts_getContacts.md b/old_docs/API_docs_v73/methods/contacts_getContacts.md index e7783c1b..32823094 100644 --- a/old_docs/API_docs_v73/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v73/methods/contacts_getContacts.md @@ -1,16 +1,18 @@ --- title: contacts.getContacts -description: contacts.getContacts parameters, return type and example +description: Get info about a certain contact --- ## Method: contacts.getContacts [Back to methods index](index.md) +Get info about a certain contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[int](../types/int.md) | Yes|$ids is the list ids of previously fetched contacts, $hash = $MadelineProto->gen_vector_hash($ids);| ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) @@ -22,13 +24,18 @@ description: contacts.getContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/contacts_getStatuses.md b/old_docs/API_docs_v73/methods/contacts_getStatuses.md index 9bb7f263..f5d4636a 100644 --- a/old_docs/API_docs_v73/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v73/methods/contacts_getStatuses.md @@ -1,11 +1,17 @@ --- title: contacts.getStatuses -description: contacts.getStatuses parameters, return type and example +description: Get online status of all users --- ## Method: contacts.getStatuses [Back to methods index](index.md) +Get online status of all users + +### Parameters: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| ### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) @@ -17,13 +23,18 @@ description: contacts.getStatuses parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); ``` diff --git a/old_docs/API_docs_v73/methods/contacts_getTopPeers.md b/old_docs/API_docs_v73/methods/contacts_getTopPeers.md index f72133a5..560f15c6 100644 --- a/old_docs/API_docs_v73/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v73/methods/contacts_getTopPeers.md @@ -1,24 +1,26 @@ --- title: contacts.getTopPeers -description: contacts.getTopPeers parameters, return type and example +description: Get most used chats --- ## Method: contacts.getTopPeers [Back to methods index](index.md) +Get most used chats + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|correspondents|[Bool](../types/Bool.md) | Optional| -|bots\_pm|[Bool](../types/Bool.md) | Optional| -|bots\_inline|[Bool](../types/Bool.md) | Optional| -|phone\_calls|[Bool](../types/Bool.md) | Optional| -|groups|[Bool](../types/Bool.md) | Optional| -|channels|[Bool](../types/Bool.md) | Optional| -|offset|[int](../types/int.md) | Yes| -|limit|[int](../types/int.md) | Yes| -|hash|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|correspondents|[Bool](../types/Bool.md) | Optional|| +|bots\_pm|[Bool](../types/Bool.md) | Optional|| +|bots\_inline|[Bool](../types/Bool.md) | Optional|| +|phone\_calls|[Bool](../types/Bool.md) | Optional|| +|groups|[Bool](../types/Bool.md) | Optional|| +|channels|[Bool](../types/Bool.md) | Optional|| +|offset|[int](../types/int.md) | Yes|| +|limit|[int](../types/int.md) | Yes|| +|hash|[int](../types/int.md) | Yes|| ### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md) @@ -37,13 +39,18 @@ description: contacts.getTopPeers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v73/methods/contacts_importCard.md b/old_docs/API_docs_v73/methods/contacts_importCard.md index 7a2f34e1..9f73a93c 100644 --- a/old_docs/API_docs_v73/methods/contacts_importCard.md +++ b/old_docs/API_docs_v73/methods/contacts_importCard.md @@ -1,16 +1,18 @@ --- title: contacts.importCard -description: contacts.importCard parameters, return type and example +description: Import card as contact --- ## Method: contacts.importCard [Back to methods index](index.md) +Import card as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|export\_card|Array of [int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|export\_card|Array of [int](../types/int.md) | Yes|The card| ### Return type: [User](../types/User.md) @@ -30,15 +32,20 @@ description: contacts.importCard parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$User = $MadelineProto->contacts->importCard(['export_card' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/contacts_importContacts.md b/old_docs/API_docs_v73/methods/contacts_importContacts.md index 7d580e83..a6b93600 100644 --- a/old_docs/API_docs_v73/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v73/methods/contacts_importContacts.md @@ -1,16 +1,18 @@ --- title: contacts.importContacts -description: contacts.importContacts parameters, return type and example +description: Add phone number as contact --- ## Method: contacts.importContacts [Back to methods index](index.md) +Add phone number as contact + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|contacts|Array of [InputContact](../types/InputContact.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) @@ -22,15 +24,20 @@ description: contacts.importContacts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/contacts_resetSaved.md b/old_docs/API_docs_v73/methods/contacts_resetSaved.md index 87f8db12..7ad65cb1 100644 --- a/old_docs/API_docs_v73/methods/contacts_resetSaved.md +++ b/old_docs/API_docs_v73/methods/contacts_resetSaved.md @@ -17,16 +17,18 @@ description: contacts.resetSaved parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetSaved(); ``` diff --git a/old_docs/API_docs_v73/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v73/methods/contacts_resetTopPeerRating.md index 3eab7e04..ddcf6b2f 100644 --- a/old_docs/API_docs_v73/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v73/methods/contacts_resetTopPeerRating.md @@ -11,7 +11,7 @@ description: contacts.resetTopPeerRating parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |category|[TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v73/methods/contacts_resolveUsername.md b/old_docs/API_docs_v73/methods/contacts_resolveUsername.md index b665b382..1be9661b 100644 --- a/old_docs/API_docs_v73/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v73/methods/contacts_resolveUsername.md @@ -1,12 +1,12 @@ --- title: contacts.resolveUsername -description: contacts.resolveUsername parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v73/methods/contacts_search.md b/old_docs/API_docs_v73/methods/contacts_search.md index 70a0635e..0d197f40 100644 --- a/old_docs/API_docs_v73/methods/contacts_search.md +++ b/old_docs/API_docs_v73/methods/contacts_search.md @@ -1,17 +1,19 @@ --- title: contacts.search -description: contacts.search parameters, return type and example +description: Search contacts --- ## Method: contacts.search [Back to methods index](index.md) +Search contacts + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| -|limit|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|The search query| +|limit|[int](../types/int.md) | Yes|How many results should be returned| ### Return type: [contacts\_Found](../types/contacts_Found.md) @@ -32,13 +34,18 @@ description: contacts.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/contacts_unblock.md b/old_docs/API_docs_v73/methods/contacts_unblock.md index fdfb4bd2..755cf9fb 100644 --- a/old_docs/API_docs_v73/methods/contacts_unblock.md +++ b/old_docs/API_docs_v73/methods/contacts_unblock.md @@ -1,16 +1,18 @@ --- title: contacts.unblock -description: contacts.unblock parameters, return type and example +description: Unblock a user --- ## Method: contacts.unblock [Back to methods index](index.md) +Unblock a user + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|[InputUser](../types/InputUser.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +31,18 @@ description: contacts.unblock parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v73/methods/help_getAppChangelog.md b/old_docs/API_docs_v73/methods/help_getAppChangelog.md index 59916787..f09a7a0d 100644 --- a/old_docs/API_docs_v73/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v73/methods/help_getAppChangelog.md @@ -22,13 +22,18 @@ description: help.getAppChangelog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/help_getAppUpdate.md b/old_docs/API_docs_v73/methods/help_getAppUpdate.md index 89ff22c3..0e227d24 100644 --- a/old_docs/API_docs_v73/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v73/methods/help_getAppUpdate.md @@ -17,13 +17,18 @@ description: help.getAppUpdate parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); ``` diff --git a/old_docs/API_docs_v73/methods/help_getCdnConfig.md b/old_docs/API_docs_v73/methods/help_getCdnConfig.md index 3079e605..ba2a6c9a 100644 --- a/old_docs/API_docs_v73/methods/help_getCdnConfig.md +++ b/old_docs/API_docs_v73/methods/help_getCdnConfig.md @@ -24,16 +24,18 @@ description: help.getCdnConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $CdnConfig = $MadelineProto->help->getCdnConfig(); ``` diff --git a/old_docs/API_docs_v73/methods/help_getConfig.md b/old_docs/API_docs_v73/methods/help_getConfig.md index bb51b362..6ab9ce4f 100644 --- a/old_docs/API_docs_v73/methods/help_getConfig.md +++ b/old_docs/API_docs_v73/methods/help_getConfig.md @@ -24,16 +24,18 @@ description: help.getConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); ``` diff --git a/old_docs/API_docs_v73/methods/help_getInviteText.md b/old_docs/API_docs_v73/methods/help_getInviteText.md index 6d2674d6..a8d8992e 100644 --- a/old_docs/API_docs_v73/methods/help_getInviteText.md +++ b/old_docs/API_docs_v73/methods/help_getInviteText.md @@ -17,13 +17,18 @@ description: help.getInviteText parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); ``` diff --git a/old_docs/API_docs_v73/methods/help_getNearestDc.md b/old_docs/API_docs_v73/methods/help_getNearestDc.md index 6d8ed3f7..4e6271fa 100644 --- a/old_docs/API_docs_v73/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v73/methods/help_getNearestDc.md @@ -17,13 +17,18 @@ description: help.getNearestDc parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); ``` diff --git a/old_docs/API_docs_v73/methods/help_getRecentMeUrls.md b/old_docs/API_docs_v73/methods/help_getRecentMeUrls.md index 76d65594..720e0f72 100644 --- a/old_docs/API_docs_v73/methods/help_getRecentMeUrls.md +++ b/old_docs/API_docs_v73/methods/help_getRecentMeUrls.md @@ -22,16 +22,18 @@ description: help.getRecentMeUrls parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_RecentMeUrls = $MadelineProto->help->getRecentMeUrls(['referer' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/help_getSupport.md b/old_docs/API_docs_v73/methods/help_getSupport.md index ca8db03c..c2c65c1c 100644 --- a/old_docs/API_docs_v73/methods/help_getSupport.md +++ b/old_docs/API_docs_v73/methods/help_getSupport.md @@ -17,13 +17,18 @@ description: help.getSupport parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); ``` diff --git a/old_docs/API_docs_v73/methods/help_getTermsOfService.md b/old_docs/API_docs_v73/methods/help_getTermsOfService.md index eb686506..a588e830 100644 --- a/old_docs/API_docs_v73/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v73/methods/help_getTermsOfService.md @@ -17,13 +17,18 @@ description: help.getTermsOfService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); ``` diff --git a/old_docs/API_docs_v73/methods/help_saveAppLog.md b/old_docs/API_docs_v73/methods/help_saveAppLog.md index 741b9aa1..ef392f8e 100644 --- a/old_docs/API_docs_v73/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v73/methods/help_saveAppLog.md @@ -22,15 +22,20 @@ description: help.saveAppLog parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v73/methods/help_setBotUpdatesStatus.md index 470187a0..68c9720a 100644 --- a/old_docs/API_docs_v73/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v73/methods/help_setBotUpdatesStatus.md @@ -23,16 +23,18 @@ description: help.setBotUpdatesStatus parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/initConnection.md b/old_docs/API_docs_v73/methods/initConnection.md index ef40e7f5..3c81c311 100644 --- a/old_docs/API_docs_v73/methods/initConnection.md +++ b/old_docs/API_docs_v73/methods/initConnection.md @@ -1,23 +1,25 @@ --- title: initConnection -description: initConnection parameters, return type and example +description: Initializes connection and save information on the user's device and application. --- ## Method: initConnection [Back to methods index](index.md) +Initializes connection and save information on the user's device and application. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|api\_id|[int](../types/int.md) | Yes| -|device\_model|[string](../types/string.md) | Yes| -|system\_version|[string](../types/string.md) | Yes| -|app\_version|[string](../types/string.md) | Yes| -|system\_lang\_code|[string](../types/string.md) | Yes| -|lang\_pack|[string](../types/string.md) | Yes| -|lang\_code|[string](../types/string.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|api\_id|[int](../types/int.md) | Yes|Application identifier| +|device\_model|[string](../types/string.md) | Yes|Device model| +|system\_version|[string](../types/string.md) | Yes|System version| +|app\_version|[string](../types/string.md) | Yes|App version| +|system\_lang\_code|[string](../types/string.md) | Yes|Language code| +|lang\_pack|[string](../types/string.md) | Yes|Language pack to use| +|lang\_code|[string](../types/string.md) | Yes|Language code to set| +|query|[!X](../types/!X.md) | Yes|Nested query| ### Return type: [X](../types/X.md) @@ -37,16 +39,18 @@ description: initConnection parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v73/methods/invokeAfterMsg.md b/old_docs/API_docs_v73/methods/invokeAfterMsg.md index a382429e..df6916fd 100644 --- a/old_docs/API_docs_v73/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v73/methods/invokeAfterMsg.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsg -description: invokeAfterMsg parameters, return type and example +description: Invokes a query after successfull completion of one of the previous queries. --- ## Method: invokeAfterMsg [Back to methods index](index.md) +Invokes a query after successfull completion of one of the previous queries. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_id|[long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,16 +25,18 @@ description: invokeAfterMsg parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v73/methods/invokeAfterMsgs.md b/old_docs/API_docs_v73/methods/invokeAfterMsgs.md index 169eedaf..eb6952ca 100644 --- a/old_docs/API_docs_v73/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v73/methods/invokeAfterMsgs.md @@ -1,17 +1,19 @@ --- title: invokeAfterMsgs -description: invokeAfterMsgs parameters, return type and example +description: Result type returned by a current query. --- ## Method: invokeAfterMsgs [Back to methods index](index.md) +Result type returned by a current query. + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|msg\_ids|Array of [long](../types/long.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| +|query|[!X](../types/!X.md) | Yes|The query itself| ### Return type: [X](../types/X.md) @@ -23,18 +25,20 @@ description: invokeAfterMsgs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long], 'query' => !X, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/invokeWithLayer.md b/old_docs/API_docs_v73/methods/invokeWithLayer.md index d9a2c74c..48da61b6 100644 --- a/old_docs/API_docs_v73/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v73/methods/invokeWithLayer.md @@ -1,17 +1,19 @@ --- title: invokeWithLayer -description: invokeWithLayer parameters, return type and example +description: Invoke this method with layer X --- ## Method: invokeWithLayer [Back to methods index](index.md) +Invoke this method with layer X + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|layer|[int](../types/int.md) | Yes| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|layer|[int](../types/int.md) | Yes|The layer version| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -40,16 +42,18 @@ description: invokeWithLayer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); ``` diff --git a/old_docs/API_docs_v73/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v73/methods/invokeWithoutUpdates.md index f7d01765..eed046e5 100644 --- a/old_docs/API_docs_v73/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v73/methods/invokeWithoutUpdates.md @@ -1,16 +1,18 @@ --- title: invokeWithoutUpdates -description: invokeWithoutUpdates parameters, return type and example +description: Invoke with method without returning updates in the socket --- ## Method: invokeWithoutUpdates [Back to methods index](index.md) +Invoke with method without returning updates in the socket + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|query|[!X](../types/!X.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query|[!X](../types/!X.md) | Yes|The query| ### Return type: [X](../types/X.md) @@ -22,16 +24,18 @@ description: invokeWithoutUpdates parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); ``` diff --git a/old_docs/API_docs_v73/methods/langpack_getDifference.md b/old_docs/API_docs_v73/methods/langpack_getDifference.md index 116e78e2..b1078532 100644 --- a/old_docs/API_docs_v73/methods/langpack_getDifference.md +++ b/old_docs/API_docs_v73/methods/langpack_getDifference.md @@ -29,13 +29,18 @@ description: langpack.getDifference parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getDifference(['from_version' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/langpack_getLangPack.md b/old_docs/API_docs_v73/methods/langpack_getLangPack.md index b5686e61..7d440b66 100644 --- a/old_docs/API_docs_v73/methods/langpack_getLangPack.md +++ b/old_docs/API_docs_v73/methods/langpack_getLangPack.md @@ -29,13 +29,18 @@ description: langpack.getLangPack parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getLangPack(['lang_code' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/langpack_getLanguages.md b/old_docs/API_docs_v73/methods/langpack_getLanguages.md index cb65e5a0..8afce13f 100644 --- a/old_docs/API_docs_v73/methods/langpack_getLanguages.md +++ b/old_docs/API_docs_v73/methods/langpack_getLanguages.md @@ -24,13 +24,18 @@ description: langpack.getLanguages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_LangPackLanguage = $MadelineProto->langpack->getLanguages(); ``` diff --git a/old_docs/API_docs_v73/methods/langpack_getStrings.md b/old_docs/API_docs_v73/methods/langpack_getStrings.md index ce58daf9..9791f621 100644 --- a/old_docs/API_docs_v73/methods/langpack_getStrings.md +++ b/old_docs/API_docs_v73/methods/langpack_getStrings.md @@ -30,15 +30,20 @@ description: langpack.getStrings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string'], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string', 'string'], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_acceptEncryption.md b/old_docs/API_docs_v73/methods/messages_acceptEncryption.md index 243c4c00..dd0cbafe 100644 --- a/old_docs/API_docs_v73/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v73/methods/messages_acceptEncryption.md @@ -1,12 +1,12 @@ --- title: messages.acceptEncryption -description: messages.acceptEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.acceptEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v73/methods/messages_addChatUser.md b/old_docs/API_docs_v73/methods/messages_addChatUser.md index 0129b64c..d8cbfec7 100644 --- a/old_docs/API_docs_v73/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v73/methods/messages_addChatUser.md @@ -10,8 +10,8 @@ description: messages.addChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |fwd\_limit|[int](../types/int.md) | Yes| @@ -39,13 +39,18 @@ description: messages.addChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_checkChatInvite.md b/old_docs/API_docs_v73/methods/messages_checkChatInvite.md index c4489469..de000c1f 100644 --- a/old_docs/API_docs_v73/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v73/methods/messages_checkChatInvite.md @@ -31,13 +31,18 @@ description: messages.checkChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v73/methods/messages_clearRecentStickers.md index ae45b249..31941a34 100644 --- a/old_docs/API_docs_v73/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v73/methods/messages_clearRecentStickers.md @@ -22,13 +22,18 @@ description: messages.clearRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_createChat.md b/old_docs/API_docs_v73/methods/messages_createChat.md index c6c8f420..6c8553ef 100644 --- a/old_docs/API_docs_v73/methods/messages_createChat.md +++ b/old_docs/API_docs_v73/methods/messages_createChat.md @@ -10,7 +10,7 @@ description: messages.createChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|users|Array of [InputUser](../types/InputUser.md) | Yes| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes| |title|[string](../types/string.md) | Yes| @@ -31,15 +31,20 @@ description: messages.createChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->createChat(['users' => [InputUser], 'title' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_deleteChatUser.md b/old_docs/API_docs_v73/methods/messages_deleteChatUser.md index d0b8cc02..7065993b 100644 --- a/old_docs/API_docs_v73/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v73/methods/messages_deleteChatUser.md @@ -10,8 +10,8 @@ description: messages.deleteChatUser parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -32,16 +32,18 @@ description: messages.deleteChatUser parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_deleteHistory.md b/old_docs/API_docs_v73/methods/messages_deleteHistory.md index d1c3f195..01686b2b 100644 --- a/old_docs/API_docs_v73/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v73/methods/messages_deleteHistory.md @@ -11,7 +11,7 @@ description: messages.deleteHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |just\_clear|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.deleteHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_deleteMessages.md b/old_docs/API_docs_v73/methods/messages_deleteMessages.md index 5472cc72..0cc6e6ed 100644 --- a/old_docs/API_docs_v73/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v73/methods/messages_deleteMessages.md @@ -30,18 +30,20 @@ description: messages.deleteMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_discardEncryption.md b/old_docs/API_docs_v73/methods/messages_discardEncryption.md index 3a9dc58b..36eac1fb 100644 --- a/old_docs/API_docs_v73/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v73/methods/messages_discardEncryption.md @@ -1,12 +1,12 @@ --- title: messages.discardEncryption -description: messages.discardEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.discardEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v73/methods/messages_editChatAdmin.md b/old_docs/API_docs_v73/methods/messages_editChatAdmin.md index f76867ad..7c23fab0 100644 --- a/old_docs/API_docs_v73/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v73/methods/messages_editChatAdmin.md @@ -10,8 +10,8 @@ description: messages.editChatAdmin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |is\_admin|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.editChatAdmin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_editChatPhoto.md b/old_docs/API_docs_v73/methods/messages_editChatPhoto.md index 7be16fc8..c38d9b88 100644 --- a/old_docs/API_docs_v73/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v73/methods/messages_editChatPhoto.md @@ -10,7 +10,7 @@ description: messages.editChatPhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional| @@ -34,16 +34,18 @@ description: messages.editChatPhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_editChatTitle.md b/old_docs/API_docs_v73/methods/messages_editChatTitle.md index 41f990a4..683d6ef1 100644 --- a/old_docs/API_docs_v73/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v73/methods/messages_editChatTitle.md @@ -10,7 +10,7 @@ description: messages.editChatTitle parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |title|[string](../types/string.md) | Yes| @@ -31,16 +31,18 @@ description: messages.editChatTitle parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v73/methods/messages_editInlineBotMessage.md index caa59b61..a2f59d4c 100644 --- a/old_docs/API_docs_v73/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v73/methods/messages_editInlineBotMessage.md @@ -37,18 +37,20 @@ description: messages.editInlineBotMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'stop_geo_live' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', 'geo_point' => InputGeoPoint, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'stop_geo_live' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', 'geo_point' => InputGeoPoint, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_editMessage.md b/old_docs/API_docs_v73/methods/messages_editMessage.md index 4dfadde7..396c9449 100644 --- a/old_docs/API_docs_v73/methods/messages_editMessage.md +++ b/old_docs/API_docs_v73/methods/messages_editMessage.md @@ -12,7 +12,7 @@ description: messages.editMessage parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |stop\_geo\_live|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| |message|[string](../types/string.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -46,18 +46,20 @@ description: messages.editMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'stop_geo_live' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'parse_mode' => 'string', 'geo_point' => InputGeoPoint, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'stop_geo_live' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', 'geo_point' => InputGeoPoint, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_exportChatInvite.md b/old_docs/API_docs_v73/methods/messages_exportChatInvite.md index 37cbbcef..b6d6aacc 100644 --- a/old_docs/API_docs_v73/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v73/methods/messages_exportChatInvite.md @@ -10,7 +10,7 @@ description: messages.exportChatInvite parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -29,13 +29,18 @@ description: messages.exportChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_faveSticker.md b/old_docs/API_docs_v73/methods/messages_faveSticker.md index 9264d8a3..88544c20 100644 --- a/old_docs/API_docs_v73/methods/messages_faveSticker.md +++ b/old_docs/API_docs_v73/methods/messages_faveSticker.md @@ -10,7 +10,7 @@ description: messages.faveSticker parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unfave|[Bool](../types/Bool.md) | Yes| @@ -30,16 +30,18 @@ description: messages.faveSticker parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->faveSticker(['id' => InputDocument, 'unfave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_forwardMessage.md b/old_docs/API_docs_v73/methods/messages_forwardMessage.md index e57daaea..de3e3a0f 100644 --- a/old_docs/API_docs_v73/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v73/methods/messages_forwardMessage.md @@ -10,7 +10,7 @@ description: messages.forwardMessage parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: messages.forwardMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_forwardMessages.md b/old_docs/API_docs_v73/methods/messages_forwardMessages.md index ec12a217..62703972 100644 --- a/old_docs/API_docs_v73/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v73/methods/messages_forwardMessages.md @@ -14,9 +14,9 @@ description: messages.forwardMessages parameters, return type and example |background|[Bool](../types/Bool.md) | Optional| |with\_my\_score|[Bool](../types/Bool.md) | Optional| |grouped|[Bool](../types/Bool.md) | Optional| -|from\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| -|to\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -56,18 +56,20 @@ description: messages.forwardMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'grouped' => Bool, 'from_peer' => InputPeer, 'id' => [int], 'to_peer' => InputPeer, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_getAllChats.md b/old_docs/API_docs_v73/methods/messages_getAllChats.md index babcf17d..59bc0add 100644 --- a/old_docs/API_docs_v73/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v73/methods/messages_getAllChats.md @@ -22,15 +22,20 @@ description: messages.getAllChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_getAllDrafts.md b/old_docs/API_docs_v73/methods/messages_getAllDrafts.md index 8550c5b8..7f0f7843 100644 --- a/old_docs/API_docs_v73/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v73/methods/messages_getAllDrafts.md @@ -17,13 +17,18 @@ description: messages.getAllDrafts parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getAllStickers.md b/old_docs/API_docs_v73/methods/messages_getAllStickers.md index 034438a5..7ab91cef 100644 --- a/old_docs/API_docs_v73/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v73/methods/messages_getAllStickers.md @@ -22,13 +22,18 @@ description: messages.getAllStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v73/methods/messages_getArchivedStickers.md index cdb7f0af..8c2041a3 100644 --- a/old_docs/API_docs_v73/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v73/methods/messages_getArchivedStickers.md @@ -24,13 +24,18 @@ description: messages.getArchivedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v73/methods/messages_getAttachedStickers.md index 79d4e30d..f03f0be2 100644 --- a/old_docs/API_docs_v73/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v73/methods/messages_getAttachedStickers.md @@ -22,13 +22,18 @@ description: messages.getAttachedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v73/methods/messages_getBotCallbackAnswer.md index bd916755..b9039098 100644 --- a/old_docs/API_docs_v73/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v73/methods/messages_getBotCallbackAnswer.md @@ -11,7 +11,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |game|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |msg\_id|[int](../types/int.md) | Yes| |data|[bytes](../types/bytes.md) | Optional| @@ -36,13 +36,18 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getChats.md b/old_docs/API_docs_v73/methods/messages_getChats.md index c322613d..fc42306d 100644 --- a/old_docs/API_docs_v73/methods/messages_getChats.md +++ b/old_docs/API_docs_v73/methods/messages_getChats.md @@ -30,18 +30,20 @@ description: messages.getChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Chats = $MadelineProto->messages->getChats(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_getCommonChats.md b/old_docs/API_docs_v73/methods/messages_getCommonChats.md index d713f3a5..0df79096 100644 --- a/old_docs/API_docs_v73/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v73/methods/messages_getCommonChats.md @@ -10,7 +10,7 @@ description: messages.getCommonChats parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |max\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getCommonChats parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getDhConfig.md b/old_docs/API_docs_v73/methods/messages_getDhConfig.md index f97684d2..6ba4d3f5 100644 --- a/old_docs/API_docs_v73/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v73/methods/messages_getDhConfig.md @@ -30,13 +30,18 @@ description: messages.getDhConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_DhConfig = $MadelineProto->messages->getDhConfig(['version' => int, 'random_length' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getDialogs.md b/old_docs/API_docs_v73/methods/messages_getDialogs.md index e7e81a8c..041b3efe 100644 --- a/old_docs/API_docs_v73/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v73/methods/messages_getDialogs.md @@ -13,7 +13,7 @@ description: messages.getDialogs parameters, return type and example |exclude\_pinned|[Bool](../types/Bool.md) | Optional| |offset\_date|[int](../types/int.md) | Yes| |offset\_id|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v73/methods/messages_getDocumentByHash.md index 3902ac44..13f0c18f 100644 --- a/old_docs/API_docs_v73/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v73/methods/messages_getDocumentByHash.md @@ -31,16 +31,18 @@ description: messages.getDocumentByHash parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getFavedStickers.md b/old_docs/API_docs_v73/methods/messages_getFavedStickers.md index 51701826..fc2717f8 100644 --- a/old_docs/API_docs_v73/methods/messages_getFavedStickers.md +++ b/old_docs/API_docs_v73/methods/messages_getFavedStickers.md @@ -22,16 +22,18 @@ description: messages.getFavedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FavedStickers = $MadelineProto->messages->getFavedStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v73/methods/messages_getFeaturedStickers.md index 5aad1810..51097eda 100644 --- a/old_docs/API_docs_v73/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v73/methods/messages_getFeaturedStickers.md @@ -22,13 +22,18 @@ description: messages.getFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getFullChat.md b/old_docs/API_docs_v73/methods/messages_getFullChat.md index ffa9c281..bddc04d0 100644 --- a/old_docs/API_docs_v73/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v73/methods/messages_getFullChat.md @@ -1,12 +1,12 @@ --- title: messages.getFullChat -description: messages.getFullChat parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v73/methods/messages_getGameHighScores.md b/old_docs/API_docs_v73/methods/messages_getGameHighScores.md index c316a8bd..4b8b1397 100644 --- a/old_docs/API_docs_v73/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v73/methods/messages_getGameHighScores.md @@ -10,9 +10,9 @@ description: messages.getGameHighScores parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -32,16 +32,18 @@ description: messages.getGameHighScores parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getHistory.md b/old_docs/API_docs_v73/methods/messages_getHistory.md index b0dfa205..e25111ed 100644 --- a/old_docs/API_docs_v73/methods/messages_getHistory.md +++ b/old_docs/API_docs_v73/methods/messages_getHistory.md @@ -10,7 +10,7 @@ description: messages.getHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| @@ -41,13 +41,18 @@ description: messages.getHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v73/methods/messages_getInlineBotResults.md index 90e2a427..6d965b19 100644 --- a/old_docs/API_docs_v73/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v73/methods/messages_getInlineBotResults.md @@ -10,8 +10,8 @@ description: messages.getInlineBotResults parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional| |query|[string](../types/string.md) | Yes| |offset|[string](../types/string.md) | Yes| @@ -36,13 +36,18 @@ description: messages.getInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v73/methods/messages_getInlineGameHighScores.md index 524e387b..9305a0f4 100644 --- a/old_docs/API_docs_v73/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v73/methods/messages_getInlineGameHighScores.md @@ -11,7 +11,7 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Name | Type | Required | |----------|---------------|----------| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| ### Return type: [messages\_HighScores](../types/messages_HighScores.md) @@ -31,16 +31,18 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getMaskStickers.md b/old_docs/API_docs_v73/methods/messages_getMaskStickers.md index ca964647..260cfdb7 100644 --- a/old_docs/API_docs_v73/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v73/methods/messages_getMaskStickers.md @@ -22,13 +22,18 @@ description: messages.getMaskStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getMessageEditData.md b/old_docs/API_docs_v73/methods/messages_getMessageEditData.md index df71c31a..2a90a419 100644 --- a/old_docs/API_docs_v73/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v73/methods/messages_getMessageEditData.md @@ -10,7 +10,7 @@ description: messages.getMessageEditData parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.getMessageEditData parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getMessages.md b/old_docs/API_docs_v73/methods/messages_getMessages.md index 787c46dd..4fa2025c 100644 --- a/old_docs/API_docs_v73/methods/messages_getMessages.md +++ b/old_docs/API_docs_v73/methods/messages_getMessages.md @@ -22,18 +22,20 @@ description: messages.getMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_getMessagesViews.md b/old_docs/API_docs_v73/methods/messages_getMessagesViews.md index 7abae27d..37b63fd1 100644 --- a/old_docs/API_docs_v73/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v73/methods/messages_getMessagesViews.md @@ -10,7 +10,7 @@ description: messages.getMessagesViews parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|Array of [int](../types/int.md) | Yes| |increment|[Bool](../types/Bool.md) | Yes| @@ -33,15 +33,20 @@ description: messages.getMessagesViews parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int], 'increment' => Bool, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v73/methods/messages_getPeerDialogs.md index 226948ae..eff29878 100644 --- a/old_docs/API_docs_v73/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v73/methods/messages_getPeerDialogs.md @@ -10,7 +10,7 @@ description: messages.getPeerDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peers|Array of [InputPeer](../types/InputPeer.md) | Yes| +|peers|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md) @@ -30,15 +30,20 @@ description: messages.getPeerDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_getPeerSettings.md b/old_docs/API_docs_v73/methods/messages_getPeerSettings.md index fab25034..25906b73 100644 --- a/old_docs/API_docs_v73/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v73/methods/messages_getPeerSettings.md @@ -10,7 +10,7 @@ description: messages.getPeerSettings parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [PeerSettings](../types/PeerSettings.md) @@ -30,13 +30,18 @@ description: messages.getPeerSettings parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v73/methods/messages_getPinnedDialogs.md index ec744f01..e5499df7 100644 --- a/old_docs/API_docs_v73/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v73/methods/messages_getPinnedDialogs.md @@ -17,13 +17,18 @@ description: messages.getPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getRecentLocations.md b/old_docs/API_docs_v73/methods/messages_getRecentLocations.md index a362f903..be42bb77 100644 --- a/old_docs/API_docs_v73/methods/messages_getRecentLocations.md +++ b/old_docs/API_docs_v73/methods/messages_getRecentLocations.md @@ -10,7 +10,7 @@ description: messages.getRecentLocations parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |limit|[int](../types/int.md) | Yes| @@ -23,16 +23,18 @@ description: messages.getRecentLocations parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getRecentLocations(['peer' => InputPeer, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getRecentStickers.md b/old_docs/API_docs_v73/methods/messages_getRecentStickers.md index a6ae162f..5a60d345 100644 --- a/old_docs/API_docs_v73/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v73/methods/messages_getRecentStickers.md @@ -23,13 +23,18 @@ description: messages.getRecentStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getSavedGifs.md b/old_docs/API_docs_v73/methods/messages_getSavedGifs.md index 4986d812..bcb4590d 100644 --- a/old_docs/API_docs_v73/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v73/methods/messages_getSavedGifs.md @@ -22,13 +22,18 @@ description: messages.getSavedGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getStickerSet.md b/old_docs/API_docs_v73/methods/messages_getStickerSet.md index f34475dc..f594f967 100644 --- a/old_docs/API_docs_v73/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v73/methods/messages_getStickerSet.md @@ -29,16 +29,18 @@ description: messages.getStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getUnreadMentions.md b/old_docs/API_docs_v73/methods/messages_getUnreadMentions.md index c79eef68..181e730c 100644 --- a/old_docs/API_docs_v73/methods/messages_getUnreadMentions.md +++ b/old_docs/API_docs_v73/methods/messages_getUnreadMentions.md @@ -10,7 +10,7 @@ description: messages.getUnreadMentions parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |add\_offset|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -34,13 +34,18 @@ description: messages.getUnreadMentions parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getUnreadMentions(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getWebPage.md b/old_docs/API_docs_v73/methods/messages_getWebPage.md index e886b020..0f09af47 100644 --- a/old_docs/API_docs_v73/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v73/methods/messages_getWebPage.md @@ -30,13 +30,18 @@ description: messages.getWebPage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v73/methods/messages_getWebPagePreview.md index d3908933..c7098e7b 100644 --- a/old_docs/API_docs_v73/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v73/methods/messages_getWebPagePreview.md @@ -22,13 +22,18 @@ description: messages.getWebPagePreview parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_hideReportSpam.md b/old_docs/API_docs_v73/methods/messages_hideReportSpam.md index d47e8aa5..0419ec79 100644 --- a/old_docs/API_docs_v73/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v73/methods/messages_hideReportSpam.md @@ -10,7 +10,7 @@ description: messages.hideReportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.hideReportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_importChatInvite.md b/old_docs/API_docs_v73/methods/messages_importChatInvite.md index 9dcfa56d..33288fe0 100644 --- a/old_docs/API_docs_v73/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v73/methods/messages_importChatInvite.md @@ -35,13 +35,18 @@ description: messages.importChatInvite parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_installStickerSet.md b/old_docs/API_docs_v73/methods/messages_installStickerSet.md index 9336cc22..f405adce 100644 --- a/old_docs/API_docs_v73/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v73/methods/messages_installStickerSet.md @@ -30,13 +30,18 @@ description: messages.installStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_migrateChat.md b/old_docs/API_docs_v73/methods/messages_migrateChat.md index 7cf6cc98..09b9b3fa 100644 --- a/old_docs/API_docs_v73/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v73/methods/messages_migrateChat.md @@ -10,7 +10,7 @@ description: messages.migrateChat parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Updates](../types/Updates.md) @@ -31,13 +31,18 @@ description: messages.migrateChat parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v73/methods/messages_readEncryptedHistory.md index f38f6b07..51a6865d 100644 --- a/old_docs/API_docs_v73/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v73/methods/messages_readEncryptedHistory.md @@ -10,7 +10,7 @@ description: messages.readEncryptedHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -30,16 +30,18 @@ description: messages.readEncryptedHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v73/methods/messages_readFeaturedStickers.md index 02055bf3..766ba200 100644 --- a/old_docs/API_docs_v73/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v73/methods/messages_readFeaturedStickers.md @@ -22,15 +22,20 @@ description: messages.readFeaturedStickers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_readHistory.md b/old_docs/API_docs_v73/methods/messages_readHistory.md index a3875f56..39222607 100644 --- a/old_docs/API_docs_v73/methods/messages_readHistory.md +++ b/old_docs/API_docs_v73/methods/messages_readHistory.md @@ -10,7 +10,7 @@ description: messages.readHistory parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |max\_id|[int](../types/int.md) | Yes| @@ -31,13 +31,18 @@ description: messages.readHistory parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_readMentions.md b/old_docs/API_docs_v73/methods/messages_readMentions.md index 687a4053..0fec0465 100644 --- a/old_docs/API_docs_v73/methods/messages_readMentions.md +++ b/old_docs/API_docs_v73/methods/messages_readMentions.md @@ -10,7 +10,7 @@ description: messages.readMentions parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) @@ -22,16 +22,18 @@ description: messages.readMentions parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readMentions(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_readMessageContents.md b/old_docs/API_docs_v73/methods/messages_readMessageContents.md index 7a6055fc..23911939 100644 --- a/old_docs/API_docs_v73/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v73/methods/messages_readMessageContents.md @@ -22,15 +22,20 @@ description: messages.readMessageContents parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_receivedMessages.md b/old_docs/API_docs_v73/methods/messages_receivedMessages.md index e2cf3a2f..4bbb9237 100644 --- a/old_docs/API_docs_v73/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v73/methods/messages_receivedMessages.md @@ -22,13 +22,18 @@ description: messages.receivedMessages parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_receivedQueue.md b/old_docs/API_docs_v73/methods/messages_receivedQueue.md index 38f504b3..177908df 100644 --- a/old_docs/API_docs_v73/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v73/methods/messages_receivedQueue.md @@ -29,16 +29,18 @@ description: messages.receivedQueue parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Vector_of_long = $MadelineProto->messages->receivedQueue(['max_qts' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v73/methods/messages_reorderPinnedDialogs.md index b4bfb84f..30e926d9 100644 --- a/old_docs/API_docs_v73/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v73/methods/messages_reorderPinnedDialogs.md @@ -11,7 +11,7 @@ description: messages.reorderPinnedDialogs parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |force|[Bool](../types/Bool.md) | Optional| -|order|Array of [InputPeer](../types/InputPeer.md) | Yes| +|order|Array of [Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -30,15 +30,20 @@ description: messages.reorderPinnedDialogs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v73/methods/messages_reorderStickerSets.md index fa094550..0e2c121d 100644 --- a/old_docs/API_docs_v73/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v73/methods/messages_reorderStickerSets.md @@ -23,15 +23,20 @@ description: messages.reorderStickerSets parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v73/methods/messages_reportEncryptedSpam.md index aed7a891..64ebecdd 100644 --- a/old_docs/API_docs_v73/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v73/methods/messages_reportEncryptedSpam.md @@ -10,7 +10,7 @@ description: messages.reportEncryptedSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportEncryptedSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_reportSpam.md b/old_docs/API_docs_v73/methods/messages_reportSpam.md index f0d6141e..b3e0c47f 100644 --- a/old_docs/API_docs_v73/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v73/methods/messages_reportSpam.md @@ -10,7 +10,7 @@ description: messages.reportSpam parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -29,13 +29,18 @@ description: messages.reportSpam parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_requestEncryption.md b/old_docs/API_docs_v73/methods/messages_requestEncryption.md index c8476667..3367bec3 100644 --- a/old_docs/API_docs_v73/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v73/methods/messages_requestEncryption.md @@ -1,12 +1,12 @@ --- title: messages.requestEncryption -description: messages.requestEncryption parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats --- ## Method: messages.requestEncryption [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats** +**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_v73/methods/messages_saveDraft.md b/old_docs/API_docs_v73/methods/messages_saveDraft.md index 7a85dfe7..754b4da2 100644 --- a/old_docs/API_docs_v73/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v73/methods/messages_saveDraft.md @@ -12,7 +12,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------|----------| |no\_webpage|[Bool](../types/Bool.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |message|[string](../types/string.md) | Yes| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| |parse\_mode| [string](../types/string.md) | Optional | @@ -34,15 +34,20 @@ description: messages.saveDraft parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_saveGif.md b/old_docs/API_docs_v73/methods/messages_saveGif.md index b3673c91..725bc949 100644 --- a/old_docs/API_docs_v73/methods/messages_saveGif.md +++ b/old_docs/API_docs_v73/methods/messages_saveGif.md @@ -10,7 +10,7 @@ description: messages.saveGif parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.saveGif parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v73/methods/messages_saveRecentSticker.md index bc3d1627..4a8298e2 100644 --- a/old_docs/API_docs_v73/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v73/methods/messages_saveRecentSticker.md @@ -11,7 +11,7 @@ description: messages.saveRecentSticker parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |attached|[Bool](../types/Bool.md) | Optional| -|id|[InputDocument](../types/InputDocument.md) | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |unsave|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.saveRecentSticker parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_search.md b/old_docs/API_docs_v73/methods/messages_search.md index 368688bd..4dd3f947 100644 --- a/old_docs/API_docs_v73/methods/messages_search.md +++ b/old_docs/API_docs_v73/methods/messages_search.md @@ -10,9 +10,9 @@ description: messages.search parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |q|[string](../types/string.md) | Yes| -|from\_id|[InputUser](../types/InputUser.md) | Optional| +|from\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |filter|[MessagesFilter](../types/MessagesFilter.md) | Yes| |min\_date|[int](../types/int.md) | Yes| |max\_date|[int](../types/int.md) | Yes| @@ -45,13 +45,18 @@ description: messages.search parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_searchGifs.md b/old_docs/API_docs_v73/methods/messages_searchGifs.md index dd804c99..896e98d2 100644 --- a/old_docs/API_docs_v73/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v73/methods/messages_searchGifs.md @@ -30,13 +30,18 @@ description: messages.searchGifs parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_searchGlobal.md b/old_docs/API_docs_v73/methods/messages_searchGlobal.md index 418ba878..e3446ebb 100644 --- a/old_docs/API_docs_v73/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v73/methods/messages_searchGlobal.md @@ -12,7 +12,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------|----------| |q|[string](../types/string.md) | Yes| |offset\_date|[int](../types/int.md) | Yes| -|offset\_peer|[InputPeer](../types/InputPeer.md) | Optional| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |offset\_id|[int](../types/int.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,13 +33,18 @@ description: messages.searchGlobal parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_sendEncrypted.md b/old_docs/API_docs_v73/methods/messages_sendEncrypted.md index ba9f796b..f3219ced 100644 --- a/old_docs/API_docs_v73/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v73/methods/messages_sendEncrypted.md @@ -10,7 +10,7 @@ description: messages.sendEncrypted parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncrypted parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v73/methods/messages_sendEncryptedFile.md index d85e91f0..eb3d3e3e 100644 --- a/old_docs/API_docs_v73/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v73/methods/messages_sendEncryptedFile.md @@ -10,9 +10,9 @@ description: messages.sendEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) @@ -31,16 +31,18 @@ description: messages.sendEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v73/methods/messages_sendEncryptedService.md index fd4e2627..03f539b8 100644 --- a/old_docs/API_docs_v73/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v73/methods/messages_sendEncryptedService.md @@ -10,7 +10,7 @@ description: messages.sendEncryptedService parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes| @@ -33,16 +33,18 @@ description: messages.sendEncryptedService parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v73/methods/messages_sendInlineBotResult.md index 0857341e..6bfb1578 100644 --- a/old_docs/API_docs_v73/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v73/methods/messages_sendInlineBotResult.md @@ -13,7 +13,7 @@ description: messages.sendInlineBotResult parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |query\_id|[long](../types/long.md) | Yes| |id|[string](../types/string.md) | Yes| @@ -40,13 +40,18 @@ description: messages.sendInlineBotResult parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_sendMedia.md b/old_docs/API_docs_v73/methods/messages_sendMedia.md index 8c6f7f7f..1530451b 100644 --- a/old_docs/API_docs_v73/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v73/methods/messages_sendMedia.md @@ -13,9 +13,9 @@ description: messages.sendMedia parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -56,16 +56,18 @@ description: messages.sendMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_sendMessage.md b/old_docs/API_docs_v73/methods/messages_sendMessage.md index bec95b8c..49ace99c 100644 --- a/old_docs/API_docs_v73/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v73/methods/messages_sendMessage.md @@ -14,7 +14,7 @@ description: messages.sendMessage parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |message|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -50,6 +50,7 @@ description: messages.sendMessage parameters, return type and example |YOU_BLOCKED_USER|You blocked this user| |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| @@ -57,18 +58,20 @@ description: messages.sendMessage parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$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], 'parse_mode' => 'string', ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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', ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_sendMultiMedia.md b/old_docs/API_docs_v73/methods/messages_sendMultiMedia.md index 1ec27201..53afd358 100644 --- a/old_docs/API_docs_v73/methods/messages_sendMultiMedia.md +++ b/old_docs/API_docs_v73/methods/messages_sendMultiMedia.md @@ -13,7 +13,7 @@ description: messages.sendMultiMedia parameters, return type and example |silent|[Bool](../types/Bool.md) | Optional| |background|[Bool](../types/Bool.md) | Optional| |clear\_draft|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Optional| |multi\_media|Array of [InputSingleMedia](../types/InputSingleMedia.md) | Yes| @@ -27,18 +27,20 @@ description: messages.sendMultiMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Updates = $MadelineProto->messages->sendMultiMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'multi_media' => [InputSingleMedia], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendMultiMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'multi_media' => [InputSingleMedia, InputSingleMedia], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_sendScreenshotNotification.md b/old_docs/API_docs_v73/methods/messages_sendScreenshotNotification.md index 8ab8154b..2e66b51a 100644 --- a/old_docs/API_docs_v73/methods/messages_sendScreenshotNotification.md +++ b/old_docs/API_docs_v73/methods/messages_sendScreenshotNotification.md @@ -10,7 +10,7 @@ description: messages.sendScreenshotNotification parameters, return type and exa | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Yes| @@ -30,13 +30,18 @@ description: messages.sendScreenshotNotification parameters, return type and exa ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->sendScreenshotNotification(['peer' => InputPeer, 'reply_to_msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v73/methods/messages_setBotCallbackAnswer.md index 2901a558..0282168b 100644 --- a/old_docs/API_docs_v73/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v73/methods/messages_setBotCallbackAnswer.md @@ -33,16 +33,18 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v73/methods/messages_setBotPrecheckoutResults.md index 5666e9ff..4aba8ca3 100644 --- a/old_docs/API_docs_v73/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v73/methods/messages_setBotPrecheckoutResults.md @@ -31,16 +31,18 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v73/methods/messages_setBotShippingResults.md index 95376b64..5dcfe12e 100644 --- a/old_docs/API_docs_v73/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v73/methods/messages_setBotShippingResults.md @@ -31,18 +31,20 @@ description: messages.setBotShippingResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v73/methods/messages_setEncryptedTyping.md index aeae6ff7..4a770e0b 100644 --- a/old_docs/API_docs_v73/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v73/methods/messages_setEncryptedTyping.md @@ -10,7 +10,7 @@ description: messages.setEncryptedTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| |typing|[Bool](../types/Bool.md) | Yes| @@ -30,13 +30,18 @@ description: messages.setEncryptedTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_setGameScore.md b/old_docs/API_docs_v73/methods/messages_setGameScore.md index 615aa87b..61dfe579 100644 --- a/old_docs/API_docs_v73/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v73/methods/messages_setGameScore.md @@ -12,9 +12,9 @@ description: messages.setGameScore parameters, return type and example |----------|---------------|----------| |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |id|[int](../types/int.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -35,16 +35,18 @@ description: messages.setGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v73/methods/messages_setInlineBotResults.md index 8b49c4c7..c38b8c2e 100644 --- a/old_docs/API_docs_v73/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v73/methods/messages_setInlineBotResults.md @@ -45,18 +45,20 @@ description: messages.setInlineBotResults parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$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, ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v73/methods/messages_setInlineGameScore.md index b5fc27d5..9fadc31e 100644 --- a/old_docs/API_docs_v73/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v73/methods/messages_setInlineGameScore.md @@ -13,7 +13,7 @@ description: messages.setInlineGameScore parameters, return type and example |edit\_message|[Bool](../types/Bool.md) | Optional| |force|[Bool](../types/Bool.md) | Optional| |id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |score|[int](../types/int.md) | Yes| @@ -34,16 +34,18 @@ description: messages.setInlineGameScore parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_setTyping.md b/old_docs/API_docs_v73/methods/messages_setTyping.md index 5072bfc6..e300a11a 100644 --- a/old_docs/API_docs_v73/methods/messages_setTyping.md +++ b/old_docs/API_docs_v73/methods/messages_setTyping.md @@ -10,7 +10,7 @@ description: messages.setTyping parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |action|[SendMessageAction](../types/SendMessageAction.md) | Yes| @@ -37,16 +37,18 @@ description: messages.setTyping parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_startBot.md b/old_docs/API_docs_v73/methods/messages_startBot.md index 32b46034..79485b20 100644 --- a/old_docs/API_docs_v73/methods/messages_startBot.md +++ b/old_docs/API_docs_v73/methods/messages_startBot.md @@ -10,8 +10,8 @@ description: messages.startBot parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|bot|[InputUser](../types/InputUser.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |start\_param|[string](../types/string.md) | Yes| @@ -34,13 +34,18 @@ description: messages.startBot parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v73/methods/messages_toggleChatAdmins.md index c31c97e1..ce7f41e0 100644 --- a/old_docs/API_docs_v73/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v73/methods/messages_toggleChatAdmins.md @@ -10,7 +10,7 @@ description: messages.toggleChatAdmins parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|chat\_id|[InputPeer](../types/InputPeer.md) | Optional| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| |enabled|[Bool](../types/Bool.md) | Yes| @@ -31,13 +31,18 @@ description: messages.toggleChatAdmins parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v73/methods/messages_toggleDialogPin.md index 535a0fa1..7c5bfa9f 100644 --- a/old_docs/API_docs_v73/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v73/methods/messages_toggleDialogPin.md @@ -11,7 +11,7 @@ description: messages.toggleDialogPin parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |pinned|[Bool](../types/Bool.md) | Optional| -|peer|[InputPeer](../types/InputPeer.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| ### Return type: [Bool](../types/Bool.md) @@ -30,13 +30,18 @@ description: messages.toggleDialogPin parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v73/methods/messages_uninstallStickerSet.md index 6cc7e0b4..17aea76f 100644 --- a/old_docs/API_docs_v73/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v73/methods/messages_uninstallStickerSet.md @@ -29,13 +29,18 @@ description: messages.uninstallStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_uploadEncryptedFile.md b/old_docs/API_docs_v73/methods/messages_uploadEncryptedFile.md index 60a63bf3..cc5d62fe 100644 --- a/old_docs/API_docs_v73/methods/messages_uploadEncryptedFile.md +++ b/old_docs/API_docs_v73/methods/messages_uploadEncryptedFile.md @@ -10,8 +10,8 @@ description: messages.uploadEncryptedFile parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| -|file|[InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Yes| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | Optional| ### Return type: [EncryptedFile](../types/EncryptedFile.md) @@ -23,16 +23,18 @@ description: messages.uploadEncryptedFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $EncryptedFile = $MadelineProto->messages->uploadEncryptedFile(['peer' => InputEncryptedChat, 'file' => InputEncryptedFile, ]); ``` diff --git a/old_docs/API_docs_v73/methods/messages_uploadMedia.md b/old_docs/API_docs_v73/methods/messages_uploadMedia.md index 8a79defa..74515f11 100644 --- a/old_docs/API_docs_v73/methods/messages_uploadMedia.md +++ b/old_docs/API_docs_v73/methods/messages_uploadMedia.md @@ -10,8 +10,8 @@ description: messages.uploadMedia parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|peer|[InputPeer](../types/InputPeer.md) | Optional| -|media|[InputMedia](../types/InputMedia.md) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | Optional| ### Return type: [MessageMedia](../types/MessageMedia.md) @@ -32,16 +32,18 @@ description: messages.uploadMedia parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $MessageMedia = $MadelineProto->messages->uploadMedia(['peer' => InputPeer, 'media' => InputMedia, ]); ``` diff --git a/old_docs/API_docs_v73/methods/payments_clearSavedInfo.md b/old_docs/API_docs_v73/methods/payments_clearSavedInfo.md index fb9bae07..dc762198 100644 --- a/old_docs/API_docs_v73/methods/payments_clearSavedInfo.md +++ b/old_docs/API_docs_v73/methods/payments_clearSavedInfo.md @@ -23,13 +23,18 @@ description: payments.clearSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); ``` diff --git a/old_docs/API_docs_v73/methods/payments_getPaymentForm.md b/old_docs/API_docs_v73/methods/payments_getPaymentForm.md index 141c47f2..ee269741 100644 --- a/old_docs/API_docs_v73/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v73/methods/payments_getPaymentForm.md @@ -29,13 +29,18 @@ description: payments.getPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v73/methods/payments_getPaymentReceipt.md index f6aa1ab6..e46563d0 100644 --- a/old_docs/API_docs_v73/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v73/methods/payments_getPaymentReceipt.md @@ -29,13 +29,18 @@ description: payments.getPaymentReceipt parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/payments_getSavedInfo.md b/old_docs/API_docs_v73/methods/payments_getSavedInfo.md index 4104679a..ae1fcf33 100644 --- a/old_docs/API_docs_v73/methods/payments_getSavedInfo.md +++ b/old_docs/API_docs_v73/methods/payments_getSavedInfo.md @@ -17,13 +17,18 @@ description: payments.getSavedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); ``` diff --git a/old_docs/API_docs_v73/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v73/methods/payments_sendPaymentForm.md index 180a7279..08505110 100644 --- a/old_docs/API_docs_v73/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v73/methods/payments_sendPaymentForm.md @@ -32,13 +32,18 @@ description: payments.sendPaymentForm parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); ``` diff --git a/old_docs/API_docs_v73/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v73/methods/payments_validateRequestedInfo.md index acfd1852..ebfc5c22 100644 --- a/old_docs/API_docs_v73/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v73/methods/payments_validateRequestedInfo.md @@ -31,13 +31,18 @@ description: payments.validateRequestedInfo parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); ``` diff --git a/old_docs/API_docs_v73/methods/phone_acceptCall.md b/old_docs/API_docs_v73/methods/phone_acceptCall.md index 79266f27..49029aed 100644 --- a/old_docs/API_docs_v73/methods/phone_acceptCall.md +++ b/old_docs/API_docs_v73/methods/phone_acceptCall.md @@ -1,12 +1,12 @@ --- title: phone.acceptCall -description: phone.acceptCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.acceptCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v73/methods/phone_confirmCall.md b/old_docs/API_docs_v73/methods/phone_confirmCall.md index 69e90751..5c7bb15c 100644 --- a/old_docs/API_docs_v73/methods/phone_confirmCall.md +++ b/old_docs/API_docs_v73/methods/phone_confirmCall.md @@ -1,12 +1,12 @@ --- title: phone.confirmCall -description: phone.confirmCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.confirmCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v73/methods/phone_discardCall.md b/old_docs/API_docs_v73/methods/phone_discardCall.md index c300e61c..c01d1014 100644 --- a/old_docs/API_docs_v73/methods/phone_discardCall.md +++ b/old_docs/API_docs_v73/methods/phone_discardCall.md @@ -1,12 +1,12 @@ --- title: phone.discardCall -description: phone.discardCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.discardCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v73/methods/phone_getCallConfig.md b/old_docs/API_docs_v73/methods/phone_getCallConfig.md index 3f18d7ca..636ae946 100644 --- a/old_docs/API_docs_v73/methods/phone_getCallConfig.md +++ b/old_docs/API_docs_v73/methods/phone_getCallConfig.md @@ -17,13 +17,18 @@ description: phone.getCallConfig parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); ``` diff --git a/old_docs/API_docs_v73/methods/phone_receivedCall.md b/old_docs/API_docs_v73/methods/phone_receivedCall.md index 8ca6a4e1..00b51aed 100644 --- a/old_docs/API_docs_v73/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v73/methods/phone_receivedCall.md @@ -30,13 +30,18 @@ description: phone.receivedCall parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); ``` diff --git a/old_docs/API_docs_v73/methods/phone_requestCall.md b/old_docs/API_docs_v73/methods/phone_requestCall.md index c8ae48a9..be45437e 100644 --- a/old_docs/API_docs_v73/methods/phone_requestCall.md +++ b/old_docs/API_docs_v73/methods/phone_requestCall.md @@ -1,12 +1,12 @@ --- title: phone.requestCall -description: phone.requestCall parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls --- ## Method: phone.requestCall [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls** +**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_v73/methods/phone_saveCallDebug.md b/old_docs/API_docs_v73/methods/phone_saveCallDebug.md index ea3fa2d7..90135792 100644 --- a/old_docs/API_docs_v73/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v73/methods/phone_saveCallDebug.md @@ -31,13 +31,18 @@ description: phone.saveCallDebug parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); ``` diff --git a/old_docs/API_docs_v73/methods/phone_setCallRating.md b/old_docs/API_docs_v73/methods/phone_setCallRating.md index c6e5d7fa..21570b80 100644 --- a/old_docs/API_docs_v73/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v73/methods/phone_setCallRating.md @@ -31,13 +31,18 @@ description: phone.setCallRating parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); ``` diff --git a/old_docs/API_docs_v73/methods/photos_deletePhotos.md b/old_docs/API_docs_v73/methods/photos_deletePhotos.md index 61768b1e..0d66fd60 100644 --- a/old_docs/API_docs_v73/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v73/methods/photos_deletePhotos.md @@ -10,7 +10,7 @@ description: photos.deletePhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|Array of [InputPhoto](../types/InputPhoto.md) | Yes| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Yes| ### Return type: [Vector\_of\_long](../types/long.md) @@ -22,15 +22,20 @@ description: photos.deletePhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/photos_getUserPhotos.md b/old_docs/API_docs_v73/methods/photos_getUserPhotos.md index 9fbda840..8fba3bc0 100644 --- a/old_docs/API_docs_v73/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v73/methods/photos_getUserPhotos.md @@ -10,7 +10,7 @@ description: photos.getUserPhotos parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |offset|[int](../types/int.md) | Yes| |max\_id|[long](../types/long.md) | Yes| |limit|[int](../types/int.md) | Yes| @@ -33,16 +33,18 @@ description: photos.getUserPhotos parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v73/methods/photos_updateProfilePhoto.md index cc79a625..1ed6fb24 100644 --- a/old_docs/API_docs_v73/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v73/methods/photos_updateProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.updateProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|id|[InputPhoto](../types/InputPhoto.md) | Optional| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | Optional| ### Return type: [UserProfilePhoto](../types/UserProfilePhoto.md) @@ -22,13 +22,18 @@ description: photos.updateProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); ``` diff --git a/old_docs/API_docs_v73/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v73/methods/photos_uploadProfilePhoto.md index 075dab4b..4b20315b 100644 --- a/old_docs/API_docs_v73/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v73/methods/photos_uploadProfilePhoto.md @@ -10,7 +10,7 @@ description: photos.uploadProfilePhoto parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|file|[InputFile](../types/InputFile.md) | Yes| +|file|[File path or InputFile](../types/InputFile.md) | Yes| ### Return type: [photos\_Photo](../types/photos_Photo.md) @@ -32,13 +32,18 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); ``` diff --git a/old_docs/API_docs_v73/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v73/methods/stickers_addStickerToSet.md index e7fa6ed4..f70d14fb 100644 --- a/old_docs/API_docs_v73/methods/stickers_addStickerToSet.md +++ b/old_docs/API_docs_v73/methods/stickers_addStickerToSet.md @@ -31,16 +31,18 @@ description: stickers.addStickerToSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->addStickerToSet(['stickerset' => InputStickerSet, 'sticker' => InputStickerSetItem, ]); ``` diff --git a/old_docs/API_docs_v73/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v73/methods/stickers_changeStickerPosition.md index bcbbc57d..05597041 100644 --- a/old_docs/API_docs_v73/methods/stickers_changeStickerPosition.md +++ b/old_docs/API_docs_v73/methods/stickers_changeStickerPosition.md @@ -10,7 +10,7 @@ description: stickers.changeStickerPosition parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|sticker|[InputDocument](../types/InputDocument.md) | Optional| +|sticker|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| |position|[int](../types/int.md) | Yes| @@ -31,16 +31,18 @@ description: stickers.changeStickerPosition parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->changeStickerPosition(['sticker' => InputDocument, 'position' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/stickers_createStickerSet.md b/old_docs/API_docs_v73/methods/stickers_createStickerSet.md index ba8a2d71..1db94b11 100644 --- a/old_docs/API_docs_v73/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v73/methods/stickers_createStickerSet.md @@ -11,7 +11,7 @@ description: stickers.createStickerSet parameters, return type and example | Name | Type | Required | |----------|---------------|----------| |masks|[Bool](../types/Bool.md) | Optional| -|user\_id|[InputUser](../types/InputUser.md) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional| |title|[string](../types/string.md) | Yes| |short\_name|[string](../types/string.md) | Yes| |stickers|Array of [InputStickerSetItem](../types/InputStickerSetItem.md) | Yes| @@ -41,18 +41,20 @@ description: stickers.createStickerSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem, InputStickerSetItem], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v73/methods/stickers_removeStickerFromSet.md index adb64e07..6a37b6a4 100644 --- a/old_docs/API_docs_v73/methods/stickers_removeStickerFromSet.md +++ b/old_docs/API_docs_v73/methods/stickers_removeStickerFromSet.md @@ -10,7 +10,7 @@ description: stickers.removeStickerFromSet parameters, return type and example | Name | Type | Required | |----------|---------------|----------| -|sticker|[InputDocument](../types/InputDocument.md) | Optional| +|sticker|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Optional| ### Return type: [messages\_StickerSet](../types/messages_StickerSet.md) @@ -30,16 +30,18 @@ description: stickers.removeStickerFromSet parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->removeStickerFromSet(['sticker' => InputDocument, ]); ``` diff --git a/old_docs/API_docs_v73/methods/updates_getChannelDifference.md b/old_docs/API_docs_v73/methods/updates_getChannelDifference.md index 2e69d1cd..8b062cd4 100644 --- a/old_docs/API_docs_v73/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v73/methods/updates_getChannelDifference.md @@ -1,12 +1,12 @@ --- title: updates.getChannelDifference -description: updates.getChannelDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getChannelDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v73/methods/updates_getDifference.md b/old_docs/API_docs_v73/methods/updates_getDifference.md index 9bcee79a..e9c97e3e 100644 --- a/old_docs/API_docs_v73/methods/updates_getDifference.md +++ b/old_docs/API_docs_v73/methods/updates_getDifference.md @@ -1,12 +1,12 @@ --- title: updates.getDifference -description: updates.getDifference parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getDifference [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v73/methods/updates_getState.md b/old_docs/API_docs_v73/methods/updates_getState.md index fd5955ba..e7fa5973 100644 --- a/old_docs/API_docs_v73/methods/updates_getState.md +++ b/old_docs/API_docs_v73/methods/updates_getState.md @@ -1,12 +1,12 @@ --- title: updates.getState -description: updates.getState parameters, return type and example +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates --- ## Method: updates.getState [Back to methods index](index.md) -**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates** +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** diff --git a/old_docs/API_docs_v73/methods/upload_getCdnFile.md b/old_docs/API_docs_v73/methods/upload_getCdnFile.md index 3a0cd50e..7e1eefcc 100644 --- a/old_docs/API_docs_v73/methods/upload_getCdnFile.md +++ b/old_docs/API_docs_v73/methods/upload_getCdnFile.md @@ -1,12 +1,12 @@ --- title: upload.getCdnFile -description: upload.getCdnFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v73/methods/upload_getCdnFileHashes.md b/old_docs/API_docs_v73/methods/upload_getCdnFileHashes.md index 2ab7792b..2bf24b5e 100644 --- a/old_docs/API_docs_v73/methods/upload_getCdnFileHashes.md +++ b/old_docs/API_docs_v73/methods/upload_getCdnFileHashes.md @@ -1,12 +1,12 @@ --- title: upload.getCdnFileHashes -description: upload.getCdnFileHashes parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v73/methods/upload_getFile.md b/old_docs/API_docs_v73/methods/upload_getFile.md index add7d54e..1b85a4d4 100644 --- a/old_docs/API_docs_v73/methods/upload_getFile.md +++ b/old_docs/API_docs_v73/methods/upload_getFile.md @@ -1,12 +1,12 @@ --- title: upload.getFile -description: upload.getFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v73/methods/upload_getWebFile.md b/old_docs/API_docs_v73/methods/upload_getWebFile.md index 8744dac5..ca200db1 100644 --- a/old_docs/API_docs_v73/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v73/methods/upload_getWebFile.md @@ -31,13 +31,18 @@ description: upload.getWebFile parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); ``` diff --git a/old_docs/API_docs_v73/methods/upload_reuploadCdnFile.md b/old_docs/API_docs_v73/methods/upload_reuploadCdnFile.md index 4c00bbd0..13d93ec1 100644 --- a/old_docs/API_docs_v73/methods/upload_reuploadCdnFile.md +++ b/old_docs/API_docs_v73/methods/upload_reuploadCdnFile.md @@ -1,12 +1,12 @@ --- title: upload.reuploadCdnFile -description: upload.reuploadCdnFile parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v73/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v73/methods/upload_saveBigFilePart.md index b1c3ea28..c2c5b6a4 100644 --- a/old_docs/API_docs_v73/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v73/methods/upload_saveBigFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveBigFilePart -description: upload.saveBigFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v73/methods/upload_saveFilePart.md b/old_docs/API_docs_v73/methods/upload_saveFilePart.md index c482f321..b257551a 100644 --- a/old_docs/API_docs_v73/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v73/methods/upload_saveFilePart.md @@ -1,12 +1,12 @@ --- title: upload.saveFilePart -description: upload.saveFilePart parameters, return type and example +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 --- ## 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://daniil.it/MadelineProto for more info** +**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_v73/methods/users_getFullUser.md b/old_docs/API_docs_v73/methods/users_getFullUser.md index 4ec831ec..fdf58e6f 100644 --- a/old_docs/API_docs_v73/methods/users_getFullUser.md +++ b/old_docs/API_docs_v73/methods/users_getFullUser.md @@ -1,12 +1,12 @@ --- title: users.getFullUser -description: users.getFullUser parameters, return type and example +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) --- ## 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://daniil.it/MadelineProto for more info)** +**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_v73/methods/users_getUsers.md b/old_docs/API_docs_v73/methods/users_getUsers.md index 3a981d57..1d4bdc7b 100644 --- a/old_docs/API_docs_v73/methods/users_getUsers.md +++ b/old_docs/API_docs_v73/methods/users_getUsers.md @@ -1,16 +1,18 @@ --- title: users.getUsers -description: users.getUsers parameters, return type and example +description: Get info about users --- ## Method: users.getUsers [Back to methods index](index.md) +Get info about users + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [InputUser](../types/InputUser.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The ids of the users| ### Return type: [Vector\_of\_User](../types/User.md) @@ -32,18 +34,20 @@ description: users.getUsers parameters, return type and example ``` -$MadelineProto = new \danog\MadelineProto\API(); -$MadelineProto->session = 'mySession.madeline'; -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } +include 'madeline.php'; -$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser], ]); +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = ''; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); ``` Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): diff --git a/old_docs/API_docs_v73/types/Chat.md b/old_docs/API_docs_v73/types/Chat.md index b847fdc4..c55cdc3a 100644 --- a/old_docs/API_docs_v73/types/Chat.md +++ b/old_docs/API_docs_v73/types/Chat.md @@ -7,14 +7,19 @@ description: constructors and methods of type Chat +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 diff --git a/old_docs/API_docs_v73/types/InputChannel.md b/old_docs/API_docs_v73/types/InputChannel.md index 408b95e7..e20f8181 100644 --- a/old_docs/API_docs_v73/types/InputChannel.md +++ b/old_docs/API_docs_v73/types/InputChannel.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputChannel +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 diff --git a/old_docs/API_docs_v73/types/InputDocument.md b/old_docs/API_docs_v73/types/InputDocument.md index ef551639..fa203274 100644 --- a/old_docs/API_docs_v73/types/InputDocument.md +++ b/old_docs/API_docs_v73/types/InputDocument.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputDocument +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) diff --git a/old_docs/API_docs_v73/types/InputEncryptedChat.md b/old_docs/API_docs_v73/types/InputEncryptedChat.md index 20d62ebf..df33d819 100644 --- a/old_docs/API_docs_v73/types/InputEncryptedChat.md +++ b/old_docs/API_docs_v73/types/InputEncryptedChat.md @@ -7,10 +7,12 @@ description: constructors and methods of type InputEncryptedChat +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 +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative ``` diff --git a/old_docs/API_docs_v73/types/InputEncryptedFile.md b/old_docs/API_docs_v73/types/InputEncryptedFile.md index ef69ee82..89736aa6 100644 --- a/old_docs/API_docs_v73/types/InputEncryptedFile.md +++ b/old_docs/API_docs_v73/types/InputEncryptedFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputEncryptedFile +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) diff --git a/old_docs/API_docs_v73/types/InputFile.md b/old_docs/API_docs_v73/types/InputFile.md index aa204fa9..f9e19df4 100644 --- a/old_docs/API_docs_v73/types/InputFile.md +++ b/old_docs/API_docs_v73/types/InputFile.md @@ -7,6 +7,13 @@ description: constructors and methods of type InputFile +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + ### Possible values (constructors): [inputFile](../constructors/inputFile.md) diff --git a/old_docs/API_docs_v73/types/InputMedia.md b/old_docs/API_docs_v73/types/InputMedia.md index 3012be49..6a015de1 100644 --- a/old_docs/API_docs_v73/types/InputMedia.md +++ b/old_docs/API_docs_v73/types/InputMedia.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputMedia +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) diff --git a/old_docs/API_docs_v73/types/InputPeer.md b/old_docs/API_docs_v73/types/InputPeer.md index 7ba95b2c..3982f848 100644 --- a/old_docs/API_docs_v73/types/InputPeer.md +++ b/old_docs/API_docs_v73/types/InputPeer.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputPeer +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 diff --git a/old_docs/API_docs_v73/types/InputPhoto.md b/old_docs/API_docs_v73/types/InputPhoto.md index fa563d57..fd60f750 100644 --- a/old_docs/API_docs_v73/types/InputPhoto.md +++ b/old_docs/API_docs_v73/types/InputPhoto.md @@ -7,6 +7,8 @@ description: constructors and methods of type InputPhoto +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) diff --git a/old_docs/API_docs_v73/types/InputUser.md b/old_docs/API_docs_v73/types/InputUser.md index 7200ac73..b76dbcfc 100644 --- a/old_docs/API_docs_v73/types/InputUser.md +++ b/old_docs/API_docs_v73/types/InputUser.md @@ -7,14 +7,19 @@ description: constructors and methods of type InputUser +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 diff --git a/old_docs/API_docs_v73/types/Peer.md b/old_docs/API_docs_v73/types/Peer.md index aa1ce39a..871f5b6a 100644 --- a/old_docs/API_docs_v73/types/Peer.md +++ b/old_docs/API_docs_v73/types/Peer.md @@ -7,14 +7,19 @@ description: constructors and methods of type Peer +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 diff --git a/old_docs/API_docs_v73/types/PhoneCall.md b/old_docs/API_docs_v73/types/PhoneCall.md index e70eda8e..1a91a72e 100644 --- a/old_docs/API_docs_v73/types/PhoneCall.md +++ b/old_docs/API_docs_v73/types/PhoneCall.md @@ -9,7 +9,7 @@ description: constructors and methods of type PhoneCall 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://daniil.it/MadelineProto#calls) for an easy installation script. +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. @@ -83,8 +83,8 @@ Call states (these constants are incrementing integers, thus can be compared lik * `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://daniil.it/MadelineProto/API_docs/types/PhoneCallProtocol.html) object -* `getCallID()` - Gets the call ID, as an [InputPhoneCall](https://daniil.it/MadelineProto/API_docs/types/InputPhoneCall.html) object +* `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 @@ -102,7 +102,7 @@ Call states (these constants are incrementing integers, thus can be compared lik Accepts two optional parameters: -`$reason` - can be a [PhoneCallDiscardReason](https://daniil.it/MadelineProto/API_docs/types/PhoneCallDiscardReason.html) object (defaults to a [phoneCallDiscardReasonDisconnect](https://daniil.it/MadelineProto/API_docs/constructors/phoneCallDiscardReasonDisconnect.html) object). +`$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.` diff --git a/old_docs/API_docs_v73/types/User.md b/old_docs/API_docs_v73/types/User.md index d696a931..f748d04a 100644 --- a/old_docs/API_docs_v73/types/User.md +++ b/old_docs/API_docs_v73/types/User.md @@ -7,14 +7,19 @@ description: constructors and methods of type User +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 diff --git a/secret_bot.php b/secret_bot.php index 78d9f100..5d1c2ecb 100755 --- a/secret_bot.php +++ b/secret_bot.php @@ -11,19 +11,85 @@ You should have received a copy of the GNU General Public License along with Mad If not, see . */ set_include_path(get_include_path().':'.realpath(dirname(__FILE__).'/MadelineProto/')); -require_once 'vendor/autoload.php'; -if (file_exists('web_data.php')) { - require_once 'web_data.php'; + +/** + * Various ways to load MadelineProto + */ +if (!file_exists(__DIR__.'/vendor/autoload.php')) { + echo 'You did not run composer update, using madeline.php'.PHP_EOL; + if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); + } + include 'madeline.php'; +} else { + require_once 'vendor/autoload.php'; } -echo 'Deserializing MadelineProto from s.madeline...'.PHP_EOL; -$MadelineProto = false; -try { - $MadelineProto = new \danog\MadelineProto\API('s.madeline'); -} catch (\danog\MadelineProto\Exception $e) { - \danog\MadelineProto\Logger::log($e->getMessage()); +class EventHandler extends \danog\MadelineProto\EventHandler +{ + private $sent = [-440592694 => true]; + public function onUpdateNewEncryptedMessage($update) { + try { + if (isset($update['message']['decrypted_message']['media'])) \danog\MadelineProto\Logger::log($this->download_to_dir($update, '.')); + if (isset($this->sent[$update['message']['chat_id']])) { + return; + } + $secret_media = []; + + // Photo uploaded as document, secret chat + + $inputEncryptedFile = $this->upload_encrypted('tests/faust.jpg', 'fausticorn.jpg'); // This gets an inputFile object with file name magic + $secret_media['document_photo'] = ['peer' => $update, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/faust.jpg'), 'caption' => 'This file was uploaded using MadelineProto', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'faust.jpg', 'size' => filesize('tests/faust.jpg'), 'attributes' => [['_' => 'documentAttributeImageSize', 'w' => 1280, 'h' => 914]]]]]; + + // Photo, secret chat + $secret_media['photo'] = ['peer' => $update, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaPhoto', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'caption' => 'This file was uploaded using MadelineProto', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'size' => filesize('tests/faust.jpg'), 'w' => 1280, 'h' => 914]]]; + + // GIF, secret chat + $inputEncryptedFile = $this->upload_encrypted('tests/pony.mp4'); + $secret_media['gif'] = ['peer' => $update, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/pony.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/pony.mp4'), 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'pony.mp4', 'size' => filesize('tests/faust.jpg'), 'attributes' => [['_' => 'documentAttributeAnimated']]]]]; + + // Sticker, secret chat + $inputEncryptedFile = $this->upload_encrypted('tests/lel.webp'); + $secret_media['sticker'] = ['peer' => $update, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/lel.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/lel.webp'), 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'lel.webp', 'size' => filesize('tests/lel.webp'), 'attributes' => [['_' => 'documentAttributeSticker', 'alt' => 'LEL', 'stickerset' => ['_' => 'inputStickerSetEmpty']]]]]]; + + // Document, secrey chat + $time = time(); + $inputEncryptedFile = $this->upload_encrypted('tests/60', 'magic'); // This gets an inputFile object with file name magic + \danog\MadelineProto\Logger::log(time() - $time); + $secret_media['document'] = ['peer' => $update, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => 'magic/magic', 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'magic.magic', 'size' => filesize('tests/60'), 'attributes' => [['_' => 'documentAttributeFilename', 'file_name' => 'fairy']]]]]; + + // Video, secret chat + $inputEncryptedFile = $this->upload_encrypted('tests/swing.mp4'); + $secret_media['video'] = ['peer' => $update, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/swing.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/swing.mp4'), 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'swing.mp4', 'size' => filesize('tests/swing.mp4'), 'attributes' => [['_' => 'documentAttributeVideo', 'duration' => 5, 'w' => 1280, 'h' => 720]]]]]; + + // audio, secret chat + $inputEncryptedFile = $this->upload_encrypted('tests/mosconi.mp3'); + $secret_media['audio'] = ['peer' => $update, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/mosconi.mp3'), 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'mosconi.mp3', 'size' => filesize('tests/mosconi.mp3'), 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => false, 'duration' => 1, 'title' => 'AH NON LO SO IO', 'performer' => 'IL DIO GERMANO MOSCONI']]]]]; + + $secret_media['voice'] = ['peer' => $update, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/mosconi.mp3'), 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'mosconi.mp3', 'size' => filesize('tests/mosconi.mp3'), 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => true, 'duration' => 1, 'title' => 'AH NON LO SO IO', 'performer' => 'IL DIO GERMANO MOSCONI']]]]]; + + foreach ($secret_media as $type => $smessage) { + $type = $this->messages->sendEncryptedFile($smessage); + } + + $i = 0; + while ($i < 10) { + echo "SENDING MESSAGE $i TO ".$update['message']['chat_id'].PHP_EOL; + $this->messages->sendEncrypted(['peer' => $update, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => (string) ($i++)]]); + } + $this->sent[$update['message']['chat_id']] = true; + } catch (\danog\MadelineProto\RPCErrorException $e) { + \danog\MadelineProto\Logger::log($e); + } catch (\danog\MadelineProto\Exception $e) { + \danog\MadelineProto\Logger::log($e); + } + } } + + + + if (file_exists('.env')) { echo 'Loading .env...'.PHP_EOL; $dotenv = new Dotenv\Dotenv(getcwd()); @@ -33,109 +99,14 @@ if (file_exists('.env')) { echo 'Loading settings...'.PHP_EOL; $settings = json_decode(getenv('MTPROTO_SETTINGS'), true) ?: []; -if ($MadelineProto === false) { - echo 'Loading MadelineProto...'.PHP_EOL; - $MadelineProto = new \danog\MadelineProto\API($settings); - if (getenv('TRAVIS_COMMIT') == '') { - $sentCode = $MadelineProto->phone_login(readline('Enter your phone number: ')); - \danog\MadelineProto\Logger::log($sentCode, \danog\MadelineProto\Logger::NOTICE); - echo 'Enter the code you received: '; - $code = fgets(STDIN, (isset($sentCode['type']['length']) ? $sentCode['type']['length'] : 5) + 1); - $authorization = $MadelineProto->complete_phone_login($code); - \danog\MadelineProto\Logger::log($authorization, \danog\MadelineProto\Logger::NOTICE); - if ($authorization['_'] === 'account.noPassword') { - throw new \danog\MadelineProto\Exception('2FA is enabled but no password is set!'); - } - if ($authorization['_'] === 'account.password') { - \danog\MadelineProto\Logger::log('2FA is enabled', \danog\MadelineProto\Logger::NOTICE); - $authorization = $MadelineProto->complete_2fa_login(readline('Please enter your password (hint '.$authorization['hint'].'): ')); - } - if ($authorization['_'] === 'account.needSignup') { - \danog\MadelineProto\Logger::log('Registering new user', \danog\MadelineProto\Logger::NOTICE); - $authorization = $MadelineProto->complete_signup(readline('Please enter your first name: '), readline('Please enter your last name (can be empty): ')); - } - } else { - $MadelineProto->bot_login(getenv('BOT_TOKEN')); - } -} -$message = (getenv('TRAVIS_COMMIT') == '') ? 'I iz works always (io laborare sembre) (yo lavorar siempre) (mi labori ĉiam) (я всегда работать) (Ik werkuh altijd) (Ngimbonga ngaso sonke isikhathi ukusebenza)' : ('Travis ci tests in progress: commit '.getenv('TRAVIS_COMMIT').', job '.getenv('TRAVIS_JOB_NUMBER').', PHP version: '.getenv('TRAVIS_PHP_VERSION')); - -$MadelineProto->session = 's.madeline'; - -$sent = [-440592694 => true]; - -$offset = 0; -while (true) { - try { - $updates = $MadelineProto->get_updates(['offset' => $offset, 'limit' => 50, 'timeout' => 0]); // Just like in the bot API, you can specify an offset, a limit and a timeout - //\danog\MadelineProto\Logger::log($updates); - foreach ($updates as $update) { - $offset = $update['update_id'] + 1; // Just like in the bot API, the offset must be set to the last update_id - switch ($update['update']['_']) { - /*case 'updateNewChannelMessage': - if ($update['update']['message']['out'] || $update['update']['message']['message'] === '') continue; - $MadelineProto->messages->sendMessage(['peer' => $update['update']['message']['to_id'], 'message' => $update['update']['message']['message']]); - break; - case 'updateNewMessage': - if ($update['update']['message']['out'] || $update['update']['message']['message'] === '') { - continue; - } - break;*/ - case 'updateNewEncryptedMessage': - \danog\MadelineProto\Logger::log($MadelineProto->download_to_dir($update['update']['message'], '.')); - if (isset($sent[$update['update']['message']['chat_id']])) { - continue; - } - $secret = $update['update']['message']['chat_id']; - $secret_media = []; - - // Photo uploaded as document, secret chat - $inputEncryptedFile = $MadelineProto->upload_encrypted('tests/faust.jpg', 'fausticorn.jpg'); // This gets an inputFile object with file name magic - $secret_media['document_photo'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/faust.jpg'), 'caption' => 'This file was uploaded using MadelineProto', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'faust.jpg', 'size' => filesize('tests/faust.jpg'), 'attributes' => [['_' => 'documentAttributeImageSize', 'w' => 1280, 'h' => 914]]]]]; - - // Photo, secret chat - $secret_media['photo'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaPhoto', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'caption' => 'This file was uploaded using MadelineProto', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'size' => filesize('tests/faust.jpg'), 'w' => 1280, 'h' => 914]]]; - - // GIF, secret chat - $inputEncryptedFile = $MadelineProto->upload_encrypted('tests/pony.mp4'); - $secret_media['gif'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/pony.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/pony.mp4'), 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'pony.mp4', 'size' => filesize('tests/faust.jpg'), 'attributes' => [['_' => 'documentAttributeAnimated']]]]]; - - // Sticker, secret chat - $inputEncryptedFile = $MadelineProto->upload_encrypted('tests/lel.webp'); - $secret_media['sticker'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/lel.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/lel.webp'), 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'lel.webp', 'size' => filesize('tests/lel.webp'), 'attributes' => [['_' => 'documentAttributeSticker', 'alt' => 'LEL', 'stickerset' => ['_' => 'inputStickerSetEmpty']]]]]]; - - // Document, secrey chat - $time = time(); - $inputEncryptedFile = $MadelineProto->upload_encrypted('tests/60', 'magic'); // This gets an inputFile object with file name magic - \danog\MadelineProto\Logger::log(time() - $time); - $secret_media['document'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => 'magic/magic', 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'magic.magic', 'size' => filesize('tests/60'), 'attributes' => [['_' => 'documentAttributeFilename', 'file_name' => 'fairy']]]]]; - - // Video, secret chat - $inputEncryptedFile = $MadelineProto->upload_encrypted('tests/swing.mp4'); - $secret_media['video'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/swing.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/swing.mp4'), 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'swing.mp4', 'size' => filesize('tests/swing.mp4'), 'attributes' => [['_' => 'documentAttributeVideo', 'duration' => 5, 'w' => 1280, 'h' => 720]]]]]; - - // audio, secret chat - $inputEncryptedFile = $MadelineProto->upload_encrypted('tests/mosconi.mp3'); - $secret_media['audio'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/mosconi.mp3'), 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'mosconi.mp3', 'size' => filesize('tests/mosconi.mp3'), 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => false, 'duration' => 1, 'title' => 'AH NON LO SO IO', 'performer' => 'IL DIO GERMANO MOSCONI']]]]]; - - $secret_media['voice'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/mosconi.mp3'), 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'mosconi.mp3', 'size' => filesize('tests/mosconi.mp3'), 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => true, 'duration' => 1, 'title' => 'AH NON LO SO IO', 'performer' => 'IL DIO GERMANO MOSCONI']]]]]; - - foreach ($secret_media as $type => $smessage) { - $type = $MadelineProto->messages->sendEncryptedFile($smessage); - } - - $i = 0; - while ($i < $argv[1]) { - echo "SENDING MESSAGE $i TO ".$update['update']['message']['chat_id'].PHP_EOL; - $MadelineProto->messages->sendEncrypted(['peer' => $update['update']['message']['chat_id'], 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => (string) ($i++)]]); - } - $sent[$update['update']['message']['chat_id']] = true; - } - } - } catch (\danog\MadelineProto\RPCErrorException $e) { - \danog\MadelineProto\Logger::log($e); - } catch (\danog\MadelineProto\Exception $e) { - \danog\MadelineProto\Logger::log($e->getMessage()); - } - //sleep(1); + +try { + $MadelineProto = new \danog\MadelineProto\API('s.madeline', $settings); +} catch (\danog\MadelineProto\Exception $e) { + \danog\MadelineProto\Logger::log($e->getMessage()); + unlink('s.madeline'); + $MadelineProto = new \danog\MadelineProto\API('s.madeline', $settings); } +$MadelineProto->start(); +$MadelineProto->setEventHandler('\EventHandler'); +$MadelineProto->loop(); \ No newline at end of file diff --git a/src/danog/MadelineProto/Absolute.php b/src/danog/MadelineProto/Absolute.php new file mode 100644 index 00000000..4f69dd0e --- /dev/null +++ b/src/danog/MadelineProto/Absolute.php @@ -0,0 +1,29 @@ +. +*/ + +namespace danog\MadelineProto; + +/** + * Manages serialization of the MadelineProto instance. + */ +class Absolute +{ + public static function absolute($file) + { + if (($file[0] !== '/') && ($file[1] !== ':') && !in_array(substr($file, 0, 4), ['phar', 'http'])) { + $file = getcwd().'/'.$file; + } + + return $file; + } +} diff --git a/src/danog/MadelineProto/DocsBuilder.php b/src/danog/MadelineProto/DocsBuilder.php index c1655571..c3998c34 100644 --- a/src/danog/MadelineProto/DocsBuilder.php +++ b/src/danog/MadelineProto/DocsBuilder.php @@ -120,12 +120,19 @@ description: constructors and methods of type '.$type.' $header .= isset($this->td_descriptions['types'][$otype]) ? $this->td_descriptions['types'][$otype].PHP_EOL.PHP_EOL : ''; if (!isset($this->settings['td'])) { if (in_array($type, ['User', 'InputUser', 'Chat', 'InputChannel', 'Peer', 'InputPeer'])) { - $header .= 'The following syntaxes can also be used: + $header .= '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: ``` -$'.$type." = '@username'; // Username\n\n\$".$type.' = 44700; // bot API id (users) +$'.$type." = '@username'; // Username + +\$".$type." = 'me'; // The currently logged-in user + +\$".$type.' = 44700; // bot API id (users) $'.$type.' = -492772765; // bot API id (chats) $'.$type.' = -10038575794; // bot API id (channels) + $'.$type." = 'https://t.me/danogentili'; // t.me URLs \$".$type." = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links @@ -137,13 +144,40 @@ $'.$type." = 'https://t.me/danogentili'; // t.me URLs A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), or a [Chat](Chat.md) object can also be used.\n\n\n"; } if (in_array($type, ['InputEncryptedChat'])) { + $header .= '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: + +``` +$'.$type.' = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative +``` + + +'; + } + if (in_array($type, ['InputFile', 'InputEncryptedFile'])) { $header .= 'The following syntax can also be used: ``` -$'.$type.' = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative +$'.$type.' = \'filename.mp4\'; // The file path can also be used ``` +'; + } + if (in_array($type, ['InputPhoto'])) { + $header .= '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. + +'; + } + if (in_array($type, ['InputDocument'])) { + $header .= '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. + +'; + } + if (in_array($type, ['InputMedia'])) { + $header .= '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. + '; } if (in_array($type, ['InputMessage'])) { @@ -197,7 +231,7 @@ You can also access the properties of the constructor as a normal array, for exa $constructors = ''; $header .= '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://daniil.it/MadelineProto#calls) for an easy installation script. +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. @@ -271,8 +305,8 @@ Call states (these constants are incrementing integers, thus can be compared lik * `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://daniil.it/MadelineProto/API_docs/types/PhoneCallProtocol.html) object -* `getCallID()` - Gets the call ID, as an [InputPhoneCall](https://daniil.it/MadelineProto/API_docs/types/InputPhoneCall.html) object +* `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 @@ -290,7 +324,7 @@ Call states (these constants are incrementing integers, thus can be compared lik Accepts two optional parameters: -`$reason` - can be a [PhoneCallDiscardReason](https://daniil.it/MadelineProto/API_docs/types/PhoneCallDiscardReason.html) object (defaults to a [phoneCallDiscardReasonDisconnect](https://daniil.it/MadelineProto/API_docs/constructors/phoneCallDiscardReasonDisconnect.html) object). +`$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.` @@ -538,4 +572,33 @@ Any json-encodable data. '); \danog\MadelineProto\Logger::log('Done!', \danog\MadelineProto\Logger::NOTICE); } + public $template = '. + */ + +namespace danog\MadelineProto; + +class Lang +{ + public static $lang = %s; + + // THIS WILL BE OVERWRITTEN BY $lang["en"] + public static $current_lang = %s; +}'; + + public function add_to_lang($key) { + if (!isset(\danog\MadelineProto\Lang::$lang['en'][$key])) { + \danog\MadelineProto\Lang::$lang['en'][$key] = ''; + file_put_contents(__DIR__.'/Lang.php', sprintf($this->template, var_export(\danog\MadelineProto\Lang::$lang, true), var_export(\danog\MadelineProto\Lang::$lang['en'], true))); + } + + } } diff --git a/src/danog/MadelineProto/DocsBuilder/Constructors.php b/src/danog/MadelineProto/DocsBuilder/Constructors.php index 12704dac..99a34b9a 100644 --- a/src/danog/MadelineProto/DocsBuilder/Constructors.php +++ b/src/danog/MadelineProto/DocsBuilder/Constructors.php @@ -79,6 +79,13 @@ trait Constructors | Name | Type | Required | |----------|---------------|----------| '; + if (!isset($this->td_descriptions['constructors'][$data['predicate']])) { + $this->add_to_lang('object_'.$data['predicate']); + if (\danog\MadelineProto\Lang::$lang['en']['object_'.$data['predicate']] !== '') { + $this->td_descriptions['constructors'][$data['predicate']]['description'] = \danog\MadelineProto\Lang::$lang['en']['object_'.$data['predicate']]; + } + } + if (isset($this->td_descriptions['constructors'][$data['predicate']])) { $table = '### Attributes: @@ -99,6 +106,10 @@ trait Constructors $param['name'] = 'decrypted_message'; $param['type'] = 'DecryptedMessage'; } + if ($type === 'DecryptedMessageMedia' && in_array($param['name'], ['key', 'iv'])) { + unset(\danog\MadelineProto\Lang::$lang['en']['object_'.$data['predicate'].'_param_'.$param['name'].'_type_'.$param['type']]); + continue; + } $ptype = str_replace('.', '_', $param[isset($param['subtype']) ? 'subtype' : 'type']); //$type_or_bare_type = 'types'; /*if (isset($param['subtype'])) { @@ -118,7 +129,33 @@ trait Constructors case 'false': $ptype = 'Bool'; } - $table .= '|'.str_replace('_', '\\_', $param['name']).'|'.(isset($param['subtype']) ? 'Array of ' : '').'['.str_replace('_', '\\_', $ptype).'](../'.$type_or_bare_type.'/'.$ptype.'.md) | '.(isset($param['pow']) || $this->constructors->find_by_predicate(lcfirst($param['type']).'Empty') ? 'Optional' : 'Yes').'|'; + $human_ptype = $ptype; + if (strpos($type, 'Input') === 0 && in_array($ptype, ['User', 'InputUser', 'Chat', 'InputChannel', 'Peer', 'InputPeer'])&& !isset($this->settings['td'])) { + $human_ptype = 'Username, chat ID, Update, Message or '.$ptype; + } + if (strpos($type, 'Input') === 0 && in_array($ptype, ['InputMedia', 'InputDocument', 'InputPhoto'])&& !isset($this->settings['td'])) { + $human_ptype = 'MessageMedia, Message, Update or '.$ptype; + } + if (in_array($ptype, ['InputMessage'])&& !isset($this->settings['td'])) { + $human_ptype = 'Message ID or '.$ptype; + } + if (in_array($ptype, ['InputEncryptedChat'])&& !isset($this->settings['td'])) { + $human_ptype = 'Secret chat ID, Update, EncryptedMessage or '.$ptype; + } + if (in_array($ptype, ['InputFile'])&& !isset($this->settings['td'])) { + $human_ptype = 'File path or '.$ptype; + } + if (in_array($ptype, ['InputEncryptedFile'])&& !isset($this->settings['td'])) { + $human_ptype = 'File path or '.$ptype; + } + $table .= '|'.str_replace('_', '\\_', $param['name']).'|'.(isset($param['subtype']) ? 'Array of ' : '').'['.str_replace('_', '\\_', $human_ptype).'](../'.$type_or_bare_type.'/'.$ptype.'.md) | '.(isset($param['pow']) || $this->constructors->find_by_predicate(lcfirst($param['type']).'Empty') || ($data['type'] === 'InputMedia' && $param['name'] === 'mime_type') || ($data['type'] === 'DocumentAttribute' && in_array($param['name'], ['w', 'h', 'duration'])) ? 'Optional' : 'Yes').'|'; + + if (!isset($this->td_descriptions['constructors'][$data['predicate']]['params'][$param['name']])) { + $this->add_to_lang('object_'.$data['predicate'].'_param_'.$param['name'].'_type_'.$param['type']); + if (isset($this->td_descriptions['constructors'][$data['predicate']]['description'])) { + $this->td_descriptions['constructors'][$data['predicate']]['params'][$param['name']] = \danog\MadelineProto\Lang::$lang['en']['object_'.$data['predicate'].'_param_'.$param['name'].'_type_'.$param['type']]; + } + } if (isset($this->td_descriptions['constructors'][$data['predicate']]['params'][$param['name']])) { $table .= $this->td_descriptions['constructors'][$data['predicate']]['params'][$param['name']].'|'; } @@ -126,7 +163,7 @@ trait Constructors $pptype = in_array($ptype, ['string', 'bytes']) ? "'".$ptype."'" : $ptype; $ppptype = in_array($ptype, ['string', 'bytes']) ? '"'.$ptype.'"' : $ptype; $params .= ", '".$param['name']."' => "; - $params .= isset($param['subtype']) ? '['.$pptype.']' : $pptype; + $params .= isset($param['subtype']) ? '['.$pptype.', '.$pptype.']' : $pptype; $lua_params .= ', '.$param['name'].'='; $lua_params .= isset($param['subtype']) ? '{'.$pptype.'}' : $pptype; $pwr_params .= ', "'.$param['name'].'": '.(isset($param['subtype']) ? '['.$ppptype.']' : $ppptype); diff --git a/src/danog/MadelineProto/DocsBuilder/Methods.php b/src/danog/MadelineProto/DocsBuilder/Methods.php index d231c246..54bda954 100644 --- a/src/danog/MadelineProto/DocsBuilder/Methods.php +++ b/src/danog/MadelineProto/DocsBuilder/Methods.php @@ -71,8 +71,15 @@ trait Methods | Name | Type | Required | |----------|---------------|----------| '; + if (!isset($this->td_descriptions['methods'][$data['method']])) { + $this->add_to_lang('method_'.$data['method']); + + if (\danog\MadelineProto\Lang::$lang['en']['method_'.$data['method']] !== '') { + $this->td_descriptions['methods'][$data['method']]['description'] = \danog\MadelineProto\Lang::$lang['en']['method_'.$data['method']]; + } + } if (isset($this->td_descriptions['methods'][$data['method']])) { - $table = '### Params: + $table = '### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| @@ -98,8 +105,34 @@ trait Methods case 'false': $ptype = 'Bool'; } + $human_ptype = $ptype; + if (in_array($ptype, ['User', 'InputUser', 'Chat', 'InputChannel', 'Peer', 'InputPeer'])&& !isset($this->settings['td'])) { + $human_ptype = 'Username, chat ID, Update, Message or '.$ptype; + } + if (in_array($ptype, ['InputMedia', 'InputPhoto', 'InputDocument'])&& !isset($this->settings['td'])) { + $human_ptype = 'MessageMedia, Update, Message or '.$ptype; + } + if (in_array($ptype, ['InputMessage'])&& !isset($this->settings['td'])) { + $human_ptype = 'Message ID or '.$ptype; + } + if (in_array($ptype, ['InputEncryptedChat'])&& !isset($this->settings['td'])) { + $human_ptype = 'Secret chat ID, Update, EncryptedMessage or '.$ptype; + } + if (in_array($ptype, ['InputFile'])&& !isset($this->settings['td'])) { + $human_ptype = 'File path or '.$ptype; + } + if (in_array($ptype, ['InputEncryptedFile']) && !isset($this->settings['td'])) { + $human_ptype = 'File path or '.$ptype; + } $type_or_bare_type = ctype_upper($this->end(explode('.', $param[$type_or_subtype]))[0]) || in_array($param[$type_or_subtype], ['!X', 'X', 'bytes', 'true', 'false', 'double', 'string', 'Bool', 'int', 'long', 'int128', 'int256', 'int512', 'int53']) ? 'types' : 'constructors'; - $table .= '|'.str_replace('_', '\\_', $param['name']).'|'.(isset($param['subtype']) ? 'Array of ' : '').'['.str_replace('_', '\\_', $ptype).'](../'.$type_or_bare_type.'/'.$ptype.'.md) | '.(isset($param['pow']) || $this->constructors->find_by_predicate(lcfirst($param['type']).'Empty') ? 'Optional' : 'Yes').'|'; + $table .= '|'.str_replace('_', '\\_', $param['name']).'|'.(isset($param['subtype']) ? 'Array of ' : '').'['.str_replace('_', '\\_', $human_ptype).'](../'.$type_or_bare_type.'/'.$ptype.'.md) | '.(isset($param['pow']) || $this->constructors->find_by_predicate(lcfirst($param['type']).'Empty') ? 'Optional' : 'Yes').'|'; + if (!isset($this->td_descriptions['methods'][$data['method']]['params'][$param['name']])) { + $this->add_to_lang('method_'.$data['method'].'_param_'.$param['name'].'_type_'.$param['type']); + if (isset($this->td_descriptions['methods'][$data['method']]['description'])) { + $this->td_descriptions['methods'][$data['method']]['params'][$param['name']] = \danog\MadelineProto\Lang::$lang['en']['method_'.$data['method'].'_param_'.$param['name'].'_type_'.$param['type']]; + } + } + if (isset($this->td_descriptions['methods'][$data['method']])) { $table .= $this->td_descriptions['methods'][$data['method']]['params'][$param['name']].'|'; } @@ -107,7 +140,7 @@ trait Methods $pptype = in_array($ptype, ['string', 'bytes']) ? "'".$ptype."'" : $ptype; $ppptype = in_array($ptype, ['string', 'bytes']) ? '"'.$ptype.'"' : $ptype; $params .= "'".$param['name']."' => "; - $params .= (isset($param['subtype']) ? '['.$pptype.']' : $pptype).', '; + $params .= (isset($param['subtype']) ? '['.$pptype.', '.$pptype.']' : $pptype).', '; $json_params .= '"'.$param['name'].'": '.(isset($param['subtype']) ? '['.$ppptype.']' : $ppptype).', '; $pwr_params .= $param['name'].' - Json encoded '.(isset($param['subtype']) ? ' array of '.$ptype : $ptype)."\n\n"; $lua_params .= $param['name'].'='; @@ -175,16 +208,18 @@ description: '.$description.' ``` -$MadelineProto = new \\danog\\MadelineProto\\API(); -$MadelineProto->session = \'mySession.madeline\'; -'.($bot ? 'if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} -' : '').'if (isset($number)) { // Login as a user - $MadelineProto->phone_login($number); - $code = readline(\'Enter the code you received: \'); // Or do this in two separate steps in an HTTP API - $MadelineProto->complete_phone_login($code); +if (!file_exists(\'madeline.php\')) { + copy(\'https://phar.madelineproto.xyz/madeline.php\', \'madeline.php\'); } +include \'madeline.php\'; + +// !!! This API id/API hash combination will not work !!! +// !!! You must get your own @ my.telegram.org !!! +$api_id = 0; +$api_hash = \'\'; + +$MadelineProto = new \danog\MadelineProto\API(\'session.madeline\', [\'app_info\' => [\'api_id\' => $api_id, \'api_hash\' => $api_hash]]); +$MadelineProto->start(); $'.$type.' = $MadelineProto->'.$php_method.'(['.$params.']); ``` @@ -313,6 +348,10 @@ $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.htm $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); + '.implode('', $this->docs_methods)); } } diff --git a/src/danog/MadelineProto/EventHandler.php b/src/danog/MadelineProto/EventHandler.php new file mode 100644 index 00000000..76ff5c2b --- /dev/null +++ b/src/danog/MadelineProto/EventHandler.php @@ -0,0 +1,62 @@ +. +*/ + +namespace danog\MadelineProto; + +class EventHandler extends APIFactory +{ + public function __construct($MadelineProto) { + $this->API = $MadelineProto; + foreach ($this->API->get_method_namespaces() as $namespace) { + $this->{$namespace} = new APIFactory($namespace, $this->API); + } + } + public function &__get($name) + { + if ($name === 'settings') { + $this->API->setdem = true; + + return $this->API->settings; + } + + return $this->API->storage[$name]; + } + + public function __set($name, $value) + { + if ($name === 'settings') { + if (Logger::is_fork() && !Logger::$processed_fork) { + \danog\MadelineProto\Logger::log('Detected fork'); + $this->API->reset_session(); + foreach ($this->API->datacenter->sockets as $datacenter) { + $datacenter->close_and_reopen(); + } + Logger::$processed_fork = true; + } + + return $this->API->__construct(array_replace_recursive($this->API->settings, $value)); + } + + return $this->API->storage[$name] = $value; + } + + public function __isset($name) + { + return isset($this->API->storage[$name]); + } + + public function __unset($name) + { + unset($this->API->storage[$name]); + } +} diff --git a/src/danog/MadelineProto/Exception.php b/src/danog/MadelineProto/Exception.php index 15ce3d49..0c7ad9e0 100644 --- a/src/danog/MadelineProto/Exception.php +++ b/src/danog/MadelineProto/Exception.php @@ -25,6 +25,21 @@ class Exception extends \Exception public function __construct($message = null, $code = 0, self $previous = null, $file = null, $line = null) { + if (is_array($message) && $message[0] === 'extension') { + if ($message[1] === 'libtgvoip') { + $additional = 'Follow the instructions @ https://voip.madelineproto.xyz to install it.'; + } elseif ($message[1] === 'prime') { + $additional = 'Follow the instructions @ https://prime.madelineproto.xyz to install it.'; + } else { + $additional = 'Try running sudo apt-get install php'.PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION.'-'.$message[1].'.'; + } + $message = 'MadelineProto requires the '.$message[1].' extension to run. '.$additional; + if (php_sapi_name() !== 'cli') { + echo $message.'
'; + } + $file = 'MadelineProto'; + $line = 1; + } $this->prettify_tl(); if ($file !== null) { if (basename($file) === 'Threaded.php') { diff --git a/src/danog/MadelineProto/FileCallback.php b/src/danog/MadelineProto/FileCallback.php new file mode 100644 index 00000000..a2b1e154 --- /dev/null +++ b/src/danog/MadelineProto/FileCallback.php @@ -0,0 +1,30 @@ +. +*/ + +namespace danog\MadelineProto; + +class FileCallback implements FileCallbackInterface +{ + private $file; + private $callback; + public function __construct($file, $callback) { + $this->file = $file; + $this->callback = $callback; + } + public function getFile() { + return $this->file; + } + public function __invoke($percent) { + $this->callback($percent); + } +} diff --git a/src/danog/MadelineProto/FileCallbackInterface.php b/src/danog/MadelineProto/FileCallbackInterface.php new file mode 100644 index 00000000..287a130f --- /dev/null +++ b/src/danog/MadelineProto/FileCallbackInterface.php @@ -0,0 +1,20 @@ +. +*/ + +namespace danog\MadelineProto; + +interface FileCallbackInterface +{ + public function getFile(); + public function __invoke($percent); +} diff --git a/src/danog/MadelineProto/Lang.php b/src/danog/MadelineProto/Lang.php index b5200a63..1a15f838 100644 --- a/src/danog/MadelineProto/Lang.php +++ b/src/danog/MadelineProto/Lang.php @@ -1,5 +1,4 @@ ['phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', 'inst_dc' => 'Istanziamento dei DataCenter...', 'load_rsa' => 'Caricamento delle chiavi RSA...', 'TL_translation' => 'Translazione degli schemi TL...', 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', 'threading_on' => 'IL THREADING È ABILITATO', 'socket_reader' => 'Lettore socket su DC %s: ', 'socket_status_1' => 'CREAZIONE', 'socket_status_2' => 'INVIO', 'socket_status_3' => 'ATTESA', 'socket_status_4' => 'PRONTO', 'socket_status_5' => 'AVVIATO', 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', 'session_corrupted' => 'La sessione si è corrotta!', 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', 'config_updated' => 'La configurazione è stata aggiornata!', 'length_not_4' => 'La lunghezza non è uguale a 4', 'length_not_8' => 'La lunghezza non è uguale a 8', 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', 'file_not_exist' => 'Il file specificato non esiste', 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', 'loading_key' => 'Caricamento della chiave in corso...', 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', 'rsa_encrypting' => 'Criptando con chiave RSA...', 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', 'socket_con_error' => 'Connessione fallita.', 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', 'protocol_invalid' => 'È stato fornito un protocollo non valido', 'nothing_in_socket' => 'Non c\'è niente nel socket!', 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', 'no_data_in_socket' => 'Non ci sono dati nel socket!', 'dc_con_start' => 'Connessione al DC %s in corso...', 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', 'script_not_exist' => 'Lo script fornito non esiste', 'apifactory_start' => 'Sto avviando la fabbrica di API...', 'madelineproto_ready' => 'MadelineProto è pronto!', 'logout_error' => 'C\'è stato un errore durante il logout!', 'logout_ok' => 'Il logout è stato eseguito correttamente!', 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', 'login_ok' => 'Il login è stato eseguito correttamente!', 'login_user' => 'Sto eseguendo il login come utente normale...', 'login_bot' => 'Sto eseguendo il login come bot...', 'login_code_sending' => 'Sto inviando il codice...', 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', 'not_logged_in' => 'Non ho ancora fatto il login!', 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', 'signing_up' => 'Mi sto registrando su telegram come utente normale...', 'signup_ok' => 'Mi sono registrato su Telegram!', '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', 'calling_user' => 'Sto chiamando %s...', 'generating_a' => 'Sto generando a...', 'generating_g_a' => 'Sto generando g_a...', 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', 'accepting_call' => 'Sto accettando una chiamata da %s...', 'generating_b' => 'Sto generando b...', 'call_already_accepted' => 'La chiamata %s è già stata accettata.', 'call_already_declined' => 'La chiamata %s è già stata annullata.', 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', 'call_confirming' => 'Sto confermando una chiamata da %s', 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', 'call_completing' => 'Sto completando una chiamata da %s...', 'invalid_g_a' => 'g_a non valido!', 'fingerprint_invalid' => 'fingerprint della chiave non valido!', 'call_discarding' => 'Sto rifiutando la chiamata %s...', 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', 'TL_loading' => 'Sto caricando gli schemi TL...', 'file_parsing' => 'Leggendo %s...', 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', 'translating_obj' => 'Traducendo gli oggetti...', 'translating_methods' => 'Traducendo i metodi...', 'bool_error' => 'Non sono riuscito ad estrarre un booleano', 'not_numeric' => 'Il valore fornito non è numerico', 'long_not_16' => 'Il valore fornito non è lungo 16 byte', 'long_not_32' => 'Il valore fornito non è lungo 32 byte', 'long_not_64' => 'Il valore fornito non è lungo 64 byte', 'array_invalid' => 'Il valore fornito non è un array', 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', 'method_not_found' => 'Impossibile trovare il seguente metodo: ', 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', 'stream_handle_invalid' => 'Il valore fornito non è uno stream', 'length_too_big' => 'Il valore fornito è troppo lungo', 'deserialize_not_str' => 'Il valore generato non è una stringa', 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', 'vector_invalid' => 'ID vettore non valido: ', 'constructor_not_found' => 'Costruttore non trovato per tipo: ', 'rand_bytes_too_small' => 'random_bytes è troppo corto!', 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', 'non_text_conversion' => 'Non posso ancora convertire messaggi media', 'last_byte_invalid' => 'L\'ultimo byte non è valido', 'file_type_invalid' => 'È stato fornito un tipo file errato', 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', 'shutting_down_reader_pool' => 'Chisura pool di lettura', 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', 'msg_data_length_too_big' => 'message_data_length è troppo grande', 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', 'msg_key_mismatch' => 'msg_key non valido', 'rand_bytes_too_short' => 'random_bytes è troppo corto!', 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', 'req_pq' => 'Sto richiedendo pq...', 'done' => 'Fatto!', 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!'], 'en' => ['req_pq' => 'Requesting pq...', 'done' => 'Done!', 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', 'stored_on_cdn' => 'File is stored on CDN!', 'serializing_madelineproto' => 'Serializing MadelineProto...', 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', 'inst_dc' => 'Istantiating DataCenter...', 'load_rsa' => 'Loading RSA keys...', 'TL_translation' => 'Translating TL schemas...', 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', 'getupdates_deserialization' => 'Getting updates after deserialization...', 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', 'threading_on' => 'THREADING IS ENABLED', 'socket_reader' => 'Socket reader on DC %s: ', 'socket_status_1' => 'CREATING', 'socket_status_2' => 'SUBMITTING', 'socket_status_3' => 'WAITING', 'socket_status_4' => 'READY', 'socket_status_5' => 'WORKING', 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', 'session_corrupted' => 'The session is corrupted!', 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', 'write_client_info' => 'Writing client info (also executing %s)...', 'config_updated' => 'Updated config!', 'length_not_4' => 'Length is not equal to 4', 'length_not_8' => 'Length is not equal to 8', 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', 'value_smaller_than_0' => 'Provided value %s is smaller than 0', 'encode_double_error' => 'Could not properly encode double', 'file_not_exist' => 'File does not exist', 'deserialization_error' => 'An error occurred on deserialization', 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', 'loading_key' => 'Loading key...', 'computing_fingerprint' => 'Computing fingerprint...', 'rsa_encrypting' => 'Encrypting with rsa key...', 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', 'no_mode_specified' => 'No mode was specified!', 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', 'proxy_class_invalid' => 'Invalid proxy class provided!', 'socket_con_error' => 'Connection: couldn\'t connect to socket.', 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', 'protocol_invalid' => 'Connection: invalid protocol specified.', 'nothing_in_socket' => 'Nothing in the socket!', 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', 'no_data_in_socket' => 'No data in the socket!', 'dc_con_start' => 'Connecting to DC %s...', 'dc_con_stop' => 'Disconnecting from DC %s...', 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', 'script_not_exist' => 'Provided script does not exist', 'apifactory_start' => 'Running APIFactory...', 'madelineproto_ready' => 'MadelineProto is ready!', 'logout_error' => 'An error occurred while logging out!', 'logout_ok' => 'Logged out successfully!', 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', 'login_ok' => 'Logged in successfully!', 'login_user' => 'Logging in as a normal user...', 'login_bot' => 'Logging in as a bot...', 'login_code_sending' => 'Sending code...', 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', 'login_auth_key' => 'Logging in using auth key...', 'not_logged_in' => 'I\'m not logged in!', 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', 'signing_up' => 'Signing up as a normal user...', 'signup_ok' => 'Signed up in successfully!', '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', 'getting_dialogs' => 'Getting dialogs...', 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', 'peer_not_in_db' => 'This peer is not present in the internal peer database', 'calling_user' => 'Calling %s...', 'generating_a' => 'Generating a...', 'generating_g_a' => 'Generating g_a...', 'call_error_1' => 'Could not find and accept call %s', 'accepting_call' => 'Accepting call from %s...', 'generating_b' => 'Generating b...', 'call_already_accepted' => 'Call %s already accepted', 'call_already_declined' => 'Call %s already declined', 'call_error_2' => 'Could not find and confirm call %s', 'call_confirming' => 'Confirming call from %s...', 'call_error_3' => 'Could not find and complete call %s', 'call_completing' => 'Completing call from %s...', 'invalid_g_a' => 'Invalid g_a!', 'fingerprint_invalid' => 'Invalid key fingerprint!', 'call_discarding' => 'Discarding call %s...', 'call_set_rating' => 'Setting rating for call %s...', 'call_debug_saving' => 'Saving debug data for call %s...', 'TL_loading' => 'Loading TL schemes...', 'file_parsing' => 'Parsing %s...', 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', 'src_file_invalid' => 'Invalid source file was provided: ', 'translating_obj' => 'Translating objects...', 'translating_methods' => 'Translating methods...', 'bool_error' => 'Could not extract boolean', 'not_numeric' => 'Given value isn\'t numeric', 'long_not_16' => 'Given value is not 16 bytes long', 'long_not_32' => 'Given value is not 32 bytes long', 'long_not_64' => 'Given value is not 64 bytes long', 'array_invalid' => 'You didn\'t provide a valid array', 'predicate_not_set' => 'Predicate (value under _) was not set!', 'type_extract_error' => 'Could not extract type "%s"', 'method_not_found' => 'Could not find method: ', 'params_missing' => 'Missing required parameter', 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', 'stream_handle_invalid' => 'An invalid stream handle was provided.', 'length_too_big' => 'Length is too big', 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', 'type_extract_error_id' => 'Could not extract type: %s with id %s', 'vector_invalid' => 'Invalid vector constructor: ', 'constructor_not_found' => 'Constructor not found for type: ', 'rand_bytes_too_small' => 'random_bytes is too small!', 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', 'non_text_conversion' => 'Can\'t convert non text messages yet!', 'last_byte_invalid' => 'Invalid last byte', 'file_type_invalid' => 'Invalid file type detected (%s)', 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', 'resetting_auth_key' => 'WARNING: Resetting auth key...', 'shutting_down_reader_pool' => 'Shutting down reader pool ', 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', 'fingerprint_mismatch' => 'Key fingerprint mismatch', 'msg_data_length_too_big' => 'message_data_length is too big', 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', 'msg_key_mismatch' => 'msg_key mismatch', 'rand_bytes_too_short' => 'random_bytes is too short!', 'resending_unsupported' => 'Resending of messages is not yet supported', 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ']]; + public static $lang = array ( + 'it' => + array ( + 'phpseclib_fork' => 'Per favore installa questo fork di phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istanziamento dei DataCenter...', + 'load_rsa' => 'Caricamento delle chiavi RSA...', + 'TL_translation' => 'Translazione degli schemi TL...', + 'dh_prime_check_0' => 'Esecuzione dei check dh_prime (0/3)...', + 'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.', + 'serialization_ofd' => 'La serializzazione non è aggiornata, reistanziamento dell\'oggetto in corso!', + 'getupdates_deserialization' => 'Ottenimento aggiornamenti dopo deserializzazione...', + 'shutdown_reader_pool' => 'Chiusura pool di lettura, %d thread rimasti', + 'threading_on' => 'IL THREADING È ABILITATO', + 'socket_reader' => 'Lettore socket su DC %s: ', + 'socket_status_1' => 'CREAZIONE', + 'socket_status_2' => 'INVIO', + 'socket_status_3' => 'ATTESA', + 'socket_status_4' => 'PRONTO', + 'socket_status_5' => 'AVVIATO', + 'api_not_set' => 'Devi specificare una chiave ed un ID API, ottienili su https://my.telegram.org', + 'session_corrupted' => 'La sessione si è corrotta!', + 'reset_session_seqno' => 'Resettando ID sessione e numero di sequenza sul DC %s...', + 'gen_perm_auth_key' => 'Generando chiave di autorizzazione permanente per il DC %s...', + 'gen_temp_auth_key' => 'Generando chiave di autorizzazione temporanea per il DC %s...', + 'copy_auth_dcs' => 'Copiando autorizzazione dal DC %s al DC %s...', + 'write_client_info' => 'Scrittura info sul client (eseguendo nel contempo il metodo %s)...', + 'config_updated' => 'La configurazione è stata aggiornata!', + 'length_not_4' => 'La lunghezza non è uguale a 4', + 'length_not_8' => 'La lunghezza non è uguale a 8', + 'value_bigger_than_2147483647' => 'Il valore fornito (%s) è maggiore di 2147483647', + 'value_smaller_than_2147483648' => 'Il valore fornito (%s) è minore di -2147483648', + 'value_bigger_than_9223372036854775807' => 'Il valore fornito (%s) è maggiore di 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Il valore fornito (%s) è minore di -9223372036854775808', + 'value_bigger_than_4294967296' => 'Il valore fornito (%s) è maggiore di 4294967296', + 'value_smaller_than_0' => 'Il valore fornito (%s) è minore di 0', + 'encode_double_error' => 'Non sono riuscito a codificare il numero a virgola mobile fornito', + 'file_not_exist' => 'Il file specificato non esiste', + 'deserialization_error' => 'C\'è stato un errore durante la deserializzazione', + 'rsa_init' => 'Istanziamento di \\phpseclib\\Crypt\\RSA in corso...', + 'loading_key' => 'Caricamento della chiave in corso...', + 'computing_fingerprint' => 'Calcolo del fingerprint in corso...', + 'rsa_encrypting' => 'Criptando con chiave RSA...', + 'rpc_tg_error' => 'Telegram ha ritornato un errore RPC: %s (%s), causato da %s:%sTL trace:', + 'v_error' => '506572206661766f726520616767696f726e612071756573746120696e7374616c6c617a696f6e65206469204d6164656c696e6550726f746f20636f6e206769742070756c6c206520636f6d706f73657220757064617465', + 'v_tgerror' => '506572206661766f726520616767696f726e61207068702d6c69627467766f6970', + 'no_mode_specified' => 'Nessuna modalità di logging è stata specificata!', + 'constructor_function_uncalled' => 'Il metodo costruttore non è stato ancora chiamato! Per favore chiama il metodo costruttore prima di usare questo metodo.', + 'proxy_class_invalid' => 'È stata specificata una classe proxy errata!', + 'socket_con_error' => 'Connessione fallita.', + 'protocol_not_implemented' => 'Questo protocollo non è stato ancora implementato.', + 'protocol_invalid' => 'È stato fornito un protocollo non valido', + 'nothing_in_socket' => 'Non c\'è niente nel socket!', + 'wrong_length_read' => 'ATTENZIONE: Non sono stati letti abbastanza byte (dovevo leggere %s, ho letto %s)!', + 'no_data_in_socket' => 'Non ci sono dati nel socket!', + 'dc_con_start' => 'Connessione al DC %s in corso...', + 'dc_con_stop' => 'Disconnessione dal DC %s in corso...', + 'dc_con_test_start' => 'Connessione al DC %s (server %s, %s, %s)...', + 'script_not_exist' => 'Lo script fornito non esiste', + 'apifactory_start' => 'Sto avviando la fabbrica di API...', + 'madelineproto_ready' => 'MadelineProto è pronto!', + 'logout_error' => 'C\'è stato un errore durante il logout!', + 'logout_ok' => 'Il logout è stato eseguito correttamente!', + 'already_logged_in' => 'Questa istanza di MadelineProto è già loggata, prima faccio il logout...', + 'login_ok' => 'Il login è stato eseguito correttamente!', + 'login_user' => 'Sto eseguendo il login come utente normale...', + 'login_bot' => 'Sto eseguendo il login come bot...', + 'login_code_sending' => 'Sto inviando il codice...', + 'login_code_sent' => 'Il codice è stato inviato correttamente! Una volta ricevuto il codice dovrai usare la funzione complete_phone_login.', + 'login_code_uncalled' => 'Non sto aspettando il codice! Usa la funzione phone_login.', + 'login_2fa_enabled' => 'L\'autenticazione a due fattori è abilitata, dovrai chiamare il metodo complete_2fa_login...', + 'login_need_signup' => 'Questo numero non è registrato su telegram, dovrai chiamare la funzione complete_signup...', + 'login_auth_key' => 'Sto facendo il login con la chiave di autorizzazione...', + 'not_logged_in' => 'Non ho ancora fatto il login!', + 'signup_uncalled' => 'Chiama prima le funzioni phone_login e complete_phone_login.', + 'signing_up' => 'Mi sto registrando su telegram come utente normale...', + 'signup_ok' => 'Mi sono registrato su Telegram!', + '2fa_uncalled' => 'Non sto aspettando la password, chiama prima le funzioni phone_login e complete_phone_login!', + 'getting_dialogs' => 'Sto ottenendo la lista delle chat...', + 'libtgvoip_required' => 'È necessario installare l\'estensione php-libtgvoip per accettare e gestire chiamate vocali, vistate https://docs.madelineproto.xyz per più info.', + 'peer_not_in_db' => 'Questo utente/gruppo/canale non è presente nel database interno MadelineProto', + 'calling_user' => 'Sto chiamando %s...', + 'generating_a' => 'Sto generando a...', + 'generating_g_a' => 'Sto generando g_a...', + 'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s', + 'accepting_call' => 'Sto accettando una chiamata da %s...', + 'generating_b' => 'Sto generando b...', + 'call_already_accepted' => 'La chiamata %s è già stata accettata.', + 'call_already_declined' => 'La chiamata %s è già stata annullata.', + 'call_error_2' => 'Impossibile trovare e confermare la chiamata %s', + 'call_confirming' => 'Sto confermando una chiamata da %s', + 'call_error_3' => 'Impossibile trovare e completare la chiamata %s', + 'call_completing' => 'Sto completando una chiamata da %s...', + 'invalid_g_a' => 'g_a non valido!', + 'fingerprint_invalid' => 'fingerprint della chiave non valido!', + 'call_discarding' => 'Sto rifiutando la chiamata %s...', + 'call_set_rating' => 'Sto inviando la recensione della chiamata %s...', + 'call_debug_saving' => 'Sto inviando i dati di debug della chiamata %s...', + 'TL_loading' => 'Sto caricando gli schemi TL...', + 'file_parsing' => 'Leggendo %s...', + 'crc32_mismatch' => 'CRC32 non valido (%s diverso da %s) per %s', + 'src_file_invalid' => 'È stato fornito un file sorgente non valido: ', + 'translating_obj' => 'Traducendo gli oggetti...', + 'translating_methods' => 'Traducendo i metodi...', + 'bool_error' => 'Non sono riuscito ad estrarre un booleano', + 'not_numeric' => 'Il valore fornito non è numerico', + 'long_not_16' => 'Il valore fornito non è lungo 16 byte', + 'long_not_32' => 'Il valore fornito non è lungo 32 byte', + 'long_not_64' => 'Il valore fornito non è lungo 64 byte', + 'array_invalid' => 'Il valore fornito non è un array', + 'predicate_not_set' => 'Il predicato (valore sotto chiave _, esempio [\'_\' => \'inputPeer\']) non è impostato!', + 'type_extract_error' => 'Impossibile estrarre il tipo "%s"', + 'method_not_found' => 'Impossibile trovare il seguente metodo: ', + 'params_missing' => 'Non hai fornito un parametro obbligatorio, rileggi la documentazione API', + 'sec_peer_not_in_db' => 'La chat segreta non è presente nel database interno MadelineProto', + 'stream_handle_invalid' => 'Il valore fornito non è uno stream', + 'length_too_big' => 'Il valore fornito è troppo lungo', + 'deserialize_not_str' => 'Il valore generato non è una stringa', + 'type_extract_error_id' => 'Non sono riuscito ad estrarre il tipo %s con ID %s', + 'vector_invalid' => 'ID vettore non valido: ', + 'constructor_not_found' => 'Costruttore non trovato per tipo: ', + 'rand_bytes_too_small' => 'random_bytes è troppo corto!', + 'botapi_conversion_error' => 'NOn sono risucito a convertire %s in un oggetto bot API', + 'non_text_conversion' => 'Non posso ancora convertire messaggi media', + 'last_byte_invalid' => 'L\'ultimo byte non è valido', + 'file_type_invalid' => 'È stato fornito un tipo file errato', + 'recreate_temp_auth_key' => 'Sono stato costretto a rigenerare la chiave di autorizzazione temporanea', + 'resetting_auth_key' => 'ATTENZIONE: Sto resettando la chiave temporanea...', + 'shutting_down_reader_pool' => 'Chisura pool di lettura', + 'shutting_down_handler_pool' => 'Chiusura pool di gestione per DC %s, %d thread rimasti', + 'secret_chat_skipping' => 'Non ho la chat segreta %s nel database, ignorando messaggio', + 'fingerprint_mismatch' => 'Fingerprint della chiave non valido', + 'msg_data_length_too_big' => 'message_data_length è troppo grande', + 'length_not_divisible_16' => 'La lunghezza dei dati decifrati non è divisibile per 16', + 'msg_key_mismatch' => 'msg_key non valido', + 'rand_bytes_too_short' => 'random_bytes è troppo corto!', + 'resending_unsupported' => 'IL riinvio di messaggi non è ancora supportato', + 'unrecognized_dec_msg' => 'È stato ricevuto un messaggio decifrato sconosciuto: ', + 'serializing_madelineproto' => 'Sto serializzando MadelineProto...', + 'req_pq' => 'Sto richiedendo pq...', + 'done' => 'Fatto!', + 'cdn_reupload' => 'Il file non è disponibile sul nostro CDN, richiedo la copia!', + 'stored_on_cdn' => 'Il file è scaricabile tramite CDN!', + ), + 'en' => + array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => 'Requests PQ for factorization', + 'method_req_pq_param_nonce_type_int128' => 'Random number for cryptographic security', + 'method_req_pq_multi' => 'Requests PQ for factorization (new version)', + 'method_req_pq_multi_param_nonce_type_int128' => 'Random number for cryptographic security', + 'method_req_DH_params' => 'Requests Diffie-hellman parameters for key exchange', + 'method_req_DH_params_param_nonce_type_int128' => 'Random number for cryptographic security', + 'method_req_DH_params_param_server_nonce_type_int128' => 'Random number for cryptographic security, given by server', + 'method_req_DH_params_param_p_type_bytes' => 'Factorized p from pq', + 'method_req_DH_params_param_q_type_bytes' => 'Factorized q from pq', + 'method_req_DH_params_param_public_key_fingerprint_type_long' => 'Server RSA fingerprint', + 'method_req_DH_params_param_encrypted_data_type_bytes' => 'Encrypted key exchange message', + 'method_set_client_DH_params' => 'Sets client diffie-hellman parameters', + 'method_set_client_DH_params_param_nonce_type_int128' => 'Random number for cryptographic security', + 'method_set_client_DH_params_param_server_nonce_type_int128' => 'Random number for cryptographic security, given by server', + 'method_set_client_DH_params_param_encrypted_data_type_bytes' => 'Encrypted key exchange message', + 'method_rpc_drop_answer' => 'Do not send answer to provided request', + 'method_rpc_drop_answer_param_req_msg_id_type_long' => 'The message ID of the request', + 'method_get_future_salts' => 'Get future salts', + 'method_get_future_salts_param_num_type_int' => 'How many salts should be fetched', + 'method_ping' => 'pings the server', + 'method_ping_param_ping_id_type_long' => 'Ping ID', + 'method_ping_delay_disconnect' => 'Pings the server and causes disconection if the same method is not called within ping_disconnect_delay', + 'method_ping_delay_disconnect_param_ping_id_type_long' => 'Ping ID', + 'method_ping_delay_disconnect_param_disconnect_delay_type_int' => 'Disconection delay', + 'method_destroy_session' => 'Destroy the current MTProto session', + 'method_destroy_session_param_session_id_type_long' => 'The session to destroy', + 'method_http_wait' => 'Makes the server send messages waiting in the buffer', + 'method_http_wait_param_max_delay_type_int' => 'Denotes the maximum number of milliseconds that has elapsed between the first message for this session and the transmission of an HTTP response', + 'method_http_wait_param_wait_after_type_int' => 'after the receipt of the latest message for a particular session, the server waits another wait_after milliseconds in case there are more messages. If there are no additional messages, the result is transmitted (a container with all the messages).', + 'method_http_wait_param_max_wait_type_int' => 'If more messages appear, the wait_after timer is reset.', + 'method_invokeAfterMsg' => 'Invokes a query after successfull completion of one of the previous queries.', + 'method_invokeAfterMsg_param_msg_id_type_long' => 'Message identifier on which a current query depends', + 'method_invokeAfterMsg_param_query_type_!X' => 'The query itself', + 'method_invokeAfterMsgs' => 'Result type returned by a current query.', + 'method_invokeAfterMsgs_param_msg_ids_type_Vector t' => 'List of messages on which a current query depends', + 'method_invokeAfterMsgs_param_query_type_!X' => 'The query itself', + 'method_initConnection' => 'Initializes connection and save information on the user\'s device and application.', + 'method_initConnection_param_api_id_type_int' => 'Application identifier', + 'method_initConnection_param_device_model_type_string' => 'Device model', + 'method_initConnection_param_system_version_type_string' => 'System version', + 'method_initConnection_param_app_version_type_string' => 'App version', + 'method_initConnection_param_system_lang_code_type_string' => 'Language code', + 'method_initConnection_param_lang_pack_type_string' => 'Language pack to use', + 'method_initConnection_param_lang_code_type_string' => 'Language code to set', + 'method_initConnection_param_query_type_!X' => 'Nested query', + 'method_invokeWithLayer' => 'Invoke this method with layer X', + 'method_invokeWithLayer_param_layer_type_int' => 'The layer version', + 'method_invokeWithLayer_param_query_type_!X' => 'The query', + 'method_invokeWithoutUpdates' => 'Invoke with method without returning updates in the socket', + 'method_invokeWithoutUpdates_param_query_type_!X' => 'The query', + 'method_auth.checkPhone' => 'Check if this phone number is registered on telegram', + 'method_auth.checkPhone_param_phone_number_type_string' => 'The phone number to check', + 'method_auth.sendCode' => 'Use phone_login instead', + 'method_auth.sendCode_param_allow_flashcall_type_true' => 'Use phone_login instead', + 'method_auth.sendCode_param_phone_number_type_string' => 'Use phone_login instead', + 'method_auth.sendCode_param_current_number_type_Bool' => 'Use phone_login instead', + 'method_auth.sendCode_param_api_id_type_int' => 'Use phone_login instead', + 'method_auth.sendCode_param_api_hash_type_string' => 'Use phone_login instead', + 'method_auth.signUp' => 'You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signUp_param_phone_number_type_string' => 'You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signUp_param_phone_code_hash_type_string' => 'You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signUp_param_phone_code_type_string' => 'You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signUp_param_first_name_type_string' => 'You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signUp_param_last_name_type_string' => 'You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signIn' => 'You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signIn_param_phone_number_type_string' => 'You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signIn_param_phone_code_hash_type_string' => 'You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signIn_param_phone_code_type_string' => 'You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.logOut' => 'You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.resetAuthorizations' => 'Delete all logged-in sessions.', + 'method_auth.sendInvites' => 'Invite friends to telegram!', + 'method_auth.sendInvites_param_phone_numbers_type_Vector t' => 'Phone numbers to invite', + 'method_auth.sendInvites_param_message_type_string' => 'The message to send', + 'method_auth.exportAuthorization' => 'You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html', + 'method_auth.exportAuthorization_param_dc_id_type_int' => 'You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html', + 'method_auth.importAuthorization' => 'You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html', + 'method_auth.importAuthorization_param_id_type_int' => 'You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html', + 'method_auth.importAuthorization_param_bytes_type_bytes' => 'You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html', + 'method_auth.bindTempAuthKey' => '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', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id_type_long' => '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', + 'method_auth.bindTempAuthKey_param_nonce_type_long' => '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', + 'method_auth.bindTempAuthKey_param_expires_at_type_int' => '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', + 'method_auth.bindTempAuthKey_param_encrypted_message_type_bytes' => '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', + 'method_auth.importBotAuthorization' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.importBotAuthorization_param_api_id_type_int' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.importBotAuthorization_param_api_hash_type_string' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.importBotAuthorization_param_bot_auth_token_type_string' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.checkPassword' => 'You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.checkPassword_param_password_hash_type_bytes' => 'You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.requestPasswordRecovery' => 'Send an email to recover the 2FA password', + 'method_auth.recoverPassword' => 'Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account', + 'method_auth.recoverPassword_param_code_type_string' => 'The code that was emailed to you', + 'method_auth.resendCode' => 'Resend the SMS verification code', + 'method_auth.resendCode_param_phone_number_type_string' => 'The phone number', + 'method_auth.resendCode_param_phone_code_hash_type_string' => 'The phone code hash', + 'method_auth.cancelCode' => 'Invalidate sent phone code', + 'method_auth.cancelCode_param_phone_number_type_string' => 'Phone number', + 'method_auth.cancelCode_param_phone_code_hash_type_string' => 'Phone code hash', + 'method_auth.dropTempAuthKeys' => 'Delete all temporary authorization keys except the ones provided', + 'method_auth.dropTempAuthKeys_param_except_auth_keys_type_Vector t' => 'The temporary authorization keys to keep', + 'method_account.registerDevice' => 'Register device for push notifications', + 'method_account.registerDevice_param_token_type_type_int' => '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', + 'method_account.registerDevice_param_token_type_string' => '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', + 'method_account.registerDevice_param_app_sandbox_type_Bool' => 'Should the app run in a sandbox?', + 'method_account.registerDevice_param_other_uids_type_Vector t' => 'Other UUIDs', + 'method_account.unregisterDevice' => 'Stop sending PUSH notifications to app', + 'method_account.unregisterDevice_param_token_type_type_int' => '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', + 'method_account.unregisterDevice_param_token_type_string' => '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', + 'method_account.unregisterDevice_param_other_uids_type_Vector t' => 'Other UUIDs', + 'method_account.updateNotifySettings' => 'Change notification settings', + 'method_account.updateNotifySettings_param_peer_type_InputNotifyPeer' => 'The peers to which the notification settings should be applied', + 'method_account.updateNotifySettings_param_settings_type_InputPeerNotifySettings' => 'Notification settings', + 'method_account.getNotifySettings' => 'Get notification settings', + 'method_account.getNotifySettings_param_peer_type_InputNotifyPeer' => 'Notification source ', + 'method_account.resetNotifySettings' => 'Reset all notification settings', + 'method_account.updateProfile' => 'Update profile info', + 'method_account.updateProfile_param_first_name_type_string' => 'The first name', + 'method_account.updateProfile_param_last_name_type_string' => 'The last name', + 'method_account.updateProfile_param_about_type_string' => 'The bio/about field', + 'method_account.updateStatus' => 'Update online status', + 'method_account.updateStatus_param_offline_type_Bool' => 'offline to set the status to offline', + 'method_account.getWallPapers' => 'Returns a list of available wallpapers.', + 'method_account.reportPeer' => 'Report for spam', + 'method_account.reportPeer_param_peer_type_InputPeer' => 'The peer to report', + 'method_account.reportPeer_param_reason_type_ReportReason' => 'Why are you reporting this peer', + 'method_account.checkUsername' => 'Check if this username is available', + 'method_account.checkUsername_param_username_type_string' => 'The username to check', + 'method_account.updateUsername' => 'Update this user\'s username', + 'method_account.updateUsername_param_username_type_string' => 'The new username', + 'method_account.getPrivacy' => 'Get privacy settings', + 'method_account.getPrivacy_param_key_type_InputPrivacyKey' => 'Privacy setting key', + 'method_account.setPrivacy' => 'Set privacy settings', + 'method_account.setPrivacy_param_key_type_InputPrivacyKey' => 'Privacy setting', + 'method_account.setPrivacy_param_rules_type_Vector t' => 'Privacy settings', + 'method_account.deleteAccount' => 'Delete this account', + 'method_account.deleteAccount_param_reason_type_string' => 'Why are you going away? :(', + 'method_account.getAccountTTL' => 'Get account TTL', + 'method_account.setAccountTTL' => 'Set account TTL', + 'method_account.setAccountTTL_param_ttl_type_AccountDaysTTL' => 'Time To Live of account', + 'method_account.sendChangePhoneCode' => 'Change the phone number', + 'method_account.sendChangePhoneCode_param_allow_flashcall_type_true' => 'Can the code be sent using a flash call instead of an SMS?', + 'method_account.sendChangePhoneCode_param_phone_number_type_string' => 'New phone number', + 'method_account.sendChangePhoneCode_param_current_number_type_Bool' => 'Current phone number', + 'method_account.changePhone' => 'Change the phone number associated to this account', + 'method_account.changePhone_param_phone_number_type_string' => 'Phone number', + 'method_account.changePhone_param_phone_code_hash_type_string' => 'Phone code hash returned by account.sendChangePhoneCode', + 'method_account.changePhone_param_phone_code_type_string' => 'The phone code sent by account.sendChangePhoneCode', + 'method_account.updateDeviceLocked' => 'Disable all notifications for a certain period', + 'method_account.updateDeviceLocked_param_period_type_int' => 'For how long should notifications be disabled', + 'method_account.getAuthorizations' => 'Get all logged-in authorizations', + 'method_account.resetAuthorization' => 'Delete a certain session', + 'method_account.resetAuthorization_param_hash_type_long' => 'The session hash, obtained from $MadelineProto->account->getAuthorizations', + 'method_account.getPassword' => 'Get the current password', + 'method_account.getPasswordSettings' => 'Get the current 2FA settings', + 'method_account.getPasswordSettings_param_current_password_hash_type_bytes' => '$current_salt = $MadelineProto->account->getPassword()[\'current_salt\']; $current_password_hash = hash(\'sha256\', $current_salt.$password.$current_salt);', + 'method_account.updatePasswordSettings' => 'Update the 2FA password settings', + 'method_account.updatePasswordSettings_param_current_password_hash_type_bytes' => '$current_salt = $MadelineProto->account->getPassword()[\'current_salt\']; $current_password_hash = hash(\'sha256\', $current_salt.$password.$current_salt);', + 'method_account.updatePasswordSettings_param_new_settings_type_account.PasswordInputSettings' => 'New 2FA settings', + 'method_account.sendConfirmPhoneCode' => 'Send confirmation phone code', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall_type_true' => 'Can telegram call you instead of sending an SMS?', + 'method_account.sendConfirmPhoneCode_param_hash_type_string' => 'The hash', + 'method_account.sendConfirmPhoneCode_param_current_number_type_Bool' => 'The current phone number', + 'method_account.confirmPhone' => 'Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode', + 'method_account.confirmPhone_param_phone_code_hash_type_string' => 'obtain phone_code_hash from sendConfirmPhoneCode', + 'method_account.confirmPhone_param_phone_code_type_string' => 'The code sent by sendConfirmPhoneCode', + 'method_account.getTmpPassword' => 'Get temporary password for buying products through bots', + 'method_account.getTmpPassword_param_password_hash_type_bytes' => 'The password hash', + 'method_account.getTmpPassword_param_period_type_int' => 'The validity period', + 'method_account.getWebAuthorizations' => 'Get telegram web login authorizations', + 'method_account.resetWebAuthorization' => 'Delete a certain telegram web login authorization', + 'method_account.resetWebAuthorization_param_hash_type_long' => 'The authorization\'s hash', + 'method_account.resetWebAuthorizations' => 'Reset all telegram web login authorizations', + 'method_users.getUsers' => 'Get info about users', + 'method_users.getUsers_param_id_type_Vector t' => 'The ids of the users', + 'method_users.getFullUser' => '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)', + 'method_users.getFullUser_param_id_type_InputUser' => '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)', + 'method_contacts.getStatuses' => 'Get online status of all users', + 'method_contacts.getContacts' => 'Get info about a certain contact', + 'method_contacts.getContacts_param_hash_type_int' => '$ids is the list ids of previously fetched contacts, $hash = $MadelineProto->gen_vector_hash($ids);', + 'method_contacts.importContacts' => 'Add phone number as contact', + 'method_contacts.importContacts_param_contacts_type_Vector t' => 'The numbers to import', + 'method_contacts.deleteContact' => 'Delete a contact', + 'method_contacts.deleteContact_param_id_type_InputUser' => 'The contact to delete', + 'method_contacts.deleteContacts' => 'Delete multiple contacts', + 'method_contacts.deleteContacts_param_id_type_Vector t' => 'The contacts to delete', + 'method_contacts.block' => 'Block a user', + 'method_contacts.block_param_id_type_InputUser' => 'The user to block', + 'method_contacts.unblock' => 'Unblock a user', + 'method_contacts.unblock_param_id_type_InputUser' => 'The user to unblock', + 'method_contacts.getBlocked' => 'Get blocked users', + 'method_contacts.getBlocked_param_offset_type_int' => 'Initially 0, then set to the number of blocked contacts previously fetched', + 'method_contacts.getBlocked_param_limit_type_int' => 'How many blocked contacts to fetch', + 'method_contacts.exportCard' => 'Export contact as card', + 'method_contacts.importCard' => 'Import card as contact', + 'method_contacts.importCard_param_export_card_type_Vector t' => 'The card', + 'method_contacts.search' => 'Search contacts', + 'method_contacts.search_param_q_type_string' => 'The search query', + 'method_contacts.search_param_limit_type_int' => 'How many results should be returned', + 'method_contacts.resolveUsername' => '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)', + 'method_contacts.resolveUsername_param_username_type_string' => '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)', + 'method_contacts.getTopPeers' => 'Get most used chats', + 'method_contacts.getTopPeers_param_correspondents_type_true' => '', + 'method_contacts.getTopPeers_param_bots_pm_type_true' => '', + 'method_contacts.getTopPeers_param_bots_inline_type_true' => '', + 'method_contacts.getTopPeers_param_phone_calls_type_true' => '', + 'method_contacts.getTopPeers_param_groups_type_true' => '', + 'method_contacts.getTopPeers_param_channels_type_true' => '', + 'method_contacts.getTopPeers_param_offset_type_int' => '', + 'method_contacts.getTopPeers_param_limit_type_int' => '', + 'method_contacts.getTopPeers_param_hash_type_int' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category_type_TopPeerCategory' => '', + 'method_contacts.resetTopPeerRating_param_peer_type_InputPeer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id_type_Vector t' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned_type_true' => '', + 'method_messages.getDialogs_param_offset_date_type_int' => '', + 'method_messages.getDialogs_param_offset_id_type_int' => '', + 'method_messages.getDialogs_param_offset_peer_type_InputPeer' => '', + 'method_messages.getDialogs_param_limit_type_int' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer_type_InputPeer' => '', + 'method_messages.getHistory_param_offset_id_type_int' => '', + 'method_messages.getHistory_param_offset_date_type_int' => '', + 'method_messages.getHistory_param_add_offset_type_int' => '', + 'method_messages.getHistory_param_limit_type_int' => '', + 'method_messages.getHistory_param_max_id_type_int' => '', + 'method_messages.getHistory_param_min_id_type_int' => '', + 'method_messages.getHistory_param_hash_type_int' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer_type_InputPeer' => '', + 'method_messages.search_param_q_type_string' => '', + 'method_messages.search_param_from_id_type_InputUser' => '', + 'method_messages.search_param_filter_type_MessagesFilter' => '', + 'method_messages.search_param_min_date_type_int' => '', + 'method_messages.search_param_max_date_type_int' => '', + 'method_messages.search_param_offset_id_type_int' => '', + 'method_messages.search_param_add_offset_type_int' => '', + 'method_messages.search_param_limit_type_int' => '', + 'method_messages.search_param_max_id_type_int' => '', + 'method_messages.search_param_min_id_type_int' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer_type_InputPeer' => '', + 'method_messages.readHistory_param_max_id_type_int' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear_type_true' => '', + 'method_messages.deleteHistory_param_peer_type_InputPeer' => '', + 'method_messages.deleteHistory_param_max_id_type_int' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke_type_true' => '', + 'method_messages.deleteMessages_param_id_type_Vector t' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id_type_int' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer_type_InputPeer' => '', + 'method_messages.setTyping_param_action_type_SendMessageAction' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage_type_true' => '', + 'method_messages.sendMessage_param_silent_type_true' => '', + 'method_messages.sendMessage_param_background_type_true' => '', + 'method_messages.sendMessage_param_clear_draft_type_true' => '', + 'method_messages.sendMessage_param_peer_type_InputPeer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id_type_int' => '', + 'method_messages.sendMessage_param_message_type_string' => '', + 'method_messages.sendMessage_param_reply_markup_type_ReplyMarkup' => '', + 'method_messages.sendMessage_param_entities_type_Vector t' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent_type_true' => '', + 'method_messages.sendMedia_param_background_type_true' => '', + 'method_messages.sendMedia_param_clear_draft_type_true' => '', + 'method_messages.sendMedia_param_peer_type_InputPeer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id_type_int' => '', + 'method_messages.sendMedia_param_media_type_InputMedia' => '', + 'method_messages.sendMedia_param_message_type_string' => '', + 'method_messages.sendMedia_param_reply_markup_type_ReplyMarkup' => '', + 'method_messages.sendMedia_param_entities_type_Vector t' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent_type_true' => '', + 'method_messages.forwardMessages_param_background_type_true' => '', + 'method_messages.forwardMessages_param_with_my_score_type_true' => '', + 'method_messages.forwardMessages_param_grouped_type_true' => '', + 'method_messages.forwardMessages_param_from_peer_type_InputPeer' => '', + 'method_messages.forwardMessages_param_id_type_Vector t' => '', + 'method_messages.forwardMessages_param_to_peer_type_InputPeer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer_type_InputPeer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer_type_InputPeer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer_type_InputPeer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id_type_Vector t' => '', + 'method_messages.getFullChat' => '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)', + 'method_messages.getFullChat_param_chat_id_type_InputPeer' => '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)', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id_type_InputPeer' => '', + 'method_messages.editChatTitle_param_title_type_string' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id_type_InputPeer' => '', + 'method_messages.editChatPhoto_param_photo_type_InputChatPhoto' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id_type_InputPeer' => '', + 'method_messages.addChatUser_param_user_id_type_InputUser' => '', + 'method_messages.addChatUser_param_fwd_limit_type_int' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id_type_InputPeer' => '', + 'method_messages.deleteChatUser_param_user_id_type_InputUser' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users_type_Vector t' => '', + 'method_messages.createChat_param_title_type_string' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version_type_int' => '', + 'method_messages.getDhConfig_param_random_length_type_int' => '', + 'method_messages.requestEncryption' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.requestEncryption_param_user_id_type_InputUser' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.requestEncryption_param_g_a_type_bytes' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.acceptEncryption' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.acceptEncryption_param_peer_type_InputEncryptedChat' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.acceptEncryption_param_g_b_type_bytes' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.acceptEncryption_param_key_fingerprint_type_long' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.discardEncryption' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.discardEncryption_param_chat_id_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer_type_InputEncryptedChat' => '', + 'method_messages.setEncryptedTyping_param_typing_type_Bool' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer_type_InputEncryptedChat' => '', + 'method_messages.readEncryptedHistory_param_max_date_type_int' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer_type_InputEncryptedChat' => '', + 'method_messages.sendEncrypted_param_message_type_DecryptedMessage' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer_type_InputEncryptedChat' => '', + 'method_messages.sendEncryptedFile_param_message_type_DecryptedMessage' => '', + 'method_messages.sendEncryptedFile_param_file_type_InputEncryptedFile' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer_type_InputEncryptedChat' => '', + 'method_messages.sendEncryptedService_param_message_type_DecryptedMessage' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts_type_int' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer_type_InputEncryptedChat' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id_type_Vector t' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon_type_string' => '', + 'method_messages.getStickers_param_hash_type_string' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash_type_int' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message_type_string' => '', + 'method_messages.getWebPagePreview_param_entities_type_Vector t' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id_type_InputPeer' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash_type_string' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash_type_string' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset_type_InputStickerSet' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset_type_InputStickerSet' => '', + 'method_messages.installStickerSet_param_archived_type_Bool' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset_type_InputStickerSet' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot_type_InputUser' => '', + 'method_messages.startBot_param_peer_type_InputPeer' => '', + 'method_messages.startBot_param_start_param_type_string' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer_type_InputPeer' => '', + 'method_messages.getMessagesViews_param_id_type_Vector t' => '', + 'method_messages.getMessagesViews_param_increment_type_Bool' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id_type_InputPeer' => '', + 'method_messages.toggleChatAdmins_param_enabled_type_Bool' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id_type_InputPeer' => '', + 'method_messages.editChatAdmin_param_user_id_type_InputUser' => '', + 'method_messages.editChatAdmin_param_is_admin_type_Bool' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id_type_InputPeer' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q_type_string' => '', + 'method_messages.searchGlobal_param_offset_date_type_int' => '', + 'method_messages.searchGlobal_param_offset_peer_type_InputPeer' => '', + 'method_messages.searchGlobal_param_offset_id_type_int' => '', + 'method_messages.searchGlobal_param_limit_type_int' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks_type_true' => '', + 'method_messages.reorderStickerSets_param_order_type_Vector t' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256_type_bytes' => '', + 'method_messages.getDocumentByHash_param_size_type_int' => '', + 'method_messages.getDocumentByHash_param_mime_type_type_string' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q_type_string' => '', + 'method_messages.searchGifs_param_offset_type_int' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash_type_int' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id_type_InputDocument' => '', + 'method_messages.saveGif_param_unsave_type_Bool' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot_type_InputUser' => '', + 'method_messages.getInlineBotResults_param_peer_type_InputPeer' => '', + 'method_messages.getInlineBotResults_param_geo_point_type_InputGeoPoint' => '', + 'method_messages.getInlineBotResults_param_query_type_string' => '', + 'method_messages.getInlineBotResults_param_offset_type_string' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery_type_true' => '', + 'method_messages.setInlineBotResults_param_private_type_true' => '', + 'method_messages.setInlineBotResults_param_query_id_type_long' => '', + 'method_messages.setInlineBotResults_param_results_type_Vector t' => '', + 'method_messages.setInlineBotResults_param_cache_time_type_int' => '', + 'method_messages.setInlineBotResults_param_next_offset_type_string' => '', + 'method_messages.setInlineBotResults_param_switch_pm_type_InlineBotSwitchPM' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent_type_true' => '', + 'method_messages.sendInlineBotResult_param_background_type_true' => '', + 'method_messages.sendInlineBotResult_param_clear_draft_type_true' => '', + 'method_messages.sendInlineBotResult_param_peer_type_InputPeer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id_type_int' => '', + 'method_messages.sendInlineBotResult_param_query_id_type_long' => '', + 'method_messages.sendInlineBotResult_param_id_type_string' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer_type_InputPeer' => '', + 'method_messages.getMessageEditData_param_id_type_int' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage_type_true' => '', + 'method_messages.editMessage_param_stop_geo_live_type_true' => '', + 'method_messages.editMessage_param_peer_type_InputPeer' => '', + 'method_messages.editMessage_param_id_type_int' => '', + 'method_messages.editMessage_param_message_type_string' => '', + 'method_messages.editMessage_param_reply_markup_type_ReplyMarkup' => '', + 'method_messages.editMessage_param_entities_type_Vector t' => '', + 'method_messages.editMessage_param_geo_point_type_InputGeoPoint' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage_type_true' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live_type_true' => '', + 'method_messages.editInlineBotMessage_param_id_type_InputBotInlineMessageID' => '', + 'method_messages.editInlineBotMessage_param_message_type_string' => '', + 'method_messages.editInlineBotMessage_param_reply_markup_type_ReplyMarkup' => '', + 'method_messages.editInlineBotMessage_param_entities_type_Vector t' => '', + 'method_messages.editInlineBotMessage_param_geo_point_type_InputGeoPoint' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game_type_true' => '', + 'method_messages.getBotCallbackAnswer_param_peer_type_InputPeer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id_type_int' => '', + 'method_messages.getBotCallbackAnswer_param_data_type_bytes' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert_type_true' => '', + 'method_messages.setBotCallbackAnswer_param_query_id_type_long' => '', + 'method_messages.setBotCallbackAnswer_param_message_type_string' => '', + 'method_messages.setBotCallbackAnswer_param_url_type_string' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time_type_int' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers_type_Vector t' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage_type_true' => '', + 'method_messages.saveDraft_param_reply_to_msg_id_type_int' => '', + 'method_messages.saveDraft_param_peer_type_InputPeer' => '', + 'method_messages.saveDraft_param_message_type_string' => '', + 'method_messages.saveDraft_param_entities_type_Vector t' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash_type_int' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id_type_Vector t' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached_type_true' => '', + 'method_messages.getRecentStickers_param_hash_type_int' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached_type_true' => '', + 'method_messages.saveRecentSticker_param_id_type_InputDocument' => '', + 'method_messages.saveRecentSticker_param_unsave_type_Bool' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached_type_true' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks_type_true' => '', + 'method_messages.getArchivedStickers_param_offset_id_type_long' => '', + 'method_messages.getArchivedStickers_param_limit_type_int' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash_type_int' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media_type_InputStickeredMedia' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message_type_true' => '', + 'method_messages.setGameScore_param_force_type_true' => '', + 'method_messages.setGameScore_param_peer_type_InputPeer' => '', + 'method_messages.setGameScore_param_id_type_int' => '', + 'method_messages.setGameScore_param_user_id_type_InputUser' => '', + 'method_messages.setGameScore_param_score_type_int' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message_type_true' => '', + 'method_messages.setInlineGameScore_param_force_type_true' => '', + 'method_messages.setInlineGameScore_param_id_type_InputBotInlineMessageID' => '', + 'method_messages.setInlineGameScore_param_user_id_type_InputUser' => '', + 'method_messages.setInlineGameScore_param_score_type_int' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer_type_InputPeer' => '', + 'method_messages.getGameHighScores_param_id_type_int' => '', + 'method_messages.getGameHighScores_param_user_id_type_InputUser' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id_type_InputBotInlineMessageID' => '', + 'method_messages.getInlineGameHighScores_param_user_id_type_InputUser' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id_type_InputUser' => '', + 'method_messages.getCommonChats_param_max_id_type_int' => '', + 'method_messages.getCommonChats_param_limit_type_int' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids_type_Vector t' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url_type_string' => '', + 'method_messages.getWebPage_param_hash_type_int' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned_type_true' => '', + 'method_messages.toggleDialogPin_param_peer_type_InputPeer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force_type_true' => '', + 'method_messages.reorderPinnedDialogs_param_order_type_Vector t' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id_type_long' => '', + 'method_messages.setBotShippingResults_param_error_type_string' => '', + 'method_messages.setBotShippingResults_param_shipping_options_type_Vector t' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success_type_true' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id_type_long' => '', + 'method_messages.setBotPrecheckoutResults_param_error_type_string' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer_type_InputPeer' => '', + 'method_messages.uploadMedia_param_media_type_InputMedia' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer_type_InputPeer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id_type_int' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash_type_int' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id_type_InputDocument' => '', + 'method_messages.faveSticker_param_unfave_type_Bool' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer_type_InputPeer' => '', + 'method_messages.getUnreadMentions_param_offset_id_type_int' => '', + 'method_messages.getUnreadMentions_param_add_offset_type_int' => '', + 'method_messages.getUnreadMentions_param_limit_type_int' => '', + 'method_messages.getUnreadMentions_param_max_id_type_int' => '', + 'method_messages.getUnreadMentions_param_min_id_type_int' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer_type_InputPeer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer_type_InputPeer' => '', + 'method_messages.getRecentLocations_param_limit_type_int' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent_type_true' => '', + 'method_messages.sendMultiMedia_param_background_type_true' => '', + 'method_messages.sendMultiMedia_param_clear_draft_type_true' => '', + 'method_messages.sendMultiMedia_param_peer_type_InputPeer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id_type_int' => '', + 'method_messages.sendMultiMedia_param_multi_media_type_Vector t' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer_type_InputEncryptedChat' => '', + 'method_messages.uploadEncryptedFile_param_file_type_InputEncryptedFile' => '', + 'method_updates.getState' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getDifference' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getDifference_param_pts_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getDifference_param_pts_total_limit_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getDifference_param_date_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getDifference_param_qts_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getChannelDifference' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getChannelDifference_param_force_type_true' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getChannelDifference_param_channel_type_InputChannel' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getChannelDifference_param_filter_type_ChannelMessagesFilter' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getChannelDifference_param_pts_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getChannelDifference_param_limit_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id_type_InputPhoto' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file_type_InputFile' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id_type_Vector t' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id_type_InputUser' => '', + 'method_photos.getUserPhotos_param_offset_type_int' => '', + 'method_photos.getUserPhotos_param_max_id_type_long' => '', + 'method_photos.getUserPhotos_param_limit_type_int' => '', + 'method_upload.saveFilePart' => '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', + 'method_upload.saveFilePart_param_file_id_type_long' => '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', + 'method_upload.saveFilePart_param_file_part_type_int' => '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', + 'method_upload.saveFilePart_param_bytes_type_bytes' => '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', + 'method_upload.getFile' => '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', + 'method_upload.getFile_param_location_type_InputFileLocation' => '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', + 'method_upload.getFile_param_offset_type_int' => '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', + 'method_upload.getFile_param_limit_type_int' => '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', + 'method_upload.saveBigFilePart' => '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', + 'method_upload.saveBigFilePart_param_file_id_type_long' => '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', + 'method_upload.saveBigFilePart_param_file_part_type_int' => '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', + 'method_upload.saveBigFilePart_param_file_total_parts_type_int' => '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', + 'method_upload.saveBigFilePart_param_bytes_type_bytes' => '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', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location_type_InputWebFileLocation' => '', + 'method_upload.getWebFile_param_offset_type_int' => '', + 'method_upload.getWebFile_param_limit_type_int' => '', + 'method_upload.getCdnFile' => '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', + 'method_upload.getCdnFile_param_file_token_type_bytes' => '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', + 'method_upload.getCdnFile_param_offset_type_int' => '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', + 'method_upload.getCdnFile_param_limit_type_int' => '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', + 'method_upload.reuploadCdnFile' => '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', + 'method_upload.reuploadCdnFile_param_file_token_type_bytes' => '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', + 'method_upload.reuploadCdnFile_param_request_token_type_bytes' => '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', + 'method_upload.getCdnFileHashes' => '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', + 'method_upload.getCdnFileHashes_param_file_token_type_bytes' => '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', + 'method_upload.getCdnFileHashes_param_offset_type_int' => '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', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events_type_Vector t' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version_type_string' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count_type_int' => '', + 'method_help.setBotUpdatesStatus_param_message_type_string' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer_type_string' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel_type_InputChannel' => '', + 'method_channels.readHistory_param_max_id_type_int' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel_type_InputChannel' => '', + 'method_channels.deleteMessages_param_id_type_Vector t' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel_type_InputChannel' => '', + 'method_channels.deleteUserHistory_param_user_id_type_InputUser' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel_type_InputChannel' => '', + 'method_channels.reportSpam_param_user_id_type_InputUser' => '', + 'method_channels.reportSpam_param_id_type_Vector t' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel_type_InputChannel' => '', + 'method_channels.getMessages_param_id_type_Vector t' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel_type_InputChannel' => '', + 'method_channels.getParticipants_param_filter_type_ChannelParticipantsFilter' => '', + 'method_channels.getParticipants_param_offset_type_int' => '', + 'method_channels.getParticipants_param_limit_type_int' => '', + 'method_channels.getParticipants_param_hash_type_int' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel_type_InputChannel' => '', + 'method_channels.getParticipant_param_user_id_type_InputUser' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id_type_Vector t' => '', + 'method_channels.getFullChannel' => '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)', + 'method_channels.getFullChannel_param_channel_type_InputChannel' => '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)', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast_type_true' => '', + 'method_channels.createChannel_param_megagroup_type_true' => '', + 'method_channels.createChannel_param_title_type_string' => '', + 'method_channels.createChannel_param_about_type_string' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel_type_InputChannel' => '', + 'method_channels.editAbout_param_about_type_string' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel_type_InputChannel' => '', + 'method_channels.editAdmin_param_user_id_type_InputUser' => '', + 'method_channels.editAdmin_param_admin_rights_type_ChannelAdminRights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel_type_InputChannel' => '', + 'method_channels.editTitle_param_title_type_string' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel_type_InputChannel' => '', + 'method_channels.editPhoto_param_photo_type_InputChatPhoto' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel_type_InputChannel' => '', + 'method_channels.checkUsername_param_username_type_string' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel_type_InputChannel' => '', + 'method_channels.updateUsername_param_username_type_string' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel_type_InputChannel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel_type_InputChannel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel_type_InputChannel' => '', + 'method_channels.inviteToChannel_param_users_type_Vector t' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel_type_InputChannel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel_type_InputChannel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel_type_InputChannel' => '', + 'method_channels.toggleInvites_param_enabled_type_Bool' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel_type_InputChannel' => '', + 'method_channels.exportMessageLink_param_id_type_int' => '', + 'method_channels.exportMessageLink_param_grouped_type_Bool' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel_type_InputChannel' => '', + 'method_channels.toggleSignatures_param_enabled_type_Bool' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent_type_true' => '', + 'method_channels.updatePinnedMessage_param_channel_type_InputChannel' => '', + 'method_channels.updatePinnedMessage_param_id_type_int' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel_type_InputChannel' => '', + 'method_channels.editBanned_param_user_id_type_InputUser' => '', + 'method_channels.editBanned_param_banned_rights_type_ChannelBannedRights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel_type_InputChannel' => '', + 'method_channels.getAdminLog_param_q_type_string' => '', + 'method_channels.getAdminLog_param_events_filter_type_ChannelAdminLogEventsFilter' => '', + 'method_channels.getAdminLog_param_admins_type_Vector t' => '', + 'method_channels.getAdminLog_param_max_id_type_long' => '', + 'method_channels.getAdminLog_param_min_id_type_long' => '', + 'method_channels.getAdminLog_param_limit_type_int' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel_type_InputChannel' => '', + 'method_channels.setStickers_param_stickerset_type_InputStickerSet' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel_type_InputChannel' => '', + 'method_channels.readMessageContents_param_id_type_Vector t' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel_type_InputChannel' => '', + 'method_channels.deleteHistory_param_max_id_type_int' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel_type_InputChannel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled_type_Bool' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method_type_string' => '', + 'method_bots.sendCustomRequest_param_params_type_DataJSON' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id_type_long' => '', + 'method_bots.answerWebhookJSONQuery_param_data_type_DataJSON' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id_type_int' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id_type_int' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save_type_true' => '', + 'method_payments.validateRequestedInfo_param_msg_id_type_int' => '', + 'method_payments.validateRequestedInfo_param_info_type_PaymentRequestedInfo' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id_type_int' => '', + 'method_payments.sendPaymentForm_param_requested_info_id_type_string' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id_type_string' => '', + 'method_payments.sendPaymentForm_param_credentials_type_InputPaymentCredentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials_type_true' => '', + 'method_payments.clearSavedInfo_param_info_type_true' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks_type_true' => '', + 'method_stickers.createStickerSet_param_user_id_type_InputUser' => '', + 'method_stickers.createStickerSet_param_title_type_string' => '', + 'method_stickers.createStickerSet_param_short_name_type_string' => '', + 'method_stickers.createStickerSet_param_stickers_type_Vector t' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker_type_InputDocument' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker_type_InputDocument' => '', + 'method_stickers.changeStickerPosition_param_position_type_int' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset_type_InputStickerSet' => '', + 'method_stickers.addStickerToSet_param_sticker_type_InputStickerSetItem' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.requestCall_param_user_id_type_InputUser' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.requestCall_param_g_a_hash_type_bytes' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.requestCall_param_protocol_type_PhoneCallProtocol' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.acceptCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.acceptCall_param_peer_type_InputPhoneCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.acceptCall_param_g_b_type_bytes' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.acceptCall_param_protocol_type_PhoneCallProtocol' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.confirmCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.confirmCall_param_peer_type_InputPhoneCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.confirmCall_param_g_a_type_bytes' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.confirmCall_param_key_fingerprint_type_long' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.confirmCall_param_protocol_type_PhoneCallProtocol' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer_type_InputPhoneCall' => '', + 'method_phone.discardCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.discardCall_param_peer_type_InputPhoneCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.discardCall_param_duration_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.discardCall_param_reason_type_PhoneCallDiscardReason' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.discardCall_param_connection_id_type_long' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer_type_InputPhoneCall' => '', + 'method_phone.setCallRating_param_rating_type_int' => '', + 'method_phone.setCallRating_param_comment_type_string' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer_type_InputPhoneCall' => '', + 'method_phone.saveCallDebug_param_debug_type_DataJSON' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code_type_string' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code_type_string' => '', + 'method_langpack.getStrings_param_keys_type_Vector t' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version_type_int' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type_type_int' => 'You cannot use this method directly, use the phone_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.sendCode_param_lang_code_type_string' => 'You cannot use this method directly, use the phone_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number_type_string' => '', + 'method_auth.sendCall_param_phone_code_hash_type_string' => '', + 'method_account.registerDevice_param_device_model_type_string' => '', + 'method_account.registerDevice_param_system_version_type_string' => '', + 'method_account.registerDevice_param_app_version_type_string' => '', + 'method_account.registerDevice_param_lang_code_type_string' => '', + 'method_contacts.getContacts_param_hash_type_string' => '', + 'method_contacts.importContacts_param_replace_type_Bool' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit_type_int' => '', + 'method_messages.getDialogs_param_offset_type_int' => '', + 'method_messages.getDialogs_param_max_id_type_int' => '', + 'method_messages.getHistory_param_offset_type_int' => '', + 'method_messages.search_param_offset_type_int' => '', + 'method_messages.readHistory_param_offset_type_int' => '', + 'method_messages.readHistory_param_read_contents_type_Bool' => '', + 'method_messages.deleteHistory_param_offset_type_int' => '', + 'method_messages.forwardMessages_param_peer_type_InputPeer' => '', + 'method_photos.updateProfilePhoto_param_crop_type_InputPhotoCrop' => '', + 'method_photos.uploadProfilePhoto_param_caption_type_string' => '', + 'method_photos.uploadProfilePhoto_param_geo_point_type_InputGeoPoint' => '', + 'method_photos.uploadProfilePhoto_param_crop_type_InputPhotoCrop' => '', + 'method_help.getAppUpdate_param_device_model_type_string' => '', + 'method_help.getAppUpdate_param_system_version_type_string' => '', + 'method_help.getAppUpdate_param_app_version_type_string' => '', + 'method_help.getAppUpdate_param_lang_code_type_string' => '', + 'method_help.getInviteText_param_lang_code_type_string' => '', + 'method_photos.getUserPhotos_param_max_id_type_int' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer_type_InputPeer' => '', + 'method_messages.forwardMessage_param_id_type_int' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts_type_Vector t' => '', + 'method_messages.sendBroadcast_param_message_type_string' => '', + 'method_messages.sendBroadcast_param_media_type_InputMedia' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number_type_string' => '', + 'method_auth.sendSms_param_phone_code_hash_type_string' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query_type_!X' => '', + 'method_messages.getAllStickers_param_hash_type_string' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point_type_InputGeoPoint' => '', + 'method_geochats.getLocated_param_radius_type_int' => '', + 'method_geochats.getLocated_param_limit_type_int' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset_type_int' => '', + 'method_geochats.getRecents_param_limit_type_int' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer_type_InputGeoChat' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer_type_InputGeoChat' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer_type_InputGeoChat' => '', + 'method_geochats.editChatTitle_param_title_type_string' => '', + 'method_geochats.editChatTitle_param_address_type_string' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer_type_InputGeoChat' => '', + 'method_geochats.editChatPhoto_param_photo_type_InputChatPhoto' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer_type_InputGeoChat' => '', + 'method_geochats.search_param_q_type_string' => '', + 'method_geochats.search_param_filter_type_MessagesFilter' => '', + 'method_geochats.search_param_min_date_type_int' => '', + 'method_geochats.search_param_max_date_type_int' => '', + 'method_geochats.search_param_offset_type_int' => '', + 'method_geochats.search_param_max_id_type_int' => '', + 'method_geochats.search_param_limit_type_int' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer_type_InputGeoChat' => '', + 'method_geochats.getHistory_param_offset_type_int' => '', + 'method_geochats.getHistory_param_max_id_type_int' => '', + 'method_geochats.getHistory_param_limit_type_int' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer_type_InputGeoChat' => '', + 'method_geochats.setTyping_param_typing_type_Bool' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer_type_InputGeoChat' => '', + 'method_geochats.sendMessage_param_message_type_string' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer_type_InputGeoChat' => '', + 'method_geochats.sendMedia_param_media_type_InputMedia' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title_type_string' => '', + 'method_geochats.createGeoChat_param_geo_point_type_InputGeoPoint' => '', + 'method_geochats.createGeoChat_param_address_type_string' => '', + 'method_geochats.createGeoChat_param_venue_type_string' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash_type_bytes' => '', + 'method_account.setPassword_param_new_salt_type_bytes' => '', + 'method_account.setPassword_param_new_password_hash_type_bytes' => '', + 'method_account.setPassword_param_hint_type_string' => '', + 'method_messages.installStickerSet_param_disabled_type_Bool' => '', + 'method_messages.startBot_param_chat_id_type_InputPeer' => '', + 'method_help.getAppChangelog_param_device_model_type_string' => '', + 'method_help.getAppChangelog_param_system_version_type_string' => '', + 'method_help.getAppChangelog_param_app_version_type_string' => '', + 'method_help.getAppChangelog_param_lang_code_type_string' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset_type_int' => '', + 'method_channels.getDialogs_param_limit_type_int' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel_type_InputChannel' => '', + 'method_channels.getImportantHistory_param_offset_id_type_int' => '', + 'method_channels.getImportantHistory_param_add_offset_type_int' => '', + 'method_channels.getImportantHistory_param_limit_type_int' => '', + 'method_channels.getImportantHistory_param_max_id_type_int' => '', + 'method_channels.getImportantHistory_param_min_id_type_int' => '', + 'method_channels.createChannel_param_users_type_Vector t' => '', + 'method_channels.editAdmin_param_role_type_ChannelParticipantRole' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel_type_InputChannel' => '', + 'method_channels.toggleComments_param_enabled_type_Bool' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel_type_InputChannel' => '', + 'method_channels.kickFromChannel_param_user_id_type_InputUser' => '', + 'method_channels.kickFromChannel_param_kicked_type_Bool' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset_type_int' => '', + 'method_messages.getChannelDialogs_param_limit_type_int' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer_type_InputPeer' => '', + 'method_messages.getImportantHistory_param_max_id_type_int' => '', + 'method_messages.getImportantHistory_param_min_id_type_int' => '', + 'method_messages.getImportantHistory_param_limit_type_int' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer_type_InputPeer' => '', + 'method_messages.readChannelHistory_param_max_id_type_int' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title_type_string' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer_type_InputPeer' => '', + 'method_messages.deleteChannelMessages_param_id_type_Vector t' => '', + 'method_updates.getChannelDifference_param_peer_type_InputPeer' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_messages.search_param_important_only_type_true' => '', + 'method_messages.sendMessage_param_broadcast_type_true' => '', + 'method_messages.sendMedia_param_broadcast_type_true' => '', + 'method_messages.forwardMessages_param_broadcast_type_true' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id_type_InputPeer' => '', + 'method_messages.deactivateChat_param_enabled_type_Bool' => '', + 'method_help.getTermsOfService_param_lang_code_type_string' => '', + 'method_messages.sendInlineBotResult_param_broadcast_type_true' => '', + 'method_channels.getImportantHistory_param_offset_date_type_int' => '', + 'method_messages.getUnusedStickers' => '', + 'method_messages.getUnusedStickers_param_limit_type_int' => '', + 'method_destroy_auth_key' => '', + 'method_phone.requestCall_param_g_a_type_bytes' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.acceptCall_param_key_fingerprint_type_long' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_req_DH_params_param_p_type_string' => '', + 'method_req_DH_params_param_q_type_string' => '', + 'method_req_DH_params_param_encrypted_data_type_string' => '', + 'method_set_client_DH_params_param_encrypted_data_type_string' => '', + 'method_contest.saveDeveloperInfo' => '', + 'method_contest.saveDeveloperInfo_param_vk_id_type_int' => '', + 'method_contest.saveDeveloperInfo_param_name_type_string' => '', + 'method_contest.saveDeveloperInfo_param_phone_number_type_string' => '', + 'method_contest.saveDeveloperInfo_param_age_type_int' => '', + 'method_contest.saveDeveloperInfo_param_city_type_string' => '', + 'method_auth.importBotAuthorization_param_a_type_true' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.importBotAuthorization_param_b_type_true' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.importBotAuthorization_param_c_type_true' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.importBotAuthorization_param_d_type_true' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'object_vector' => '', + 'object_resPQ' => '', + 'object_resPQ_param_nonce_type_int128' => '', + 'object_resPQ_param_server_nonce_type_int128' => '', + 'object_resPQ_param_pq_type_bytes' => '', + 'object_resPQ_param_server_public_key_fingerprints_type_Vector t' => '', + 'object_p_q_inner_data' => '', + 'object_p_q_inner_data_param_pq_type_bytes' => '', + 'object_p_q_inner_data_param_p_type_bytes' => '', + 'object_p_q_inner_data_param_q_type_bytes' => '', + 'object_p_q_inner_data_param_nonce_type_int128' => '', + 'object_p_q_inner_data_param_server_nonce_type_int128' => '', + 'object_p_q_inner_data_param_new_nonce_type_int256' => '', + 'object_p_q_inner_data_temp' => '', + 'object_p_q_inner_data_temp_param_pq_type_bytes' => '', + 'object_p_q_inner_data_temp_param_p_type_bytes' => '', + 'object_p_q_inner_data_temp_param_q_type_bytes' => '', + 'object_p_q_inner_data_temp_param_nonce_type_int128' => '', + 'object_p_q_inner_data_temp_param_server_nonce_type_int128' => '', + 'object_p_q_inner_data_temp_param_new_nonce_type_int256' => '', + 'object_p_q_inner_data_temp_param_expires_in_type_int' => '', + 'object_server_DH_params_fail' => '', + 'object_server_DH_params_fail_param_nonce_type_int128' => '', + 'object_server_DH_params_fail_param_server_nonce_type_int128' => '', + 'object_server_DH_params_fail_param_new_nonce_hash_type_int128' => '', + 'object_server_DH_params_ok' => '', + 'object_server_DH_params_ok_param_nonce_type_int128' => '', + 'object_server_DH_params_ok_param_server_nonce_type_int128' => '', + 'object_server_DH_params_ok_param_encrypted_answer_type_bytes' => '', + 'object_server_DH_inner_data' => '', + 'object_server_DH_inner_data_param_nonce_type_int128' => '', + 'object_server_DH_inner_data_param_server_nonce_type_int128' => '', + 'object_server_DH_inner_data_param_g_type_int' => '', + 'object_server_DH_inner_data_param_dh_prime_type_bytes' => '', + 'object_server_DH_inner_data_param_g_a_type_bytes' => '', + 'object_server_DH_inner_data_param_server_time_type_int' => '', + 'object_client_DH_inner_data' => '', + 'object_client_DH_inner_data_param_nonce_type_int128' => '', + 'object_client_DH_inner_data_param_server_nonce_type_int128' => '', + 'object_client_DH_inner_data_param_retry_id_type_long' => '', + 'object_client_DH_inner_data_param_g_b_type_bytes' => '', + 'object_dh_gen_ok' => '', + 'object_dh_gen_ok_param_nonce_type_int128' => '', + 'object_dh_gen_ok_param_server_nonce_type_int128' => '', + 'object_dh_gen_ok_param_new_nonce_hash1_type_int128' => '', + 'object_dh_gen_retry' => '', + 'object_dh_gen_retry_param_nonce_type_int128' => '', + 'object_dh_gen_retry_param_server_nonce_type_int128' => '', + 'object_dh_gen_retry_param_new_nonce_hash2_type_int128' => '', + 'object_dh_gen_fail' => '', + 'object_dh_gen_fail_param_nonce_type_int128' => '', + 'object_dh_gen_fail_param_server_nonce_type_int128' => '', + 'object_dh_gen_fail_param_new_nonce_hash3_type_int128' => '', + 'object_rpc_result' => '', + 'object_rpc_result_param_req_msg_id_type_long' => '', + 'object_rpc_result_param_result_type_Object' => '', + 'object_rpc_error' => '', + 'object_rpc_error_param_error_code_type_int' => '', + 'object_rpc_error_param_error_message_type_string' => '', + 'object_rpc_answer_unknown' => '', + 'object_rpc_answer_dropped_running' => '', + 'object_rpc_answer_dropped' => '', + 'object_rpc_answer_dropped_param_msg_id_type_long' => '', + 'object_rpc_answer_dropped_param_seq_no_type_int' => '', + 'object_rpc_answer_dropped_param_bytes_type_int' => '', + 'object_future_salt' => '', + 'object_future_salt_param_valid_since_type_int' => '', + 'object_future_salt_param_valid_until_type_int' => '', + 'object_future_salt_param_salt_type_long' => '', + 'object_future_salts' => '', + 'object_future_salts_param_req_msg_id_type_long' => '', + 'object_future_salts_param_now_type_int' => '', + 'object_future_salts_param_salts_type_vector' => '', + 'object_pong' => '', + 'object_pong_param_msg_id_type_long' => '', + 'object_pong_param_ping_id_type_long' => '', + 'object_destroy_session_ok' => '', + 'object_destroy_session_ok_param_session_id_type_long' => '', + 'object_destroy_session_none' => '', + 'object_destroy_session_none_param_session_id_type_long' => '', + 'object_new_session_created' => '', + 'object_new_session_created_param_first_msg_id_type_long' => '', + 'object_new_session_created_param_unique_id_type_long' => '', + 'object_new_session_created_param_server_salt_type_long' => '', + 'object_msg_container' => '', + 'object_msg_container_param_messages_type_vector' => '', + 'object_MTmessage' => '', + 'object_MTmessage_param_msg_id_type_long' => '', + 'object_MTmessage_param_seqno_type_int' => '', + 'object_MTmessage_param_bytes_type_int' => '', + 'object_MTmessage_param_body_type_Object' => '', + 'object_msg_copy' => '', + 'object_msg_copy_param_orig_message_type_MTMessage' => '', + 'object_gzip_packed' => '', + 'object_gzip_packed_param_packed_data_type_bytes' => '', + 'object_msgs_ack' => '', + 'object_msgs_ack_param_msg_ids_type_Vector t' => '', + 'object_bad_msg_notification' => '', + 'object_bad_msg_notification_param_bad_msg_id_type_long' => '', + 'object_bad_msg_notification_param_bad_msg_seqno_type_int' => '', + 'object_bad_msg_notification_param_error_code_type_int' => '', + 'object_bad_server_salt' => '', + 'object_bad_server_salt_param_bad_msg_id_type_long' => '', + 'object_bad_server_salt_param_bad_msg_seqno_type_int' => '', + 'object_bad_server_salt_param_error_code_type_int' => '', + 'object_bad_server_salt_param_new_server_salt_type_long' => '', + 'object_msg_resend_req' => '', + 'object_msg_resend_req_param_msg_ids_type_Vector t' => '', + 'object_msgs_state_req' => '', + 'object_msgs_state_req_param_msg_ids_type_Vector t' => '', + 'object_msgs_state_info' => '', + 'object_msgs_state_info_param_req_msg_id_type_long' => '', + 'object_msgs_state_info_param_info_type_bytes' => '', + 'object_msgs_all_info' => '', + 'object_msgs_all_info_param_msg_ids_type_Vector t' => '', + 'object_msgs_all_info_param_info_type_bytes' => '', + 'object_msg_detailed_info' => '', + 'object_msg_detailed_info_param_msg_id_type_long' => '', + 'object_msg_detailed_info_param_answer_msg_id_type_long' => '', + 'object_msg_detailed_info_param_bytes_type_int' => '', + 'object_msg_detailed_info_param_status_type_int' => '', + 'object_msg_new_detailed_info' => '', + 'object_msg_new_detailed_info_param_answer_msg_id_type_long' => '', + 'object_msg_new_detailed_info_param_bytes_type_int' => '', + 'object_msg_new_detailed_info_param_status_type_int' => '', + 'object_bind_auth_key_inner' => '', + 'object_bind_auth_key_inner_param_nonce_type_long' => '', + 'object_bind_auth_key_inner_param_temp_auth_key_id_type_long' => '', + 'object_bind_auth_key_inner_param_perm_auth_key_id_type_long' => '', + 'object_bind_auth_key_inner_param_temp_session_id_type_long' => '', + 'object_bind_auth_key_inner_param_expires_at_type_int' => '', + 'object_boolFalse' => '', + 'object_boolTrue' => '', + 'object_true' => '', + 'object_error' => '', + 'object_error_param_code_type_int' => '', + 'object_error_param_text_type_string' => '', + 'object_null' => '', + 'object_inputPeerEmpty' => '', + 'object_inputPeerSelf' => '', + 'object_inputPeerChat' => '', + 'object_inputPeerChat_param_chat_id_type_int' => '', + 'object_inputPeerUser' => '', + 'object_inputPeerUser_param_user_id_type_int' => '', + 'object_inputPeerUser_param_access_hash_type_long' => '', + 'object_inputPeerChannel' => '', + 'object_inputPeerChannel_param_channel_id_type_int' => '', + 'object_inputPeerChannel_param_access_hash_type_long' => '', + 'object_inputUserEmpty' => '', + 'object_inputUserSelf' => '', + 'object_inputUser' => '', + 'object_inputUser_param_user_id_type_int' => '', + 'object_inputUser_param_access_hash_type_long' => '', + 'object_inputPhoneContact' => '', + 'object_inputPhoneContact_param_client_id_type_long' => '', + 'object_inputPhoneContact_param_phone_type_string' => '', + 'object_inputPhoneContact_param_first_name_type_string' => '', + 'object_inputPhoneContact_param_last_name_type_string' => '', + 'object_inputFile' => '', + 'object_inputFile_param_id_type_long' => '', + 'object_inputFile_param_parts_type_int' => '', + 'object_inputFile_param_name_type_string' => '', + 'object_inputFile_param_md5_checksum_type_string' => '', + 'object_inputFileBig' => '', + 'object_inputFileBig_param_id_type_long' => '', + 'object_inputFileBig_param_parts_type_int' => '', + 'object_inputFileBig_param_name_type_string' => '', + 'object_inputMediaEmpty' => '', + 'object_inputMediaUploadedPhoto' => '', + 'object_inputMediaUploadedPhoto_param_file_type_InputFile' => '', + 'object_inputMediaUploadedPhoto_param_stickers_type_Vector t' => '', + 'object_inputMediaUploadedPhoto_param_ttl_seconds_type_int' => '', + 'object_inputMediaPhoto' => '', + 'object_inputMediaPhoto_param_id_type_InputPhoto' => '', + 'object_inputMediaPhoto_param_ttl_seconds_type_int' => '', + 'object_inputMediaGeoPoint' => '', + 'object_inputMediaGeoPoint_param_geo_point_type_InputGeoPoint' => '', + 'object_inputMediaContact' => '', + 'object_inputMediaContact_param_phone_number_type_string' => '', + 'object_inputMediaContact_param_first_name_type_string' => '', + 'object_inputMediaContact_param_last_name_type_string' => '', + 'object_inputMediaUploadedDocument' => '', + 'object_inputMediaUploadedDocument_param_nosound_video_type_true' => '', + 'object_inputMediaUploadedDocument_param_file_type_InputFile' => '', + 'object_inputMediaUploadedDocument_param_thumb_type_InputFile' => '', + 'object_inputMediaUploadedDocument_param_mime_type_type_string' => '', + 'object_inputMediaUploadedDocument_param_attributes_type_Vector t' => '', + 'object_inputMediaUploadedDocument_param_stickers_type_Vector t' => '', + 'object_inputMediaUploadedDocument_param_ttl_seconds_type_int' => '', + 'object_inputMediaDocument' => '', + 'object_inputMediaDocument_param_id_type_InputDocument' => '', + 'object_inputMediaDocument_param_ttl_seconds_type_int' => '', + 'object_inputMediaVenue' => '', + 'object_inputMediaVenue_param_geo_point_type_InputGeoPoint' => '', + 'object_inputMediaVenue_param_title_type_string' => '', + 'object_inputMediaVenue_param_address_type_string' => '', + 'object_inputMediaVenue_param_provider_type_string' => '', + 'object_inputMediaVenue_param_venue_id_type_string' => '', + 'object_inputMediaVenue_param_venue_type_type_string' => '', + 'object_inputMediaGifExternal' => '', + 'object_inputMediaGifExternal_param_url_type_string' => '', + 'object_inputMediaGifExternal_param_q_type_string' => '', + 'object_inputMediaPhotoExternal' => '', + 'object_inputMediaPhotoExternal_param_url_type_string' => '', + 'object_inputMediaPhotoExternal_param_ttl_seconds_type_int' => '', + 'object_inputMediaDocumentExternal' => '', + 'object_inputMediaDocumentExternal_param_url_type_string' => '', + 'object_inputMediaDocumentExternal_param_ttl_seconds_type_int' => '', + 'object_inputMediaGame' => '', + 'object_inputMediaGame_param_id_type_InputGame' => '', + 'object_inputMediaInvoice' => '', + 'object_inputMediaInvoice_param_title_type_string' => '', + 'object_inputMediaInvoice_param_description_type_string' => '', + 'object_inputMediaInvoice_param_photo_type_InputWebDocument' => '', + 'object_inputMediaInvoice_param_invoice_type_Invoice' => '', + 'object_inputMediaInvoice_param_payload_type_bytes' => '', + 'object_inputMediaInvoice_param_provider_type_string' => '', + 'object_inputMediaInvoice_param_provider_data_type_DataJSON' => '', + 'object_inputMediaInvoice_param_start_param_type_string' => '', + 'object_inputMediaGeoLive' => '', + 'object_inputMediaGeoLive_param_geo_point_type_InputGeoPoint' => '', + 'object_inputMediaGeoLive_param_period_type_int' => '', + 'object_inputChatPhotoEmpty' => '', + 'object_inputChatUploadedPhoto' => '', + 'object_inputChatUploadedPhoto_param_file_type_InputFile' => '', + 'object_inputChatPhoto' => '', + 'object_inputChatPhoto_param_id_type_InputPhoto' => '', + 'object_inputGeoPointEmpty' => '', + 'object_inputGeoPoint' => '', + 'object_inputGeoPoint_param_lat_type_double' => '', + 'object_inputGeoPoint_param_long_type_double' => '', + 'object_inputPhotoEmpty' => '', + 'object_inputPhoto' => '', + 'object_inputPhoto_param_id_type_long' => '', + 'object_inputPhoto_param_access_hash_type_long' => '', + 'object_inputFileLocation' => '', + 'object_inputFileLocation_param_volume_id_type_long' => '', + 'object_inputFileLocation_param_local_id_type_int' => '', + 'object_inputFileLocation_param_secret_type_long' => '', + 'object_inputEncryptedFileLocation' => '', + 'object_inputEncryptedFileLocation_param_id_type_long' => '', + 'object_inputEncryptedFileLocation_param_access_hash_type_long' => '', + 'object_inputDocumentFileLocation' => '', + 'object_inputDocumentFileLocation_param_id_type_long' => '', + 'object_inputDocumentFileLocation_param_access_hash_type_long' => '', + 'object_inputDocumentFileLocation_param_version_type_int' => '', + 'object_inputAppEvent' => '', + 'object_inputAppEvent_param_time_type_double' => '', + 'object_inputAppEvent_param_type_type_string' => '', + 'object_inputAppEvent_param_peer_type_long' => '', + 'object_inputAppEvent_param_data_type_string' => '', + 'object_peerUser' => '', + 'object_peerUser_param_user_id_type_int' => '', + 'object_peerChat' => '', + 'object_peerChat_param_chat_id_type_int' => '', + 'object_peerChannel' => '', + 'object_peerChannel_param_channel_id_type_int' => '', + 'object_storage.fileUnknown' => '', + 'object_storage.filePartial' => '', + 'object_storage.fileJpeg' => '', + 'object_storage.fileGif' => '', + 'object_storage.filePng' => '', + 'object_storage.filePdf' => '', + 'object_storage.fileMp3' => '', + 'object_storage.fileMov' => '', + 'object_storage.fileMp4' => '', + 'object_storage.fileWebp' => '', + 'object_fileLocationUnavailable' => '', + 'object_fileLocationUnavailable_param_volume_id_type_long' => '', + 'object_fileLocationUnavailable_param_local_id_type_int' => '', + 'object_fileLocationUnavailable_param_secret_type_long' => '', + 'object_fileLocation' => '', + 'object_fileLocation_param_dc_id_type_int' => '', + 'object_fileLocation_param_volume_id_type_long' => '', + 'object_fileLocation_param_local_id_type_int' => '', + 'object_fileLocation_param_secret_type_long' => '', + 'object_userEmpty' => '', + 'object_userEmpty_param_id_type_int' => '', + 'object_user' => '', + 'object_user_param_self_type_true' => '', + 'object_user_param_contact_type_true' => '', + 'object_user_param_mutual_contact_type_true' => '', + 'object_user_param_deleted_type_true' => '', + 'object_user_param_bot_type_true' => '', + 'object_user_param_bot_chat_history_type_true' => '', + 'object_user_param_bot_nochats_type_true' => '', + 'object_user_param_verified_type_true' => '', + 'object_user_param_restricted_type_true' => '', + 'object_user_param_min_type_true' => '', + 'object_user_param_bot_inline_geo_type_true' => '', + 'object_user_param_id_type_int' => '', + 'object_user_param_access_hash_type_long' => '', + 'object_user_param_first_name_type_string' => '', + 'object_user_param_last_name_type_string' => '', + 'object_user_param_username_type_string' => '', + 'object_user_param_phone_type_string' => '', + 'object_user_param_photo_type_UserProfilePhoto' => '', + 'object_user_param_status_type_UserStatus' => '', + 'object_user_param_bot_info_version_type_int' => '', + 'object_user_param_restriction_reason_type_string' => '', + 'object_user_param_bot_inline_placeholder_type_string' => '', + 'object_user_param_lang_code_type_string' => '', + 'object_userProfilePhotoEmpty' => '', + 'object_userProfilePhoto' => '', + 'object_userProfilePhoto_param_photo_id_type_long' => '', + 'object_userProfilePhoto_param_photo_small_type_FileLocation' => '', + 'object_userProfilePhoto_param_photo_big_type_FileLocation' => '', + 'object_chatEmpty' => '', + 'object_chatEmpty_param_id_type_int' => '', + 'object_chat' => '', + 'object_chat_param_creator_type_true' => '', + 'object_chat_param_kicked_type_true' => '', + 'object_chat_param_left_type_true' => '', + 'object_chat_param_admins_enabled_type_true' => '', + 'object_chat_param_admin_type_true' => '', + 'object_chat_param_deactivated_type_true' => '', + 'object_chat_param_id_type_int' => '', + 'object_chat_param_title_type_string' => '', + 'object_chat_param_photo_type_ChatPhoto' => '', + 'object_chat_param_participants_count_type_int' => '', + 'object_chat_param_date_type_int' => '', + 'object_chat_param_version_type_int' => '', + 'object_chat_param_migrated_to_type_InputChannel' => '', + 'object_chatForbidden' => '', + 'object_chatForbidden_param_id_type_int' => '', + 'object_chatForbidden_param_title_type_string' => '', + 'object_channel' => '', + 'object_channel_param_creator_type_true' => '', + 'object_channel_param_left_type_true' => '', + 'object_channel_param_editor_type_true' => '', + 'object_channel_param_broadcast_type_true' => '', + 'object_channel_param_verified_type_true' => '', + 'object_channel_param_megagroup_type_true' => '', + 'object_channel_param_restricted_type_true' => '', + 'object_channel_param_democracy_type_true' => '', + 'object_channel_param_signatures_type_true' => '', + 'object_channel_param_min_type_true' => '', + 'object_channel_param_id_type_int' => '', + 'object_channel_param_access_hash_type_long' => '', + 'object_channel_param_title_type_string' => '', + 'object_channel_param_username_type_string' => '', + 'object_channel_param_photo_type_ChatPhoto' => '', + 'object_channel_param_date_type_int' => '', + 'object_channel_param_version_type_int' => '', + 'object_channel_param_restriction_reason_type_string' => '', + 'object_channel_param_admin_rights_type_ChannelAdminRights' => '', + 'object_channel_param_banned_rights_type_ChannelBannedRights' => '', + 'object_channel_param_participants_count_type_int' => '', + 'object_channelForbidden' => '', + 'object_channelForbidden_param_broadcast_type_true' => '', + 'object_channelForbidden_param_megagroup_type_true' => '', + 'object_channelForbidden_param_id_type_int' => '', + 'object_channelForbidden_param_access_hash_type_long' => '', + 'object_channelForbidden_param_title_type_string' => '', + 'object_channelForbidden_param_until_date_type_int' => '', + 'object_chatFull' => '', + 'object_chatFull_param_id_type_int' => '', + 'object_chatFull_param_participants_type_ChatParticipants' => '', + 'object_chatFull_param_chat_photo_type_Photo' => '', + 'object_chatFull_param_notify_settings_type_PeerNotifySettings' => '', + 'object_chatFull_param_exported_invite_type_ExportedChatInvite' => '', + 'object_chatFull_param_bot_info_type_Vector t' => '', + 'object_channelFull' => '', + 'object_channelFull_param_can_view_participants_type_true' => '', + 'object_channelFull_param_can_set_username_type_true' => '', + 'object_channelFull_param_can_set_stickers_type_true' => '', + 'object_channelFull_param_hidden_prehistory_type_true' => '', + 'object_channelFull_param_id_type_int' => '', + 'object_channelFull_param_about_type_string' => '', + 'object_channelFull_param_participants_count_type_int' => '', + 'object_channelFull_param_admins_count_type_int' => '', + 'object_channelFull_param_kicked_count_type_int' => '', + 'object_channelFull_param_banned_count_type_int' => '', + 'object_channelFull_param_read_inbox_max_id_type_int' => '', + 'object_channelFull_param_read_outbox_max_id_type_int' => '', + 'object_channelFull_param_unread_count_type_int' => '', + 'object_channelFull_param_chat_photo_type_Photo' => '', + 'object_channelFull_param_notify_settings_type_PeerNotifySettings' => '', + 'object_channelFull_param_exported_invite_type_ExportedChatInvite' => '', + 'object_channelFull_param_bot_info_type_Vector t' => '', + 'object_channelFull_param_migrated_from_chat_id_type_int' => '', + 'object_channelFull_param_migrated_from_max_id_type_int' => '', + 'object_channelFull_param_pinned_msg_id_type_int' => '', + 'object_channelFull_param_stickerset_type_StickerSet' => '', + 'object_channelFull_param_available_min_id_type_int' => '', + 'object_chatParticipant' => '', + 'object_chatParticipant_param_user_id_type_int' => '', + 'object_chatParticipant_param_inviter_id_type_int' => '', + 'object_chatParticipant_param_date_type_int' => '', + 'object_chatParticipantCreator' => '', + 'object_chatParticipantCreator_param_user_id_type_int' => '', + 'object_chatParticipantAdmin' => '', + 'object_chatParticipantAdmin_param_user_id_type_int' => '', + 'object_chatParticipantAdmin_param_inviter_id_type_int' => '', + 'object_chatParticipantAdmin_param_date_type_int' => '', + 'object_chatParticipantsForbidden' => '', + 'object_chatParticipantsForbidden_param_chat_id_type_int' => '', + 'object_chatParticipantsForbidden_param_self_participant_type_ChatParticipant' => '', + 'object_chatParticipants' => '', + 'object_chatParticipants_param_chat_id_type_int' => '', + 'object_chatParticipants_param_participants_type_Vector t' => '', + 'object_chatParticipants_param_version_type_int' => '', + 'object_chatPhotoEmpty' => '', + 'object_chatPhoto' => '', + 'object_chatPhoto_param_photo_small_type_FileLocation' => '', + 'object_chatPhoto_param_photo_big_type_FileLocation' => '', + 'object_messageEmpty' => '', + 'object_messageEmpty_param_id_type_int' => '', + 'object_message' => '', + 'object_message_param_out_type_true' => '', + 'object_message_param_mentioned_type_true' => '', + 'object_message_param_media_unread_type_true' => '', + 'object_message_param_silent_type_true' => '', + 'object_message_param_post_type_true' => '', + 'object_message_param_id_type_int' => '', + 'object_message_param_from_id_type_int' => '', + 'object_message_param_to_id_type_Peer' => '', + 'object_message_param_fwd_from_type_MessageFwdHeader' => '', + 'object_message_param_via_bot_id_type_int' => '', + 'object_message_param_reply_to_msg_id_type_int' => '', + 'object_message_param_date_type_int' => '', + 'object_message_param_message_type_string' => '', + 'object_message_param_media_type_MessageMedia' => '', + 'object_message_param_reply_markup_type_ReplyMarkup' => '', + 'object_message_param_entities_type_Vector t' => '', + 'object_message_param_views_type_int' => '', + 'object_message_param_edit_date_type_int' => '', + 'object_message_param_post_author_type_string' => '', + 'object_message_param_grouped_id_type_long' => '', + 'object_messageService' => '', + 'object_messageService_param_out_type_true' => '', + 'object_messageService_param_mentioned_type_true' => '', + 'object_messageService_param_media_unread_type_true' => '', + 'object_messageService_param_silent_type_true' => '', + 'object_messageService_param_post_type_true' => '', + 'object_messageService_param_id_type_int' => '', + 'object_messageService_param_from_id_type_int' => '', + 'object_messageService_param_to_id_type_Peer' => '', + 'object_messageService_param_reply_to_msg_id_type_int' => '', + 'object_messageService_param_date_type_int' => '', + 'object_messageService_param_action_type_MessageAction' => '', + 'object_messageMediaEmpty' => '', + 'object_messageMediaPhoto' => '', + 'object_messageMediaPhoto_param_photo_type_Photo' => '', + 'object_messageMediaPhoto_param_ttl_seconds_type_int' => '', + 'object_messageMediaGeo' => '', + 'object_messageMediaGeo_param_geo_type_GeoPoint' => '', + 'object_messageMediaContact' => '', + 'object_messageMediaContact_param_phone_number_type_string' => '', + 'object_messageMediaContact_param_first_name_type_string' => '', + 'object_messageMediaContact_param_last_name_type_string' => '', + 'object_messageMediaContact_param_user_id_type_int' => '', + 'object_messageMediaUnsupported' => '', + 'object_messageMediaDocument' => '', + 'object_messageMediaDocument_param_document_type_Document' => '', + 'object_messageMediaDocument_param_ttl_seconds_type_int' => '', + 'object_messageMediaWebPage' => '', + 'object_messageMediaWebPage_param_webpage_type_WebPage' => '', + 'object_messageMediaVenue' => '', + 'object_messageMediaVenue_param_geo_type_GeoPoint' => '', + 'object_messageMediaVenue_param_title_type_string' => '', + 'object_messageMediaVenue_param_address_type_string' => '', + 'object_messageMediaVenue_param_provider_type_string' => '', + 'object_messageMediaVenue_param_venue_id_type_string' => '', + 'object_messageMediaVenue_param_venue_type_type_string' => '', + 'object_messageMediaGame' => '', + 'object_messageMediaGame_param_game_type_Game' => '', + 'object_messageMediaInvoice' => '', + 'object_messageMediaInvoice_param_shipping_address_requested_type_true' => '', + 'object_messageMediaInvoice_param_test_type_true' => '', + 'object_messageMediaInvoice_param_title_type_string' => '', + 'object_messageMediaInvoice_param_description_type_string' => '', + 'object_messageMediaInvoice_param_photo_type_WebDocument' => '', + 'object_messageMediaInvoice_param_receipt_msg_id_type_int' => '', + 'object_messageMediaInvoice_param_currency_type_string' => '', + 'object_messageMediaInvoice_param_total_amount_type_long' => '', + 'object_messageMediaInvoice_param_start_param_type_string' => '', + 'object_messageMediaGeoLive' => '', + 'object_messageMediaGeoLive_param_geo_type_GeoPoint' => '', + 'object_messageMediaGeoLive_param_period_type_int' => '', + 'object_messageActionEmpty' => '', + 'object_messageActionChatCreate' => '', + 'object_messageActionChatCreate_param_title_type_string' => '', + 'object_messageActionChatCreate_param_users_type_Vector t' => '', + 'object_messageActionChatEditTitle' => '', + 'object_messageActionChatEditTitle_param_title_type_string' => '', + 'object_messageActionChatEditPhoto' => '', + 'object_messageActionChatEditPhoto_param_photo_type_Photo' => '', + 'object_messageActionChatDeletePhoto' => '', + 'object_messageActionChatAddUser' => '', + 'object_messageActionChatAddUser_param_users_type_Vector t' => '', + 'object_messageActionChatDeleteUser' => '', + 'object_messageActionChatDeleteUser_param_user_id_type_int' => '', + 'object_messageActionChatJoinedByLink' => '', + 'object_messageActionChatJoinedByLink_param_inviter_id_type_int' => '', + 'object_messageActionChannelCreate' => '', + 'object_messageActionChannelCreate_param_title_type_string' => '', + 'object_messageActionChatMigrateTo' => '', + 'object_messageActionChatMigrateTo_param_channel_id_type_int' => '', + 'object_messageActionChannelMigrateFrom' => '', + 'object_messageActionChannelMigrateFrom_param_title_type_string' => '', + 'object_messageActionChannelMigrateFrom_param_chat_id_type_int' => '', + 'object_messageActionPinMessage' => '', + 'object_messageActionHistoryClear' => '', + 'object_messageActionGameScore' => '', + 'object_messageActionGameScore_param_game_id_type_long' => '', + 'object_messageActionGameScore_param_score_type_int' => '', + 'object_messageActionPaymentSentMe' => '', + 'object_messageActionPaymentSentMe_param_currency_type_string' => '', + 'object_messageActionPaymentSentMe_param_total_amount_type_long' => '', + 'object_messageActionPaymentSentMe_param_payload_type_bytes' => '', + 'object_messageActionPaymentSentMe_param_info_type_PaymentRequestedInfo' => '', + 'object_messageActionPaymentSentMe_param_shipping_option_id_type_string' => '', + 'object_messageActionPaymentSentMe_param_charge_type_PaymentCharge' => '', + 'object_messageActionPaymentSent' => '', + 'object_messageActionPaymentSent_param_currency_type_string' => '', + 'object_messageActionPaymentSent_param_total_amount_type_long' => '', + 'object_messageActionPhoneCall' => '', + 'object_messageActionPhoneCall_param_call_id_type_long' => '', + 'object_messageActionPhoneCall_param_reason_type_PhoneCallDiscardReason' => '', + 'object_messageActionPhoneCall_param_duration_type_int' => '', + 'object_messageActionScreenshotTaken' => '', + 'object_messageActionCustomAction' => '', + 'object_messageActionCustomAction_param_message_type_string' => '', + 'object_dialog' => '', + 'object_dialog_param_pinned_type_true' => '', + 'object_dialog_param_peer_type_Peer' => '', + 'object_dialog_param_top_message_type_int' => '', + 'object_dialog_param_read_inbox_max_id_type_int' => '', + 'object_dialog_param_read_outbox_max_id_type_int' => '', + 'object_dialog_param_unread_count_type_int' => '', + 'object_dialog_param_unread_mentions_count_type_int' => '', + 'object_dialog_param_notify_settings_type_PeerNotifySettings' => '', + 'object_dialog_param_pts_type_int' => '', + 'object_dialog_param_draft_type_DraftMessage' => '', + 'object_photoEmpty' => '', + 'object_photoEmpty_param_id_type_long' => '', + 'object_photo' => '', + 'object_photo_param_has_stickers_type_true' => '', + 'object_photo_param_id_type_long' => '', + 'object_photo_param_access_hash_type_long' => '', + 'object_photo_param_date_type_int' => '', + 'object_photo_param_sizes_type_Vector t' => '', + 'object_photoSizeEmpty' => '', + 'object_photoSizeEmpty_param_type_type_string' => '', + 'object_photoSize' => '', + 'object_photoSize_param_type_type_string' => '', + 'object_photoSize_param_location_type_FileLocation' => '', + 'object_photoSize_param_w_type_int' => '', + 'object_photoSize_param_h_type_int' => '', + 'object_photoSize_param_size_type_int' => '', + 'object_photoCachedSize' => '', + 'object_photoCachedSize_param_type_type_string' => '', + 'object_photoCachedSize_param_location_type_FileLocation' => '', + 'object_photoCachedSize_param_w_type_int' => '', + 'object_photoCachedSize_param_h_type_int' => '', + 'object_photoCachedSize_param_bytes_type_bytes' => '', + 'object_geoPointEmpty' => '', + 'object_geoPoint' => '', + 'object_geoPoint_param_long_type_double' => '', + 'object_geoPoint_param_lat_type_double' => '', + 'object_auth.checkedPhone' => '', + 'object_auth.checkedPhone_param_phone_registered_type_Bool' => '', + 'object_auth.sentCode' => '', + 'object_auth.sentCode_param_phone_registered_type_true' => '', + 'object_auth.sentCode_param_type_type_auth.SentCodeType' => '', + 'object_auth.sentCode_param_phone_code_hash_type_string' => '', + 'object_auth.sentCode_param_next_type_type_auth.CodeType' => '', + 'object_auth.sentCode_param_timeout_type_int' => '', + 'object_auth.authorization' => '', + 'object_auth.authorization_param_tmp_sessions_type_int' => '', + 'object_auth.authorization_param_user_type_User' => '', + 'object_auth.exportedAuthorization' => '', + 'object_auth.exportedAuthorization_param_id_type_int' => '', + 'object_auth.exportedAuthorization_param_bytes_type_bytes' => '', + 'object_inputNotifyPeer' => '', + 'object_inputNotifyPeer_param_peer_type_InputPeer' => '', + 'object_inputNotifyUsers' => '', + 'object_inputNotifyChats' => '', + 'object_inputNotifyAll' => '', + 'object_inputPeerNotifyEventsEmpty' => '', + 'object_inputPeerNotifyEventsAll' => '', + 'object_inputPeerNotifySettings' => '', + 'object_inputPeerNotifySettings_param_show_previews_type_true' => '', + 'object_inputPeerNotifySettings_param_silent_type_true' => '', + 'object_inputPeerNotifySettings_param_mute_until_type_int' => '', + 'object_inputPeerNotifySettings_param_sound_type_string' => '', + 'object_peerNotifyEventsEmpty' => '', + 'object_peerNotifyEventsAll' => '', + 'object_peerNotifySettingsEmpty' => '', + 'object_peerNotifySettings' => '', + 'object_peerNotifySettings_param_show_previews_type_true' => '', + 'object_peerNotifySettings_param_silent_type_true' => '', + 'object_peerNotifySettings_param_mute_until_type_int' => '', + 'object_peerNotifySettings_param_sound_type_string' => '', + 'object_peerSettings' => '', + 'object_peerSettings_param_report_spam_type_true' => '', + 'object_wallPaper' => '', + 'object_wallPaper_param_id_type_int' => '', + 'object_wallPaper_param_title_type_string' => '', + 'object_wallPaper_param_sizes_type_Vector t' => '', + 'object_wallPaper_param_color_type_int' => '', + 'object_wallPaperSolid' => '', + 'object_wallPaperSolid_param_id_type_int' => '', + 'object_wallPaperSolid_param_title_type_string' => '', + 'object_wallPaperSolid_param_bg_color_type_int' => '', + 'object_wallPaperSolid_param_color_type_int' => '', + 'object_inputReportReasonSpam' => '', + 'object_inputReportReasonViolence' => '', + 'object_inputReportReasonPornography' => '', + 'object_inputReportReasonOther' => '', + 'object_inputReportReasonOther_param_text_type_string' => '', + 'object_userFull' => '', + 'object_userFull_param_blocked_type_true' => '', + 'object_userFull_param_phone_calls_available_type_true' => '', + 'object_userFull_param_phone_calls_private_type_true' => '', + 'object_userFull_param_user_type_User' => '', + 'object_userFull_param_about_type_string' => '', + 'object_userFull_param_link_type_contacts.Link' => '', + 'object_userFull_param_profile_photo_type_Photo' => '', + 'object_userFull_param_notify_settings_type_PeerNotifySettings' => '', + 'object_userFull_param_bot_info_type_BotInfo' => '', + 'object_userFull_param_common_chats_count_type_int' => '', + 'object_contact' => '', + 'object_contact_param_user_id_type_int' => '', + 'object_contact_param_mutual_type_Bool' => '', + 'object_importedContact' => '', + 'object_importedContact_param_user_id_type_int' => '', + 'object_importedContact_param_client_id_type_long' => '', + 'object_contactBlocked' => '', + 'object_contactBlocked_param_user_id_type_int' => '', + 'object_contactBlocked_param_date_type_int' => '', + 'object_contactStatus' => '', + 'object_contactStatus_param_user_id_type_int' => '', + 'object_contactStatus_param_status_type_UserStatus' => '', + 'object_contacts.link' => '', + 'object_contacts.link_param_my_link_type_ContactLink' => '', + 'object_contacts.link_param_foreign_link_type_ContactLink' => '', + 'object_contacts.link_param_user_type_User' => '', + 'object_contacts.contactsNotModified' => '', + 'object_contacts.contacts' => '', + 'object_contacts.contacts_param_contacts_type_Vector t' => '', + 'object_contacts.contacts_param_saved_count_type_int' => '', + 'object_contacts.contacts_param_users_type_Vector t' => '', + 'object_contacts.importedContacts' => '', + 'object_contacts.importedContacts_param_imported_type_Vector t' => '', + 'object_contacts.importedContacts_param_popular_invites_type_Vector t' => '', + 'object_contacts.importedContacts_param_retry_contacts_type_Vector t' => '', + 'object_contacts.importedContacts_param_users_type_Vector t' => '', + 'object_contacts.blocked' => '', + 'object_contacts.blocked_param_blocked_type_Vector t' => '', + 'object_contacts.blocked_param_users_type_Vector t' => '', + 'object_contacts.blockedSlice' => '', + 'object_contacts.blockedSlice_param_count_type_int' => '', + 'object_contacts.blockedSlice_param_blocked_type_Vector t' => '', + 'object_contacts.blockedSlice_param_users_type_Vector t' => '', + 'object_messages.dialogs' => '', + 'object_messages.dialogs_param_dialogs_type_Vector t' => '', + 'object_messages.dialogs_param_messages_type_Vector t' => '', + 'object_messages.dialogs_param_chats_type_Vector t' => '', + 'object_messages.dialogs_param_users_type_Vector t' => '', + 'object_messages.dialogsSlice' => '', + 'object_messages.dialogsSlice_param_count_type_int' => '', + 'object_messages.dialogsSlice_param_dialogs_type_Vector t' => '', + 'object_messages.dialogsSlice_param_messages_type_Vector t' => '', + 'object_messages.dialogsSlice_param_chats_type_Vector t' => '', + 'object_messages.dialogsSlice_param_users_type_Vector t' => '', + 'object_messages.messages' => '', + 'object_messages.messages_param_messages_type_Vector t' => '', + 'object_messages.messages_param_chats_type_Vector t' => '', + 'object_messages.messages_param_users_type_Vector t' => '', + 'object_messages.messagesSlice' => '', + 'object_messages.messagesSlice_param_count_type_int' => '', + 'object_messages.messagesSlice_param_messages_type_Vector t' => '', + 'object_messages.messagesSlice_param_chats_type_Vector t' => '', + 'object_messages.messagesSlice_param_users_type_Vector t' => '', + 'object_messages.channelMessages' => '', + 'object_messages.channelMessages_param_pts_type_int' => '', + 'object_messages.channelMessages_param_count_type_int' => '', + 'object_messages.channelMessages_param_messages_type_Vector t' => '', + 'object_messages.channelMessages_param_chats_type_Vector t' => '', + 'object_messages.channelMessages_param_users_type_Vector t' => '', + 'object_messages.messagesNotModified' => '', + 'object_messages.messagesNotModified_param_count_type_int' => '', + 'object_messages.chats' => '', + 'object_messages.chats_param_chats_type_Vector t' => '', + 'object_messages.chatsSlice' => '', + 'object_messages.chatsSlice_param_count_type_int' => '', + 'object_messages.chatsSlice_param_chats_type_Vector t' => '', + 'object_messages.chatFull' => '', + 'object_messages.chatFull_param_full_chat_type_ChatFull' => '', + 'object_messages.chatFull_param_chats_type_Vector t' => '', + 'object_messages.chatFull_param_users_type_Vector t' => '', + 'object_messages.affectedHistory' => '', + 'object_messages.affectedHistory_param_pts_type_int' => '', + 'object_messages.affectedHistory_param_pts_count_type_int' => '', + 'object_messages.affectedHistory_param_offset_type_int' => '', + 'object_inputMessagesFilterEmpty' => '', + 'object_inputMessagesFilterPhotos' => '', + 'object_inputMessagesFilterVideo' => '', + 'object_inputMessagesFilterPhotoVideo' => '', + 'object_inputMessagesFilterDocument' => '', + 'object_inputMessagesFilterUrl' => '', + 'object_inputMessagesFilterGif' => '', + 'object_inputMessagesFilterVoice' => '', + 'object_inputMessagesFilterMusic' => '', + 'object_inputMessagesFilterChatPhotos' => '', + 'object_inputMessagesFilterPhoneCalls' => '', + 'object_inputMessagesFilterPhoneCalls_param_missed_type_true' => '', + 'object_inputMessagesFilterRoundVoice' => '', + 'object_inputMessagesFilterRoundVideo' => '', + 'object_inputMessagesFilterMyMentions' => '', + 'object_inputMessagesFilterGeo' => '', + 'object_inputMessagesFilterContacts' => '', + 'object_updateNewMessage' => '', + 'object_updateNewMessage_param_message_type_Message' => '', + 'object_updateNewMessage_param_pts_type_int' => '', + 'object_updateNewMessage_param_pts_count_type_int' => '', + 'object_updateMessageID' => '', + 'object_updateMessageID_param_id_type_int' => '', + 'object_updateDeleteMessages' => '', + 'object_updateDeleteMessages_param_messages_type_Vector t' => '', + 'object_updateDeleteMessages_param_pts_type_int' => '', + 'object_updateDeleteMessages_param_pts_count_type_int' => '', + 'object_updateUserTyping' => '', + 'object_updateUserTyping_param_user_id_type_int' => '', + 'object_updateUserTyping_param_action_type_SendMessageAction' => '', + 'object_updateChatUserTyping' => '', + 'object_updateChatUserTyping_param_chat_id_type_int' => '', + 'object_updateChatUserTyping_param_user_id_type_int' => '', + 'object_updateChatUserTyping_param_action_type_SendMessageAction' => '', + 'object_updateChatParticipants' => '', + 'object_updateChatParticipants_param_participants_type_ChatParticipants' => '', + 'object_updateUserName' => '', + 'object_updateUserName_param_user_id_type_int' => '', + 'object_updateUserName_param_first_name_type_string' => '', + 'object_updateUserName_param_last_name_type_string' => '', + 'object_updateUserName_param_username_type_string' => '', + 'object_updateUserPhoto' => '', + 'object_updateUserPhoto_param_user_id_type_int' => '', + 'object_updateUserPhoto_param_date_type_int' => '', + 'object_updateUserPhoto_param_photo_type_UserProfilePhoto' => '', + 'object_updateUserPhoto_param_previous_type_Bool' => '', + 'object_updateContactRegistered' => '', + 'object_updateContactRegistered_param_user_id_type_int' => '', + 'object_updateContactRegistered_param_date_type_int' => '', + 'object_updateContactLink' => '', + 'object_updateContactLink_param_user_id_type_int' => '', + 'object_updateContactLink_param_my_link_type_ContactLink' => '', + 'object_updateContactLink_param_foreign_link_type_ContactLink' => '', + 'object_updateNewEncryptedMessage' => '', + 'object_updateNewEncryptedMessage_param_message_type_EncryptedMessage' => '', + 'object_updateNewEncryptedMessage_param_qts_type_int' => '', + 'object_updateEncryptedChatTyping' => '', + 'object_updateEncryptedChatTyping_param_chat_id_type_int' => '', + 'object_updateEncryption' => '', + 'object_updateEncryption_param_chat_type_EncryptedChat' => '', + 'object_updateEncryption_param_date_type_int' => '', + 'object_updateEncryptedMessagesRead' => '', + 'object_updateEncryptedMessagesRead_param_chat_id_type_int' => '', + 'object_updateEncryptedMessagesRead_param_max_date_type_int' => '', + 'object_updateEncryptedMessagesRead_param_date_type_int' => '', + 'object_updateChatParticipantAdd' => '', + 'object_updateChatParticipantAdd_param_chat_id_type_int' => '', + 'object_updateChatParticipantAdd_param_user_id_type_int' => '', + 'object_updateChatParticipantAdd_param_inviter_id_type_int' => '', + 'object_updateChatParticipantAdd_param_date_type_int' => '', + 'object_updateChatParticipantAdd_param_version_type_int' => '', + 'object_updateChatParticipantDelete' => '', + 'object_updateChatParticipantDelete_param_chat_id_type_int' => '', + 'object_updateChatParticipantDelete_param_user_id_type_int' => '', + 'object_updateChatParticipantDelete_param_version_type_int' => '', + 'object_updateDcOptions' => '', + 'object_updateDcOptions_param_dc_options_type_Vector t' => '', + 'object_updateUserBlocked' => '', + 'object_updateUserBlocked_param_user_id_type_int' => '', + 'object_updateUserBlocked_param_blocked_type_Bool' => '', + 'object_updateNotifySettings' => '', + 'object_updateNotifySettings_param_peer_type_NotifyPeer' => '', + 'object_updateNotifySettings_param_notify_settings_type_PeerNotifySettings' => '', + 'object_updateServiceNotification' => '', + 'object_updateServiceNotification_param_popup_type_true' => '', + 'object_updateServiceNotification_param_inbox_date_type_int' => '', + 'object_updateServiceNotification_param_type_type_string' => '', + 'object_updateServiceNotification_param_message_type_string' => '', + 'object_updateServiceNotification_param_media_type_MessageMedia' => '', + 'object_updateServiceNotification_param_entities_type_Vector t' => '', + 'object_updatePrivacy' => '', + 'object_updatePrivacy_param_key_type_PrivacyKey' => '', + 'object_updatePrivacy_param_rules_type_Vector t' => '', + 'object_updateUserPhone' => '', + 'object_updateUserPhone_param_user_id_type_int' => '', + 'object_updateUserPhone_param_phone_type_string' => '', + 'object_updateReadHistoryInbox' => '', + 'object_updateReadHistoryInbox_param_peer_type_Peer' => '', + 'object_updateReadHistoryInbox_param_max_id_type_int' => '', + 'object_updateReadHistoryInbox_param_pts_type_int' => '', + 'object_updateReadHistoryInbox_param_pts_count_type_int' => '', + 'object_updateReadHistoryOutbox' => '', + 'object_updateReadHistoryOutbox_param_peer_type_Peer' => '', + 'object_updateReadHistoryOutbox_param_max_id_type_int' => '', + 'object_updateReadHistoryOutbox_param_pts_type_int' => '', + 'object_updateReadHistoryOutbox_param_pts_count_type_int' => '', + 'object_updateWebPage' => '', + 'object_updateWebPage_param_webpage_type_WebPage' => '', + 'object_updateWebPage_param_pts_type_int' => '', + 'object_updateWebPage_param_pts_count_type_int' => '', + 'object_updateReadMessagesContents' => '', + 'object_updateReadMessagesContents_param_messages_type_Vector t' => '', + 'object_updateReadMessagesContents_param_pts_type_int' => '', + 'object_updateReadMessagesContents_param_pts_count_type_int' => '', + 'object_updateChannelTooLong' => '', + 'object_updateChannelTooLong_param_channel_id_type_int' => '', + 'object_updateChannelTooLong_param_pts_type_int' => '', + 'object_updateChannel' => '', + 'object_updateChannel_param_channel_id_type_int' => '', + 'object_updateNewChannelMessage' => '', + 'object_updateNewChannelMessage_param_message_type_Message' => '', + 'object_updateNewChannelMessage_param_pts_type_int' => '', + 'object_updateNewChannelMessage_param_pts_count_type_int' => '', + 'object_updateReadChannelInbox' => '', + 'object_updateReadChannelInbox_param_channel_id_type_int' => '', + 'object_updateReadChannelInbox_param_max_id_type_int' => '', + 'object_updateDeleteChannelMessages' => '', + 'object_updateDeleteChannelMessages_param_channel_id_type_int' => '', + 'object_updateDeleteChannelMessages_param_messages_type_Vector t' => '', + 'object_updateDeleteChannelMessages_param_pts_type_int' => '', + 'object_updateDeleteChannelMessages_param_pts_count_type_int' => '', + 'object_updateChannelMessageViews' => '', + 'object_updateChannelMessageViews_param_channel_id_type_int' => '', + 'object_updateChannelMessageViews_param_id_type_int' => '', + 'object_updateChannelMessageViews_param_views_type_int' => '', + 'object_updateChatAdmins' => '', + 'object_updateChatAdmins_param_chat_id_type_int' => '', + 'object_updateChatAdmins_param_enabled_type_Bool' => '', + 'object_updateChatAdmins_param_version_type_int' => '', + 'object_updateChatParticipantAdmin' => '', + 'object_updateChatParticipantAdmin_param_chat_id_type_int' => '', + 'object_updateChatParticipantAdmin_param_user_id_type_int' => '', + 'object_updateChatParticipantAdmin_param_is_admin_type_Bool' => '', + 'object_updateChatParticipantAdmin_param_version_type_int' => '', + 'object_updateNewStickerSet' => '', + 'object_updateNewStickerSet_param_stickerset_type_messages.StickerSet' => '', + 'object_updateStickerSetsOrder' => '', + 'object_updateStickerSetsOrder_param_masks_type_true' => '', + 'object_updateStickerSetsOrder_param_order_type_Vector t' => '', + 'object_updateStickerSets' => '', + 'object_updateSavedGifs' => '', + 'object_updateBotInlineQuery' => '', + 'object_updateBotInlineQuery_param_query_id_type_long' => '', + 'object_updateBotInlineQuery_param_user_id_type_int' => '', + 'object_updateBotInlineQuery_param_query_type_string' => '', + 'object_updateBotInlineQuery_param_geo_type_GeoPoint' => '', + 'object_updateBotInlineQuery_param_offset_type_string' => '', + 'object_updateBotInlineSend' => '', + 'object_updateBotInlineSend_param_user_id_type_int' => '', + 'object_updateBotInlineSend_param_query_type_string' => '', + 'object_updateBotInlineSend_param_geo_type_GeoPoint' => '', + 'object_updateBotInlineSend_param_id_type_string' => '', + 'object_updateBotInlineSend_param_msg_id_type_InputBotInlineMessageID' => '', + 'object_updateEditChannelMessage' => '', + 'object_updateEditChannelMessage_param_message_type_Message' => '', + 'object_updateEditChannelMessage_param_pts_type_int' => '', + 'object_updateEditChannelMessage_param_pts_count_type_int' => '', + 'object_updateChannelPinnedMessage' => '', + 'object_updateChannelPinnedMessage_param_channel_id_type_int' => '', + 'object_updateChannelPinnedMessage_param_id_type_int' => '', + 'object_updateBotCallbackQuery' => '', + 'object_updateBotCallbackQuery_param_query_id_type_long' => '', + 'object_updateBotCallbackQuery_param_user_id_type_int' => '', + 'object_updateBotCallbackQuery_param_peer_type_Peer' => '', + 'object_updateBotCallbackQuery_param_msg_id_type_int' => '', + 'object_updateBotCallbackQuery_param_chat_instance_type_long' => '', + 'object_updateBotCallbackQuery_param_data_type_bytes' => '', + 'object_updateBotCallbackQuery_param_game_short_name_type_string' => '', + 'object_updateEditMessage' => '', + 'object_updateEditMessage_param_message_type_Message' => '', + 'object_updateEditMessage_param_pts_type_int' => '', + 'object_updateEditMessage_param_pts_count_type_int' => '', + 'object_updateInlineBotCallbackQuery' => '', + 'object_updateInlineBotCallbackQuery_param_query_id_type_long' => '', + 'object_updateInlineBotCallbackQuery_param_user_id_type_int' => '', + 'object_updateInlineBotCallbackQuery_param_msg_id_type_InputBotInlineMessageID' => '', + 'object_updateInlineBotCallbackQuery_param_chat_instance_type_long' => '', + 'object_updateInlineBotCallbackQuery_param_data_type_bytes' => '', + 'object_updateInlineBotCallbackQuery_param_game_short_name_type_string' => '', + 'object_updateReadChannelOutbox' => '', + 'object_updateReadChannelOutbox_param_channel_id_type_int' => '', + 'object_updateReadChannelOutbox_param_max_id_type_int' => '', + 'object_updateDraftMessage' => '', + 'object_updateDraftMessage_param_peer_type_Peer' => '', + 'object_updateDraftMessage_param_draft_type_DraftMessage' => '', + 'object_updateReadFeaturedStickers' => '', + 'object_updateRecentStickers' => '', + 'object_updateConfig' => '', + 'object_updatePtsChanged' => '', + 'object_updateChannelWebPage' => '', + 'object_updateChannelWebPage_param_channel_id_type_int' => '', + 'object_updateChannelWebPage_param_webpage_type_WebPage' => '', + 'object_updateChannelWebPage_param_pts_type_int' => '', + 'object_updateChannelWebPage_param_pts_count_type_int' => '', + 'object_updateDialogPinned' => '', + 'object_updateDialogPinned_param_pinned_type_true' => '', + 'object_updateDialogPinned_param_peer_type_Peer' => '', + 'object_updatePinnedDialogs' => '', + 'object_updatePinnedDialogs_param_order_type_Vector t' => '', + 'object_updateBotWebhookJSON' => '', + 'object_updateBotWebhookJSON_param_data_type_DataJSON' => '', + 'object_updateBotWebhookJSONQuery' => '', + 'object_updateBotWebhookJSONQuery_param_query_id_type_long' => '', + 'object_updateBotWebhookJSONQuery_param_data_type_DataJSON' => '', + 'object_updateBotWebhookJSONQuery_param_timeout_type_int' => '', + 'object_updateBotShippingQuery' => '', + 'object_updateBotShippingQuery_param_query_id_type_long' => '', + 'object_updateBotShippingQuery_param_user_id_type_int' => '', + 'object_updateBotShippingQuery_param_payload_type_bytes' => '', + 'object_updateBotShippingQuery_param_shipping_address_type_PostAddress' => '', + 'object_updateBotPrecheckoutQuery' => '', + 'object_updateBotPrecheckoutQuery_param_query_id_type_long' => '', + 'object_updateBotPrecheckoutQuery_param_user_id_type_int' => '', + 'object_updateBotPrecheckoutQuery_param_payload_type_bytes' => '', + 'object_updateBotPrecheckoutQuery_param_info_type_PaymentRequestedInfo' => '', + 'object_updateBotPrecheckoutQuery_param_shipping_option_id_type_string' => '', + 'object_updateBotPrecheckoutQuery_param_currency_type_string' => '', + 'object_updateBotPrecheckoutQuery_param_total_amount_type_long' => '', + 'object_updatePhoneCall' => '', + 'object_updatePhoneCall_param_phone_call_type_PhoneCall' => '', + 'object_updateLangPackTooLong' => '', + 'object_updateLangPack' => '', + 'object_updateLangPack_param_difference_type_LangPackDifference' => '', + 'object_updateFavedStickers' => '', + 'object_updateChannelReadMessagesContents' => '', + 'object_updateChannelReadMessagesContents_param_channel_id_type_int' => '', + 'object_updateChannelReadMessagesContents_param_messages_type_Vector t' => '', + 'object_updateContactsReset' => '', + 'object_updateChannelAvailableMessages' => '', + 'object_updateChannelAvailableMessages_param_channel_id_type_int' => '', + 'object_updateChannelAvailableMessages_param_available_min_id_type_int' => '', + 'object_updates.state' => '', + 'object_updates.state_param_pts_type_int' => '', + 'object_updates.state_param_qts_type_int' => '', + 'object_updates.state_param_date_type_int' => '', + 'object_updates.state_param_seq_type_int' => '', + 'object_updates.state_param_unread_count_type_int' => '', + 'object_updates.differenceEmpty' => '', + 'object_updates.differenceEmpty_param_date_type_int' => '', + 'object_updates.differenceEmpty_param_seq_type_int' => '', + 'object_updates.difference' => '', + 'object_updates.difference_param_new_messages_type_Vector t' => '', + 'object_updates.difference_param_new_encrypted_messages_type_Vector t' => '', + 'object_updates.difference_param_other_updates_type_Vector t' => '', + 'object_updates.difference_param_chats_type_Vector t' => '', + 'object_updates.difference_param_users_type_Vector t' => '', + 'object_updates.difference_param_state_type_updates.State' => '', + 'object_updates.differenceSlice' => '', + 'object_updates.differenceSlice_param_new_messages_type_Vector t' => '', + 'object_updates.differenceSlice_param_new_encrypted_messages_type_Vector t' => '', + 'object_updates.differenceSlice_param_other_updates_type_Vector t' => '', + 'object_updates.differenceSlice_param_chats_type_Vector t' => '', + 'object_updates.differenceSlice_param_users_type_Vector t' => '', + 'object_updates.differenceSlice_param_intermediate_state_type_updates.State' => '', + 'object_updates.differenceTooLong' => '', + 'object_updates.differenceTooLong_param_pts_type_int' => '', + 'object_updatesTooLong' => '', + 'object_updateShortMessage' => '', + 'object_updateShortMessage_param_out_type_true' => '', + 'object_updateShortMessage_param_mentioned_type_true' => '', + 'object_updateShortMessage_param_media_unread_type_true' => '', + 'object_updateShortMessage_param_silent_type_true' => '', + 'object_updateShortMessage_param_id_type_int' => '', + 'object_updateShortMessage_param_user_id_type_int' => '', + 'object_updateShortMessage_param_message_type_string' => '', + 'object_updateShortMessage_param_pts_type_int' => '', + 'object_updateShortMessage_param_pts_count_type_int' => '', + 'object_updateShortMessage_param_date_type_int' => '', + 'object_updateShortMessage_param_fwd_from_type_MessageFwdHeader' => '', + 'object_updateShortMessage_param_via_bot_id_type_int' => '', + 'object_updateShortMessage_param_reply_to_msg_id_type_int' => '', + 'object_updateShortMessage_param_entities_type_Vector t' => '', + 'object_updateShortChatMessage' => '', + 'object_updateShortChatMessage_param_out_type_true' => '', + 'object_updateShortChatMessage_param_mentioned_type_true' => '', + 'object_updateShortChatMessage_param_media_unread_type_true' => '', + 'object_updateShortChatMessage_param_silent_type_true' => '', + 'object_updateShortChatMessage_param_id_type_int' => '', + 'object_updateShortChatMessage_param_from_id_type_int' => '', + 'object_updateShortChatMessage_param_chat_id_type_int' => '', + 'object_updateShortChatMessage_param_message_type_string' => '', + 'object_updateShortChatMessage_param_pts_type_int' => '', + 'object_updateShortChatMessage_param_pts_count_type_int' => '', + 'object_updateShortChatMessage_param_date_type_int' => '', + 'object_updateShortChatMessage_param_fwd_from_type_MessageFwdHeader' => '', + 'object_updateShortChatMessage_param_via_bot_id_type_int' => '', + 'object_updateShortChatMessage_param_reply_to_msg_id_type_int' => '', + 'object_updateShortChatMessage_param_entities_type_Vector t' => '', + 'object_updateShort' => '', + 'object_updateShort_param_update_type_Update' => '', + 'object_updateShort_param_date_type_int' => '', + 'object_updatesCombined' => '', + 'object_updatesCombined_param_updates_type_Vector t' => '', + 'object_updatesCombined_param_users_type_Vector t' => '', + 'object_updatesCombined_param_chats_type_Vector t' => '', + 'object_updatesCombined_param_date_type_int' => '', + 'object_updatesCombined_param_seq_start_type_int' => '', + 'object_updatesCombined_param_seq_type_int' => '', + 'object_updates' => '', + 'object_updates_param_updates_type_Vector t' => '', + 'object_updates_param_users_type_Vector t' => '', + 'object_updates_param_chats_type_Vector t' => '', + 'object_updates_param_date_type_int' => '', + 'object_updates_param_seq_type_int' => '', + 'object_updateShortSentMessage' => '', + 'object_updateShortSentMessage_param_out_type_true' => '', + 'object_updateShortSentMessage_param_id_type_int' => '', + 'object_updateShortSentMessage_param_pts_type_int' => '', + 'object_updateShortSentMessage_param_pts_count_type_int' => '', + 'object_updateShortSentMessage_param_date_type_int' => '', + 'object_updateShortSentMessage_param_media_type_MessageMedia' => '', + 'object_updateShortSentMessage_param_entities_type_Vector t' => '', + 'object_photos.photos' => '', + 'object_photos.photos_param_photos_type_Vector t' => '', + 'object_photos.photos_param_users_type_Vector t' => '', + 'object_photos.photosSlice' => '', + 'object_photos.photosSlice_param_count_type_int' => '', + 'object_photos.photosSlice_param_photos_type_Vector t' => '', + 'object_photos.photosSlice_param_users_type_Vector t' => '', + 'object_photos.photo' => '', + 'object_photos.photo_param_photo_type_Photo' => '', + 'object_photos.photo_param_users_type_Vector t' => '', + 'object_upload.file' => '', + 'object_upload.file_param_type_type_storage.FileType' => '', + 'object_upload.file_param_mtime_type_int' => '', + 'object_upload.file_param_bytes_type_bytes' => '', + 'object_upload.fileCdnRedirect' => '', + 'object_upload.fileCdnRedirect_param_dc_id_type_int' => '', + 'object_upload.fileCdnRedirect_param_file_token_type_bytes' => '', + 'object_upload.fileCdnRedirect_param_encryption_key_type_bytes' => '', + 'object_upload.fileCdnRedirect_param_encryption_iv_type_bytes' => '', + 'object_upload.fileCdnRedirect_param_cdn_file_hashes_type_Vector t' => '', + 'object_dcOption' => '', + 'object_dcOption_param_ipv6_type_true' => '', + 'object_dcOption_param_media_only_type_true' => '', + 'object_dcOption_param_tcpo_only_type_true' => '', + 'object_dcOption_param_cdn_type_true' => '', + 'object_dcOption_param_static_type_true' => '', + 'object_dcOption_param_id_type_int' => '', + 'object_dcOption_param_ip_address_type_string' => '', + 'object_dcOption_param_port_type_int' => '', + 'object_config' => '', + 'object_config_param_phonecalls_enabled_type_true' => '', + 'object_config_param_default_p2p_contacts_type_true' => '', + 'object_config_param_date_type_int' => '', + 'object_config_param_expires_type_int' => '', + 'object_config_param_test_mode_type_Bool' => '', + 'object_config_param_this_dc_type_int' => '', + 'object_config_param_dc_options_type_Vector t' => '', + 'object_config_param_chat_size_max_type_int' => '', + 'object_config_param_megagroup_size_max_type_int' => '', + 'object_config_param_forwarded_count_max_type_int' => '', + 'object_config_param_online_update_period_ms_type_int' => '', + 'object_config_param_offline_blur_timeout_ms_type_int' => '', + 'object_config_param_offline_idle_timeout_ms_type_int' => '', + 'object_config_param_online_cloud_timeout_ms_type_int' => '', + 'object_config_param_notify_cloud_delay_ms_type_int' => '', + 'object_config_param_notify_default_delay_ms_type_int' => '', + 'object_config_param_chat_big_size_type_int' => '', + 'object_config_param_push_chat_period_ms_type_int' => '', + 'object_config_param_push_chat_limit_type_int' => '', + 'object_config_param_saved_gifs_limit_type_int' => '', + 'object_config_param_edit_time_limit_type_int' => '', + 'object_config_param_rating_e_decay_type_int' => '', + 'object_config_param_stickers_recent_limit_type_int' => '', + 'object_config_param_stickers_faved_limit_type_int' => '', + 'object_config_param_channels_read_media_period_type_int' => '', + 'object_config_param_tmp_sessions_type_int' => '', + 'object_config_param_pinned_dialogs_count_max_type_int' => '', + 'object_config_param_call_receive_timeout_ms_type_int' => '', + 'object_config_param_call_ring_timeout_ms_type_int' => '', + 'object_config_param_call_connect_timeout_ms_type_int' => '', + 'object_config_param_call_packet_timeout_ms_type_int' => '', + 'object_config_param_me_url_prefix_type_string' => '', + 'object_config_param_suggested_lang_code_type_string' => '', + 'object_config_param_lang_pack_version_type_int' => '', + 'object_config_param_disabled_features_type_Vector t' => '', + 'object_nearestDc' => '', + 'object_nearestDc_param_country_type_string' => '', + 'object_nearestDc_param_this_dc_type_int' => '', + 'object_nearestDc_param_nearest_dc_type_int' => '', + 'object_help.appUpdate' => '', + 'object_help.appUpdate_param_id_type_int' => '', + 'object_help.appUpdate_param_critical_type_Bool' => '', + 'object_help.appUpdate_param_url_type_string' => '', + 'object_help.appUpdate_param_text_type_string' => '', + 'object_help.noAppUpdate' => '', + 'object_help.inviteText' => '', + 'object_help.inviteText_param_message_type_string' => '', + 'object_encryptedChatEmpty' => '', + 'object_encryptedChatEmpty_param_id_type_int' => '', + 'object_encryptedChatWaiting' => '', + 'object_encryptedChatWaiting_param_id_type_int' => '', + 'object_encryptedChatWaiting_param_access_hash_type_long' => '', + 'object_encryptedChatWaiting_param_date_type_int' => '', + 'object_encryptedChatWaiting_param_admin_id_type_int' => '', + 'object_encryptedChatWaiting_param_participant_id_type_int' => '', + 'object_encryptedChatRequested' => '', + 'object_encryptedChatRequested_param_id_type_int' => '', + 'object_encryptedChatRequested_param_access_hash_type_long' => '', + 'object_encryptedChatRequested_param_date_type_int' => '', + 'object_encryptedChatRequested_param_admin_id_type_int' => '', + 'object_encryptedChatRequested_param_participant_id_type_int' => '', + 'object_encryptedChatRequested_param_g_a_type_bytes' => '', + 'object_encryptedChat' => '', + 'object_encryptedChat_param_id_type_int' => '', + 'object_encryptedChat_param_access_hash_type_long' => '', + 'object_encryptedChat_param_date_type_int' => '', + 'object_encryptedChat_param_admin_id_type_int' => '', + 'object_encryptedChat_param_participant_id_type_int' => '', + 'object_encryptedChat_param_g_a_or_b_type_bytes' => '', + 'object_encryptedChat_param_key_fingerprint_type_long' => '', + 'object_encryptedChatDiscarded' => '', + 'object_encryptedChatDiscarded_param_id_type_int' => '', + 'object_inputEncryptedChat' => '', + 'object_inputEncryptedChat_param_chat_id_type_int' => '', + 'object_inputEncryptedChat_param_access_hash_type_long' => '', + 'object_encryptedFileEmpty' => '', + 'object_encryptedFile' => '', + 'object_encryptedFile_param_id_type_long' => '', + 'object_encryptedFile_param_access_hash_type_long' => '', + 'object_encryptedFile_param_size_type_int' => '', + 'object_encryptedFile_param_dc_id_type_int' => '', + 'object_encryptedFile_param_key_fingerprint_type_int' => '', + 'object_inputEncryptedFileEmpty' => '', + 'object_inputEncryptedFileUploaded' => '', + 'object_inputEncryptedFileUploaded_param_id_type_long' => '', + 'object_inputEncryptedFileUploaded_param_parts_type_int' => '', + 'object_inputEncryptedFileUploaded_param_md5_checksum_type_string' => '', + 'object_inputEncryptedFileUploaded_param_key_fingerprint_type_int' => '', + 'object_inputEncryptedFile' => '', + 'object_inputEncryptedFile_param_id_type_long' => '', + 'object_inputEncryptedFile_param_access_hash_type_long' => '', + 'object_inputEncryptedFileBigUploaded' => '', + 'object_inputEncryptedFileBigUploaded_param_id_type_long' => '', + 'object_inputEncryptedFileBigUploaded_param_parts_type_int' => '', + 'object_inputEncryptedFileBigUploaded_param_key_fingerprint_type_int' => '', + 'object_encryptedMessage' => '', + 'object_encryptedMessage_param_chat_id_type_int' => '', + 'object_encryptedMessage_param_date_type_int' => '', + 'object_encryptedMessage_param_decrypted_message_type_DecryptedMessage' => '', + 'object_encryptedMessage_param_file_type_EncryptedFile' => '', + 'object_encryptedMessageService' => '', + 'object_encryptedMessageService_param_chat_id_type_int' => '', + 'object_encryptedMessageService_param_date_type_int' => '', + 'object_encryptedMessageService_param_decrypted_message_type_DecryptedMessage' => '', + 'object_messages.dhConfigNotModified' => '', + 'object_messages.dhConfigNotModified_param_random_type_bytes' => '', + 'object_messages.dhConfig' => '', + 'object_messages.dhConfig_param_g_type_int' => '', + 'object_messages.dhConfig_param_p_type_bytes' => '', + 'object_messages.dhConfig_param_version_type_int' => '', + 'object_messages.dhConfig_param_random_type_bytes' => '', + 'object_messages.sentEncryptedMessage' => '', + 'object_messages.sentEncryptedMessage_param_date_type_int' => '', + 'object_messages.sentEncryptedFile' => '', + 'object_messages.sentEncryptedFile_param_date_type_int' => '', + 'object_messages.sentEncryptedFile_param_file_type_EncryptedFile' => '', + 'object_inputDocumentEmpty' => '', + 'object_inputDocument' => '', + 'object_inputDocument_param_id_type_long' => '', + 'object_inputDocument_param_access_hash_type_long' => '', + 'object_documentEmpty' => '', + 'object_documentEmpty_param_id_type_long' => '', + 'object_document' => '', + 'object_document_param_id_type_long' => '', + 'object_document_param_access_hash_type_long' => '', + 'object_document_param_date_type_int' => '', + 'object_document_param_mime_type_type_string' => '', + 'object_document_param_size_type_int' => '', + 'object_document_param_thumb_type_PhotoSize' => '', + 'object_document_param_dc_id_type_int' => '', + 'object_document_param_version_type_int' => '', + 'object_document_param_attributes_type_Vector t' => '', + 'object_help.support' => '', + 'object_help.support_param_phone_number_type_string' => '', + 'object_help.support_param_user_type_User' => '', + 'object_notifyPeer' => '', + 'object_notifyPeer_param_peer_type_Peer' => '', + 'object_notifyUsers' => '', + 'object_notifyChats' => '', + 'object_notifyAll' => '', + 'object_sendMessageTypingAction' => '', + 'object_sendMessageCancelAction' => '', + 'object_sendMessageRecordVideoAction' => '', + 'object_sendMessageUploadVideoAction' => '', + 'object_sendMessageUploadVideoAction_param_progress_type_int' => '', + 'object_sendMessageRecordAudioAction' => '', + 'object_sendMessageUploadAudioAction' => '', + 'object_sendMessageUploadAudioAction_param_progress_type_int' => '', + 'object_sendMessageUploadPhotoAction' => '', + 'object_sendMessageUploadPhotoAction_param_progress_type_int' => '', + 'object_sendMessageUploadDocumentAction' => '', + 'object_sendMessageUploadDocumentAction_param_progress_type_int' => '', + 'object_sendMessageGeoLocationAction' => '', + 'object_sendMessageChooseContactAction' => '', + 'object_sendMessageGamePlayAction' => '', + 'object_sendMessageRecordRoundAction' => '', + 'object_sendMessageUploadRoundAction' => '', + 'object_sendMessageUploadRoundAction_param_progress_type_int' => '', + 'object_contacts.found' => '', + 'object_contacts.found_param_my_results_type_Vector t' => '', + 'object_contacts.found_param_results_type_Vector t' => '', + 'object_contacts.found_param_chats_type_Vector t' => '', + 'object_contacts.found_param_users_type_Vector t' => '', + 'object_inputPrivacyKeyStatusTimestamp' => '', + 'object_inputPrivacyKeyChatInvite' => '', + 'object_inputPrivacyKeyPhoneCall' => '', + 'object_privacyKeyStatusTimestamp' => '', + 'object_privacyKeyPhoneCall' => '', + 'object_inputPrivacyValueAllowContacts' => '', + 'object_inputPrivacyValueAllowAll' => '', + 'object_inputPrivacyValueAllowUsers' => '', + 'object_inputPrivacyValueAllowUsers_param_users_type_Vector t' => '', + 'object_inputPrivacyValueDisallowContacts' => '', + 'object_inputPrivacyValueDisallowAll' => '', + 'object_inputPrivacyValueDisallowUsers' => '', + 'object_inputPrivacyValueDisallowUsers_param_users_type_Vector t' => '', + 'object_privacyValueAllowContacts' => '', + 'object_privacyValueAllowAll' => '', + 'object_privacyValueAllowUsers' => '', + 'object_privacyValueAllowUsers_param_users_type_Vector t' => '', + 'object_privacyValueDisallowContacts' => '', + 'object_privacyValueDisallowAll' => '', + 'object_privacyValueDisallowUsers' => '', + 'object_privacyValueDisallowUsers_param_users_type_Vector t' => '', + 'object_account.privacyRules' => '', + 'object_account.privacyRules_param_rules_type_Vector t' => '', + 'object_account.privacyRules_param_users_type_Vector t' => '', + 'object_accountDaysTTL' => '', + 'object_accountDaysTTL_param_days_type_int' => '', + 'object_documentAttributeImageSize' => '', + 'object_documentAttributeImageSize_param_w_type_int' => '', + 'object_documentAttributeImageSize_param_h_type_int' => '', + 'object_documentAttributeAnimated' => '', + 'object_documentAttributeSticker' => '', + 'object_documentAttributeSticker_param_mask_type_true' => '', + 'object_documentAttributeSticker_param_alt_type_string' => '', + 'object_documentAttributeSticker_param_stickerset_type_InputStickerSet' => '', + 'object_documentAttributeSticker_param_mask_coords_type_MaskCoords' => '', + 'object_documentAttributeVideo' => '', + 'object_documentAttributeVideo_param_round_message_type_true' => '', + 'object_documentAttributeVideo_param_supports_streaming_type_true' => '', + 'object_documentAttributeVideo_param_duration_type_int' => '', + 'object_documentAttributeVideo_param_w_type_int' => '', + 'object_documentAttributeVideo_param_h_type_int' => '', + 'object_documentAttributeAudio' => '', + 'object_documentAttributeAudio_param_voice_type_true' => '', + 'object_documentAttributeAudio_param_duration_type_int' => '', + 'object_documentAttributeAudio_param_title_type_string' => '', + 'object_documentAttributeAudio_param_performer_type_string' => '', + 'object_documentAttributeAudio_param_waveform_type_bytes' => '', + 'object_documentAttributeFilename' => '', + 'object_documentAttributeFilename_param_file_name_type_string' => '', + 'object_documentAttributeHasStickers' => '', + 'object_messages.stickersNotModified' => '', + 'object_messages.stickers' => '', + 'object_messages.stickers_param_hash_type_string' => '', + 'object_messages.stickers_param_stickers_type_Vector t' => '', + 'object_stickerPack' => '', + 'object_stickerPack_param_emoticon_type_string' => '', + 'object_stickerPack_param_documents_type_Vector t' => '', + 'object_messages.allStickersNotModified' => '', + 'object_messages.allStickers' => '', + 'object_messages.allStickers_param_hash_type_int' => '', + 'object_messages.allStickers_param_sets_type_Vector t' => '', + 'object_disabledFeature' => '', + 'object_disabledFeature_param_feature_type_string' => '', + 'object_disabledFeature_param_description_type_string' => '', + 'object_messages.affectedMessages' => '', + 'object_messages.affectedMessages_param_pts_type_int' => '', + 'object_messages.affectedMessages_param_pts_count_type_int' => '', + 'object_contactLinkUnknown' => '', + 'object_contactLinkNone' => '', + 'object_contactLinkHasPhone' => '', + 'object_contactLinkContact' => '', + 'object_webPageEmpty' => '', + 'object_webPageEmpty_param_id_type_long' => '', + 'object_webPagePending' => '', + 'object_webPagePending_param_id_type_long' => '', + 'object_webPagePending_param_date_type_int' => '', + 'object_webPage' => '', + 'object_webPage_param_id_type_long' => '', + 'object_webPage_param_url_type_string' => '', + 'object_webPage_param_display_url_type_string' => '', + 'object_webPage_param_hash_type_int' => '', + 'object_webPage_param_type_type_string' => '', + 'object_webPage_param_site_name_type_string' => '', + 'object_webPage_param_title_type_string' => '', + 'object_webPage_param_description_type_string' => '', + 'object_webPage_param_photo_type_Photo' => '', + 'object_webPage_param_embed_url_type_string' => '', + 'object_webPage_param_embed_type_type_string' => '', + 'object_webPage_param_embed_width_type_int' => '', + 'object_webPage_param_embed_height_type_int' => '', + 'object_webPage_param_duration_type_int' => '', + 'object_webPage_param_author_type_string' => '', + 'object_webPage_param_document_type_Document' => '', + 'object_webPage_param_cached_page_type_Page' => '', + 'object_webPageNotModified' => '', + 'object_authorization' => '', + 'object_authorization_param_hash_type_long' => '', + 'object_authorization_param_device_model_type_string' => '', + 'object_authorization_param_platform_type_string' => '', + 'object_authorization_param_system_version_type_string' => '', + 'object_authorization_param_api_id_type_int' => '', + 'object_authorization_param_app_name_type_string' => '', + 'object_authorization_param_app_version_type_string' => '', + 'object_authorization_param_date_created_type_int' => '', + 'object_authorization_param_date_active_type_int' => '', + 'object_authorization_param_ip_type_string' => '', + 'object_authorization_param_country_type_string' => '', + 'object_authorization_param_region_type_string' => '', + 'object_account.authorizations' => '', + 'object_account.authorizations_param_authorizations_type_Vector t' => '', + 'object_account.noPassword' => '', + 'object_account.noPassword_param_new_salt_type_bytes' => '', + 'object_account.noPassword_param_email_unconfirmed_pattern_type_string' => '', + 'object_account.password' => '', + 'object_account.password_param_current_salt_type_bytes' => '', + 'object_account.password_param_new_salt_type_bytes' => '', + 'object_account.password_param_hint_type_string' => '', + 'object_account.password_param_has_recovery_type_Bool' => '', + 'object_account.password_param_email_unconfirmed_pattern_type_string' => '', + 'object_account.passwordSettings' => '', + 'object_account.passwordSettings_param_email_type_string' => '', + 'object_account.passwordInputSettings' => '', + 'object_account.passwordInputSettings_param_new_salt_type_bytes' => '', + 'object_account.passwordInputSettings_param_new_password_hash_type_bytes' => '', + 'object_account.passwordInputSettings_param_hint_type_string' => '', + 'object_account.passwordInputSettings_param_email_type_string' => '', + 'object_auth.passwordRecovery' => '', + 'object_auth.passwordRecovery_param_email_pattern_type_string' => '', + 'object_receivedNotifyMessage' => '', + 'object_receivedNotifyMessage_param_id_type_int' => '', + 'object_chatInviteEmpty' => '', + 'object_chatInviteExported' => '', + 'object_chatInviteExported_param_link_type_string' => '', + 'object_chatInviteAlready' => '', + 'object_chatInviteAlready_param_chat_type_Chat' => '', + 'object_chatInvite' => '', + 'object_chatInvite_param_channel_type_true' => '', + 'object_chatInvite_param_broadcast_type_true' => '', + 'object_chatInvite_param_public_type_true' => '', + 'object_chatInvite_param_megagroup_type_true' => '', + 'object_chatInvite_param_title_type_string' => '', + 'object_chatInvite_param_photo_type_ChatPhoto' => '', + 'object_chatInvite_param_participants_count_type_int' => '', + 'object_chatInvite_param_participants_type_Vector t' => '', + 'object_inputStickerSetEmpty' => '', + 'object_inputStickerSetID' => '', + 'object_inputStickerSetID_param_id_type_long' => '', + 'object_inputStickerSetID_param_access_hash_type_long' => '', + 'object_inputStickerSetShortName' => '', + 'object_inputStickerSetShortName_param_short_name_type_string' => '', + 'object_stickerSet' => '', + 'object_stickerSet_param_installed_type_true' => '', + 'object_stickerSet_param_archived_type_true' => '', + 'object_stickerSet_param_official_type_true' => '', + 'object_stickerSet_param_masks_type_true' => '', + 'object_stickerSet_param_id_type_long' => '', + 'object_stickerSet_param_access_hash_type_long' => '', + 'object_stickerSet_param_title_type_string' => '', + 'object_stickerSet_param_short_name_type_string' => '', + 'object_stickerSet_param_count_type_int' => '', + 'object_stickerSet_param_hash_type_int' => '', + 'object_messages.stickerSet' => '', + 'object_messages.stickerSet_param_set_type_StickerSet' => '', + 'object_messages.stickerSet_param_packs_type_Vector t' => '', + 'object_messages.stickerSet_param_documents_type_Vector t' => '', + 'object_botInfo' => '', + 'object_botInfo_param_user_id_type_int' => '', + 'object_botInfo_param_description_type_string' => '', + 'object_botInfo_param_commands_type_Vector t' => '', + 'object_keyboardButton' => '', + 'object_keyboardButton_param_text_type_string' => '', + 'object_keyboardButtonUrl' => '', + 'object_keyboardButtonUrl_param_text_type_string' => '', + 'object_keyboardButtonUrl_param_url_type_string' => '', + 'object_keyboardButtonCallback' => '', + 'object_keyboardButtonCallback_param_text_type_string' => '', + 'object_keyboardButtonCallback_param_data_type_bytes' => '', + 'object_keyboardButtonRequestPhone' => '', + 'object_keyboardButtonRequestPhone_param_text_type_string' => '', + 'object_keyboardButtonRequestGeoLocation' => '', + 'object_keyboardButtonRequestGeoLocation_param_text_type_string' => '', + 'object_keyboardButtonSwitchInline' => '', + 'object_keyboardButtonSwitchInline_param_same_peer_type_true' => '', + 'object_keyboardButtonSwitchInline_param_text_type_string' => '', + 'object_keyboardButtonSwitchInline_param_query_type_string' => '', + 'object_keyboardButtonGame' => '', + 'object_keyboardButtonGame_param_text_type_string' => '', + 'object_keyboardButtonBuy' => '', + 'object_keyboardButtonBuy_param_text_type_string' => '', + 'object_keyboardButtonRow' => '', + 'object_keyboardButtonRow_param_buttons_type_Vector t' => '', + 'object_replyKeyboardHide' => '', + 'object_replyKeyboardHide_param_selective_type_true' => '', + 'object_replyKeyboardForceReply' => '', + 'object_replyKeyboardForceReply_param_single_use_type_true' => '', + 'object_replyKeyboardForceReply_param_selective_type_true' => '', + 'object_replyKeyboardMarkup' => '', + 'object_replyKeyboardMarkup_param_resize_type_true' => '', + 'object_replyKeyboardMarkup_param_single_use_type_true' => '', + 'object_replyKeyboardMarkup_param_selective_type_true' => '', + 'object_replyKeyboardMarkup_param_rows_type_Vector t' => '', + 'object_replyInlineMarkup' => '', + 'object_replyInlineMarkup_param_rows_type_Vector t' => '', + 'object_messageEntityUnknown' => '', + 'object_messageEntityUnknown_param_offset_type_int' => '', + 'object_messageEntityUnknown_param_length_type_int' => '', + 'object_messageEntityMention' => '', + 'object_messageEntityMention_param_offset_type_int' => '', + 'object_messageEntityMention_param_length_type_int' => '', + 'object_messageEntityHashtag' => '', + 'object_messageEntityHashtag_param_offset_type_int' => '', + 'object_messageEntityHashtag_param_length_type_int' => '', + 'object_messageEntityBotCommand' => '', + 'object_messageEntityBotCommand_param_offset_type_int' => '', + 'object_messageEntityBotCommand_param_length_type_int' => '', + 'object_messageEntityUrl' => '', + 'object_messageEntityUrl_param_offset_type_int' => '', + 'object_messageEntityUrl_param_length_type_int' => '', + 'object_messageEntityEmail' => '', + 'object_messageEntityEmail_param_offset_type_int' => '', + 'object_messageEntityEmail_param_length_type_int' => '', + 'object_messageEntityBold' => '', + 'object_messageEntityBold_param_offset_type_int' => '', + 'object_messageEntityBold_param_length_type_int' => '', + 'object_messageEntityItalic' => '', + 'object_messageEntityItalic_param_offset_type_int' => '', + 'object_messageEntityItalic_param_length_type_int' => '', + 'object_messageEntityCode' => '', + 'object_messageEntityCode_param_offset_type_int' => '', + 'object_messageEntityCode_param_length_type_int' => '', + 'object_messageEntityPre' => '', + 'object_messageEntityPre_param_offset_type_int' => '', + 'object_messageEntityPre_param_length_type_int' => '', + 'object_messageEntityPre_param_language_type_string' => '', + 'object_messageEntityTextUrl' => '', + 'object_messageEntityTextUrl_param_offset_type_int' => '', + 'object_messageEntityTextUrl_param_length_type_int' => '', + 'object_messageEntityTextUrl_param_url_type_string' => '', + 'object_messageEntityMentionName' => '', + 'object_messageEntityMentionName_param_offset_type_int' => '', + 'object_messageEntityMentionName_param_length_type_int' => '', + 'object_messageEntityMentionName_param_user_id_type_int' => '', + 'object_inputMessageEntityMentionName' => '', + 'object_inputMessageEntityMentionName_param_offset_type_int' => '', + 'object_inputMessageEntityMentionName_param_length_type_int' => '', + 'object_inputMessageEntityMentionName_param_user_id_type_InputUser' => '', + 'object_inputChannelEmpty' => '', + 'object_inputChannel' => '', + 'object_inputChannel_param_channel_id_type_int' => '', + 'object_inputChannel_param_access_hash_type_long' => '', + 'object_contacts.resolvedPeer' => '', + 'object_contacts.resolvedPeer_param_peer_type_Peer' => '', + 'object_contacts.resolvedPeer_param_chats_type_Vector t' => '', + 'object_contacts.resolvedPeer_param_users_type_Vector t' => '', + 'object_messageRange' => '', + 'object_messageRange_param_min_id_type_int' => '', + 'object_messageRange_param_max_id_type_int' => '', + 'object_updates.channelDifferenceEmpty' => '', + 'object_updates.channelDifferenceEmpty_param_final_type_true' => '', + 'object_updates.channelDifferenceEmpty_param_pts_type_int' => '', + 'object_updates.channelDifferenceEmpty_param_timeout_type_int' => '', + 'object_updates.channelDifferenceTooLong' => '', + 'object_updates.channelDifferenceTooLong_param_final_type_true' => '', + 'object_updates.channelDifferenceTooLong_param_pts_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_timeout_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_top_message_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_read_inbox_max_id_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_read_outbox_max_id_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_unread_count_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_unread_mentions_count_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_messages_type_Vector t' => '', + 'object_updates.channelDifferenceTooLong_param_chats_type_Vector t' => '', + 'object_updates.channelDifferenceTooLong_param_users_type_Vector t' => '', + 'object_updates.channelDifference' => '', + 'object_updates.channelDifference_param_final_type_true' => '', + 'object_updates.channelDifference_param_pts_type_int' => '', + 'object_updates.channelDifference_param_timeout_type_int' => '', + 'object_updates.channelDifference_param_new_messages_type_Vector t' => '', + 'object_updates.channelDifference_param_other_updates_type_Vector t' => '', + 'object_updates.channelDifference_param_chats_type_Vector t' => '', + 'object_updates.channelDifference_param_users_type_Vector t' => '', + 'object_channelMessagesFilterEmpty' => '', + 'object_channelMessagesFilter' => '', + 'object_channelMessagesFilter_param_exclude_new_messages_type_true' => '', + 'object_channelMessagesFilter_param_ranges_type_Vector t' => '', + 'object_channelParticipant' => '', + 'object_channelParticipant_param_user_id_type_int' => '', + 'object_channelParticipant_param_date_type_int' => '', + 'object_channelParticipantSelf' => '', + 'object_channelParticipantSelf_param_user_id_type_int' => '', + 'object_channelParticipantSelf_param_inviter_id_type_int' => '', + 'object_channelParticipantSelf_param_date_type_int' => '', + 'object_channelParticipantCreator' => '', + 'object_channelParticipantCreator_param_user_id_type_int' => '', + 'object_channelParticipantAdmin' => '', + 'object_channelParticipantAdmin_param_can_edit_type_true' => '', + 'object_channelParticipantAdmin_param_user_id_type_int' => '', + 'object_channelParticipantAdmin_param_inviter_id_type_int' => '', + 'object_channelParticipantAdmin_param_promoted_by_type_int' => '', + 'object_channelParticipantAdmin_param_date_type_int' => '', + 'object_channelParticipantAdmin_param_admin_rights_type_ChannelAdminRights' => '', + 'object_channelParticipantBanned' => '', + 'object_channelParticipantBanned_param_left_type_true' => '', + 'object_channelParticipantBanned_param_user_id_type_int' => '', + 'object_channelParticipantBanned_param_kicked_by_type_int' => '', + 'object_channelParticipantBanned_param_date_type_int' => '', + 'object_channelParticipantBanned_param_banned_rights_type_ChannelBannedRights' => '', + 'object_channelParticipantsRecent' => '', + 'object_channelParticipantsAdmins' => '', + 'object_channelParticipantsKicked' => '', + 'object_channelParticipantsKicked_param_q_type_string' => '', + 'object_channelParticipantsBots' => '', + 'object_channelParticipantsBanned' => '', + 'object_channelParticipantsBanned_param_q_type_string' => '', + 'object_channelParticipantsSearch' => '', + 'object_channelParticipantsSearch_param_q_type_string' => '', + 'object_channels.channelParticipants' => '', + 'object_channels.channelParticipants_param_count_type_int' => '', + 'object_channels.channelParticipants_param_participants_type_Vector t' => '', + 'object_channels.channelParticipants_param_users_type_Vector t' => '', + 'object_channels.channelParticipantsNotModified' => '', + 'object_channels.channelParticipant' => '', + 'object_channels.channelParticipant_param_participant_type_ChannelParticipant' => '', + 'object_channels.channelParticipant_param_users_type_Vector t' => '', + 'object_help.termsOfService' => '', + 'object_help.termsOfService_param_text_type_string' => '', + 'object_foundGif' => '', + 'object_foundGif_param_url_type_string' => '', + 'object_foundGif_param_thumb_url_type_string' => '', + 'object_foundGif_param_content_url_type_string' => '', + 'object_foundGif_param_content_type_type_string' => '', + 'object_foundGif_param_w_type_int' => '', + 'object_foundGif_param_h_type_int' => '', + 'object_foundGifCached' => '', + 'object_foundGifCached_param_url_type_string' => '', + 'object_foundGifCached_param_photo_type_Photo' => '', + 'object_foundGifCached_param_document_type_Document' => '', + 'object_messages.foundGifs' => '', + 'object_messages.foundGifs_param_next_offset_type_int' => '', + 'object_messages.foundGifs_param_results_type_Vector t' => '', + 'object_messages.savedGifsNotModified' => '', + 'object_messages.savedGifs' => '', + 'object_messages.savedGifs_param_hash_type_int' => '', + 'object_messages.savedGifs_param_gifs_type_Vector t' => '', + 'object_inputBotInlineMessageMediaAuto' => '', + 'object_inputBotInlineMessageMediaAuto_param_message_type_string' => '', + 'object_inputBotInlineMessageMediaAuto_param_entities_type_Vector t' => '', + 'object_inputBotInlineMessageMediaAuto_param_reply_markup_type_ReplyMarkup' => '', + 'object_inputBotInlineMessageText' => '', + 'object_inputBotInlineMessageText_param_no_webpage_type_true' => '', + 'object_inputBotInlineMessageText_param_message_type_string' => '', + 'object_inputBotInlineMessageText_param_entities_type_Vector t' => '', + 'object_inputBotInlineMessageText_param_reply_markup_type_ReplyMarkup' => '', + 'object_inputBotInlineMessageMediaGeo' => '', + 'object_inputBotInlineMessageMediaGeo_param_geo_point_type_InputGeoPoint' => '', + 'object_inputBotInlineMessageMediaGeo_param_period_type_int' => '', + 'object_inputBotInlineMessageMediaGeo_param_reply_markup_type_ReplyMarkup' => '', + 'object_inputBotInlineMessageMediaVenue' => '', + 'object_inputBotInlineMessageMediaVenue_param_geo_point_type_InputGeoPoint' => '', + 'object_inputBotInlineMessageMediaVenue_param_title_type_string' => '', + 'object_inputBotInlineMessageMediaVenue_param_address_type_string' => '', + 'object_inputBotInlineMessageMediaVenue_param_provider_type_string' => '', + 'object_inputBotInlineMessageMediaVenue_param_venue_id_type_string' => '', + 'object_inputBotInlineMessageMediaVenue_param_reply_markup_type_ReplyMarkup' => '', + 'object_inputBotInlineMessageMediaContact' => '', + 'object_inputBotInlineMessageMediaContact_param_phone_number_type_string' => '', + 'object_inputBotInlineMessageMediaContact_param_first_name_type_string' => '', + 'object_inputBotInlineMessageMediaContact_param_last_name_type_string' => '', + 'object_inputBotInlineMessageMediaContact_param_reply_markup_type_ReplyMarkup' => '', + 'object_inputBotInlineMessageGame' => '', + 'object_inputBotInlineMessageGame_param_reply_markup_type_ReplyMarkup' => '', + 'object_inputBotInlineResult' => '', + 'object_inputBotInlineResult_param_id_type_string' => '', + 'object_inputBotInlineResult_param_type_type_string' => '', + 'object_inputBotInlineResult_param_title_type_string' => '', + 'object_inputBotInlineResult_param_description_type_string' => '', + 'object_inputBotInlineResult_param_url_type_string' => '', + 'object_inputBotInlineResult_param_thumb_url_type_string' => '', + 'object_inputBotInlineResult_param_content_url_type_string' => '', + 'object_inputBotInlineResult_param_content_type_type_string' => '', + 'object_inputBotInlineResult_param_w_type_int' => '', + 'object_inputBotInlineResult_param_h_type_int' => '', + 'object_inputBotInlineResult_param_duration_type_int' => '', + 'object_inputBotInlineResult_param_send_message_type_InputBotInlineMessage' => '', + 'object_inputBotInlineResultPhoto' => '', + 'object_inputBotInlineResultPhoto_param_id_type_string' => '', + 'object_inputBotInlineResultPhoto_param_type_type_string' => '', + 'object_inputBotInlineResultPhoto_param_photo_type_InputPhoto' => '', + 'object_inputBotInlineResultPhoto_param_send_message_type_InputBotInlineMessage' => '', + 'object_inputBotInlineResultDocument' => '', + 'object_inputBotInlineResultDocument_param_id_type_string' => '', + 'object_inputBotInlineResultDocument_param_type_type_string' => '', + 'object_inputBotInlineResultDocument_param_title_type_string' => '', + 'object_inputBotInlineResultDocument_param_description_type_string' => '', + 'object_inputBotInlineResultDocument_param_document_type_InputDocument' => '', + 'object_inputBotInlineResultDocument_param_send_message_type_InputBotInlineMessage' => '', + 'object_inputBotInlineResultGame' => '', + 'object_inputBotInlineResultGame_param_id_type_string' => '', + 'object_inputBotInlineResultGame_param_short_name_type_string' => '', + 'object_inputBotInlineResultGame_param_send_message_type_InputBotInlineMessage' => '', + 'object_botInlineMessageMediaAuto' => '', + 'object_botInlineMessageMediaAuto_param_message_type_string' => '', + 'object_botInlineMessageMediaAuto_param_entities_type_Vector t' => '', + 'object_botInlineMessageMediaAuto_param_reply_markup_type_ReplyMarkup' => '', + 'object_botInlineMessageText' => '', + 'object_botInlineMessageText_param_no_webpage_type_true' => '', + 'object_botInlineMessageText_param_message_type_string' => '', + 'object_botInlineMessageText_param_entities_type_Vector t' => '', + 'object_botInlineMessageText_param_reply_markup_type_ReplyMarkup' => '', + 'object_botInlineMessageMediaGeo' => '', + 'object_botInlineMessageMediaGeo_param_geo_type_GeoPoint' => '', + 'object_botInlineMessageMediaGeo_param_period_type_int' => '', + 'object_botInlineMessageMediaGeo_param_reply_markup_type_ReplyMarkup' => '', + 'object_botInlineMessageMediaVenue' => '', + 'object_botInlineMessageMediaVenue_param_geo_type_GeoPoint' => '', + 'object_botInlineMessageMediaVenue_param_title_type_string' => '', + 'object_botInlineMessageMediaVenue_param_address_type_string' => '', + 'object_botInlineMessageMediaVenue_param_provider_type_string' => '', + 'object_botInlineMessageMediaVenue_param_venue_id_type_string' => '', + 'object_botInlineMessageMediaVenue_param_reply_markup_type_ReplyMarkup' => '', + 'object_botInlineMessageMediaContact' => '', + 'object_botInlineMessageMediaContact_param_phone_number_type_string' => '', + 'object_botInlineMessageMediaContact_param_first_name_type_string' => '', + 'object_botInlineMessageMediaContact_param_last_name_type_string' => '', + 'object_botInlineMessageMediaContact_param_reply_markup_type_ReplyMarkup' => '', + 'object_botInlineResult' => '', + 'object_botInlineResult_param_id_type_string' => '', + 'object_botInlineResult_param_type_type_string' => '', + 'object_botInlineResult_param_title_type_string' => '', + 'object_botInlineResult_param_description_type_string' => '', + 'object_botInlineResult_param_url_type_string' => '', + 'object_botInlineResult_param_thumb_url_type_string' => '', + 'object_botInlineResult_param_content_url_type_string' => '', + 'object_botInlineResult_param_content_type_type_string' => '', + 'object_botInlineResult_param_w_type_int' => '', + 'object_botInlineResult_param_h_type_int' => '', + 'object_botInlineResult_param_duration_type_int' => '', + 'object_botInlineResult_param_send_message_type_BotInlineMessage' => '', + 'object_botInlineMediaResult' => '', + 'object_botInlineMediaResult_param_id_type_string' => '', + 'object_botInlineMediaResult_param_type_type_string' => '', + 'object_botInlineMediaResult_param_photo_type_Photo' => '', + 'object_botInlineMediaResult_param_document_type_Document' => '', + 'object_botInlineMediaResult_param_title_type_string' => '', + 'object_botInlineMediaResult_param_description_type_string' => '', + 'object_botInlineMediaResult_param_send_message_type_BotInlineMessage' => '', + 'object_messages.botResults' => '', + 'object_messages.botResults_param_gallery_type_true' => '', + 'object_messages.botResults_param_query_id_type_long' => '', + 'object_messages.botResults_param_next_offset_type_string' => '', + 'object_messages.botResults_param_switch_pm_type_InlineBotSwitchPM' => '', + 'object_messages.botResults_param_results_type_Vector t' => '', + 'object_messages.botResults_param_cache_time_type_int' => '', + 'object_messages.botResults_param_users_type_Vector t' => '', + 'object_exportedMessageLink' => '', + 'object_exportedMessageLink_param_link_type_string' => '', + 'object_exportedMessageLink_param_html_type_string' => '', + 'object_messageFwdHeader' => '', + 'object_messageFwdHeader_param_from_id_type_int' => '', + 'object_messageFwdHeader_param_date_type_int' => '', + 'object_messageFwdHeader_param_channel_id_type_int' => '', + 'object_messageFwdHeader_param_channel_post_type_int' => '', + 'object_messageFwdHeader_param_post_author_type_string' => '', + 'object_messageFwdHeader_param_saved_from_peer_type_Peer' => '', + 'object_messageFwdHeader_param_saved_from_msg_id_type_int' => '', + 'object_auth.codeTypeSms' => '', + 'object_auth.codeTypeCall' => '', + 'object_auth.codeTypeFlashCall' => '', + 'object_auth.sentCodeTypeApp' => '', + 'object_auth.sentCodeTypeApp_param_length_type_int' => '', + 'object_auth.sentCodeTypeSms' => '', + 'object_auth.sentCodeTypeSms_param_length_type_int' => '', + 'object_auth.sentCodeTypeCall' => '', + 'object_auth.sentCodeTypeCall_param_length_type_int' => '', + 'object_auth.sentCodeTypeFlashCall' => '', + 'object_auth.sentCodeTypeFlashCall_param_pattern_type_string' => '', + 'object_messages.botCallbackAnswer' => '', + 'object_messages.botCallbackAnswer_param_alert_type_true' => '', + 'object_messages.botCallbackAnswer_param_has_url_type_true' => '', + 'object_messages.botCallbackAnswer_param_native_ui_type_true' => '', + 'object_messages.botCallbackAnswer_param_message_type_string' => '', + 'object_messages.botCallbackAnswer_param_url_type_string' => '', + 'object_messages.botCallbackAnswer_param_cache_time_type_int' => '', + 'object_messages.messageEditData' => '', + 'object_messages.messageEditData_param_caption_type_true' => '', + 'object_inputBotInlineMessageID' => '', + 'object_inputBotInlineMessageID_param_dc_id_type_int' => '', + 'object_inputBotInlineMessageID_param_id_type_long' => '', + 'object_inputBotInlineMessageID_param_access_hash_type_long' => '', + 'object_inlineBotSwitchPM' => '', + 'object_inlineBotSwitchPM_param_text_type_string' => '', + 'object_inlineBotSwitchPM_param_start_param_type_string' => '', + 'object_messages.peerDialogs' => '', + 'object_messages.peerDialogs_param_dialogs_type_Vector t' => '', + 'object_messages.peerDialogs_param_messages_type_Vector t' => '', + 'object_messages.peerDialogs_param_chats_type_Vector t' => '', + 'object_messages.peerDialogs_param_users_type_Vector t' => '', + 'object_messages.peerDialogs_param_state_type_updates.State' => '', + 'object_topPeer' => '', + 'object_topPeer_param_peer_type_Peer' => '', + 'object_topPeer_param_rating_type_double' => '', + 'object_topPeerCategoryBotsPM' => '', + 'object_topPeerCategoryBotsInline' => '', + 'object_topPeerCategoryCorrespondents' => '', + 'object_topPeerCategoryGroups' => '', + 'object_topPeerCategoryChannels' => '', + 'object_topPeerCategoryPhoneCalls' => '', + 'object_topPeerCategoryPeers' => '', + 'object_topPeerCategoryPeers_param_category_type_TopPeerCategory' => '', + 'object_topPeerCategoryPeers_param_count_type_int' => '', + 'object_topPeerCategoryPeers_param_peers_type_Vector t' => '', + 'object_contacts.topPeersNotModified' => '', + 'object_contacts.topPeers' => '', + 'object_contacts.topPeers_param_categories_type_Vector t' => '', + 'object_contacts.topPeers_param_chats_type_Vector t' => '', + 'object_contacts.topPeers_param_users_type_Vector t' => '', + 'object_draftMessageEmpty' => '', + 'object_draftMessage' => '', + 'object_draftMessage_param_no_webpage_type_true' => '', + 'object_draftMessage_param_reply_to_msg_id_type_int' => '', + 'object_draftMessage_param_message_type_string' => '', + 'object_draftMessage_param_entities_type_Vector t' => '', + 'object_draftMessage_param_date_type_int' => '', + 'object_messages.featuredStickersNotModified' => '', + 'object_messages.featuredStickers' => '', + 'object_messages.featuredStickers_param_hash_type_int' => '', + 'object_messages.featuredStickers_param_sets_type_Vector t' => '', + 'object_messages.featuredStickers_param_unread_type_Vector t' => '', + 'object_messages.recentStickersNotModified' => '', + 'object_messages.recentStickers' => '', + 'object_messages.recentStickers_param_hash_type_int' => '', + 'object_messages.recentStickers_param_stickers_type_Vector t' => '', + 'object_messages.archivedStickers' => '', + 'object_messages.archivedStickers_param_count_type_int' => '', + 'object_messages.archivedStickers_param_sets_type_Vector t' => '', + 'object_messages.stickerSetInstallResultSuccess' => '', + 'object_messages.stickerSetInstallResultArchive' => '', + 'object_messages.stickerSetInstallResultArchive_param_sets_type_Vector t' => '', + 'object_stickerSetCovered' => '', + 'object_stickerSetCovered_param_set_type_StickerSet' => '', + 'object_stickerSetCovered_param_cover_type_Document' => '', + 'object_stickerSetMultiCovered' => '', + 'object_stickerSetMultiCovered_param_set_type_StickerSet' => '', + 'object_stickerSetMultiCovered_param_covers_type_Vector t' => '', + 'object_maskCoords' => '', + 'object_maskCoords_param_n_type_int' => '', + 'object_maskCoords_param_x_type_double' => '', + 'object_maskCoords_param_y_type_double' => '', + 'object_maskCoords_param_zoom_type_double' => '', + 'object_inputStickeredMediaPhoto' => '', + 'object_inputStickeredMediaPhoto_param_id_type_InputPhoto' => '', + 'object_inputStickeredMediaDocument' => '', + 'object_inputStickeredMediaDocument_param_id_type_InputDocument' => '', + 'object_game' => '', + 'object_game_param_id_type_long' => '', + 'object_game_param_access_hash_type_long' => '', + 'object_game_param_short_name_type_string' => '', + 'object_game_param_title_type_string' => '', + 'object_game_param_description_type_string' => '', + 'object_game_param_photo_type_Photo' => '', + 'object_game_param_document_type_Document' => '', + 'object_inputGameID' => '', + 'object_inputGameID_param_id_type_long' => '', + 'object_inputGameID_param_access_hash_type_long' => '', + 'object_inputGameShortName' => '', + 'object_inputGameShortName_param_bot_id_type_InputUser' => '', + 'object_inputGameShortName_param_short_name_type_string' => '', + 'object_highScore' => '', + 'object_highScore_param_pos_type_int' => '', + 'object_highScore_param_user_id_type_int' => '', + 'object_highScore_param_score_type_int' => '', + 'object_messages.highScores' => '', + 'object_messages.highScores_param_scores_type_Vector t' => '', + 'object_messages.highScores_param_users_type_Vector t' => '', + 'object_textEmpty' => '', + 'object_textPlain' => '', + 'object_textPlain_param_text_type_string' => '', + 'object_textBold' => '', + 'object_textBold_param_text_type_RichText' => '', + 'object_textItalic' => '', + 'object_textItalic_param_text_type_RichText' => '', + 'object_textUnderline' => '', + 'object_textUnderline_param_text_type_RichText' => '', + 'object_textStrike' => '', + 'object_textStrike_param_text_type_RichText' => '', + 'object_textFixed' => '', + 'object_textFixed_param_text_type_RichText' => '', + 'object_textUrl' => '', + 'object_textUrl_param_text_type_RichText' => '', + 'object_textUrl_param_url_type_string' => '', + 'object_textUrl_param_webpage_id_type_long' => '', + 'object_textEmail' => '', + 'object_textEmail_param_text_type_RichText' => '', + 'object_textEmail_param_email_type_string' => '', + 'object_textConcat' => '', + 'object_textConcat_param_texts_type_Vector t' => '', + 'object_pageBlockUnsupported' => '', + 'object_pageBlockTitle' => '', + 'object_pageBlockTitle_param_text_type_RichText' => '', + 'object_pageBlockSubtitle' => '', + 'object_pageBlockSubtitle_param_text_type_RichText' => '', + 'object_pageBlockAuthorDate' => '', + 'object_pageBlockAuthorDate_param_author_type_RichText' => '', + 'object_pageBlockAuthorDate_param_published_date_type_int' => '', + 'object_pageBlockHeader' => '', + 'object_pageBlockHeader_param_text_type_RichText' => '', + 'object_pageBlockSubheader' => '', + 'object_pageBlockSubheader_param_text_type_RichText' => '', + 'object_pageBlockFooter' => '', + 'object_pageBlockFooter_param_text_type_RichText' => '', + 'object_pageBlockList' => '', + 'object_pageBlockList_param_ordered_type_Bool' => '', + 'object_pageBlockList_param_items_type_Vector t' => '', + 'object_pageBlockBlockquote' => '', + 'object_pageBlockBlockquote_param_text_type_RichText' => '', + 'object_pageBlockBlockquote_param_caption_type_RichText' => '', + 'object_pageBlockPullquote' => '', + 'object_pageBlockPullquote_param_text_type_RichText' => '', + 'object_pageBlockPullquote_param_caption_type_RichText' => '', + 'object_pageBlockPhoto' => '', + 'object_pageBlockPhoto_param_photo_id_type_long' => '', + 'object_pageBlockPhoto_param_caption_type_RichText' => '', + 'object_pageBlockVideo' => '', + 'object_pageBlockVideo_param_autoplay_type_true' => '', + 'object_pageBlockVideo_param_loop_type_true' => '', + 'object_pageBlockVideo_param_video_id_type_long' => '', + 'object_pageBlockVideo_param_caption_type_RichText' => '', + 'object_pageBlockEmbed' => '', + 'object_pageBlockEmbed_param_full_width_type_true' => '', + 'object_pageBlockEmbed_param_allow_scrolling_type_true' => '', + 'object_pageBlockEmbed_param_url_type_string' => '', + 'object_pageBlockEmbed_param_html_type_string' => '', + 'object_pageBlockEmbed_param_poster_photo_id_type_long' => '', + 'object_pageBlockEmbed_param_w_type_int' => '', + 'object_pageBlockEmbed_param_h_type_int' => '', + 'object_pageBlockEmbed_param_caption_type_RichText' => '', + 'object_pageBlockEmbedPost' => '', + 'object_pageBlockEmbedPost_param_url_type_string' => '', + 'object_pageBlockEmbedPost_param_webpage_id_type_long' => '', + 'object_pageBlockEmbedPost_param_author_photo_id_type_long' => '', + 'object_pageBlockEmbedPost_param_author_type_string' => '', + 'object_pageBlockEmbedPost_param_date_type_int' => '', + 'object_pageBlockEmbedPost_param_blocks_type_Vector t' => '', + 'object_pageBlockEmbedPost_param_caption_type_RichText' => '', + 'object_pageBlockCollage' => '', + 'object_pageBlockCollage_param_items_type_Vector t' => '', + 'object_pageBlockCollage_param_caption_type_RichText' => '', + 'object_pageBlockSlideshow' => '', + 'object_pageBlockSlideshow_param_items_type_Vector t' => '', + 'object_pageBlockSlideshow_param_caption_type_RichText' => '', + 'object_pageBlockChannel' => '', + 'object_pageBlockChannel_param_channel_type_Chat' => '', + 'object_pageBlockAudio' => '', + 'object_pageBlockAudio_param_audio_id_type_long' => '', + 'object_pageBlockAudio_param_caption_type_RichText' => '', + 'object_pagePart' => '', + 'object_pagePart_param_blocks_type_Vector t' => '', + 'object_pagePart_param_photos_type_Vector t' => '', + 'object_pagePart_param_documents_type_Vector t' => '', + 'object_pageFull' => '', + 'object_pageFull_param_blocks_type_Vector t' => '', + 'object_pageFull_param_photos_type_Vector t' => '', + 'object_pageFull_param_documents_type_Vector t' => '', + 'object_phoneCallDiscardReasonMissed' => '', + 'object_phoneCallDiscardReasonDisconnect' => '', + 'object_phoneCallDiscardReasonHangup' => '', + 'object_phoneCallDiscardReasonBusy' => '', + 'object_dataJSON' => '', + 'object_dataJSON_param_data_type_string' => '', + 'object_labeledPrice' => '', + 'object_labeledPrice_param_label_type_string' => '', + 'object_labeledPrice_param_amount_type_long' => '', + 'object_invoice' => '', + 'object_invoice_param_test_type_true' => '', + 'object_invoice_param_name_requested_type_true' => '', + 'object_invoice_param_phone_requested_type_true' => '', + 'object_invoice_param_email_requested_type_true' => '', + 'object_invoice_param_shipping_address_requested_type_true' => '', + 'object_invoice_param_flexible_type_true' => '', + 'object_invoice_param_phone_to_provider_type_true' => '', + 'object_invoice_param_email_to_provider_type_true' => '', + 'object_invoice_param_currency_type_string' => '', + 'object_invoice_param_prices_type_Vector t' => '', + 'object_paymentCharge' => '', + 'object_paymentCharge_param_id_type_string' => '', + 'object_paymentCharge_param_provider_charge_id_type_string' => '', + 'object_postAddress' => '', + 'object_postAddress_param_street_line1_type_string' => '', + 'object_postAddress_param_street_line2_type_string' => '', + 'object_postAddress_param_city_type_string' => '', + 'object_postAddress_param_state_type_string' => '', + 'object_postAddress_param_country_iso2_type_string' => '', + 'object_postAddress_param_post_code_type_string' => '', + 'object_paymentRequestedInfo' => '', + 'object_paymentRequestedInfo_param_name_type_string' => '', + 'object_paymentRequestedInfo_param_phone_type_string' => '', + 'object_paymentRequestedInfo_param_email_type_string' => '', + 'object_paymentRequestedInfo_param_shipping_address_type_PostAddress' => '', + 'object_paymentSavedCredentialsCard' => '', + 'object_paymentSavedCredentialsCard_param_id_type_string' => '', + 'object_paymentSavedCredentialsCard_param_title_type_string' => '', + 'object_webDocument' => '', + 'object_webDocument_param_url_type_string' => '', + 'object_webDocument_param_access_hash_type_long' => '', + 'object_webDocument_param_size_type_int' => '', + 'object_webDocument_param_mime_type_type_string' => '', + 'object_webDocument_param_attributes_type_Vector t' => '', + 'object_webDocument_param_dc_id_type_int' => '', + 'object_inputWebDocument' => '', + 'object_inputWebDocument_param_url_type_string' => '', + 'object_inputWebDocument_param_size_type_int' => '', + 'object_inputWebDocument_param_mime_type_type_string' => '', + 'object_inputWebDocument_param_attributes_type_Vector t' => '', + 'object_inputWebFileLocation' => '', + 'object_inputWebFileLocation_param_url_type_string' => '', + 'object_inputWebFileLocation_param_access_hash_type_long' => '', + 'object_upload.webFile' => '', + 'object_upload.webFile_param_size_type_int' => '', + 'object_upload.webFile_param_mime_type_type_string' => '', + 'object_upload.webFile_param_file_type_type_storage.FileType' => '', + 'object_upload.webFile_param_mtime_type_int' => '', + 'object_upload.webFile_param_bytes_type_bytes' => '', + 'object_payments.paymentForm' => '', + 'object_payments.paymentForm_param_can_save_credentials_type_true' => '', + 'object_payments.paymentForm_param_password_missing_type_true' => '', + 'object_payments.paymentForm_param_bot_id_type_int' => '', + 'object_payments.paymentForm_param_invoice_type_Invoice' => '', + 'object_payments.paymentForm_param_provider_id_type_int' => '', + 'object_payments.paymentForm_param_url_type_string' => '', + 'object_payments.paymentForm_param_native_provider_type_string' => '', + 'object_payments.paymentForm_param_native_params_type_DataJSON' => '', + 'object_payments.paymentForm_param_saved_info_type_PaymentRequestedInfo' => '', + 'object_payments.paymentForm_param_saved_credentials_type_PaymentSavedCredentials' => '', + 'object_payments.paymentForm_param_users_type_Vector t' => '', + 'object_payments.validatedRequestedInfo' => '', + 'object_payments.validatedRequestedInfo_param_id_type_string' => '', + 'object_payments.validatedRequestedInfo_param_shipping_options_type_Vector t' => '', + 'object_payments.paymentResult' => '', + 'object_payments.paymentResult_param_updates_type_Updates' => '', + 'object_payments.paymentVerficationNeeded' => '', + 'object_payments.paymentVerficationNeeded_param_url_type_string' => '', + 'object_payments.paymentReceipt' => '', + 'object_payments.paymentReceipt_param_date_type_int' => '', + 'object_payments.paymentReceipt_param_bot_id_type_int' => '', + 'object_payments.paymentReceipt_param_invoice_type_Invoice' => '', + 'object_payments.paymentReceipt_param_provider_id_type_int' => '', + 'object_payments.paymentReceipt_param_info_type_PaymentRequestedInfo' => '', + 'object_payments.paymentReceipt_param_shipping_type_ShippingOption' => '', + 'object_payments.paymentReceipt_param_currency_type_string' => '', + 'object_payments.paymentReceipt_param_total_amount_type_long' => '', + 'object_payments.paymentReceipt_param_credentials_title_type_string' => '', + 'object_payments.paymentReceipt_param_users_type_Vector t' => '', + 'object_payments.savedInfo' => '', + 'object_payments.savedInfo_param_has_saved_credentials_type_true' => '', + 'object_payments.savedInfo_param_saved_info_type_PaymentRequestedInfo' => '', + 'object_inputPaymentCredentialsSaved' => '', + 'object_inputPaymentCredentialsSaved_param_id_type_string' => '', + 'object_inputPaymentCredentialsSaved_param_tmp_password_type_bytes' => '', + 'object_inputPaymentCredentials' => '', + 'object_inputPaymentCredentials_param_save_type_true' => '', + 'object_inputPaymentCredentials_param_data_type_DataJSON' => '', + 'object_inputPaymentCredentialsApplePay' => '', + 'object_inputPaymentCredentialsApplePay_param_payment_data_type_DataJSON' => '', + 'object_inputPaymentCredentialsAndroidPay' => '', + 'object_inputPaymentCredentialsAndroidPay_param_payment_token_type_DataJSON' => '', + 'object_inputPaymentCredentialsAndroidPay_param_google_transaction_id_type_string' => '', + 'object_account.tmpPassword' => '', + 'object_account.tmpPassword_param_tmp_password_type_bytes' => '', + 'object_account.tmpPassword_param_valid_until_type_int' => '', + 'object_shippingOption' => '', + 'object_shippingOption_param_id_type_string' => '', + 'object_shippingOption_param_title_type_string' => '', + 'object_shippingOption_param_prices_type_Vector t' => '', + 'object_inputStickerSetItem' => '', + 'object_inputStickerSetItem_param_document_type_InputDocument' => '', + 'object_inputStickerSetItem_param_emoji_type_string' => '', + 'object_inputStickerSetItem_param_mask_coords_type_MaskCoords' => '', + 'object_inputPhoneCall' => '', + 'object_inputPhoneCall_param_id_type_long' => '', + 'object_inputPhoneCall_param_access_hash_type_long' => '', + 'object_phoneCallEmpty' => '', + 'object_phoneCallEmpty_param_id_type_long' => '', + 'object_phoneCallWaiting' => '', + 'object_phoneCallWaiting_param_id_type_long' => '', + 'object_phoneCallWaiting_param_access_hash_type_long' => '', + 'object_phoneCallWaiting_param_date_type_int' => '', + 'object_phoneCallWaiting_param_admin_id_type_int' => '', + 'object_phoneCallWaiting_param_participant_id_type_int' => '', + 'object_phoneCallWaiting_param_protocol_type_PhoneCallProtocol' => '', + 'object_phoneCallWaiting_param_receive_date_type_int' => '', + 'object_phoneCallRequested' => '', + 'object_phoneCallRequested_param_id_type_long' => '', + 'object_phoneCallRequested_param_access_hash_type_long' => '', + 'object_phoneCallRequested_param_date_type_int' => '', + 'object_phoneCallRequested_param_admin_id_type_int' => '', + 'object_phoneCallRequested_param_participant_id_type_int' => '', + 'object_phoneCallRequested_param_g_a_hash_type_bytes' => '', + 'object_phoneCallRequested_param_protocol_type_PhoneCallProtocol' => '', + 'object_phoneCallAccepted' => '', + 'object_phoneCallAccepted_param_id_type_long' => '', + 'object_phoneCallAccepted_param_access_hash_type_long' => '', + 'object_phoneCallAccepted_param_date_type_int' => '', + 'object_phoneCallAccepted_param_admin_id_type_int' => '', + 'object_phoneCallAccepted_param_participant_id_type_int' => '', + 'object_phoneCallAccepted_param_g_b_type_bytes' => '', + 'object_phoneCallAccepted_param_protocol_type_PhoneCallProtocol' => '', + 'object_phoneCall' => '', + 'object_phoneCall_param_id_type_long' => '', + 'object_phoneCall_param_access_hash_type_long' => '', + 'object_phoneCall_param_date_type_int' => '', + 'object_phoneCall_param_admin_id_type_int' => '', + 'object_phoneCall_param_participant_id_type_int' => '', + 'object_phoneCall_param_g_a_or_b_type_bytes' => '', + 'object_phoneCall_param_key_fingerprint_type_long' => '', + 'object_phoneCall_param_protocol_type_PhoneCallProtocol' => '', + 'object_phoneCall_param_connection_type_PhoneConnection' => '', + 'object_phoneCall_param_alternative_connections_type_Vector t' => '', + 'object_phoneCall_param_start_date_type_int' => '', + 'object_phoneCallDiscarded' => '', + 'object_phoneCallDiscarded_param_need_rating_type_true' => '', + 'object_phoneCallDiscarded_param_need_debug_type_true' => '', + 'object_phoneCallDiscarded_param_id_type_long' => '', + 'object_phoneCallDiscarded_param_reason_type_PhoneCallDiscardReason' => '', + 'object_phoneCallDiscarded_param_duration_type_int' => '', + 'object_phoneConnection' => '', + 'object_phoneConnection_param_id_type_long' => '', + 'object_phoneConnection_param_ip_type_string' => '', + 'object_phoneConnection_param_ipv6_type_string' => '', + 'object_phoneConnection_param_port_type_int' => '', + 'object_phoneConnection_param_peer_tag_type_bytes' => '', + 'object_phoneCallProtocol' => '', + 'object_phoneCallProtocol_param_udp_p2p_type_true' => '', + 'object_phoneCallProtocol_param_udp_reflector_type_true' => '', + 'object_phoneCallProtocol_param_min_layer_type_int' => '', + 'object_phoneCallProtocol_param_max_layer_type_int' => '', + 'object_phone.phoneCall' => '', + 'object_phone.phoneCall_param_phone_call_type_PhoneCall' => '', + 'object_phone.phoneCall_param_users_type_Vector t' => '', + 'object_upload.cdnFileReuploadNeeded' => '', + 'object_upload.cdnFileReuploadNeeded_param_request_token_type_bytes' => '', + 'object_upload.cdnFile' => '', + 'object_upload.cdnFile_param_bytes_type_bytes' => '', + 'object_cdnPublicKey' => '', + 'object_cdnPublicKey_param_dc_id_type_int' => '', + 'object_cdnPublicKey_param_public_key_type_string' => '', + 'object_cdnConfig' => '', + 'object_cdnConfig_param_public_keys_type_Vector t' => '', + 'object_langPackString' => '', + 'object_langPackString_param_key_type_string' => '', + 'object_langPackString_param_value_type_string' => '', + 'object_langPackStringPluralized' => '', + 'object_langPackStringPluralized_param_key_type_string' => '', + 'object_langPackStringPluralized_param_zero_value_type_string' => '', + 'object_langPackStringPluralized_param_one_value_type_string' => '', + 'object_langPackStringPluralized_param_two_value_type_string' => '', + 'object_langPackStringPluralized_param_few_value_type_string' => '', + 'object_langPackStringPluralized_param_many_value_type_string' => '', + 'object_langPackStringPluralized_param_other_value_type_string' => '', + 'object_langPackStringDeleted' => '', + 'object_langPackStringDeleted_param_key_type_string' => '', + 'object_langPackDifference' => '', + 'object_langPackDifference_param_lang_code_type_string' => '', + 'object_langPackDifference_param_from_version_type_int' => '', + 'object_langPackDifference_param_version_type_int' => '', + 'object_langPackDifference_param_strings_type_Vector t' => '', + 'object_langPackLanguage' => '', + 'object_langPackLanguage_param_name_type_string' => '', + 'object_langPackLanguage_param_native_name_type_string' => '', + 'object_langPackLanguage_param_lang_code_type_string' => '', + 'object_channelAdminRights' => '', + 'object_channelAdminRights_param_change_info_type_true' => '', + 'object_channelAdminRights_param_post_messages_type_true' => '', + 'object_channelAdminRights_param_edit_messages_type_true' => '', + 'object_channelAdminRights_param_delete_messages_type_true' => '', + 'object_channelAdminRights_param_ban_users_type_true' => '', + 'object_channelAdminRights_param_invite_users_type_true' => '', + 'object_channelAdminRights_param_invite_link_type_true' => '', + 'object_channelAdminRights_param_pin_messages_type_true' => '', + 'object_channelAdminRights_param_add_admins_type_true' => '', + 'object_channelBannedRights' => '', + 'object_channelBannedRights_param_view_messages_type_true' => '', + 'object_channelBannedRights_param_send_messages_type_true' => '', + 'object_channelBannedRights_param_send_media_type_true' => '', + 'object_channelBannedRights_param_send_stickers_type_true' => '', + 'object_channelBannedRights_param_send_gifs_type_true' => '', + 'object_channelBannedRights_param_send_games_type_true' => '', + 'object_channelBannedRights_param_send_inline_type_true' => '', + 'object_channelBannedRights_param_embed_links_type_true' => '', + 'object_channelBannedRights_param_until_date_type_int' => '', + 'object_channelAdminLogEventActionChangeTitle' => '', + 'object_channelAdminLogEventActionChangeTitle_param_prev_value_type_string' => '', + 'object_channelAdminLogEventActionChangeTitle_param_new_value_type_string' => '', + 'object_channelAdminLogEventActionChangeAbout' => '', + 'object_channelAdminLogEventActionChangeAbout_param_prev_value_type_string' => '', + 'object_channelAdminLogEventActionChangeAbout_param_new_value_type_string' => '', + 'object_channelAdminLogEventActionChangeUsername' => '', + 'object_channelAdminLogEventActionChangeUsername_param_prev_value_type_string' => '', + 'object_channelAdminLogEventActionChangeUsername_param_new_value_type_string' => '', + 'object_channelAdminLogEventActionChangePhoto' => '', + 'object_channelAdminLogEventActionChangePhoto_param_prev_photo_type_ChatPhoto' => '', + 'object_channelAdminLogEventActionChangePhoto_param_new_photo_type_ChatPhoto' => '', + 'object_channelAdminLogEventActionToggleInvites' => '', + 'object_channelAdminLogEventActionToggleInvites_param_new_value_type_Bool' => '', + 'object_channelAdminLogEventActionToggleSignatures' => '', + 'object_channelAdminLogEventActionToggleSignatures_param_new_value_type_Bool' => '', + 'object_channelAdminLogEventActionUpdatePinned' => '', + 'object_channelAdminLogEventActionUpdatePinned_param_message_type_Message' => '', + 'object_channelAdminLogEventActionEditMessage' => '', + 'object_channelAdminLogEventActionEditMessage_param_prev_message_type_Message' => '', + 'object_channelAdminLogEventActionEditMessage_param_new_message_type_Message' => '', + 'object_channelAdminLogEventActionDeleteMessage' => '', + 'object_channelAdminLogEventActionDeleteMessage_param_message_type_Message' => '', + 'object_channelAdminLogEventActionParticipantJoin' => '', + 'object_channelAdminLogEventActionParticipantLeave' => '', + 'object_channelAdminLogEventActionParticipantInvite' => '', + 'object_channelAdminLogEventActionParticipantInvite_param_participant_type_ChannelParticipant' => '', + 'object_channelAdminLogEventActionParticipantToggleBan' => '', + 'object_channelAdminLogEventActionParticipantToggleBan_param_prev_participant_type_ChannelParticipant' => '', + 'object_channelAdminLogEventActionParticipantToggleBan_param_new_participant_type_ChannelParticipant' => '', + 'object_channelAdminLogEventActionParticipantToggleAdmin' => '', + 'object_channelAdminLogEventActionParticipantToggleAdmin_param_prev_participant_type_ChannelParticipant' => '', + 'object_channelAdminLogEventActionParticipantToggleAdmin_param_new_participant_type_ChannelParticipant' => '', + 'object_channelAdminLogEventActionChangeStickerSet' => '', + 'object_channelAdminLogEventActionChangeStickerSet_param_prev_stickerset_type_InputStickerSet' => '', + 'object_channelAdminLogEventActionChangeStickerSet_param_new_stickerset_type_InputStickerSet' => '', + 'object_channelAdminLogEventActionTogglePreHistoryHidden' => '', + 'object_channelAdminLogEventActionTogglePreHistoryHidden_param_new_value_type_Bool' => '', + 'object_channelAdminLogEvent' => '', + 'object_channelAdminLogEvent_param_id_type_long' => '', + 'object_channelAdminLogEvent_param_date_type_int' => '', + 'object_channelAdminLogEvent_param_user_id_type_int' => '', + 'object_channelAdminLogEvent_param_action_type_ChannelAdminLogEventAction' => '', + 'object_channels.adminLogResults' => '', + 'object_channels.adminLogResults_param_events_type_Vector t' => '', + 'object_channels.adminLogResults_param_chats_type_Vector t' => '', + 'object_channels.adminLogResults_param_users_type_Vector t' => '', + 'object_channelAdminLogEventsFilter' => '', + 'object_channelAdminLogEventsFilter_param_join_type_true' => '', + 'object_channelAdminLogEventsFilter_param_leave_type_true' => '', + 'object_channelAdminLogEventsFilter_param_invite_type_true' => '', + 'object_channelAdminLogEventsFilter_param_ban_type_true' => '', + 'object_channelAdminLogEventsFilter_param_unban_type_true' => '', + 'object_channelAdminLogEventsFilter_param_kick_type_true' => '', + 'object_channelAdminLogEventsFilter_param_unkick_type_true' => '', + 'object_channelAdminLogEventsFilter_param_promote_type_true' => '', + 'object_channelAdminLogEventsFilter_param_demote_type_true' => '', + 'object_channelAdminLogEventsFilter_param_info_type_true' => '', + 'object_channelAdminLogEventsFilter_param_settings_type_true' => '', + 'object_channelAdminLogEventsFilter_param_pinned_type_true' => '', + 'object_channelAdminLogEventsFilter_param_edit_type_true' => '', + 'object_channelAdminLogEventsFilter_param_delete_type_true' => '', + 'object_popularContact' => '', + 'object_popularContact_param_client_id_type_long' => '', + 'object_popularContact_param_importers_type_int' => '', + 'object_cdnFileHash' => '', + 'object_cdnFileHash_param_offset_type_int' => '', + 'object_cdnFileHash_param_limit_type_int' => '', + 'object_cdnFileHash_param_hash_type_bytes' => '', + 'object_messages.favedStickersNotModified' => '', + 'object_messages.favedStickers' => '', + 'object_messages.favedStickers_param_hash_type_int' => '', + 'object_messages.favedStickers_param_packs_type_Vector t' => '', + 'object_messages.favedStickers_param_stickers_type_Vector t' => '', + 'object_recentMeUrlUnknown' => '', + 'object_recentMeUrlUnknown_param_url_type_string' => '', + 'object_recentMeUrlUser' => '', + 'object_recentMeUrlUser_param_url_type_string' => '', + 'object_recentMeUrlUser_param_user_id_type_int' => '', + 'object_recentMeUrlChat' => '', + 'object_recentMeUrlChat_param_url_type_string' => '', + 'object_recentMeUrlChat_param_chat_id_type_int' => '', + 'object_recentMeUrlChatInvite' => '', + 'object_recentMeUrlChatInvite_param_url_type_string' => '', + 'object_recentMeUrlChatInvite_param_chat_invite_type_ChatInvite' => '', + 'object_recentMeUrlStickerSet' => '', + 'object_recentMeUrlStickerSet_param_url_type_string' => '', + 'object_recentMeUrlStickerSet_param_set_type_StickerSetCovered' => '', + 'object_help.recentMeUrls' => '', + 'object_help.recentMeUrls_param_urls_type_Vector t' => '', + 'object_help.recentMeUrls_param_chats_type_Vector t' => '', + 'object_help.recentMeUrls_param_users_type_Vector t' => '', + 'object_inputSingleMedia' => '', + 'object_inputSingleMedia_param_media_type_InputMedia' => '', + 'object_inputSingleMedia_param_message_type_string' => '', + 'object_inputSingleMedia_param_entities_type_Vector t' => '', + 'object_webAuthorization' => '', + 'object_webAuthorization_param_hash_type_long' => '', + 'object_webAuthorization_param_bot_id_type_int' => '', + 'object_webAuthorization_param_domain_type_string' => '', + 'object_webAuthorization_param_browser_type_string' => '', + 'object_webAuthorization_param_platform_type_string' => '', + 'object_webAuthorization_param_date_created_type_int' => '', + 'object_webAuthorization_param_date_active_type_int' => '', + 'object_webAuthorization_param_ip_type_string' => '', + 'object_webAuthorization_param_region_type_string' => '', + 'object_account.webAuthorizations' => '', + 'object_account.webAuthorizations_param_authorizations_type_Vector t' => '', + 'object_account.webAuthorizations_param_users_type_Vector t' => '', + 'object_inputMessageID' => '', + 'object_inputMessageID_param_id_type_int' => '', + 'object_inputMessageReplyTo' => '', + 'object_inputMessageReplyTo_param_id_type_int' => '', + 'object_inputMessagePinned' => '', + 'object_decryptedDataBlock' => '', + 'object_decryptedDataBlock_param_voice_call_id_type_int128' => '', + 'object_decryptedDataBlock_param_in_seq_no_type_int' => '', + 'object_decryptedDataBlock_param_out_seq_no_type_int' => '', + 'object_decryptedDataBlock_param_recent_received_mask_type_int' => '', + 'object_decryptedDataBlock_param_proto_type_int' => '', + 'object_decryptedDataBlock_param_extra_type_string' => '', + 'object_decryptedDataBlock_param_raw_data_type_string' => '', + 'object_simpleDataBlock' => '', + 'object_simpleDataBlock_param_raw_data_type_string' => '', + 'object_decryptedMessage' => '', + 'object_decryptedMessage_param_message_type_string' => '', + 'object_decryptedMessage_param_media_type_DecryptedMessageMedia' => '', + 'object_decryptedMessageService' => '', + 'object_decryptedMessageService_param_action_type_DecryptedMessageAction' => '', + 'object_decryptedMessageMediaEmpty' => '', + 'object_decryptedMessageMediaPhoto' => '', + 'object_decryptedMessageMediaPhoto_param_thumb_type_bytes' => '', + 'object_decryptedMessageMediaPhoto_param_thumb_w_type_int' => '', + 'object_decryptedMessageMediaPhoto_param_thumb_h_type_int' => '', + 'object_decryptedMessageMediaPhoto_param_w_type_int' => '', + 'object_decryptedMessageMediaPhoto_param_h_type_int' => '', + 'object_decryptedMessageMediaPhoto_param_size_type_int' => '', + 'object_decryptedMessageMediaPhoto_param_key_type_bytes' => '', + 'object_decryptedMessageMediaPhoto_param_iv_type_bytes' => '', + 'object_decryptedMessageMediaVideo' => '', + 'object_decryptedMessageMediaVideo_param_thumb_type_bytes' => '', + 'object_decryptedMessageMediaVideo_param_thumb_w_type_int' => '', + 'object_decryptedMessageMediaVideo_param_thumb_h_type_int' => '', + 'object_decryptedMessageMediaVideo_param_duration_type_int' => '', + 'object_decryptedMessageMediaVideo_param_w_type_int' => '', + 'object_decryptedMessageMediaVideo_param_h_type_int' => '', + 'object_decryptedMessageMediaVideo_param_size_type_int' => '', + 'object_decryptedMessageMediaVideo_param_key_type_bytes' => '', + 'object_decryptedMessageMediaVideo_param_iv_type_bytes' => '', + 'object_decryptedMessageMediaGeoPoint' => '', + 'object_decryptedMessageMediaGeoPoint_param_lat_type_double' => '', + 'object_decryptedMessageMediaGeoPoint_param_long_type_double' => '', + 'object_decryptedMessageMediaContact' => '', + 'object_decryptedMessageMediaContact_param_phone_number_type_string' => '', + 'object_decryptedMessageMediaContact_param_first_name_type_string' => '', + 'object_decryptedMessageMediaContact_param_last_name_type_string' => '', + 'object_decryptedMessageMediaContact_param_user_id_type_int' => '', + 'object_decryptedMessageActionSetMessageTTL' => '', + 'object_decryptedMessageActionSetMessageTTL_param_ttl_seconds_type_int' => '', + 'object_decryptedMessageMediaDocument' => '', + 'object_decryptedMessageMediaDocument_param_thumb_type_bytes' => '', + 'object_decryptedMessageMediaDocument_param_thumb_w_type_int' => '', + 'object_decryptedMessageMediaDocument_param_thumb_h_type_int' => '', + 'object_decryptedMessageMediaDocument_param_file_name_type_string' => '', + 'object_decryptedMessageMediaDocument_param_mime_type_type_string' => '', + 'object_decryptedMessageMediaDocument_param_size_type_int' => '', + 'object_decryptedMessageMediaDocument_param_key_type_bytes' => '', + 'object_decryptedMessageMediaDocument_param_iv_type_bytes' => '', + 'object_decryptedMessageMediaAudio' => '', + 'object_decryptedMessageMediaAudio_param_duration_type_int' => '', + 'object_decryptedMessageMediaAudio_param_size_type_int' => '', + 'object_decryptedMessageMediaAudio_param_key_type_bytes' => '', + 'object_decryptedMessageMediaAudio_param_iv_type_bytes' => '', + 'object_decryptedMessageActionReadMessages' => '', + 'object_decryptedMessageActionReadMessages_param_random_ids_type_Vector t' => '', + 'object_decryptedMessageActionDeleteMessages' => '', + 'object_decryptedMessageActionDeleteMessages_param_random_ids_type_Vector t' => '', + 'object_decryptedMessageActionScreenshotMessages' => '', + 'object_decryptedMessageActionScreenshotMessages_param_random_ids_type_Vector t' => '', + 'object_decryptedMessageActionFlushHistory' => '', + 'object_decryptedMessage_param_ttl_type_int' => '', + 'object_decryptedMessageMediaVideo_param_mime_type_type_string' => '', + 'object_decryptedMessageMediaAudio_param_mime_type_type_string' => '', + 'object_decryptedMessageLayer' => '', + 'object_decryptedMessageLayer_param_layer_type_int' => '', + 'object_decryptedMessageLayer_param_in_seq_no_type_int' => '', + 'object_decryptedMessageLayer_param_out_seq_no_type_int' => '', + 'object_decryptedMessageLayer_param_message_type_DecryptedMessage' => '', + 'object_decryptedMessageActionResend' => '', + 'object_decryptedMessageActionResend_param_start_seq_no_type_int' => '', + 'object_decryptedMessageActionResend_param_end_seq_no_type_int' => '', + 'object_decryptedMessageActionNotifyLayer' => '', + 'object_decryptedMessageActionNotifyLayer_param_layer_type_int' => '', + 'object_decryptedMessageActionTyping' => '', + 'object_decryptedMessageActionTyping_param_action_type_SendMessageAction' => '', + 'object_decryptedMessageActionRequestKey' => '', + 'object_decryptedMessageActionRequestKey_param_exchange_id_type_long' => '', + 'object_decryptedMessageActionRequestKey_param_g_a_type_bytes' => '', + 'object_decryptedMessageActionAcceptKey' => '', + 'object_decryptedMessageActionAcceptKey_param_exchange_id_type_long' => '', + 'object_decryptedMessageActionAcceptKey_param_g_b_type_bytes' => '', + 'object_decryptedMessageActionAcceptKey_param_key_fingerprint_type_long' => '', + 'object_decryptedMessageActionAbortKey' => '', + 'object_decryptedMessageActionAbortKey_param_exchange_id_type_long' => '', + 'object_decryptedMessageActionCommitKey' => '', + 'object_decryptedMessageActionCommitKey_param_exchange_id_type_long' => '', + 'object_decryptedMessageActionCommitKey_param_key_fingerprint_type_long' => '', + 'object_decryptedMessageActionNoop' => '', + 'object_decryptedMessageMediaExternalDocument' => '', + 'object_decryptedMessageMediaExternalDocument_param_id_type_long' => '', + 'object_decryptedMessageMediaExternalDocument_param_access_hash_type_long' => '', + 'object_decryptedMessageMediaExternalDocument_param_date_type_int' => '', + 'object_decryptedMessageMediaExternalDocument_param_mime_type_type_string' => '', + 'object_decryptedMessageMediaExternalDocument_param_size_type_int' => '', + 'object_decryptedMessageMediaExternalDocument_param_thumb_type_PhotoSize' => '', + 'object_decryptedMessageMediaExternalDocument_param_dc_id_type_int' => '', + 'object_decryptedMessageMediaExternalDocument_param_attributes_type_Vector t' => '', + 'object_decryptedMessage_param_entities_type_Vector t' => '', + 'object_decryptedMessage_param_via_bot_name_type_string' => '', + 'object_decryptedMessage_param_reply_to_random_id_type_long' => '', + 'object_decryptedMessageMediaPhoto_param_caption_type_string' => '', + 'object_decryptedMessageMediaVideo_param_caption_type_string' => '', + 'object_decryptedMessageMediaDocument_param_attributes_type_Vector t' => '', + 'object_decryptedMessageMediaDocument_param_caption_type_string' => '', + 'object_decryptedMessageMediaVenue' => '', + 'object_decryptedMessageMediaVenue_param_lat_type_double' => '', + 'object_decryptedMessageMediaVenue_param_long_type_double' => '', + 'object_decryptedMessageMediaVenue_param_title_type_string' => '', + 'object_decryptedMessageMediaVenue_param_address_type_string' => '', + 'object_decryptedMessageMediaVenue_param_provider_type_string' => '', + 'object_decryptedMessageMediaVenue_param_venue_id_type_string' => '', + 'object_decryptedMessageMediaWebPage' => '', + 'object_decryptedMessageMediaWebPage_param_url_type_string' => '', + 'object_decryptedMessage_param_grouped_id_type_long' => '', + 'object_inputPeerContact' => '', + 'object_inputPeerContact_param_user_id_type_int' => '', + 'object_inputPeerForeign' => '', + 'object_inputPeerForeign_param_user_id_type_int' => '', + 'object_inputPeerForeign_param_access_hash_type_long' => '', + 'object_inputUserContact' => '', + 'object_inputUserContact_param_user_id_type_int' => '', + 'object_inputUserForeign' => '', + 'object_inputUserForeign_param_user_id_type_int' => '', + 'object_inputUserForeign_param_access_hash_type_long' => '', + 'object_inputMediaUploadedVideo' => '', + 'object_inputMediaUploadedVideo_param_file_type_InputFile' => '', + 'object_inputMediaUploadedVideo_param_duration_type_int' => '', + 'object_inputMediaUploadedVideo_param_w_type_int' => '', + 'object_inputMediaUploadedVideo_param_h_type_int' => '', + 'object_inputMediaUploadedVideo_param_mime_type_type_string' => '', + 'object_inputMediaUploadedThumbVideo' => '', + 'object_inputMediaUploadedThumbVideo_param_file_type_InputFile' => '', + 'object_inputMediaUploadedThumbVideo_param_thumb_type_InputFile' => '', + 'object_inputMediaUploadedThumbVideo_param_duration_type_int' => '', + 'object_inputMediaUploadedThumbVideo_param_w_type_int' => '', + 'object_inputMediaUploadedThumbVideo_param_h_type_int' => '', + 'object_inputMediaUploadedThumbVideo_param_mime_type_type_string' => '', + 'object_inputMediaVideo' => '', + 'object_inputMediaVideo_param_id_type_InputVideo' => '', + 'object_inputChatUploadedPhoto_param_crop_type_InputPhotoCrop' => '', + 'object_inputChatPhoto_param_crop_type_InputPhotoCrop' => '', + 'object_inputVideoEmpty' => '', + 'object_inputVideo' => '', + 'object_inputVideo_param_id_type_long' => '', + 'object_inputVideo_param_access_hash_type_long' => '', + 'object_inputVideoFileLocation' => '', + 'object_inputVideoFileLocation_param_id_type_long' => '', + 'object_inputVideoFileLocation_param_access_hash_type_long' => '', + 'object_inputPhotoCropAuto' => '', + 'object_inputPhotoCrop' => '', + 'object_inputPhotoCrop_param_crop_left_type_double' => '', + 'object_inputPhotoCrop_param_crop_top_type_double' => '', + 'object_inputPhotoCrop_param_crop_width_type_double' => '', + 'object_userSelf' => '', + 'object_userSelf_param_id_type_int' => '', + 'object_userSelf_param_first_name_type_string' => '', + 'object_userSelf_param_last_name_type_string' => '', + 'object_userSelf_param_username_type_string' => '', + 'object_userSelf_param_phone_type_string' => '', + 'object_userSelf_param_photo_type_UserProfilePhoto' => '', + 'object_userSelf_param_status_type_UserStatus' => '', + 'object_userSelf_param_inactive_type_Bool' => '', + 'object_userContact' => '', + 'object_userContact_param_id_type_int' => '', + 'object_userContact_param_first_name_type_string' => '', + 'object_userContact_param_last_name_type_string' => '', + 'object_userContact_param_username_type_string' => '', + 'object_userContact_param_access_hash_type_long' => '', + 'object_userContact_param_phone_type_string' => '', + 'object_userContact_param_photo_type_UserProfilePhoto' => '', + 'object_userContact_param_status_type_UserStatus' => '', + 'object_userRequest' => '', + 'object_userRequest_param_id_type_int' => '', + 'object_userRequest_param_first_name_type_string' => '', + 'object_userRequest_param_last_name_type_string' => '', + 'object_userRequest_param_username_type_string' => '', + 'object_userRequest_param_access_hash_type_long' => '', + 'object_userRequest_param_phone_type_string' => '', + 'object_userRequest_param_photo_type_UserProfilePhoto' => '', + 'object_userRequest_param_status_type_UserStatus' => '', + 'object_userForeign' => '', + 'object_userForeign_param_id_type_int' => '', + 'object_userForeign_param_first_name_type_string' => '', + 'object_userForeign_param_last_name_type_string' => '', + 'object_userForeign_param_username_type_string' => '', + 'object_userForeign_param_access_hash_type_long' => '', + 'object_userForeign_param_photo_type_UserProfilePhoto' => '', + 'object_userForeign_param_status_type_UserStatus' => '', + 'object_userDeleted' => '', + 'object_userDeleted_param_id_type_int' => '', + 'object_userDeleted_param_first_name_type_string' => '', + 'object_userDeleted_param_last_name_type_string' => '', + 'object_userDeleted_param_username_type_string' => '', + 'object_userStatusEmpty' => '', + 'object_userStatusOnline' => '', + 'object_userStatusOnline_param_expires_type_int' => '', + 'object_userStatusOffline' => '', + 'object_userStatusOffline_param_was_online_type_int' => '', + 'object_chat_param_left_type_Bool' => '', + 'object_chatForbidden_param_date_type_int' => '', + 'object_chatParticipants_param_admin_id_type_int' => '', + 'object_messageForwarded' => '', + 'object_messageForwarded_param_id_type_int' => '', + 'object_messageForwarded_param_fwd_from_id_type_int' => '', + 'object_messageForwarded_param_fwd_date_type_int' => '', + 'object_messageForwarded_param_from_id_type_int' => '', + 'object_messageForwarded_param_to_id_type_Peer' => '', + 'object_messageForwarded_param_date_type_int' => '', + 'object_messageForwarded_param_message_type_string' => '', + 'object_messageForwarded_param_media_type_MessageMedia' => '', + 'object_messageMediaVideo' => '', + 'object_messageMediaVideo_param_video_type_Video' => '', + 'object_messageMediaUnsupported_param_bytes_type_bytes' => '', + 'object_messageActionChatAddUser_param_user_id_type_int' => '', + 'object_photo_param_user_id_type_int' => '', + 'object_photo_param_caption_type_string' => '', + 'object_photo_param_geo_type_GeoPoint' => '', + 'object_videoEmpty' => '', + 'object_videoEmpty_param_id_type_long' => '', + 'object_video' => '', + 'object_video_param_id_type_long' => '', + 'object_video_param_access_hash_type_long' => '', + 'object_video_param_user_id_type_int' => '', + 'object_video_param_date_type_int' => '', + 'object_video_param_caption_type_string' => '', + 'object_video_param_duration_type_int' => '', + 'object_video_param_mime_type_type_string' => '', + 'object_video_param_size_type_int' => '', + 'object_video_param_thumb_type_PhotoSize' => '', + 'object_video_param_dc_id_type_int' => '', + 'object_video_param_w_type_int' => '', + 'object_video_param_h_type_int' => '', + 'object_auth.checkedPhone_param_phone_invited_type_Bool' => '', + 'object_auth.sentCode_param_phone_registered_type_Bool' => '', + 'object_auth.sentCode_param_send_call_timeout_type_int' => '', + 'object_auth.sentCode_param_is_password_type_Bool' => '', + 'object_auth.authorization_param_expires_type_int' => '', + 'object_inputPeerNotifySettings_param_show_previews_type_Bool' => '', + 'object_inputPeerNotifySettings_param_events_mask_type_int' => '', + 'object_peerNotifySettings_param_show_previews_type_Bool' => '', + 'object_peerNotifySettings_param_events_mask_type_int' => '', + 'object_userFull_param_blocked_type_Bool' => '', + 'object_userFull_param_real_first_name_type_string' => '', + 'object_userFull_param_real_last_name_type_string' => '', + 'object_contactSuggested' => '', + 'object_contactSuggested_param_user_id_type_int' => '', + 'object_contactSuggested_param_mutual_contacts_type_int' => '', + 'object_contactStatus_param_expires_type_int' => '', + 'object_contacts.foreignLinkUnknown' => '', + 'object_contacts.foreignLinkRequested' => '', + 'object_contacts.foreignLinkRequested_param_has_phone_type_Bool' => '', + 'object_contacts.foreignLinkMutual' => '', + 'object_contacts.myLinkEmpty' => '', + 'object_contacts.myLinkRequested' => '', + 'object_contacts.myLinkRequested_param_contact_type_Bool' => '', + 'object_contacts.myLinkContact' => '', + 'object_contacts.link_param_my_link_type_contacts.MyLink' => '', + 'object_contacts.link_param_foreign_link_type_contacts.ForeignLink' => '', + 'object_contacts.suggested' => '', + 'object_contacts.suggested_param_results_type_Vector t' => '', + 'object_contacts.suggested_param_users_type_Vector t' => '', + 'object_messages.statedMessages' => '', + 'object_messages.statedMessages_param_messages_type_Vector t' => '', + 'object_messages.statedMessages_param_chats_type_Vector t' => '', + 'object_messages.statedMessages_param_users_type_Vector t' => '', + 'object_messages.statedMessages_param_pts_type_int' => '', + 'object_messages.statedMessages_param_seq_type_int' => '', + 'object_messages.statedMessage' => '', + 'object_messages.statedMessage_param_message_type_Message' => '', + 'object_messages.statedMessage_param_chats_type_Vector t' => '', + 'object_messages.statedMessage_param_users_type_Vector t' => '', + 'object_messages.statedMessage_param_pts_type_int' => '', + 'object_messages.statedMessage_param_seq_type_int' => '', + 'object_messages.sentMessage' => '', + 'object_messages.sentMessage_param_id_type_int' => '', + 'object_messages.sentMessage_param_date_type_int' => '', + 'object_messages.sentMessage_param_pts_type_int' => '', + 'object_messages.sentMessage_param_seq_type_int' => '', + 'object_messages.chats_param_users_type_Vector t' => '', + 'object_messages.affectedHistory_param_seq_type_int' => '', + 'object_inputMessagesFilterPhotoVideoDocuments' => '', + 'object_inputMessagesFilterAudio' => '', + 'object_inputMessagesFilterAudioDocuments' => '', + 'object_updateReadMessages' => '', + 'object_updateReadMessages_param_messages_type_Vector t' => '', + 'object_updateReadMessages_param_pts_type_int' => '', + 'object_updateUserStatus' => '', + 'object_updateUserStatus_param_user_id_type_int' => '', + 'object_updateUserStatus_param_status_type_UserStatus' => '', + 'object_updateContactLink_param_my_link_type_contacts.MyLink' => '', + 'object_updateContactLink_param_foreign_link_type_contacts.ForeignLink' => '', + 'object_updateNewAuthorization' => '', + 'object_updateNewAuthorization_param_auth_key_id_type_long' => '', + 'object_updateNewAuthorization_param_date_type_int' => '', + 'object_updateNewAuthorization_param_device_type_string' => '', + 'object_updateNewAuthorization_param_location_type_string' => '', + 'object_updateShortMessage_param_from_id_type_int' => '', + 'object_updateShortMessage_param_seq_type_int' => '', + 'object_updateShortChatMessage_param_seq_type_int' => '', + 'object_dcOption_param_hostname_type_string' => '', + 'object_config_param_broadcast_size_max_type_int' => '', + 'object_messages.statedMessagesLinks' => '', + 'object_messages.statedMessagesLinks_param_messages_type_Vector t' => '', + 'object_messages.statedMessagesLinks_param_chats_type_Vector t' => '', + 'object_messages.statedMessagesLinks_param_users_type_Vector t' => '', + 'object_messages.statedMessagesLinks_param_links_type_Vector t' => '', + 'object_messages.statedMessagesLinks_param_pts_type_int' => '', + 'object_messages.statedMessagesLinks_param_seq_type_int' => '', + 'object_messages.statedMessageLink' => '', + 'object_messages.statedMessageLink_param_message_type_Message' => '', + 'object_messages.statedMessageLink_param_chats_type_Vector t' => '', + 'object_messages.statedMessageLink_param_users_type_Vector t' => '', + 'object_messages.statedMessageLink_param_links_type_Vector t' => '', + 'object_messages.statedMessageLink_param_pts_type_int' => '', + 'object_messages.statedMessageLink_param_seq_type_int' => '', + 'object_messages.sentMessageLink' => '', + 'object_messages.sentMessageLink_param_id_type_int' => '', + 'object_messages.sentMessageLink_param_date_type_int' => '', + 'object_messages.sentMessageLink_param_pts_type_int' => '', + 'object_messages.sentMessageLink_param_seq_type_int' => '', + 'object_messages.sentMessageLink_param_links_type_Vector t' => '', + 'object_inputMediaUploadedAudio' => '', + 'object_inputMediaUploadedAudio_param_file_type_InputFile' => '', + 'object_inputMediaUploadedAudio_param_duration_type_int' => '', + 'object_inputMediaUploadedAudio_param_mime_type_type_string' => '', + 'object_inputMediaAudio' => '', + 'object_inputMediaAudio_param_id_type_InputAudio' => '', + 'object_inputMediaUploadedDocument_param_file_name_type_string' => '', + 'object_inputMediaUploadedThumbDocument' => '', + 'object_inputMediaUploadedThumbDocument_param_file_type_InputFile' => '', + 'object_inputMediaUploadedThumbDocument_param_thumb_type_InputFile' => '', + 'object_inputMediaUploadedThumbDocument_param_file_name_type_string' => '', + 'object_inputMediaUploadedThumbDocument_param_mime_type_type_string' => '', + 'object_messageMediaAudio' => '', + 'object_messageMediaAudio_param_audio_type_Audio' => '', + 'object_inputAudioEmpty' => '', + 'object_inputAudio' => '', + 'object_inputAudio_param_id_type_long' => '', + 'object_inputAudio_param_access_hash_type_long' => '', + 'object_inputAudioFileLocation' => '', + 'object_inputAudioFileLocation_param_id_type_long' => '', + 'object_inputAudioFileLocation_param_access_hash_type_long' => '', + 'object_audioEmpty' => '', + 'object_audioEmpty_param_id_type_long' => '', + 'object_audio' => '', + 'object_audio_param_id_type_long' => '', + 'object_audio_param_access_hash_type_long' => '', + 'object_audio_param_user_id_type_int' => '', + 'object_audio_param_date_type_int' => '', + 'object_audio_param_duration_type_int' => '', + 'object_audio_param_mime_type_type_string' => '', + 'object_audio_param_size_type_int' => '', + 'object_audio_param_dc_id_type_int' => '', + 'object_document_param_user_id_type_int' => '', + 'object_document_param_file_name_type_string' => '', + 'object_auth.sentAppCode' => '', + 'object_auth.sentAppCode_param_phone_registered_type_Bool' => '', + 'object_auth.sentAppCode_param_phone_code_hash_type_string' => '', + 'object_auth.sentAppCode_param_send_call_timeout_type_int' => '', + 'object_auth.sentAppCode_param_is_password_type_Bool' => '', + 'object_contactFound' => '', + 'object_contactFound_param_user_id_type_int' => '', + 'object_updateServiceNotification_param_popup_type_Bool' => '', + 'object_inputMediaUploadedThumbDocument_param_attributes_type_Vector t' => '', + 'object_userStatusRecently' => '', + 'object_userStatusLastWeek' => '', + 'object_userStatusLastMonth' => '', + 'object_account.sentChangePhoneCode' => '', + 'object_account.sentChangePhoneCode_param_phone_code_hash_type_string' => '', + 'object_account.sentChangePhoneCode_param_send_call_timeout_type_int' => '', + 'object_messages.allStickers_param_hash_type_string' => '', + 'object_messages.allStickers_param_packs_type_Vector t' => '', + 'object_messages.allStickers_param_documents_type_Vector t' => '', + 'object_message_param_fwd_from_id_type_int' => '', + 'object_message_param_fwd_date_type_int' => '', + 'object_chatLocated' => '', + 'object_chatLocated_param_chat_id_type_int' => '', + 'object_chatLocated_param_distance_type_int' => '', + 'object_messages.messageEmpty' => '', + 'object_messages.statedMessages_param_pts_count_type_int' => '', + 'object_messages.statedMessage_param_pts_count_type_int' => '', + 'object_messages.sentMessage_param_pts_count_type_int' => '', + 'object_updateReadMessages_param_pts_count_type_int' => '', + 'object_updateShortMessage_param_fwd_from_id_type_int' => '', + 'object_updateShortMessage_param_fwd_date_type_int' => '', + 'object_updateShortChatMessage_param_fwd_from_id_type_int' => '', + 'object_updateShortChatMessage_param_fwd_date_type_int' => '', + 'object_messages.statedMessagesLinks_param_pts_count_type_int' => '', + 'object_messages.statedMessageLink_param_pts_count_type_int' => '', + 'object_messages.sentMessageLink_param_pts_count_type_int' => '', + 'object_inputGeoChat' => '', + 'object_inputGeoChat_param_chat_id_type_int' => '', + 'object_inputGeoChat_param_access_hash_type_long' => '', + 'object_inputNotifyGeoChatPeer' => '', + 'object_inputNotifyGeoChatPeer_param_peer_type_InputGeoChat' => '', + 'object_geoChat' => '', + 'object_geoChat_param_id_type_int' => '', + 'object_geoChat_param_access_hash_type_long' => '', + 'object_geoChat_param_title_type_string' => '', + 'object_geoChat_param_address_type_string' => '', + 'object_geoChat_param_venue_type_string' => '', + 'object_geoChat_param_geo_type_GeoPoint' => '', + 'object_geoChat_param_photo_type_ChatPhoto' => '', + 'object_geoChat_param_participants_count_type_int' => '', + 'object_geoChat_param_date_type_int' => '', + 'object_geoChat_param_checked_in_type_Bool' => '', + 'object_geoChat_param_version_type_int' => '', + 'object_geoChatMessageEmpty' => '', + 'object_geoChatMessageEmpty_param_chat_id_type_int' => '', + 'object_geoChatMessageEmpty_param_id_type_int' => '', + 'object_geoChatMessage' => '', + 'object_geoChatMessage_param_chat_id_type_int' => '', + 'object_geoChatMessage_param_id_type_int' => '', + 'object_geoChatMessage_param_from_id_type_int' => '', + 'object_geoChatMessage_param_date_type_int' => '', + 'object_geoChatMessage_param_message_type_string' => '', + 'object_geoChatMessage_param_media_type_MessageMedia' => '', + 'object_geoChatMessageService' => '', + 'object_geoChatMessageService_param_chat_id_type_int' => '', + 'object_geoChatMessageService_param_id_type_int' => '', + 'object_geoChatMessageService_param_from_id_type_int' => '', + 'object_geoChatMessageService_param_date_type_int' => '', + 'object_geoChatMessageService_param_action_type_MessageAction' => '', + 'object_geochats.statedMessage' => '', + 'object_geochats.statedMessage_param_message_type_GeoChatMessage' => '', + 'object_geochats.statedMessage_param_chats_type_Vector t' => '', + 'object_geochats.statedMessage_param_users_type_Vector t' => '', + 'object_geochats.statedMessage_param_seq_type_int' => '', + 'object_geochats.located' => '', + 'object_geochats.located_param_results_type_Vector t' => '', + 'object_geochats.located_param_messages_type_Vector t' => '', + 'object_geochats.located_param_chats_type_Vector t' => '', + 'object_geochats.located_param_users_type_Vector t' => '', + 'object_geochats.messages' => '', + 'object_geochats.messages_param_messages_type_Vector t' => '', + 'object_geochats.messages_param_chats_type_Vector t' => '', + 'object_geochats.messages_param_users_type_Vector t' => '', + 'object_geochats.messagesSlice' => '', + 'object_geochats.messagesSlice_param_count_type_int' => '', + 'object_geochats.messagesSlice_param_messages_type_Vector t' => '', + 'object_geochats.messagesSlice_param_chats_type_Vector t' => '', + 'object_geochats.messagesSlice_param_users_type_Vector t' => '', + 'object_messageActionGeoChatCreate' => '', + 'object_messageActionGeoChatCreate_param_title_type_string' => '', + 'object_messageActionGeoChatCreate_param_address_type_string' => '', + 'object_messageActionGeoChatCheckin' => '', + 'object_updateNewGeoChatMessage' => '', + 'object_updateNewGeoChatMessage_param_message_type_GeoChatMessage' => '', + 'object_messages.sentMessage_param_media_type_MessageMedia' => '', + 'object_messages.sentMessageLink_param_media_type_MessageMedia' => '', + 'object_inputMediaUploadedPhoto_param_caption_type_string' => '', + 'object_inputMediaPhoto_param_caption_type_string' => '', + 'object_inputMediaUploadedVideo_param_caption_type_string' => '', + 'object_inputMediaUploadedThumbVideo_param_caption_type_string' => '', + 'object_inputMediaVideo_param_caption_type_string' => '', + 'object_messageMediaPhoto_param_caption_type_string' => '', + 'object_messageMediaVideo_param_caption_type_string' => '', + 'object_botCommand' => '', + 'object_botCommand_param_command_type_string' => '', + 'object_botCommand_param_description_type_string' => '', + 'object_botInfoEmpty' => '', + 'object_botInfo_param_version_type_int' => '', + 'object_botInfo_param_share_text_type_string' => '', + 'object_help.appChangelogEmpty' => '', + 'object_help.appChangelog' => '', + 'object_help.appChangelog_param_text_type_string' => '', + 'object_message_param_fwd_from_id_type_Peer' => '', + 'object_updateShortMessage_param_fwd_from_id_type_Peer' => '', + 'object_updateShortChatMessage_param_fwd_from_id_type_Peer' => '', + 'object_channelFull_param_unread_important_count_type_int' => '', + 'object_dialogChannel' => '', + 'object_dialogChannel_param_peer_type_Peer' => '', + 'object_dialogChannel_param_top_message_type_int' => '', + 'object_dialogChannel_param_top_important_message_type_int' => '', + 'object_dialogChannel_param_read_inbox_max_id_type_int' => '', + 'object_dialogChannel_param_unread_count_type_int' => '', + 'object_dialogChannel_param_unread_important_count_type_int' => '', + 'object_dialogChannel_param_notify_settings_type_PeerNotifySettings' => '', + 'object_dialogChannel_param_pts_type_int' => '', + 'object_messageGroup' => '', + 'object_messageGroup_param_min_id_type_int' => '', + 'object_messageGroup_param_max_id_type_int' => '', + 'object_messageGroup_param_count_type_int' => '', + 'object_messageGroup_param_date_type_int' => '', + 'object_messages.channelMessages_param_collapsed_type_Vector t' => '', + 'object_updateChannelGroup' => '', + 'object_updateChannelGroup_param_channel_id_type_int' => '', + 'object_updateChannelGroup_param_group_type_MessageGroup' => '', + 'object_updates.channelDifferenceTooLong_param_top_important_message_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_unread_important_count_type_int' => '', + 'object_channelMessagesFilterCollapsed' => '', + 'object_channelParticipantModerator' => '', + 'object_channelParticipantModerator_param_user_id_type_int' => '', + 'object_channelParticipantModerator_param_inviter_id_type_int' => '', + 'object_channelParticipantModerator_param_date_type_int' => '', + 'object_channelParticipantEditor' => '', + 'object_channelParticipantEditor_param_user_id_type_int' => '', + 'object_channelParticipantEditor_param_inviter_id_type_int' => '', + 'object_channelParticipantEditor_param_date_type_int' => '', + 'object_channelParticipantKicked' => '', + 'object_channelParticipantKicked_param_user_id_type_int' => '', + 'object_channelParticipantKicked_param_kicked_by_type_int' => '', + 'object_channelParticipantKicked_param_date_type_int' => '', + 'object_channelRoleEmpty' => '', + 'object_channelRoleModerator' => '', + 'object_channelRoleEditor' => '', + 'object_inputChatEmpty' => '', + 'object_inputChat' => '', + 'object_inputChat_param_chat_id_type_int' => '', + 'object_updateReadChannelInbox_param_peer_type_Peer' => '', + 'object_updateDeleteChannelMessages_param_peer_type_Peer' => '', + 'object_message_param_unread_type_true' => '', + 'object_messageService_param_unread_type_true' => '', + 'object_updateShortMessage_param_unread_type_true' => '', + 'object_updateShortChatMessage_param_unread_type_true' => '', + 'object_stickerSet_param_disabled_type_true' => '', + 'object_updateShortSentMessage_param_unread_type_true' => '', + 'object_channel_param_kicked_type_true' => '', + 'object_channel_param_moderator_type_true' => '', + 'object_channelMessagesFilter_param_important_only_type_true' => '', + 'object_messageActionChatDeactivate' => '', + 'object_messageActionChatActivate' => '', + 'object_user_param_restiction_reason_type_string' => '', + 'object_channel_param_restiction_reason_type_string' => '', + 'object_webPageExternal' => '', + 'object_webPageExternal_param_url_type_string' => '', + 'object_webPageExternal_param_display_url_type_string' => '', + 'object_webPageExternal_param_type_type_string' => '', + 'object_webPageExternal_param_title_type_string' => '', + 'object_webPageExternal_param_description_type_string' => '', + 'object_webPageExternal_param_thumb_url_type_string' => '', + 'object_webPageExternal_param_content_url_type_string' => '', + 'object_webPageExternal_param_w_type_int' => '', + 'object_webPageExternal_param_h_type_int' => '', + 'object_webPageExternal_param_duration_type_int' => '', + 'object_foundGif_param_webpage_type_WebPage' => '', + 'object_inputMediaUploadedDocument_param_caption_type_string' => '', + 'object_inputMediaUploadedThumbDocument_param_caption_type_string' => '', + 'object_inputMediaDocument_param_caption_type_string' => '', + 'object_messageMediaDocument_param_caption_type_string' => '', + 'object_inputBotInlineMessageMediaAuto_param_caption_type_string' => '', + 'object_botInlineMessageMediaAuto_param_caption_type_string' => '', + 'object_botInlineMediaResultDocument' => '', + 'object_botInlineMediaResultDocument_param_id_type_string' => '', + 'object_botInlineMediaResultDocument_param_type_type_string' => '', + 'object_botInlineMediaResultDocument_param_document_type_Document' => '', + 'object_botInlineMediaResultDocument_param_send_message_type_BotInlineMessage' => '', + 'object_botInlineMediaResultPhoto' => '', + 'object_botInlineMediaResultPhoto_param_id_type_string' => '', + 'object_botInlineMediaResultPhoto_param_type_type_string' => '', + 'object_botInlineMediaResultPhoto_param_photo_type_Photo' => '', + 'object_botInlineMediaResultPhoto_param_send_message_type_BotInlineMessage' => '', + 'object_inputMediaVideo_param_video_type_InputVideo' => '', + 'object_inputMediaAudio_param_audio_type_InputAudio' => '', + 'object_inputMediaDocument_param_document_id_type_InputDocument' => '', + 'object_inputGeoPoint_param_latitude_type_double' => '', + 'object_inputGeoPoint_param_longitude_type_double' => '', + 'object_geoPoint_param_longitude_type_double' => '', + 'object_geoPoint_param_latitude_type_double' => '', + 'object_updateNewEncryptedMessage_param_encr_message_type_EncryptedMessage' => '', + 'object_updateEncryption_param_encr_chat_type_EncryptedChat' => '', + 'object_updateNotifySettings_param_notify_peer_type_NotifyPeer' => '', + 'object_updateServiceNotification_param_message_text_type_string' => '', + 'object_updateNewChannelMessage_param_channel_pts_type_int' => '', + 'object_updateNewChannelMessage_param_channel_pts_count_type_int' => '', + 'object_updateDeleteChannelMessages_param_channel_pts_type_int' => '', + 'object_updateDeleteChannelMessages_param_channel_pts_count_type_int' => '', + 'object_updates.channelDifferenceEmpty_param_channel_pts_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_channel_pts_type_int' => '', + 'object_updates.channelDifference_param_channel_pts_type_int' => '', + 'object_privacyKeyChatInvite' => '', + 'object_inputMediaUploadedThumbDocument_param_stickers_type_Vector t' => '', + 'object_inputMediaPhotoExternal_param_caption_type_string' => '', + 'object_inputMediaDocumentExternal_param_caption_type_string' => '', + 'object_destroy_auth_key_ok' => '', + 'object_destroy_auth_key_none' => '', + 'object_destroy_auth_key_fail' => '', + 'object_help.appChangelog_param_message_type_string' => '', + 'object_help.appChangelog_param_media_type_MessageMedia' => '', + 'object_help.appChangelog_param_entities_type_Vector t' => '', + 'object_pageBlockParagraph' => '', + 'object_pageBlockParagraph_param_text_type_RichText' => '', + 'object_pageBlockPreformatted' => '', + 'object_pageBlockPreformatted_param_text_type_RichText' => '', + 'object_pageBlockPreformatted_param_language_type_string' => '', + 'object_pageBlockDivider' => '', + 'object_pageBlockAnchor' => '', + 'object_pageBlockAnchor_param_name_type_string' => '', + 'object_pageBlockCover' => '', + 'object_pageBlockCover_param_cover_type_PageBlock' => '', + 'object_pagePart_param_videos_type_Vector t' => '', + 'object_pageFull_param_videos_type_Vector t' => '', + 'object_phoneCallRequested_param_g_a_type_bytes' => '', + 'object_resPQ_param_pq_type_string' => '', + 'object_p_q_inner_data_param_pq_type_string' => '', + 'object_p_q_inner_data_param_p_type_string' => '', + 'object_p_q_inner_data_param_q_type_string' => '', + 'object_server_DH_params_ok_param_encrypted_answer_type_string' => '', + 'object_server_DH_inner_data_param_dh_prime_type_string' => '', + 'object_server_DH_inner_data_param_g_a_type_string' => '', + 'object_client_DH_inner_data_param_g_b_type_string' => '', + 'object_msgs_state_info_param_info_type_string' => '', + 'object_msgs_all_info_param_info_type_string' => '', + 'object_http_wait' => '', + 'object_http_wait_param_max_delay_type_int' => '', + 'object_http_wait_param_wait_after_type_int' => '', + 'object_http_wait_param_max_wait_type_int' => '', + 'object_ipPort' => '', + 'object_ipPort_param_ipv4_type_int' => '', + 'object_ipPort_param_port_type_int' => '', + 'object_help.configSimple' => '', + 'object_help.configSimple_param_date_type_int' => '', + 'object_help.configSimple_param_expires_type_int' => '', + 'object_help.configSimple_param_dc_id_type_int' => '', + 'object_help.configSimple_param_ip_port_list_type_Vector t' => '', + 'object_inputMessagesFilterMyMentionsUnread' => '', + ), +); + // THIS WILL BE OVERWRITTEN BY $lang["en"] - public static $current_lang = ['req_pq' => 'Requesting pq...', 'done' => 'Done!', 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', 'stored_on_cdn' => 'File is stored on CDN!', 'serializing_madelineproto' => 'Serializing MadelineProto...', 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', 'inst_dc' => 'Istantiating DataCenter...', 'load_rsa' => 'Loading RSA keys...', 'TL_translation' => 'Translating TL schemas...', 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', 'nearest_dc' => 'We\'re in %s, current DC is %d, nearest DC is %d.', 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', 'getupdates_deserialization' => 'Getting updates after deserialization...', 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', 'threading_on' => 'THREADING IS ENABLED', 'socket_reader' => 'Socket reader on DC %s: ', 'socket_status_1' => 'CREATING', 'socket_status_2' => 'SUBMITTING', 'socket_status_3' => 'WAITING', 'socket_status_4' => 'READY', 'socket_status_5' => 'WORKING', 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', 'session_corrupted' => 'The session is corrupted!', 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', 'write_client_info' => 'Writing client info (also executing %s)...', 'config_updated' => 'Updated config!', 'length_not_4' => 'Length is not equal to 4', 'length_not_8' => 'Length is not equal to 8', 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', 'value_smaller_than_0' => 'Provided value %s is smaller than 0', 'encode_double_error' => 'Could not properly encode double', 'file_not_exist' => 'File does not exist', 'deserialization_error' => 'An error occurred on deserialization', 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', 'loading_key' => 'Loading key...', 'computing_fingerprint' => 'Computing fingerprint...', 'rsa_encrypting' => 'Encrypting with rsa key...', 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', 'no_mode_specified' => 'No mode was specified!', 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', 'proxy_class_invalid' => 'Invalid proxy class provided!', 'socket_con_error' => 'Connection: couldn\'t connect to socket.', 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', 'protocol_invalid' => 'Connection: invalid protocol specified.', 'nothing_in_socket' => 'Nothing in the socket!', 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', 'no_data_in_socket' => 'No data in the socket!', 'dc_con_start' => 'Connecting to DC %s...', 'dc_con_stop' => 'Disconnecting from DC %s...', 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', 'script_not_exist' => 'Provided script does not exist', 'apifactory_start' => 'Running APIFactory...', 'madelineproto_ready' => 'MadelineProto is ready!', 'logout_error' => 'An error occurred while logging out!', 'logout_ok' => 'Logged out successfully!', 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', 'login_ok' => 'Logged in successfully!', 'login_user' => 'Logging in as a normal user...', 'login_bot' => 'Logging in as a bot...', 'login_code_sending' => 'Sending code...', 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', 'login_auth_key' => 'Logging in using auth key...', 'not_logged_in' => 'I\'m not logged in!', 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', 'signing_up' => 'Signing up as a normal user...', 'signup_ok' => 'Signed up in successfully!', '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', 'getting_dialogs' => 'Getting dialogs...', 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', 'peer_not_in_db' => 'This peer is not present in the internal peer database', 'calling_user' => 'Calling %s...', 'generating_a' => 'Generating a...', 'generating_g_a' => 'Generating g_a...', 'call_error_1' => 'Could not find and accept call %s', 'accepting_call' => 'Accepting call from %s...', 'generating_b' => 'Generating b...', 'call_already_accepted' => 'Call %s already accepted', 'call_already_declined' => 'Call %s already declined', 'call_error_2' => 'Could not find and confirm call %s', 'call_confirming' => 'Confirming call from %s...', 'call_error_3' => 'Could not find and complete call %s', 'call_completing' => 'Completing call from %s...', 'invalid_g_a' => 'Invalid g_a!', 'fingerprint_invalid' => 'Invalid key fingerprint!', 'call_discarding' => 'Discarding call %s...', 'call_set_rating' => 'Setting rating for call %s...', 'call_debug_saving' => 'Saving debug data for call %s...', 'TL_loading' => 'Loading TL schemes...', 'file_parsing' => 'Parsing %s...', 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', 'src_file_invalid' => 'Invalid source file was provided: ', 'translating_obj' => 'Translating objects...', 'translating_methods' => 'Translating methods...', 'bool_error' => 'Could not extract boolean', 'not_numeric' => 'Given value isn\'t numeric', 'long_not_16' => 'Given value is not 16 bytes long', 'long_not_32' => 'Given value is not 32 bytes long', 'long_not_64' => 'Given value is not 64 bytes long', 'array_invalid' => 'You didn\'t provide a valid array', 'predicate_not_set' => 'Predicate (value under _) was not set!', 'type_extract_error' => 'Could not extract type "%s"', 'method_not_found' => 'Could not find method: ', 'params_missing' => 'Missing required parameter', 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', 'stream_handle_invalid' => 'An invalid stream handle was provided.', 'length_too_big' => 'Length is too big', 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', 'type_extract_error_id' => 'Could not extract type: %s with id %s', 'vector_invalid' => 'Invalid vector constructor: ', 'constructor_not_found' => 'Constructor not found for type: ', 'rand_bytes_too_small' => 'random_bytes is too small!', 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', 'non_text_conversion' => 'Can\'t convert non text messages yet!', 'last_byte_invalid' => 'Invalid last byte', 'file_type_invalid' => 'Invalid file type detected (%s)', 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', 'resetting_auth_key' => 'WARNING: Resetting auth key...', 'shutting_down_reader_pool' => 'Shutting down reader pool ', 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', 'fingerprint_mismatch' => 'Key fingerprint mismatch', 'msg_data_length_too_big' => 'message_data_length is too big', 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', 'msg_key_mismatch' => 'msg_key mismatch', 'rand_bytes_too_short' => 'random_bytes is too short!', 'resending_unsupported' => 'Resending of messages is not yet supported', 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ']; -} + public static $current_lang = array ( + 'req_pq' => 'Requesting pq...', + 'done' => 'Done!', + 'cdn_reupload' => 'File is not stored on CDN, requesting reupload!', + 'stored_on_cdn' => 'File is stored on CDN!', + 'serializing_madelineproto' => 'Serializing MadelineProto...', + 'phpseclib_fork' => 'Please install this fork of phpseclib: https://github.com/danog/phpseclib', + 'inst_dc' => 'Istantiating DataCenter...', + 'load_rsa' => 'Loading RSA keys...', + 'TL_translation' => 'Translating TL schemas...', + 'dh_prime_check_0' => 'Executing dh_prime checks (0/3)...', + 'nearest_dc' => 'We\'re in %s, nearest DC is %d.', + 'serialization_ofd' => 'Serialization is out of date, reconstructing object!', + 'getupdates_deserialization' => 'Getting updates after deserialization...', + 'shutdown_reader_pool' => 'Shutting down reader pool, %d jobs left', + 'threading_on' => 'THREADING IS ENABLED', + 'socket_reader' => 'Socket reader on DC %s: ', + 'socket_status_1' => 'CREATING', + 'socket_status_2' => 'SUBMITTING', + 'socket_status_3' => 'WAITING', + 'socket_status_4' => 'READY', + 'socket_status_5' => 'WORKING', + 'api_not_set' => 'You must provide an api key and an api id, get your own @ my.telegram.org', + 'session_corrupted' => 'The session is corrupted!', + 'reset_session_seqno' => 'Resetting session id and seq_no in DC %s...', + 'gen_perm_auth_key' => 'Generating permanent authorization key for DC %s...', + 'gen_temp_auth_key' => 'Generating temporary authorization key for DC %s...', + 'copy_auth_dcs' => 'Copying authorization from DC %s to DC %s...', + 'write_client_info' => 'Writing client info (also executing %s)...', + 'config_updated' => 'Updated config!', + 'length_not_4' => 'Length is not equal to 4', + 'length_not_8' => 'Length is not equal to 8', + 'value_bigger_than_2147483647' => 'Provided value %s is bigger than 2147483647', + 'value_smaller_than_2147483648' => 'Provided value %s is smaller than -2147483648', + 'value_bigger_than_9223372036854775807' => 'Provided value %s is bigger than 9223372036854775807', + 'value_smaller_than_9223372036854775808' => 'Provided value %s is smaller than -9223372036854775808', + 'value_bigger_than_4294967296' => 'Provided value %s is bigger than 4294967296', + 'value_smaller_than_0' => 'Provided value %s is smaller than 0', + 'encode_double_error' => 'Could not properly encode double', + 'file_not_exist' => 'File does not exist', + 'deserialization_error' => 'An error occurred on deserialization', + 'rsa_init' => 'Istantiating \\phpseclib\\Crypt\\RSA...', + 'loading_key' => 'Loading key...', + 'computing_fingerprint' => 'Computing fingerprint...', + 'rsa_encrypting' => 'Encrypting with rsa key...', + 'rpc_tg_error' => 'Telegram returned an RPC error: %s (%s), caused by %s:%sTL trace:', + 'v_error' => '506c656173652075706461746520746f20746865206c61746573742076657273696f6e206f66204d6164656c696e6550726f746f2e', + 'v_tgerror' => '506c6561736520757064617465207068702d6c69627467766f6970', + 'no_mode_specified' => 'No mode was specified!', + 'constructor_function_uncalled' => 'The constructor function wasn\'t called! Please call the constructor function before using this method.', + 'proxy_class_invalid' => 'Invalid proxy class provided!', + 'socket_con_error' => 'Connection: couldn\'t connect to socket.', + 'protocol_not_implemented' => 'Connection: This protocol isn\'t implemented yet.', + 'protocol_invalid' => 'Connection: invalid protocol specified.', + 'nothing_in_socket' => 'Nothing in the socket!', + 'wrong_length_read' => 'WARNING: Wrong length was read (should\'ve read %s, read %s)!', + 'no_data_in_socket' => 'No data in the socket!', + 'dc_con_start' => 'Connecting to DC %s...', + 'dc_con_stop' => 'Disconnecting from DC %s...', + 'dc_con_test_start' => 'Connecting to DC %s (%s server, %s, %s)...', + 'script_not_exist' => 'Provided script does not exist', + 'apifactory_start' => 'Running APIFactory...', + 'madelineproto_ready' => 'MadelineProto is ready!', + 'logout_error' => 'An error occurred while logging out!', + 'logout_ok' => 'Logged out successfully!', + 'already_logged_in' => 'This instance of MadelineProto is already logged in. Logging out first...', + 'login_ok' => 'Logged in successfully!', + 'login_user' => 'Logging in as a normal user...', + 'login_bot' => 'Logging in as a bot...', + 'login_code_sending' => 'Sending code...', + 'login_code_sent' => 'Code sent successfully! Once you receive the code you should use the complete_phone_login function.', + 'login_code_uncalled' => 'I\'m not waiting for the code! Please call the phone_login method first', + 'login_2fa_enabled' => '2FA enabled, you will have to call the complete_2fa_login function...', + 'login_need_signup' => 'An account has not been created for this number, you will have to call the complete_signup function...', + 'login_auth_key' => 'Logging in using auth key...', + 'not_logged_in' => 'I\'m not logged in!', + 'signup_uncalled' => 'I\'m not waiting to signup! Please call the phone_login and the complete_phone_login methods first!', + 'signing_up' => 'Signing up as a normal user...', + 'signup_ok' => 'Signed up in successfully!', + '2fa_uncalled' => 'I\'m not waiting for the password! Please call the phone_login and the complete_phone_login methods first!', + 'getting_dialogs' => 'Getting dialogs...', + 'libtgvoip_required' => 'The php-libtgvoip extension is required to accept and manage calls. See daniil.it/MadelineProto for more info.', + 'peer_not_in_db' => 'This peer is not present in the internal peer database', + 'calling_user' => 'Calling %s...', + 'generating_a' => 'Generating a...', + 'generating_g_a' => 'Generating g_a...', + 'call_error_1' => 'Could not find and accept call %s', + 'accepting_call' => 'Accepting call from %s...', + 'generating_b' => 'Generating b...', + 'call_already_accepted' => 'Call %s already accepted', + 'call_already_declined' => 'Call %s already declined', + 'call_error_2' => 'Could not find and confirm call %s', + 'call_confirming' => 'Confirming call from %s...', + 'call_error_3' => 'Could not find and complete call %s', + 'call_completing' => 'Completing call from %s...', + 'invalid_g_a' => 'Invalid g_a!', + 'fingerprint_invalid' => 'Invalid key fingerprint!', + 'call_discarding' => 'Discarding call %s...', + 'call_set_rating' => 'Setting rating for call %s...', + 'call_debug_saving' => 'Saving debug data for call %s...', + 'TL_loading' => 'Loading TL schemes...', + 'file_parsing' => 'Parsing %s...', + 'crc32_mismatch' => 'CRC32 mismatch (%s, %s) for %s', + 'src_file_invalid' => 'Invalid source file was provided: ', + 'translating_obj' => 'Translating objects...', + 'translating_methods' => 'Translating methods...', + 'bool_error' => 'Could not extract boolean', + 'not_numeric' => 'Given value isn\'t numeric', + 'long_not_16' => 'Given value is not 16 bytes long', + 'long_not_32' => 'Given value is not 32 bytes long', + 'long_not_64' => 'Given value is not 64 bytes long', + 'array_invalid' => 'You didn\'t provide a valid array', + 'predicate_not_set' => 'Predicate (value under _) was not set!', + 'type_extract_error' => 'Could not extract type "%s"', + 'method_not_found' => 'Could not find method: ', + 'params_missing' => 'Missing required parameter', + 'sec_peer_not_in_db' => 'This secret peer is not present in the internal peer database', + 'stream_handle_invalid' => 'An invalid stream handle was provided.', + 'length_too_big' => 'Length is too big', + 'deserialize_not_str' => 'Deserialize: Generated value isn\'t a string', + 'type_extract_error_id' => 'Could not extract type: %s with id %s', + 'vector_invalid' => 'Invalid vector constructor: ', + 'constructor_not_found' => 'Constructor not found for type: ', + 'rand_bytes_too_small' => 'random_bytes is too small!', + 'botapi_conversion_error' => 'Can\'t convert %s to a bot API object', + 'non_text_conversion' => 'Can\'t convert non text messages yet!', + 'last_byte_invalid' => 'Invalid last byte', + 'file_type_invalid' => 'Invalid file type detected (%s)', + 'recreate_temp_auth_key' => 'I had to recreate the temporary authorization key', + 'resetting_auth_key' => 'WARNING: Resetting auth key...', + 'shutting_down_reader_pool' => 'Shutting down reader pool ', + 'shutting_down_handler_pool' => 'Shutting down handler pool for dc %s, %d jobs left', + 'secret_chat_skipping' => 'I do not have the secret chat %s in the database, skipping message...', + 'fingerprint_mismatch' => 'Key fingerprint mismatch', + 'msg_data_length_too_big' => 'message_data_length is too big', + 'length_not_divisible_16' => 'Length of decrypted data is not divisible by 16', + 'msg_key_mismatch' => 'msg_key mismatch', + 'rand_bytes_too_short' => 'random_bytes is too short!', + 'resending_unsupported' => 'Resending of messages is not yet supported', + 'unrecognized_dec_msg' => 'Unrecognized decrypted message received: ', + 'method_req_pq' => 'Requests PQ for factorization', + 'method_req_pq_param_nonce_type_int128' => 'Random number for cryptographic security', + 'method_req_pq_multi' => 'Requests PQ for factorization (new version)', + 'method_req_pq_multi_param_nonce_type_int128' => 'Random number for cryptographic security', + 'method_req_DH_params' => 'Requests Diffie-hellman parameters for key exchange', + 'method_req_DH_params_param_nonce_type_int128' => 'Random number for cryptographic security', + 'method_req_DH_params_param_server_nonce_type_int128' => 'Random number for cryptographic security, given by server', + 'method_req_DH_params_param_p_type_bytes' => 'Factorized p from pq', + 'method_req_DH_params_param_q_type_bytes' => 'Factorized q from pq', + 'method_req_DH_params_param_public_key_fingerprint_type_long' => 'Server RSA fingerprint', + 'method_req_DH_params_param_encrypted_data_type_bytes' => 'Encrypted key exchange message', + 'method_set_client_DH_params' => 'Sets client diffie-hellman parameters', + 'method_set_client_DH_params_param_nonce_type_int128' => 'Random number for cryptographic security', + 'method_set_client_DH_params_param_server_nonce_type_int128' => 'Random number for cryptographic security, given by server', + 'method_set_client_DH_params_param_encrypted_data_type_bytes' => 'Encrypted key exchange message', + 'method_rpc_drop_answer' => 'Do not send answer to provided request', + 'method_rpc_drop_answer_param_req_msg_id_type_long' => 'The message ID of the request', + 'method_get_future_salts' => 'Get future salts', + 'method_get_future_salts_param_num_type_int' => 'How many salts should be fetched', + 'method_ping' => 'pings the server', + 'method_ping_param_ping_id_type_long' => 'Ping ID', + 'method_ping_delay_disconnect' => 'Pings the server and causes disconection if the same method is not called within ping_disconnect_delay', + 'method_ping_delay_disconnect_param_ping_id_type_long' => 'Ping ID', + 'method_ping_delay_disconnect_param_disconnect_delay_type_int' => 'Disconection delay', + 'method_destroy_session' => 'Destroy the current MTProto session', + 'method_destroy_session_param_session_id_type_long' => 'The session to destroy', + 'method_http_wait' => 'Makes the server send messages waiting in the buffer', + 'method_http_wait_param_max_delay_type_int' => 'Denotes the maximum number of milliseconds that has elapsed between the first message for this session and the transmission of an HTTP response', + 'method_http_wait_param_wait_after_type_int' => 'after the receipt of the latest message for a particular session, the server waits another wait_after milliseconds in case there are more messages. If there are no additional messages, the result is transmitted (a container with all the messages).', + 'method_http_wait_param_max_wait_type_int' => 'If more messages appear, the wait_after timer is reset.', + 'method_invokeAfterMsg' => 'Invokes a query after successfull completion of one of the previous queries.', + 'method_invokeAfterMsg_param_msg_id_type_long' => 'Message identifier on which a current query depends', + 'method_invokeAfterMsg_param_query_type_!X' => 'The query itself', + 'method_invokeAfterMsgs' => 'Result type returned by a current query.', + 'method_invokeAfterMsgs_param_msg_ids_type_Vector t' => 'List of messages on which a current query depends', + 'method_invokeAfterMsgs_param_query_type_!X' => 'The query itself', + 'method_initConnection' => 'Initializes connection and save information on the user\'s device and application.', + 'method_initConnection_param_api_id_type_int' => 'Application identifier', + 'method_initConnection_param_device_model_type_string' => 'Device model', + 'method_initConnection_param_system_version_type_string' => 'System version', + 'method_initConnection_param_app_version_type_string' => 'App version', + 'method_initConnection_param_system_lang_code_type_string' => 'Language code', + 'method_initConnection_param_lang_pack_type_string' => 'Language pack to use', + 'method_initConnection_param_lang_code_type_string' => 'Language code to set', + 'method_initConnection_param_query_type_!X' => 'Nested query', + 'method_invokeWithLayer' => 'Invoke this method with layer X', + 'method_invokeWithLayer_param_layer_type_int' => 'The layer version', + 'method_invokeWithLayer_param_query_type_!X' => 'The query', + 'method_invokeWithoutUpdates' => 'Invoke with method without returning updates in the socket', + 'method_invokeWithoutUpdates_param_query_type_!X' => 'The query', + 'method_auth.checkPhone' => 'Check if this phone number is registered on telegram', + 'method_auth.checkPhone_param_phone_number_type_string' => 'The phone number to check', + 'method_auth.sendCode' => 'Use phone_login instead', + 'method_auth.sendCode_param_allow_flashcall_type_true' => 'Use phone_login instead', + 'method_auth.sendCode_param_phone_number_type_string' => 'Use phone_login instead', + 'method_auth.sendCode_param_current_number_type_Bool' => 'Use phone_login instead', + 'method_auth.sendCode_param_api_id_type_int' => 'Use phone_login instead', + 'method_auth.sendCode_param_api_hash_type_string' => 'Use phone_login instead', + 'method_auth.signUp' => 'You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signUp_param_phone_number_type_string' => 'You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signUp_param_phone_code_hash_type_string' => 'You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signUp_param_phone_code_type_string' => 'You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signUp_param_first_name_type_string' => 'You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signUp_param_last_name_type_string' => 'You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signIn' => 'You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signIn_param_phone_number_type_string' => 'You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signIn_param_phone_code_hash_type_string' => 'You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.signIn_param_phone_code_type_string' => 'You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.logOut' => 'You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.resetAuthorizations' => 'Delete all logged-in sessions.', + 'method_auth.sendInvites' => 'Invite friends to telegram!', + 'method_auth.sendInvites_param_phone_numbers_type_Vector t' => 'Phone numbers to invite', + 'method_auth.sendInvites_param_message_type_string' => 'The message to send', + 'method_auth.exportAuthorization' => 'You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html', + 'method_auth.exportAuthorization_param_dc_id_type_int' => 'You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html', + 'method_auth.importAuthorization' => 'You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html', + 'method_auth.importAuthorization_param_id_type_int' => 'You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html', + 'method_auth.importAuthorization_param_bytes_type_bytes' => 'You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html', + 'method_auth.bindTempAuthKey' => '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', + 'method_auth.bindTempAuthKey_param_perm_auth_key_id_type_long' => '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', + 'method_auth.bindTempAuthKey_param_nonce_type_long' => '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', + 'method_auth.bindTempAuthKey_param_expires_at_type_int' => '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', + 'method_auth.bindTempAuthKey_param_encrypted_message_type_bytes' => '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', + 'method_auth.importBotAuthorization' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.importBotAuthorization_param_api_id_type_int' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.importBotAuthorization_param_api_hash_type_string' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.importBotAuthorization_param_bot_auth_token_type_string' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.checkPassword' => 'You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.checkPassword_param_password_hash_type_bytes' => 'You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.requestPasswordRecovery' => 'Send an email to recover the 2FA password', + 'method_auth.recoverPassword' => 'Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account', + 'method_auth.recoverPassword_param_code_type_string' => 'The code that was emailed to you', + 'method_auth.resendCode' => 'Resend the SMS verification code', + 'method_auth.resendCode_param_phone_number_type_string' => 'The phone number', + 'method_auth.resendCode_param_phone_code_hash_type_string' => 'The phone code hash', + 'method_auth.cancelCode' => 'Invalidate sent phone code', + 'method_auth.cancelCode_param_phone_number_type_string' => 'Phone number', + 'method_auth.cancelCode_param_phone_code_hash_type_string' => 'Phone code hash', + 'method_auth.dropTempAuthKeys' => 'Delete all temporary authorization keys except the ones provided', + 'method_auth.dropTempAuthKeys_param_except_auth_keys_type_Vector t' => 'The temporary authorization keys to keep', + 'method_account.registerDevice' => 'Register device for push notifications', + 'method_account.registerDevice_param_token_type_type_int' => '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', + 'method_account.registerDevice_param_token_type_string' => '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', + 'method_account.registerDevice_param_app_sandbox_type_Bool' => 'Should the app run in a sandbox?', + 'method_account.registerDevice_param_other_uids_type_Vector t' => 'Other UUIDs', + 'method_account.unregisterDevice' => 'Stop sending PUSH notifications to app', + 'method_account.unregisterDevice_param_token_type_type_int' => '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', + 'method_account.unregisterDevice_param_token_type_string' => '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', + 'method_account.unregisterDevice_param_other_uids_type_Vector t' => 'Other UUIDs', + 'method_account.updateNotifySettings' => 'Change notification settings', + 'method_account.updateNotifySettings_param_peer_type_InputNotifyPeer' => 'The peers to which the notification settings should be applied', + 'method_account.updateNotifySettings_param_settings_type_InputPeerNotifySettings' => 'Notification settings', + 'method_account.getNotifySettings' => 'Get notification settings', + 'method_account.getNotifySettings_param_peer_type_InputNotifyPeer' => 'Notification source ', + 'method_account.resetNotifySettings' => 'Reset all notification settings', + 'method_account.updateProfile' => 'Update profile info', + 'method_account.updateProfile_param_first_name_type_string' => 'The first name', + 'method_account.updateProfile_param_last_name_type_string' => 'The last name', + 'method_account.updateProfile_param_about_type_string' => 'The bio/about field', + 'method_account.updateStatus' => 'Update online status', + 'method_account.updateStatus_param_offline_type_Bool' => 'offline to set the status to offline', + 'method_account.getWallPapers' => 'Returns a list of available wallpapers.', + 'method_account.reportPeer' => 'Report for spam', + 'method_account.reportPeer_param_peer_type_InputPeer' => 'The peer to report', + 'method_account.reportPeer_param_reason_type_ReportReason' => 'Why are you reporting this peer', + 'method_account.checkUsername' => 'Check if this username is available', + 'method_account.checkUsername_param_username_type_string' => 'The username to check', + 'method_account.updateUsername' => 'Update this user\'s username', + 'method_account.updateUsername_param_username_type_string' => 'The new username', + 'method_account.getPrivacy' => 'Get privacy settings', + 'method_account.getPrivacy_param_key_type_InputPrivacyKey' => 'Privacy setting key', + 'method_account.setPrivacy' => 'Set privacy settings', + 'method_account.setPrivacy_param_key_type_InputPrivacyKey' => 'Privacy setting', + 'method_account.setPrivacy_param_rules_type_Vector t' => 'Privacy settings', + 'method_account.deleteAccount' => 'Delete this account', + 'method_account.deleteAccount_param_reason_type_string' => 'Why are you going away? :(', + 'method_account.getAccountTTL' => 'Get account TTL', + 'method_account.setAccountTTL' => 'Set account TTL', + 'method_account.setAccountTTL_param_ttl_type_AccountDaysTTL' => 'Time To Live of account', + 'method_account.sendChangePhoneCode' => 'Change the phone number', + 'method_account.sendChangePhoneCode_param_allow_flashcall_type_true' => 'Can the code be sent using a flash call instead of an SMS?', + 'method_account.sendChangePhoneCode_param_phone_number_type_string' => 'New phone number', + 'method_account.sendChangePhoneCode_param_current_number_type_Bool' => 'Current phone number', + 'method_account.changePhone' => 'Change the phone number associated to this account', + 'method_account.changePhone_param_phone_number_type_string' => 'Phone number', + 'method_account.changePhone_param_phone_code_hash_type_string' => 'Phone code hash returned by account.sendChangePhoneCode', + 'method_account.changePhone_param_phone_code_type_string' => 'The phone code sent by account.sendChangePhoneCode', + 'method_account.updateDeviceLocked' => 'Disable all notifications for a certain period', + 'method_account.updateDeviceLocked_param_period_type_int' => 'For how long should notifications be disabled', + 'method_account.getAuthorizations' => 'Get all logged-in authorizations', + 'method_account.resetAuthorization' => 'Delete a certain session', + 'method_account.resetAuthorization_param_hash_type_long' => 'The session hash, obtained from $MadelineProto->account->getAuthorizations', + 'method_account.getPassword' => 'Get the current password', + 'method_account.getPasswordSettings' => 'Get the current 2FA settings', + 'method_account.getPasswordSettings_param_current_password_hash_type_bytes' => '$current_salt = $MadelineProto->account->getPassword()[\'current_salt\']; $current_password_hash = hash(\'sha256\', $current_salt.$password.$current_salt);', + 'method_account.updatePasswordSettings' => 'Update the 2FA password settings', + 'method_account.updatePasswordSettings_param_current_password_hash_type_bytes' => '$current_salt = $MadelineProto->account->getPassword()[\'current_salt\']; $current_password_hash = hash(\'sha256\', $current_salt.$password.$current_salt);', + 'method_account.updatePasswordSettings_param_new_settings_type_account.PasswordInputSettings' => 'New 2FA settings', + 'method_account.sendConfirmPhoneCode' => 'Send confirmation phone code', + 'method_account.sendConfirmPhoneCode_param_allow_flashcall_type_true' => 'Can telegram call you instead of sending an SMS?', + 'method_account.sendConfirmPhoneCode_param_hash_type_string' => 'The hash', + 'method_account.sendConfirmPhoneCode_param_current_number_type_Bool' => 'The current phone number', + 'method_account.confirmPhone' => 'Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode', + 'method_account.confirmPhone_param_phone_code_hash_type_string' => 'obtain phone_code_hash from sendConfirmPhoneCode', + 'method_account.confirmPhone_param_phone_code_type_string' => 'The code sent by sendConfirmPhoneCode', + 'method_account.getTmpPassword' => 'Get temporary password for buying products through bots', + 'method_account.getTmpPassword_param_password_hash_type_bytes' => 'The password hash', + 'method_account.getTmpPassword_param_period_type_int' => 'The validity period', + 'method_account.getWebAuthorizations' => 'Get telegram web login authorizations', + 'method_account.resetWebAuthorization' => 'Delete a certain telegram web login authorization', + 'method_account.resetWebAuthorization_param_hash_type_long' => 'The authorization\'s hash', + 'method_account.resetWebAuthorizations' => 'Reset all telegram web login authorizations', + 'method_users.getUsers' => 'Get info about users', + 'method_users.getUsers_param_id_type_Vector t' => 'The ids of the users', + 'method_users.getFullUser' => '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)', + 'method_users.getFullUser_param_id_type_InputUser' => '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)', + 'method_contacts.getStatuses' => 'Get online status of all users', + 'method_contacts.getContacts' => 'Get info about a certain contact', + 'method_contacts.getContacts_param_hash_type_int' => '$ids is the list ids of previously fetched contacts, $hash = $MadelineProto->gen_vector_hash($ids);', + 'method_contacts.importContacts' => 'Add phone number as contact', + 'method_contacts.importContacts_param_contacts_type_Vector t' => 'The numbers to import', + 'method_contacts.deleteContact' => 'Delete a contact', + 'method_contacts.deleteContact_param_id_type_InputUser' => 'The contact to delete', + 'method_contacts.deleteContacts' => 'Delete multiple contacts', + 'method_contacts.deleteContacts_param_id_type_Vector t' => 'The contacts to delete', + 'method_contacts.block' => 'Block a user', + 'method_contacts.block_param_id_type_InputUser' => 'The user to block', + 'method_contacts.unblock' => 'Unblock a user', + 'method_contacts.unblock_param_id_type_InputUser' => 'The user to unblock', + 'method_contacts.getBlocked' => 'Get blocked users', + 'method_contacts.getBlocked_param_offset_type_int' => 'Initially 0, then set to the number of blocked contacts previously fetched', + 'method_contacts.getBlocked_param_limit_type_int' => 'How many blocked contacts to fetch', + 'method_contacts.exportCard' => 'Export contact as card', + 'method_contacts.importCard' => 'Import card as contact', + 'method_contacts.importCard_param_export_card_type_Vector t' => 'The card', + 'method_contacts.search' => 'Search contacts', + 'method_contacts.search_param_q_type_string' => 'The search query', + 'method_contacts.search_param_limit_type_int' => 'How many results should be returned', + 'method_contacts.resolveUsername' => '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)', + 'method_contacts.resolveUsername_param_username_type_string' => '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)', + 'method_contacts.getTopPeers' => 'Get most used chats', + 'method_contacts.getTopPeers_param_correspondents_type_true' => '', + 'method_contacts.getTopPeers_param_bots_pm_type_true' => '', + 'method_contacts.getTopPeers_param_bots_inline_type_true' => '', + 'method_contacts.getTopPeers_param_phone_calls_type_true' => '', + 'method_contacts.getTopPeers_param_groups_type_true' => '', + 'method_contacts.getTopPeers_param_channels_type_true' => '', + 'method_contacts.getTopPeers_param_offset_type_int' => '', + 'method_contacts.getTopPeers_param_limit_type_int' => '', + 'method_contacts.getTopPeers_param_hash_type_int' => '', + 'method_contacts.resetTopPeerRating' => '', + 'method_contacts.resetTopPeerRating_param_category_type_TopPeerCategory' => '', + 'method_contacts.resetTopPeerRating_param_peer_type_InputPeer' => '', + 'method_contacts.resetSaved' => '', + 'method_messages.getMessages' => '', + 'method_messages.getMessages_param_id_type_Vector t' => '', + 'method_messages.getDialogs' => '', + 'method_messages.getDialogs_param_exclude_pinned_type_true' => '', + 'method_messages.getDialogs_param_offset_date_type_int' => '', + 'method_messages.getDialogs_param_offset_id_type_int' => '', + 'method_messages.getDialogs_param_offset_peer_type_InputPeer' => '', + 'method_messages.getDialogs_param_limit_type_int' => '', + 'method_messages.getHistory' => '', + 'method_messages.getHistory_param_peer_type_InputPeer' => '', + 'method_messages.getHistory_param_offset_id_type_int' => '', + 'method_messages.getHistory_param_offset_date_type_int' => '', + 'method_messages.getHistory_param_add_offset_type_int' => '', + 'method_messages.getHistory_param_limit_type_int' => '', + 'method_messages.getHistory_param_max_id_type_int' => '', + 'method_messages.getHistory_param_min_id_type_int' => '', + 'method_messages.getHistory_param_hash_type_int' => '', + 'method_messages.search' => '', + 'method_messages.search_param_peer_type_InputPeer' => '', + 'method_messages.search_param_q_type_string' => '', + 'method_messages.search_param_from_id_type_InputUser' => '', + 'method_messages.search_param_filter_type_MessagesFilter' => '', + 'method_messages.search_param_min_date_type_int' => '', + 'method_messages.search_param_max_date_type_int' => '', + 'method_messages.search_param_offset_id_type_int' => '', + 'method_messages.search_param_add_offset_type_int' => '', + 'method_messages.search_param_limit_type_int' => '', + 'method_messages.search_param_max_id_type_int' => '', + 'method_messages.search_param_min_id_type_int' => '', + 'method_messages.readHistory' => '', + 'method_messages.readHistory_param_peer_type_InputPeer' => '', + 'method_messages.readHistory_param_max_id_type_int' => '', + 'method_messages.deleteHistory' => '', + 'method_messages.deleteHistory_param_just_clear_type_true' => '', + 'method_messages.deleteHistory_param_peer_type_InputPeer' => '', + 'method_messages.deleteHistory_param_max_id_type_int' => '', + 'method_messages.deleteMessages' => '', + 'method_messages.deleteMessages_param_revoke_type_true' => '', + 'method_messages.deleteMessages_param_id_type_Vector t' => '', + 'method_messages.receivedMessages' => '', + 'method_messages.receivedMessages_param_max_id_type_int' => '', + 'method_messages.setTyping' => '', + 'method_messages.setTyping_param_peer_type_InputPeer' => '', + 'method_messages.setTyping_param_action_type_SendMessageAction' => '', + 'method_messages.sendMessage' => '', + 'method_messages.sendMessage_param_no_webpage_type_true' => '', + 'method_messages.sendMessage_param_silent_type_true' => '', + 'method_messages.sendMessage_param_background_type_true' => '', + 'method_messages.sendMessage_param_clear_draft_type_true' => '', + 'method_messages.sendMessage_param_peer_type_InputPeer' => '', + 'method_messages.sendMessage_param_reply_to_msg_id_type_int' => '', + 'method_messages.sendMessage_param_message_type_string' => '', + 'method_messages.sendMessage_param_reply_markup_type_ReplyMarkup' => '', + 'method_messages.sendMessage_param_entities_type_Vector t' => '', + 'method_messages.sendMedia' => '', + 'method_messages.sendMedia_param_silent_type_true' => '', + 'method_messages.sendMedia_param_background_type_true' => '', + 'method_messages.sendMedia_param_clear_draft_type_true' => '', + 'method_messages.sendMedia_param_peer_type_InputPeer' => '', + 'method_messages.sendMedia_param_reply_to_msg_id_type_int' => '', + 'method_messages.sendMedia_param_media_type_InputMedia' => '', + 'method_messages.sendMedia_param_message_type_string' => '', + 'method_messages.sendMedia_param_reply_markup_type_ReplyMarkup' => '', + 'method_messages.sendMedia_param_entities_type_Vector t' => '', + 'method_messages.forwardMessages' => '', + 'method_messages.forwardMessages_param_silent_type_true' => '', + 'method_messages.forwardMessages_param_background_type_true' => '', + 'method_messages.forwardMessages_param_with_my_score_type_true' => '', + 'method_messages.forwardMessages_param_grouped_type_true' => '', + 'method_messages.forwardMessages_param_from_peer_type_InputPeer' => '', + 'method_messages.forwardMessages_param_id_type_Vector t' => '', + 'method_messages.forwardMessages_param_to_peer_type_InputPeer' => '', + 'method_messages.reportSpam' => '', + 'method_messages.reportSpam_param_peer_type_InputPeer' => '', + 'method_messages.hideReportSpam' => '', + 'method_messages.hideReportSpam_param_peer_type_InputPeer' => '', + 'method_messages.getPeerSettings' => '', + 'method_messages.getPeerSettings_param_peer_type_InputPeer' => '', + 'method_messages.getChats' => '', + 'method_messages.getChats_param_id_type_Vector t' => '', + 'method_messages.getFullChat' => '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)', + 'method_messages.getFullChat_param_chat_id_type_InputPeer' => '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)', + 'method_messages.editChatTitle' => '', + 'method_messages.editChatTitle_param_chat_id_type_InputPeer' => '', + 'method_messages.editChatTitle_param_title_type_string' => '', + 'method_messages.editChatPhoto' => '', + 'method_messages.editChatPhoto_param_chat_id_type_InputPeer' => '', + 'method_messages.editChatPhoto_param_photo_type_InputChatPhoto' => '', + 'method_messages.addChatUser' => '', + 'method_messages.addChatUser_param_chat_id_type_InputPeer' => '', + 'method_messages.addChatUser_param_user_id_type_InputUser' => '', + 'method_messages.addChatUser_param_fwd_limit_type_int' => '', + 'method_messages.deleteChatUser' => '', + 'method_messages.deleteChatUser_param_chat_id_type_InputPeer' => '', + 'method_messages.deleteChatUser_param_user_id_type_InputUser' => '', + 'method_messages.createChat' => '', + 'method_messages.createChat_param_users_type_Vector t' => '', + 'method_messages.createChat_param_title_type_string' => '', + 'method_messages.getDhConfig' => '', + 'method_messages.getDhConfig_param_version_type_int' => '', + 'method_messages.getDhConfig_param_random_length_type_int' => '', + 'method_messages.requestEncryption' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.requestEncryption_param_user_id_type_InputUser' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.requestEncryption_param_g_a_type_bytes' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.acceptEncryption' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.acceptEncryption_param_peer_type_InputEncryptedChat' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.acceptEncryption_param_g_b_type_bytes' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.acceptEncryption_param_key_fingerprint_type_long' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.discardEncryption' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.discardEncryption_param_chat_id_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', + 'method_messages.setEncryptedTyping' => '', + 'method_messages.setEncryptedTyping_param_peer_type_InputEncryptedChat' => '', + 'method_messages.setEncryptedTyping_param_typing_type_Bool' => '', + 'method_messages.readEncryptedHistory' => '', + 'method_messages.readEncryptedHistory_param_peer_type_InputEncryptedChat' => '', + 'method_messages.readEncryptedHistory_param_max_date_type_int' => '', + 'method_messages.sendEncrypted' => '', + 'method_messages.sendEncrypted_param_peer_type_InputEncryptedChat' => '', + 'method_messages.sendEncrypted_param_message_type_DecryptedMessage' => '', + 'method_messages.sendEncryptedFile' => '', + 'method_messages.sendEncryptedFile_param_peer_type_InputEncryptedChat' => '', + 'method_messages.sendEncryptedFile_param_message_type_DecryptedMessage' => '', + 'method_messages.sendEncryptedFile_param_file_type_InputEncryptedFile' => '', + 'method_messages.sendEncryptedService' => '', + 'method_messages.sendEncryptedService_param_peer_type_InputEncryptedChat' => '', + 'method_messages.sendEncryptedService_param_message_type_DecryptedMessage' => '', + 'method_messages.receivedQueue' => '', + 'method_messages.receivedQueue_param_max_qts_type_int' => '', + 'method_messages.reportEncryptedSpam' => '', + 'method_messages.reportEncryptedSpam_param_peer_type_InputEncryptedChat' => '', + 'method_messages.readMessageContents' => '', + 'method_messages.readMessageContents_param_id_type_Vector t' => '', + 'method_messages.getStickers' => '', + 'method_messages.getStickers_param_emoticon_type_string' => '', + 'method_messages.getStickers_param_hash_type_string' => '', + 'method_messages.getAllStickers' => '', + 'method_messages.getAllStickers_param_hash_type_int' => '', + 'method_messages.getWebPagePreview' => '', + 'method_messages.getWebPagePreview_param_message_type_string' => '', + 'method_messages.getWebPagePreview_param_entities_type_Vector t' => '', + 'method_messages.exportChatInvite' => '', + 'method_messages.exportChatInvite_param_chat_id_type_InputPeer' => '', + 'method_messages.checkChatInvite' => '', + 'method_messages.checkChatInvite_param_hash_type_string' => '', + 'method_messages.importChatInvite' => '', + 'method_messages.importChatInvite_param_hash_type_string' => '', + 'method_messages.getStickerSet' => '', + 'method_messages.getStickerSet_param_stickerset_type_InputStickerSet' => '', + 'method_messages.installStickerSet' => '', + 'method_messages.installStickerSet_param_stickerset_type_InputStickerSet' => '', + 'method_messages.installStickerSet_param_archived_type_Bool' => '', + 'method_messages.uninstallStickerSet' => '', + 'method_messages.uninstallStickerSet_param_stickerset_type_InputStickerSet' => '', + 'method_messages.startBot' => '', + 'method_messages.startBot_param_bot_type_InputUser' => '', + 'method_messages.startBot_param_peer_type_InputPeer' => '', + 'method_messages.startBot_param_start_param_type_string' => '', + 'method_messages.getMessagesViews' => '', + 'method_messages.getMessagesViews_param_peer_type_InputPeer' => '', + 'method_messages.getMessagesViews_param_id_type_Vector t' => '', + 'method_messages.getMessagesViews_param_increment_type_Bool' => '', + 'method_messages.toggleChatAdmins' => '', + 'method_messages.toggleChatAdmins_param_chat_id_type_InputPeer' => '', + 'method_messages.toggleChatAdmins_param_enabled_type_Bool' => '', + 'method_messages.editChatAdmin' => '', + 'method_messages.editChatAdmin_param_chat_id_type_InputPeer' => '', + 'method_messages.editChatAdmin_param_user_id_type_InputUser' => '', + 'method_messages.editChatAdmin_param_is_admin_type_Bool' => '', + 'method_messages.migrateChat' => '', + 'method_messages.migrateChat_param_chat_id_type_InputPeer' => '', + 'method_messages.searchGlobal' => '', + 'method_messages.searchGlobal_param_q_type_string' => '', + 'method_messages.searchGlobal_param_offset_date_type_int' => '', + 'method_messages.searchGlobal_param_offset_peer_type_InputPeer' => '', + 'method_messages.searchGlobal_param_offset_id_type_int' => '', + 'method_messages.searchGlobal_param_limit_type_int' => '', + 'method_messages.reorderStickerSets' => '', + 'method_messages.reorderStickerSets_param_masks_type_true' => '', + 'method_messages.reorderStickerSets_param_order_type_Vector t' => '', + 'method_messages.getDocumentByHash' => '', + 'method_messages.getDocumentByHash_param_sha256_type_bytes' => '', + 'method_messages.getDocumentByHash_param_size_type_int' => '', + 'method_messages.getDocumentByHash_param_mime_type_type_string' => '', + 'method_messages.searchGifs' => '', + 'method_messages.searchGifs_param_q_type_string' => '', + 'method_messages.searchGifs_param_offset_type_int' => '', + 'method_messages.getSavedGifs' => '', + 'method_messages.getSavedGifs_param_hash_type_int' => '', + 'method_messages.saveGif' => '', + 'method_messages.saveGif_param_id_type_InputDocument' => '', + 'method_messages.saveGif_param_unsave_type_Bool' => '', + 'method_messages.getInlineBotResults' => '', + 'method_messages.getInlineBotResults_param_bot_type_InputUser' => '', + 'method_messages.getInlineBotResults_param_peer_type_InputPeer' => '', + 'method_messages.getInlineBotResults_param_geo_point_type_InputGeoPoint' => '', + 'method_messages.getInlineBotResults_param_query_type_string' => '', + 'method_messages.getInlineBotResults_param_offset_type_string' => '', + 'method_messages.setInlineBotResults' => '', + 'method_messages.setInlineBotResults_param_gallery_type_true' => '', + 'method_messages.setInlineBotResults_param_private_type_true' => '', + 'method_messages.setInlineBotResults_param_query_id_type_long' => '', + 'method_messages.setInlineBotResults_param_results_type_Vector t' => '', + 'method_messages.setInlineBotResults_param_cache_time_type_int' => '', + 'method_messages.setInlineBotResults_param_next_offset_type_string' => '', + 'method_messages.setInlineBotResults_param_switch_pm_type_InlineBotSwitchPM' => '', + 'method_messages.sendInlineBotResult' => '', + 'method_messages.sendInlineBotResult_param_silent_type_true' => '', + 'method_messages.sendInlineBotResult_param_background_type_true' => '', + 'method_messages.sendInlineBotResult_param_clear_draft_type_true' => '', + 'method_messages.sendInlineBotResult_param_peer_type_InputPeer' => '', + 'method_messages.sendInlineBotResult_param_reply_to_msg_id_type_int' => '', + 'method_messages.sendInlineBotResult_param_query_id_type_long' => '', + 'method_messages.sendInlineBotResult_param_id_type_string' => '', + 'method_messages.getMessageEditData' => '', + 'method_messages.getMessageEditData_param_peer_type_InputPeer' => '', + 'method_messages.getMessageEditData_param_id_type_int' => '', + 'method_messages.editMessage' => '', + 'method_messages.editMessage_param_no_webpage_type_true' => '', + 'method_messages.editMessage_param_stop_geo_live_type_true' => '', + 'method_messages.editMessage_param_peer_type_InputPeer' => '', + 'method_messages.editMessage_param_id_type_int' => '', + 'method_messages.editMessage_param_message_type_string' => '', + 'method_messages.editMessage_param_reply_markup_type_ReplyMarkup' => '', + 'method_messages.editMessage_param_entities_type_Vector t' => '', + 'method_messages.editMessage_param_geo_point_type_InputGeoPoint' => '', + 'method_messages.editInlineBotMessage' => '', + 'method_messages.editInlineBotMessage_param_no_webpage_type_true' => '', + 'method_messages.editInlineBotMessage_param_stop_geo_live_type_true' => '', + 'method_messages.editInlineBotMessage_param_id_type_InputBotInlineMessageID' => '', + 'method_messages.editInlineBotMessage_param_message_type_string' => '', + 'method_messages.editInlineBotMessage_param_reply_markup_type_ReplyMarkup' => '', + 'method_messages.editInlineBotMessage_param_entities_type_Vector t' => '', + 'method_messages.editInlineBotMessage_param_geo_point_type_InputGeoPoint' => '', + 'method_messages.getBotCallbackAnswer' => '', + 'method_messages.getBotCallbackAnswer_param_game_type_true' => '', + 'method_messages.getBotCallbackAnswer_param_peer_type_InputPeer' => '', + 'method_messages.getBotCallbackAnswer_param_msg_id_type_int' => '', + 'method_messages.getBotCallbackAnswer_param_data_type_bytes' => '', + 'method_messages.setBotCallbackAnswer' => '', + 'method_messages.setBotCallbackAnswer_param_alert_type_true' => '', + 'method_messages.setBotCallbackAnswer_param_query_id_type_long' => '', + 'method_messages.setBotCallbackAnswer_param_message_type_string' => '', + 'method_messages.setBotCallbackAnswer_param_url_type_string' => '', + 'method_messages.setBotCallbackAnswer_param_cache_time_type_int' => '', + 'method_messages.getPeerDialogs' => '', + 'method_messages.getPeerDialogs_param_peers_type_Vector t' => '', + 'method_messages.saveDraft' => '', + 'method_messages.saveDraft_param_no_webpage_type_true' => '', + 'method_messages.saveDraft_param_reply_to_msg_id_type_int' => '', + 'method_messages.saveDraft_param_peer_type_InputPeer' => '', + 'method_messages.saveDraft_param_message_type_string' => '', + 'method_messages.saveDraft_param_entities_type_Vector t' => '', + 'method_messages.getAllDrafts' => '', + 'method_messages.getFeaturedStickers' => '', + 'method_messages.getFeaturedStickers_param_hash_type_int' => '', + 'method_messages.readFeaturedStickers' => '', + 'method_messages.readFeaturedStickers_param_id_type_Vector t' => '', + 'method_messages.getRecentStickers' => '', + 'method_messages.getRecentStickers_param_attached_type_true' => '', + 'method_messages.getRecentStickers_param_hash_type_int' => '', + 'method_messages.saveRecentSticker' => '', + 'method_messages.saveRecentSticker_param_attached_type_true' => '', + 'method_messages.saveRecentSticker_param_id_type_InputDocument' => '', + 'method_messages.saveRecentSticker_param_unsave_type_Bool' => '', + 'method_messages.clearRecentStickers' => '', + 'method_messages.clearRecentStickers_param_attached_type_true' => '', + 'method_messages.getArchivedStickers' => '', + 'method_messages.getArchivedStickers_param_masks_type_true' => '', + 'method_messages.getArchivedStickers_param_offset_id_type_long' => '', + 'method_messages.getArchivedStickers_param_limit_type_int' => '', + 'method_messages.getMaskStickers' => '', + 'method_messages.getMaskStickers_param_hash_type_int' => '', + 'method_messages.getAttachedStickers' => '', + 'method_messages.getAttachedStickers_param_media_type_InputStickeredMedia' => '', + 'method_messages.setGameScore' => '', + 'method_messages.setGameScore_param_edit_message_type_true' => '', + 'method_messages.setGameScore_param_force_type_true' => '', + 'method_messages.setGameScore_param_peer_type_InputPeer' => '', + 'method_messages.setGameScore_param_id_type_int' => '', + 'method_messages.setGameScore_param_user_id_type_InputUser' => '', + 'method_messages.setGameScore_param_score_type_int' => '', + 'method_messages.setInlineGameScore' => '', + 'method_messages.setInlineGameScore_param_edit_message_type_true' => '', + 'method_messages.setInlineGameScore_param_force_type_true' => '', + 'method_messages.setInlineGameScore_param_id_type_InputBotInlineMessageID' => '', + 'method_messages.setInlineGameScore_param_user_id_type_InputUser' => '', + 'method_messages.setInlineGameScore_param_score_type_int' => '', + 'method_messages.getGameHighScores' => '', + 'method_messages.getGameHighScores_param_peer_type_InputPeer' => '', + 'method_messages.getGameHighScores_param_id_type_int' => '', + 'method_messages.getGameHighScores_param_user_id_type_InputUser' => '', + 'method_messages.getInlineGameHighScores' => '', + 'method_messages.getInlineGameHighScores_param_id_type_InputBotInlineMessageID' => '', + 'method_messages.getInlineGameHighScores_param_user_id_type_InputUser' => '', + 'method_messages.getCommonChats' => '', + 'method_messages.getCommonChats_param_user_id_type_InputUser' => '', + 'method_messages.getCommonChats_param_max_id_type_int' => '', + 'method_messages.getCommonChats_param_limit_type_int' => '', + 'method_messages.getAllChats' => '', + 'method_messages.getAllChats_param_except_ids_type_Vector t' => '', + 'method_messages.getWebPage' => '', + 'method_messages.getWebPage_param_url_type_string' => '', + 'method_messages.getWebPage_param_hash_type_int' => '', + 'method_messages.toggleDialogPin' => '', + 'method_messages.toggleDialogPin_param_pinned_type_true' => '', + 'method_messages.toggleDialogPin_param_peer_type_InputPeer' => '', + 'method_messages.reorderPinnedDialogs' => '', + 'method_messages.reorderPinnedDialogs_param_force_type_true' => '', + 'method_messages.reorderPinnedDialogs_param_order_type_Vector t' => '', + 'method_messages.getPinnedDialogs' => '', + 'method_messages.setBotShippingResults' => '', + 'method_messages.setBotShippingResults_param_query_id_type_long' => '', + 'method_messages.setBotShippingResults_param_error_type_string' => '', + 'method_messages.setBotShippingResults_param_shipping_options_type_Vector t' => '', + 'method_messages.setBotPrecheckoutResults' => '', + 'method_messages.setBotPrecheckoutResults_param_success_type_true' => '', + 'method_messages.setBotPrecheckoutResults_param_query_id_type_long' => '', + 'method_messages.setBotPrecheckoutResults_param_error_type_string' => '', + 'method_messages.uploadMedia' => '', + 'method_messages.uploadMedia_param_peer_type_InputPeer' => '', + 'method_messages.uploadMedia_param_media_type_InputMedia' => '', + 'method_messages.sendScreenshotNotification' => '', + 'method_messages.sendScreenshotNotification_param_peer_type_InputPeer' => '', + 'method_messages.sendScreenshotNotification_param_reply_to_msg_id_type_int' => '', + 'method_messages.getFavedStickers' => '', + 'method_messages.getFavedStickers_param_hash_type_int' => '', + 'method_messages.faveSticker' => '', + 'method_messages.faveSticker_param_id_type_InputDocument' => '', + 'method_messages.faveSticker_param_unfave_type_Bool' => '', + 'method_messages.getUnreadMentions' => '', + 'method_messages.getUnreadMentions_param_peer_type_InputPeer' => '', + 'method_messages.getUnreadMentions_param_offset_id_type_int' => '', + 'method_messages.getUnreadMentions_param_add_offset_type_int' => '', + 'method_messages.getUnreadMentions_param_limit_type_int' => '', + 'method_messages.getUnreadMentions_param_max_id_type_int' => '', + 'method_messages.getUnreadMentions_param_min_id_type_int' => '', + 'method_messages.readMentions' => '', + 'method_messages.readMentions_param_peer_type_InputPeer' => '', + 'method_messages.getRecentLocations' => '', + 'method_messages.getRecentLocations_param_peer_type_InputPeer' => '', + 'method_messages.getRecentLocations_param_limit_type_int' => '', + 'method_messages.sendMultiMedia' => '', + 'method_messages.sendMultiMedia_param_silent_type_true' => '', + 'method_messages.sendMultiMedia_param_background_type_true' => '', + 'method_messages.sendMultiMedia_param_clear_draft_type_true' => '', + 'method_messages.sendMultiMedia_param_peer_type_InputPeer' => '', + 'method_messages.sendMultiMedia_param_reply_to_msg_id_type_int' => '', + 'method_messages.sendMultiMedia_param_multi_media_type_Vector t' => '', + 'method_messages.uploadEncryptedFile' => '', + 'method_messages.uploadEncryptedFile_param_peer_type_InputEncryptedChat' => '', + 'method_messages.uploadEncryptedFile_param_file_type_InputEncryptedFile' => '', + 'method_updates.getState' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getDifference' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getDifference_param_pts_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getDifference_param_pts_total_limit_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getDifference_param_date_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getDifference_param_qts_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getChannelDifference' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getChannelDifference_param_force_type_true' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getChannelDifference_param_channel_type_InputChannel' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getChannelDifference_param_filter_type_ChannelMessagesFilter' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getChannelDifference_param_pts_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_updates.getChannelDifference_param_limit_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_photos.updateProfilePhoto' => '', + 'method_photos.updateProfilePhoto_param_id_type_InputPhoto' => '', + 'method_photos.uploadProfilePhoto' => '', + 'method_photos.uploadProfilePhoto_param_file_type_InputFile' => '', + 'method_photos.deletePhotos' => '', + 'method_photos.deletePhotos_param_id_type_Vector t' => '', + 'method_photos.getUserPhotos' => '', + 'method_photos.getUserPhotos_param_user_id_type_InputUser' => '', + 'method_photos.getUserPhotos_param_offset_type_int' => '', + 'method_photos.getUserPhotos_param_max_id_type_long' => '', + 'method_photos.getUserPhotos_param_limit_type_int' => '', + 'method_upload.saveFilePart' => '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', + 'method_upload.saveFilePart_param_file_id_type_long' => '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', + 'method_upload.saveFilePart_param_file_part_type_int' => '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', + 'method_upload.saveFilePart_param_bytes_type_bytes' => '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', + 'method_upload.getFile' => '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', + 'method_upload.getFile_param_location_type_InputFileLocation' => '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', + 'method_upload.getFile_param_offset_type_int' => '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', + 'method_upload.getFile_param_limit_type_int' => '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', + 'method_upload.saveBigFilePart' => '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', + 'method_upload.saveBigFilePart_param_file_id_type_long' => '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', + 'method_upload.saveBigFilePart_param_file_part_type_int' => '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', + 'method_upload.saveBigFilePart_param_file_total_parts_type_int' => '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', + 'method_upload.saveBigFilePart_param_bytes_type_bytes' => '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', + 'method_upload.getWebFile' => '', + 'method_upload.getWebFile_param_location_type_InputWebFileLocation' => '', + 'method_upload.getWebFile_param_offset_type_int' => '', + 'method_upload.getWebFile_param_limit_type_int' => '', + 'method_upload.getCdnFile' => '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', + 'method_upload.getCdnFile_param_file_token_type_bytes' => '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', + 'method_upload.getCdnFile_param_offset_type_int' => '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', + 'method_upload.getCdnFile_param_limit_type_int' => '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', + 'method_upload.reuploadCdnFile' => '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', + 'method_upload.reuploadCdnFile_param_file_token_type_bytes' => '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', + 'method_upload.reuploadCdnFile_param_request_token_type_bytes' => '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', + 'method_upload.getCdnFileHashes' => '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', + 'method_upload.getCdnFileHashes_param_file_token_type_bytes' => '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', + 'method_upload.getCdnFileHashes_param_offset_type_int' => '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', + 'method_help.getConfig' => '', + 'method_help.getNearestDc' => '', + 'method_help.getAppUpdate' => '', + 'method_help.saveAppLog' => '', + 'method_help.saveAppLog_param_events_type_Vector t' => '', + 'method_help.getInviteText' => '', + 'method_help.getSupport' => '', + 'method_help.getAppChangelog' => '', + 'method_help.getAppChangelog_param_prev_app_version_type_string' => '', + 'method_help.getTermsOfService' => '', + 'method_help.setBotUpdatesStatus' => '', + 'method_help.setBotUpdatesStatus_param_pending_updates_count_type_int' => '', + 'method_help.setBotUpdatesStatus_param_message_type_string' => '', + 'method_help.getCdnConfig' => '', + 'method_help.getRecentMeUrls' => '', + 'method_help.getRecentMeUrls_param_referer_type_string' => '', + 'method_channels.readHistory' => '', + 'method_channels.readHistory_param_channel_type_InputChannel' => '', + 'method_channels.readHistory_param_max_id_type_int' => '', + 'method_channels.deleteMessages' => '', + 'method_channels.deleteMessages_param_channel_type_InputChannel' => '', + 'method_channels.deleteMessages_param_id_type_Vector t' => '', + 'method_channels.deleteUserHistory' => '', + 'method_channels.deleteUserHistory_param_channel_type_InputChannel' => '', + 'method_channels.deleteUserHistory_param_user_id_type_InputUser' => '', + 'method_channels.reportSpam' => '', + 'method_channels.reportSpam_param_channel_type_InputChannel' => '', + 'method_channels.reportSpam_param_user_id_type_InputUser' => '', + 'method_channels.reportSpam_param_id_type_Vector t' => '', + 'method_channels.getMessages' => '', + 'method_channels.getMessages_param_channel_type_InputChannel' => '', + 'method_channels.getMessages_param_id_type_Vector t' => '', + 'method_channels.getParticipants' => '', + 'method_channels.getParticipants_param_channel_type_InputChannel' => '', + 'method_channels.getParticipants_param_filter_type_ChannelParticipantsFilter' => '', + 'method_channels.getParticipants_param_offset_type_int' => '', + 'method_channels.getParticipants_param_limit_type_int' => '', + 'method_channels.getParticipants_param_hash_type_int' => '', + 'method_channels.getParticipant' => '', + 'method_channels.getParticipant_param_channel_type_InputChannel' => '', + 'method_channels.getParticipant_param_user_id_type_InputUser' => '', + 'method_channels.getChannels' => '', + 'method_channels.getChannels_param_id_type_Vector t' => '', + 'method_channels.getFullChannel' => '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)', + 'method_channels.getFullChannel_param_channel_type_InputChannel' => '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)', + 'method_channels.createChannel' => '', + 'method_channels.createChannel_param_broadcast_type_true' => '', + 'method_channels.createChannel_param_megagroup_type_true' => '', + 'method_channels.createChannel_param_title_type_string' => '', + 'method_channels.createChannel_param_about_type_string' => '', + 'method_channels.editAbout' => '', + 'method_channels.editAbout_param_channel_type_InputChannel' => '', + 'method_channels.editAbout_param_about_type_string' => '', + 'method_channels.editAdmin' => '', + 'method_channels.editAdmin_param_channel_type_InputChannel' => '', + 'method_channels.editAdmin_param_user_id_type_InputUser' => '', + 'method_channels.editAdmin_param_admin_rights_type_ChannelAdminRights' => '', + 'method_channels.editTitle' => '', + 'method_channels.editTitle_param_channel_type_InputChannel' => '', + 'method_channels.editTitle_param_title_type_string' => '', + 'method_channels.editPhoto' => '', + 'method_channels.editPhoto_param_channel_type_InputChannel' => '', + 'method_channels.editPhoto_param_photo_type_InputChatPhoto' => '', + 'method_channels.checkUsername' => '', + 'method_channels.checkUsername_param_channel_type_InputChannel' => '', + 'method_channels.checkUsername_param_username_type_string' => '', + 'method_channels.updateUsername' => '', + 'method_channels.updateUsername_param_channel_type_InputChannel' => '', + 'method_channels.updateUsername_param_username_type_string' => '', + 'method_channels.joinChannel' => '', + 'method_channels.joinChannel_param_channel_type_InputChannel' => '', + 'method_channels.leaveChannel' => '', + 'method_channels.leaveChannel_param_channel_type_InputChannel' => '', + 'method_channels.inviteToChannel' => '', + 'method_channels.inviteToChannel_param_channel_type_InputChannel' => '', + 'method_channels.inviteToChannel_param_users_type_Vector t' => '', + 'method_channels.exportInvite' => '', + 'method_channels.exportInvite_param_channel_type_InputChannel' => '', + 'method_channels.deleteChannel' => '', + 'method_channels.deleteChannel_param_channel_type_InputChannel' => '', + 'method_channels.toggleInvites' => '', + 'method_channels.toggleInvites_param_channel_type_InputChannel' => '', + 'method_channels.toggleInvites_param_enabled_type_Bool' => '', + 'method_channels.exportMessageLink' => '', + 'method_channels.exportMessageLink_param_channel_type_InputChannel' => '', + 'method_channels.exportMessageLink_param_id_type_int' => '', + 'method_channels.exportMessageLink_param_grouped_type_Bool' => '', + 'method_channels.toggleSignatures' => '', + 'method_channels.toggleSignatures_param_channel_type_InputChannel' => '', + 'method_channels.toggleSignatures_param_enabled_type_Bool' => '', + 'method_channels.updatePinnedMessage' => '', + 'method_channels.updatePinnedMessage_param_silent_type_true' => '', + 'method_channels.updatePinnedMessage_param_channel_type_InputChannel' => '', + 'method_channels.updatePinnedMessage_param_id_type_int' => '', + 'method_channels.getAdminedPublicChannels' => '', + 'method_channels.editBanned' => '', + 'method_channels.editBanned_param_channel_type_InputChannel' => '', + 'method_channels.editBanned_param_user_id_type_InputUser' => '', + 'method_channels.editBanned_param_banned_rights_type_ChannelBannedRights' => '', + 'method_channels.getAdminLog' => '', + 'method_channels.getAdminLog_param_channel_type_InputChannel' => '', + 'method_channels.getAdminLog_param_q_type_string' => '', + 'method_channels.getAdminLog_param_events_filter_type_ChannelAdminLogEventsFilter' => '', + 'method_channels.getAdminLog_param_admins_type_Vector t' => '', + 'method_channels.getAdminLog_param_max_id_type_long' => '', + 'method_channels.getAdminLog_param_min_id_type_long' => '', + 'method_channels.getAdminLog_param_limit_type_int' => '', + 'method_channels.setStickers' => '', + 'method_channels.setStickers_param_channel_type_InputChannel' => '', + 'method_channels.setStickers_param_stickerset_type_InputStickerSet' => '', + 'method_channels.readMessageContents' => '', + 'method_channels.readMessageContents_param_channel_type_InputChannel' => '', + 'method_channels.readMessageContents_param_id_type_Vector t' => '', + 'method_channels.deleteHistory' => '', + 'method_channels.deleteHistory_param_channel_type_InputChannel' => '', + 'method_channels.deleteHistory_param_max_id_type_int' => '', + 'method_channels.togglePreHistoryHidden' => '', + 'method_channels.togglePreHistoryHidden_param_channel_type_InputChannel' => '', + 'method_channels.togglePreHistoryHidden_param_enabled_type_Bool' => '', + 'method_bots.sendCustomRequest' => '', + 'method_bots.sendCustomRequest_param_custom_method_type_string' => '', + 'method_bots.sendCustomRequest_param_params_type_DataJSON' => '', + 'method_bots.answerWebhookJSONQuery' => '', + 'method_bots.answerWebhookJSONQuery_param_query_id_type_long' => '', + 'method_bots.answerWebhookJSONQuery_param_data_type_DataJSON' => '', + 'method_payments.getPaymentForm' => '', + 'method_payments.getPaymentForm_param_msg_id_type_int' => '', + 'method_payments.getPaymentReceipt' => '', + 'method_payments.getPaymentReceipt_param_msg_id_type_int' => '', + 'method_payments.validateRequestedInfo' => '', + 'method_payments.validateRequestedInfo_param_save_type_true' => '', + 'method_payments.validateRequestedInfo_param_msg_id_type_int' => '', + 'method_payments.validateRequestedInfo_param_info_type_PaymentRequestedInfo' => '', + 'method_payments.sendPaymentForm' => '', + 'method_payments.sendPaymentForm_param_msg_id_type_int' => '', + 'method_payments.sendPaymentForm_param_requested_info_id_type_string' => '', + 'method_payments.sendPaymentForm_param_shipping_option_id_type_string' => '', + 'method_payments.sendPaymentForm_param_credentials_type_InputPaymentCredentials' => '', + 'method_payments.getSavedInfo' => '', + 'method_payments.clearSavedInfo' => '', + 'method_payments.clearSavedInfo_param_credentials_type_true' => '', + 'method_payments.clearSavedInfo_param_info_type_true' => '', + 'method_stickers.createStickerSet' => '', + 'method_stickers.createStickerSet_param_masks_type_true' => '', + 'method_stickers.createStickerSet_param_user_id_type_InputUser' => '', + 'method_stickers.createStickerSet_param_title_type_string' => '', + 'method_stickers.createStickerSet_param_short_name_type_string' => '', + 'method_stickers.createStickerSet_param_stickers_type_Vector t' => '', + 'method_stickers.removeStickerFromSet' => '', + 'method_stickers.removeStickerFromSet_param_sticker_type_InputDocument' => '', + 'method_stickers.changeStickerPosition' => '', + 'method_stickers.changeStickerPosition_param_sticker_type_InputDocument' => '', + 'method_stickers.changeStickerPosition_param_position_type_int' => '', + 'method_stickers.addStickerToSet' => '', + 'method_stickers.addStickerToSet_param_stickerset_type_InputStickerSet' => '', + 'method_stickers.addStickerToSet_param_sticker_type_InputStickerSetItem' => '', + 'method_phone.getCallConfig' => '', + 'method_phone.requestCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.requestCall_param_user_id_type_InputUser' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.requestCall_param_g_a_hash_type_bytes' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.requestCall_param_protocol_type_PhoneCallProtocol' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.acceptCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.acceptCall_param_peer_type_InputPhoneCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.acceptCall_param_g_b_type_bytes' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.acceptCall_param_protocol_type_PhoneCallProtocol' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.confirmCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.confirmCall_param_peer_type_InputPhoneCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.confirmCall_param_g_a_type_bytes' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.confirmCall_param_key_fingerprint_type_long' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.confirmCall_param_protocol_type_PhoneCallProtocol' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.receivedCall' => '', + 'method_phone.receivedCall_param_peer_type_InputPhoneCall' => '', + 'method_phone.discardCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.discardCall_param_peer_type_InputPhoneCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.discardCall_param_duration_type_int' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.discardCall_param_reason_type_PhoneCallDiscardReason' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.discardCall_param_connection_id_type_long' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.setCallRating' => '', + 'method_phone.setCallRating_param_peer_type_InputPhoneCall' => '', + 'method_phone.setCallRating_param_rating_type_int' => '', + 'method_phone.setCallRating_param_comment_type_string' => '', + 'method_phone.saveCallDebug' => '', + 'method_phone.saveCallDebug_param_peer_type_InputPhoneCall' => '', + 'method_phone.saveCallDebug_param_debug_type_DataJSON' => '', + 'method_langpack.getLangPack' => '', + 'method_langpack.getLangPack_param_lang_code_type_string' => '', + 'method_langpack.getStrings' => '', + 'method_langpack.getStrings_param_lang_code_type_string' => '', + 'method_langpack.getStrings_param_keys_type_Vector t' => '', + 'method_langpack.getDifference' => '', + 'method_langpack.getDifference_param_from_version_type_int' => '', + 'method_langpack.getLanguages' => '', + 'method_auth.sendCode_param_sms_type_type_int' => 'You cannot use this method directly, use the phone_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.sendCode_param_lang_code_type_string' => 'You cannot use this method directly, use the phone_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.sendCall' => '', + 'method_auth.sendCall_param_phone_number_type_string' => '', + 'method_auth.sendCall_param_phone_code_hash_type_string' => '', + 'method_account.registerDevice_param_device_model_type_string' => '', + 'method_account.registerDevice_param_system_version_type_string' => '', + 'method_account.registerDevice_param_app_version_type_string' => '', + 'method_account.registerDevice_param_lang_code_type_string' => '', + 'method_contacts.getContacts_param_hash_type_string' => '', + 'method_contacts.importContacts_param_replace_type_Bool' => '', + 'method_contacts.getSuggested' => '', + 'method_contacts.getSuggested_param_limit_type_int' => '', + 'method_messages.getDialogs_param_offset_type_int' => '', + 'method_messages.getDialogs_param_max_id_type_int' => '', + 'method_messages.getHistory_param_offset_type_int' => '', + 'method_messages.search_param_offset_type_int' => '', + 'method_messages.readHistory_param_offset_type_int' => '', + 'method_messages.readHistory_param_read_contents_type_Bool' => '', + 'method_messages.deleteHistory_param_offset_type_int' => '', + 'method_messages.forwardMessages_param_peer_type_InputPeer' => '', + 'method_photos.updateProfilePhoto_param_crop_type_InputPhotoCrop' => '', + 'method_photos.uploadProfilePhoto_param_caption_type_string' => '', + 'method_photos.uploadProfilePhoto_param_geo_point_type_InputGeoPoint' => '', + 'method_photos.uploadProfilePhoto_param_crop_type_InputPhotoCrop' => '', + 'method_help.getAppUpdate_param_device_model_type_string' => '', + 'method_help.getAppUpdate_param_system_version_type_string' => '', + 'method_help.getAppUpdate_param_app_version_type_string' => '', + 'method_help.getAppUpdate_param_lang_code_type_string' => '', + 'method_help.getInviteText_param_lang_code_type_string' => '', + 'method_photos.getUserPhotos_param_max_id_type_int' => '', + 'method_messages.forwardMessage' => '', + 'method_messages.forwardMessage_param_peer_type_InputPeer' => '', + 'method_messages.forwardMessage_param_id_type_int' => '', + 'method_messages.sendBroadcast' => '', + 'method_messages.sendBroadcast_param_contacts_type_Vector t' => '', + 'method_messages.sendBroadcast_param_message_type_string' => '', + 'method_messages.sendBroadcast_param_media_type_InputMedia' => '', + 'method_auth.sendSms' => '', + 'method_auth.sendSms_param_phone_number_type_string' => '', + 'method_auth.sendSms_param_phone_code_hash_type_string' => '', + 'method_invokeWithLayer18' => '', + 'method_invokeWithLayer18_param_query_type_!X' => '', + 'method_messages.getAllStickers_param_hash_type_string' => '', + 'method_geochats.getLocated' => '', + 'method_geochats.getLocated_param_geo_point_type_InputGeoPoint' => '', + 'method_geochats.getLocated_param_radius_type_int' => '', + 'method_geochats.getLocated_param_limit_type_int' => '', + 'method_geochats.getRecents' => '', + 'method_geochats.getRecents_param_offset_type_int' => '', + 'method_geochats.getRecents_param_limit_type_int' => '', + 'method_geochats.checkin' => '', + 'method_geochats.checkin_param_peer_type_InputGeoChat' => '', + 'method_geochats.getFullChat' => '', + 'method_geochats.getFullChat_param_peer_type_InputGeoChat' => '', + 'method_geochats.editChatTitle' => '', + 'method_geochats.editChatTitle_param_peer_type_InputGeoChat' => '', + 'method_geochats.editChatTitle_param_title_type_string' => '', + 'method_geochats.editChatTitle_param_address_type_string' => '', + 'method_geochats.editChatPhoto' => '', + 'method_geochats.editChatPhoto_param_peer_type_InputGeoChat' => '', + 'method_geochats.editChatPhoto_param_photo_type_InputChatPhoto' => '', + 'method_geochats.search' => '', + 'method_geochats.search_param_peer_type_InputGeoChat' => '', + 'method_geochats.search_param_q_type_string' => '', + 'method_geochats.search_param_filter_type_MessagesFilter' => '', + 'method_geochats.search_param_min_date_type_int' => '', + 'method_geochats.search_param_max_date_type_int' => '', + 'method_geochats.search_param_offset_type_int' => '', + 'method_geochats.search_param_max_id_type_int' => '', + 'method_geochats.search_param_limit_type_int' => '', + 'method_geochats.getHistory' => '', + 'method_geochats.getHistory_param_peer_type_InputGeoChat' => '', + 'method_geochats.getHistory_param_offset_type_int' => '', + 'method_geochats.getHistory_param_max_id_type_int' => '', + 'method_geochats.getHistory_param_limit_type_int' => '', + 'method_geochats.setTyping' => '', + 'method_geochats.setTyping_param_peer_type_InputGeoChat' => '', + 'method_geochats.setTyping_param_typing_type_Bool' => '', + 'method_geochats.sendMessage' => '', + 'method_geochats.sendMessage_param_peer_type_InputGeoChat' => '', + 'method_geochats.sendMessage_param_message_type_string' => '', + 'method_geochats.sendMedia' => '', + 'method_geochats.sendMedia_param_peer_type_InputGeoChat' => '', + 'method_geochats.sendMedia_param_media_type_InputMedia' => '', + 'method_geochats.createGeoChat' => '', + 'method_geochats.createGeoChat_param_title_type_string' => '', + 'method_geochats.createGeoChat_param_geo_point_type_InputGeoPoint' => '', + 'method_geochats.createGeoChat_param_address_type_string' => '', + 'method_geochats.createGeoChat_param_venue_type_string' => '', + 'method_account.setPassword' => '', + 'method_account.setPassword_param_current_password_hash_type_bytes' => '', + 'method_account.setPassword_param_new_salt_type_bytes' => '', + 'method_account.setPassword_param_new_password_hash_type_bytes' => '', + 'method_account.setPassword_param_hint_type_string' => '', + 'method_messages.installStickerSet_param_disabled_type_Bool' => '', + 'method_messages.startBot_param_chat_id_type_InputPeer' => '', + 'method_help.getAppChangelog_param_device_model_type_string' => '', + 'method_help.getAppChangelog_param_system_version_type_string' => '', + 'method_help.getAppChangelog_param_app_version_type_string' => '', + 'method_help.getAppChangelog_param_lang_code_type_string' => '', + 'method_channels.getDialogs' => '', + 'method_channels.getDialogs_param_offset_type_int' => '', + 'method_channels.getDialogs_param_limit_type_int' => '', + 'method_channels.getImportantHistory' => '', + 'method_channels.getImportantHistory_param_channel_type_InputChannel' => '', + 'method_channels.getImportantHistory_param_offset_id_type_int' => '', + 'method_channels.getImportantHistory_param_add_offset_type_int' => '', + 'method_channels.getImportantHistory_param_limit_type_int' => '', + 'method_channels.getImportantHistory_param_max_id_type_int' => '', + 'method_channels.getImportantHistory_param_min_id_type_int' => '', + 'method_channels.createChannel_param_users_type_Vector t' => '', + 'method_channels.editAdmin_param_role_type_ChannelParticipantRole' => '', + 'method_channels.toggleComments' => '', + 'method_channels.toggleComments_param_channel_type_InputChannel' => '', + 'method_channels.toggleComments_param_enabled_type_Bool' => '', + 'method_channels.kickFromChannel' => '', + 'method_channels.kickFromChannel_param_channel_type_InputChannel' => '', + 'method_channels.kickFromChannel_param_user_id_type_InputUser' => '', + 'method_channels.kickFromChannel_param_kicked_type_Bool' => '', + 'method_messages.getChannelDialogs' => '', + 'method_messages.getChannelDialogs_param_offset_type_int' => '', + 'method_messages.getChannelDialogs_param_limit_type_int' => '', + 'method_messages.getImportantHistory' => '', + 'method_messages.getImportantHistory_param_peer_type_InputPeer' => '', + 'method_messages.getImportantHistory_param_max_id_type_int' => '', + 'method_messages.getImportantHistory_param_min_id_type_int' => '', + 'method_messages.getImportantHistory_param_limit_type_int' => '', + 'method_messages.readChannelHistory' => '', + 'method_messages.readChannelHistory_param_peer_type_InputPeer' => '', + 'method_messages.readChannelHistory_param_max_id_type_int' => '', + 'method_messages.createChannel' => '', + 'method_messages.createChannel_param_title_type_string' => '', + 'method_messages.deleteChannelMessages' => '', + 'method_messages.deleteChannelMessages_param_peer_type_InputPeer' => '', + 'method_messages.deleteChannelMessages_param_id_type_Vector t' => '', + 'method_updates.getChannelDifference_param_peer_type_InputPeer' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', + 'method_messages.search_param_important_only_type_true' => '', + 'method_messages.sendMessage_param_broadcast_type_true' => '', + 'method_messages.sendMedia_param_broadcast_type_true' => '', + 'method_messages.forwardMessages_param_broadcast_type_true' => '', + 'method_messages.deactivateChat' => '', + 'method_messages.deactivateChat_param_chat_id_type_InputPeer' => '', + 'method_messages.deactivateChat_param_enabled_type_Bool' => '', + 'method_help.getTermsOfService_param_lang_code_type_string' => '', + 'method_messages.sendInlineBotResult_param_broadcast_type_true' => '', + 'method_channels.getImportantHistory_param_offset_date_type_int' => '', + 'method_messages.getUnusedStickers' => '', + 'method_messages.getUnusedStickers_param_limit_type_int' => '', + 'method_destroy_auth_key' => '', + 'method_phone.requestCall_param_g_a_type_bytes' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_phone.acceptCall_param_key_fingerprint_type_long' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', + 'method_req_DH_params_param_p_type_string' => '', + 'method_req_DH_params_param_q_type_string' => '', + 'method_req_DH_params_param_encrypted_data_type_string' => '', + 'method_set_client_DH_params_param_encrypted_data_type_string' => '', + 'method_contest.saveDeveloperInfo' => '', + 'method_contest.saveDeveloperInfo_param_vk_id_type_int' => '', + 'method_contest.saveDeveloperInfo_param_name_type_string' => '', + 'method_contest.saveDeveloperInfo_param_phone_number_type_string' => '', + 'method_contest.saveDeveloperInfo_param_age_type_int' => '', + 'method_contest.saveDeveloperInfo_param_city_type_string' => '', + 'method_auth.importBotAuthorization_param_a_type_true' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.importBotAuthorization_param_b_type_true' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.importBotAuthorization_param_c_type_true' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'method_auth.importBotAuthorization_param_d_type_true' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', + 'object_vector' => '', + 'object_resPQ' => '', + 'object_resPQ_param_nonce_type_int128' => '', + 'object_resPQ_param_server_nonce_type_int128' => '', + 'object_resPQ_param_pq_type_bytes' => '', + 'object_resPQ_param_server_public_key_fingerprints_type_Vector t' => '', + 'object_p_q_inner_data' => '', + 'object_p_q_inner_data_param_pq_type_bytes' => '', + 'object_p_q_inner_data_param_p_type_bytes' => '', + 'object_p_q_inner_data_param_q_type_bytes' => '', + 'object_p_q_inner_data_param_nonce_type_int128' => '', + 'object_p_q_inner_data_param_server_nonce_type_int128' => '', + 'object_p_q_inner_data_param_new_nonce_type_int256' => '', + 'object_p_q_inner_data_temp' => '', + 'object_p_q_inner_data_temp_param_pq_type_bytes' => '', + 'object_p_q_inner_data_temp_param_p_type_bytes' => '', + 'object_p_q_inner_data_temp_param_q_type_bytes' => '', + 'object_p_q_inner_data_temp_param_nonce_type_int128' => '', + 'object_p_q_inner_data_temp_param_server_nonce_type_int128' => '', + 'object_p_q_inner_data_temp_param_new_nonce_type_int256' => '', + 'object_p_q_inner_data_temp_param_expires_in_type_int' => '', + 'object_server_DH_params_fail' => '', + 'object_server_DH_params_fail_param_nonce_type_int128' => '', + 'object_server_DH_params_fail_param_server_nonce_type_int128' => '', + 'object_server_DH_params_fail_param_new_nonce_hash_type_int128' => '', + 'object_server_DH_params_ok' => '', + 'object_server_DH_params_ok_param_nonce_type_int128' => '', + 'object_server_DH_params_ok_param_server_nonce_type_int128' => '', + 'object_server_DH_params_ok_param_encrypted_answer_type_bytes' => '', + 'object_server_DH_inner_data' => '', + 'object_server_DH_inner_data_param_nonce_type_int128' => '', + 'object_server_DH_inner_data_param_server_nonce_type_int128' => '', + 'object_server_DH_inner_data_param_g_type_int' => '', + 'object_server_DH_inner_data_param_dh_prime_type_bytes' => '', + 'object_server_DH_inner_data_param_g_a_type_bytes' => '', + 'object_server_DH_inner_data_param_server_time_type_int' => '', + 'object_client_DH_inner_data' => '', + 'object_client_DH_inner_data_param_nonce_type_int128' => '', + 'object_client_DH_inner_data_param_server_nonce_type_int128' => '', + 'object_client_DH_inner_data_param_retry_id_type_long' => '', + 'object_client_DH_inner_data_param_g_b_type_bytes' => '', + 'object_dh_gen_ok' => '', + 'object_dh_gen_ok_param_nonce_type_int128' => '', + 'object_dh_gen_ok_param_server_nonce_type_int128' => '', + 'object_dh_gen_ok_param_new_nonce_hash1_type_int128' => '', + 'object_dh_gen_retry' => '', + 'object_dh_gen_retry_param_nonce_type_int128' => '', + 'object_dh_gen_retry_param_server_nonce_type_int128' => '', + 'object_dh_gen_retry_param_new_nonce_hash2_type_int128' => '', + 'object_dh_gen_fail' => '', + 'object_dh_gen_fail_param_nonce_type_int128' => '', + 'object_dh_gen_fail_param_server_nonce_type_int128' => '', + 'object_dh_gen_fail_param_new_nonce_hash3_type_int128' => '', + 'object_rpc_result' => '', + 'object_rpc_result_param_req_msg_id_type_long' => '', + 'object_rpc_result_param_result_type_Object' => '', + 'object_rpc_error' => '', + 'object_rpc_error_param_error_code_type_int' => '', + 'object_rpc_error_param_error_message_type_string' => '', + 'object_rpc_answer_unknown' => '', + 'object_rpc_answer_dropped_running' => '', + 'object_rpc_answer_dropped' => '', + 'object_rpc_answer_dropped_param_msg_id_type_long' => '', + 'object_rpc_answer_dropped_param_seq_no_type_int' => '', + 'object_rpc_answer_dropped_param_bytes_type_int' => '', + 'object_future_salt' => '', + 'object_future_salt_param_valid_since_type_int' => '', + 'object_future_salt_param_valid_until_type_int' => '', + 'object_future_salt_param_salt_type_long' => '', + 'object_future_salts' => '', + 'object_future_salts_param_req_msg_id_type_long' => '', + 'object_future_salts_param_now_type_int' => '', + 'object_future_salts_param_salts_type_vector' => '', + 'object_pong' => '', + 'object_pong_param_msg_id_type_long' => '', + 'object_pong_param_ping_id_type_long' => '', + 'object_destroy_session_ok' => '', + 'object_destroy_session_ok_param_session_id_type_long' => '', + 'object_destroy_session_none' => '', + 'object_destroy_session_none_param_session_id_type_long' => '', + 'object_new_session_created' => '', + 'object_new_session_created_param_first_msg_id_type_long' => '', + 'object_new_session_created_param_unique_id_type_long' => '', + 'object_new_session_created_param_server_salt_type_long' => '', + 'object_msg_container' => '', + 'object_msg_container_param_messages_type_vector' => '', + 'object_MTmessage' => '', + 'object_MTmessage_param_msg_id_type_long' => '', + 'object_MTmessage_param_seqno_type_int' => '', + 'object_MTmessage_param_bytes_type_int' => '', + 'object_MTmessage_param_body_type_Object' => '', + 'object_msg_copy' => '', + 'object_msg_copy_param_orig_message_type_MTMessage' => '', + 'object_gzip_packed' => '', + 'object_gzip_packed_param_packed_data_type_bytes' => '', + 'object_msgs_ack' => '', + 'object_msgs_ack_param_msg_ids_type_Vector t' => '', + 'object_bad_msg_notification' => '', + 'object_bad_msg_notification_param_bad_msg_id_type_long' => '', + 'object_bad_msg_notification_param_bad_msg_seqno_type_int' => '', + 'object_bad_msg_notification_param_error_code_type_int' => '', + 'object_bad_server_salt' => '', + 'object_bad_server_salt_param_bad_msg_id_type_long' => '', + 'object_bad_server_salt_param_bad_msg_seqno_type_int' => '', + 'object_bad_server_salt_param_error_code_type_int' => '', + 'object_bad_server_salt_param_new_server_salt_type_long' => '', + 'object_msg_resend_req' => '', + 'object_msg_resend_req_param_msg_ids_type_Vector t' => '', + 'object_msgs_state_req' => '', + 'object_msgs_state_req_param_msg_ids_type_Vector t' => '', + 'object_msgs_state_info' => '', + 'object_msgs_state_info_param_req_msg_id_type_long' => '', + 'object_msgs_state_info_param_info_type_bytes' => '', + 'object_msgs_all_info' => '', + 'object_msgs_all_info_param_msg_ids_type_Vector t' => '', + 'object_msgs_all_info_param_info_type_bytes' => '', + 'object_msg_detailed_info' => '', + 'object_msg_detailed_info_param_msg_id_type_long' => '', + 'object_msg_detailed_info_param_answer_msg_id_type_long' => '', + 'object_msg_detailed_info_param_bytes_type_int' => '', + 'object_msg_detailed_info_param_status_type_int' => '', + 'object_msg_new_detailed_info' => '', + 'object_msg_new_detailed_info_param_answer_msg_id_type_long' => '', + 'object_msg_new_detailed_info_param_bytes_type_int' => '', + 'object_msg_new_detailed_info_param_status_type_int' => '', + 'object_bind_auth_key_inner' => '', + 'object_bind_auth_key_inner_param_nonce_type_long' => '', + 'object_bind_auth_key_inner_param_temp_auth_key_id_type_long' => '', + 'object_bind_auth_key_inner_param_perm_auth_key_id_type_long' => '', + 'object_bind_auth_key_inner_param_temp_session_id_type_long' => '', + 'object_bind_auth_key_inner_param_expires_at_type_int' => '', + 'object_boolFalse' => '', + 'object_boolTrue' => '', + 'object_true' => '', + 'object_error' => '', + 'object_error_param_code_type_int' => '', + 'object_error_param_text_type_string' => '', + 'object_null' => '', + 'object_inputPeerEmpty' => '', + 'object_inputPeerSelf' => '', + 'object_inputPeerChat' => '', + 'object_inputPeerChat_param_chat_id_type_int' => '', + 'object_inputPeerUser' => '', + 'object_inputPeerUser_param_user_id_type_int' => '', + 'object_inputPeerUser_param_access_hash_type_long' => '', + 'object_inputPeerChannel' => '', + 'object_inputPeerChannel_param_channel_id_type_int' => '', + 'object_inputPeerChannel_param_access_hash_type_long' => '', + 'object_inputUserEmpty' => '', + 'object_inputUserSelf' => '', + 'object_inputUser' => '', + 'object_inputUser_param_user_id_type_int' => '', + 'object_inputUser_param_access_hash_type_long' => '', + 'object_inputPhoneContact' => '', + 'object_inputPhoneContact_param_client_id_type_long' => '', + 'object_inputPhoneContact_param_phone_type_string' => '', + 'object_inputPhoneContact_param_first_name_type_string' => '', + 'object_inputPhoneContact_param_last_name_type_string' => '', + 'object_inputFile' => '', + 'object_inputFile_param_id_type_long' => '', + 'object_inputFile_param_parts_type_int' => '', + 'object_inputFile_param_name_type_string' => '', + 'object_inputFile_param_md5_checksum_type_string' => '', + 'object_inputFileBig' => '', + 'object_inputFileBig_param_id_type_long' => '', + 'object_inputFileBig_param_parts_type_int' => '', + 'object_inputFileBig_param_name_type_string' => '', + 'object_inputMediaEmpty' => '', + 'object_inputMediaUploadedPhoto' => '', + 'object_inputMediaUploadedPhoto_param_file_type_InputFile' => '', + 'object_inputMediaUploadedPhoto_param_stickers_type_Vector t' => '', + 'object_inputMediaUploadedPhoto_param_ttl_seconds_type_int' => '', + 'object_inputMediaPhoto' => '', + 'object_inputMediaPhoto_param_id_type_InputPhoto' => '', + 'object_inputMediaPhoto_param_ttl_seconds_type_int' => '', + 'object_inputMediaGeoPoint' => '', + 'object_inputMediaGeoPoint_param_geo_point_type_InputGeoPoint' => '', + 'object_inputMediaContact' => '', + 'object_inputMediaContact_param_phone_number_type_string' => '', + 'object_inputMediaContact_param_first_name_type_string' => '', + 'object_inputMediaContact_param_last_name_type_string' => '', + 'object_inputMediaUploadedDocument' => '', + 'object_inputMediaUploadedDocument_param_nosound_video_type_true' => '', + 'object_inputMediaUploadedDocument_param_file_type_InputFile' => '', + 'object_inputMediaUploadedDocument_param_thumb_type_InputFile' => '', + 'object_inputMediaUploadedDocument_param_mime_type_type_string' => '', + 'object_inputMediaUploadedDocument_param_attributes_type_Vector t' => '', + 'object_inputMediaUploadedDocument_param_stickers_type_Vector t' => '', + 'object_inputMediaUploadedDocument_param_ttl_seconds_type_int' => '', + 'object_inputMediaDocument' => '', + 'object_inputMediaDocument_param_id_type_InputDocument' => '', + 'object_inputMediaDocument_param_ttl_seconds_type_int' => '', + 'object_inputMediaVenue' => '', + 'object_inputMediaVenue_param_geo_point_type_InputGeoPoint' => '', + 'object_inputMediaVenue_param_title_type_string' => '', + 'object_inputMediaVenue_param_address_type_string' => '', + 'object_inputMediaVenue_param_provider_type_string' => '', + 'object_inputMediaVenue_param_venue_id_type_string' => '', + 'object_inputMediaVenue_param_venue_type_type_string' => '', + 'object_inputMediaGifExternal' => '', + 'object_inputMediaGifExternal_param_url_type_string' => '', + 'object_inputMediaGifExternal_param_q_type_string' => '', + 'object_inputMediaPhotoExternal' => '', + 'object_inputMediaPhotoExternal_param_url_type_string' => '', + 'object_inputMediaPhotoExternal_param_ttl_seconds_type_int' => '', + 'object_inputMediaDocumentExternal' => '', + 'object_inputMediaDocumentExternal_param_url_type_string' => '', + 'object_inputMediaDocumentExternal_param_ttl_seconds_type_int' => '', + 'object_inputMediaGame' => '', + 'object_inputMediaGame_param_id_type_InputGame' => '', + 'object_inputMediaInvoice' => '', + 'object_inputMediaInvoice_param_title_type_string' => '', + 'object_inputMediaInvoice_param_description_type_string' => '', + 'object_inputMediaInvoice_param_photo_type_InputWebDocument' => '', + 'object_inputMediaInvoice_param_invoice_type_Invoice' => '', + 'object_inputMediaInvoice_param_payload_type_bytes' => '', + 'object_inputMediaInvoice_param_provider_type_string' => '', + 'object_inputMediaInvoice_param_provider_data_type_DataJSON' => '', + 'object_inputMediaInvoice_param_start_param_type_string' => '', + 'object_inputMediaGeoLive' => '', + 'object_inputMediaGeoLive_param_geo_point_type_InputGeoPoint' => '', + 'object_inputMediaGeoLive_param_period_type_int' => '', + 'object_inputChatPhotoEmpty' => '', + 'object_inputChatUploadedPhoto' => '', + 'object_inputChatUploadedPhoto_param_file_type_InputFile' => '', + 'object_inputChatPhoto' => '', + 'object_inputChatPhoto_param_id_type_InputPhoto' => '', + 'object_inputGeoPointEmpty' => '', + 'object_inputGeoPoint' => '', + 'object_inputGeoPoint_param_lat_type_double' => '', + 'object_inputGeoPoint_param_long_type_double' => '', + 'object_inputPhotoEmpty' => '', + 'object_inputPhoto' => '', + 'object_inputPhoto_param_id_type_long' => '', + 'object_inputPhoto_param_access_hash_type_long' => '', + 'object_inputFileLocation' => '', + 'object_inputFileLocation_param_volume_id_type_long' => '', + 'object_inputFileLocation_param_local_id_type_int' => '', + 'object_inputFileLocation_param_secret_type_long' => '', + 'object_inputEncryptedFileLocation' => '', + 'object_inputEncryptedFileLocation_param_id_type_long' => '', + 'object_inputEncryptedFileLocation_param_access_hash_type_long' => '', + 'object_inputDocumentFileLocation' => '', + 'object_inputDocumentFileLocation_param_id_type_long' => '', + 'object_inputDocumentFileLocation_param_access_hash_type_long' => '', + 'object_inputDocumentFileLocation_param_version_type_int' => '', + 'object_inputAppEvent' => '', + 'object_inputAppEvent_param_time_type_double' => '', + 'object_inputAppEvent_param_type_type_string' => '', + 'object_inputAppEvent_param_peer_type_long' => '', + 'object_inputAppEvent_param_data_type_string' => '', + 'object_peerUser' => '', + 'object_peerUser_param_user_id_type_int' => '', + 'object_peerChat' => '', + 'object_peerChat_param_chat_id_type_int' => '', + 'object_peerChannel' => '', + 'object_peerChannel_param_channel_id_type_int' => '', + 'object_storage.fileUnknown' => '', + 'object_storage.filePartial' => '', + 'object_storage.fileJpeg' => '', + 'object_storage.fileGif' => '', + 'object_storage.filePng' => '', + 'object_storage.filePdf' => '', + 'object_storage.fileMp3' => '', + 'object_storage.fileMov' => '', + 'object_storage.fileMp4' => '', + 'object_storage.fileWebp' => '', + 'object_fileLocationUnavailable' => '', + 'object_fileLocationUnavailable_param_volume_id_type_long' => '', + 'object_fileLocationUnavailable_param_local_id_type_int' => '', + 'object_fileLocationUnavailable_param_secret_type_long' => '', + 'object_fileLocation' => '', + 'object_fileLocation_param_dc_id_type_int' => '', + 'object_fileLocation_param_volume_id_type_long' => '', + 'object_fileLocation_param_local_id_type_int' => '', + 'object_fileLocation_param_secret_type_long' => '', + 'object_userEmpty' => '', + 'object_userEmpty_param_id_type_int' => '', + 'object_user' => '', + 'object_user_param_self_type_true' => '', + 'object_user_param_contact_type_true' => '', + 'object_user_param_mutual_contact_type_true' => '', + 'object_user_param_deleted_type_true' => '', + 'object_user_param_bot_type_true' => '', + 'object_user_param_bot_chat_history_type_true' => '', + 'object_user_param_bot_nochats_type_true' => '', + 'object_user_param_verified_type_true' => '', + 'object_user_param_restricted_type_true' => '', + 'object_user_param_min_type_true' => '', + 'object_user_param_bot_inline_geo_type_true' => '', + 'object_user_param_id_type_int' => '', + 'object_user_param_access_hash_type_long' => '', + 'object_user_param_first_name_type_string' => '', + 'object_user_param_last_name_type_string' => '', + 'object_user_param_username_type_string' => '', + 'object_user_param_phone_type_string' => '', + 'object_user_param_photo_type_UserProfilePhoto' => '', + 'object_user_param_status_type_UserStatus' => '', + 'object_user_param_bot_info_version_type_int' => '', + 'object_user_param_restriction_reason_type_string' => '', + 'object_user_param_bot_inline_placeholder_type_string' => '', + 'object_user_param_lang_code_type_string' => '', + 'object_userProfilePhotoEmpty' => '', + 'object_userProfilePhoto' => '', + 'object_userProfilePhoto_param_photo_id_type_long' => '', + 'object_userProfilePhoto_param_photo_small_type_FileLocation' => '', + 'object_userProfilePhoto_param_photo_big_type_FileLocation' => '', + 'object_chatEmpty' => '', + 'object_chatEmpty_param_id_type_int' => '', + 'object_chat' => '', + 'object_chat_param_creator_type_true' => '', + 'object_chat_param_kicked_type_true' => '', + 'object_chat_param_left_type_true' => '', + 'object_chat_param_admins_enabled_type_true' => '', + 'object_chat_param_admin_type_true' => '', + 'object_chat_param_deactivated_type_true' => '', + 'object_chat_param_id_type_int' => '', + 'object_chat_param_title_type_string' => '', + 'object_chat_param_photo_type_ChatPhoto' => '', + 'object_chat_param_participants_count_type_int' => '', + 'object_chat_param_date_type_int' => '', + 'object_chat_param_version_type_int' => '', + 'object_chat_param_migrated_to_type_InputChannel' => '', + 'object_chatForbidden' => '', + 'object_chatForbidden_param_id_type_int' => '', + 'object_chatForbidden_param_title_type_string' => '', + 'object_channel' => '', + 'object_channel_param_creator_type_true' => '', + 'object_channel_param_left_type_true' => '', + 'object_channel_param_editor_type_true' => '', + 'object_channel_param_broadcast_type_true' => '', + 'object_channel_param_verified_type_true' => '', + 'object_channel_param_megagroup_type_true' => '', + 'object_channel_param_restricted_type_true' => '', + 'object_channel_param_democracy_type_true' => '', + 'object_channel_param_signatures_type_true' => '', + 'object_channel_param_min_type_true' => '', + 'object_channel_param_id_type_int' => '', + 'object_channel_param_access_hash_type_long' => '', + 'object_channel_param_title_type_string' => '', + 'object_channel_param_username_type_string' => '', + 'object_channel_param_photo_type_ChatPhoto' => '', + 'object_channel_param_date_type_int' => '', + 'object_channel_param_version_type_int' => '', + 'object_channel_param_restriction_reason_type_string' => '', + 'object_channel_param_admin_rights_type_ChannelAdminRights' => '', + 'object_channel_param_banned_rights_type_ChannelBannedRights' => '', + 'object_channel_param_participants_count_type_int' => '', + 'object_channelForbidden' => '', + 'object_channelForbidden_param_broadcast_type_true' => '', + 'object_channelForbidden_param_megagroup_type_true' => '', + 'object_channelForbidden_param_id_type_int' => '', + 'object_channelForbidden_param_access_hash_type_long' => '', + 'object_channelForbidden_param_title_type_string' => '', + 'object_channelForbidden_param_until_date_type_int' => '', + 'object_chatFull' => '', + 'object_chatFull_param_id_type_int' => '', + 'object_chatFull_param_participants_type_ChatParticipants' => '', + 'object_chatFull_param_chat_photo_type_Photo' => '', + 'object_chatFull_param_notify_settings_type_PeerNotifySettings' => '', + 'object_chatFull_param_exported_invite_type_ExportedChatInvite' => '', + 'object_chatFull_param_bot_info_type_Vector t' => '', + 'object_channelFull' => '', + 'object_channelFull_param_can_view_participants_type_true' => '', + 'object_channelFull_param_can_set_username_type_true' => '', + 'object_channelFull_param_can_set_stickers_type_true' => '', + 'object_channelFull_param_hidden_prehistory_type_true' => '', + 'object_channelFull_param_id_type_int' => '', + 'object_channelFull_param_about_type_string' => '', + 'object_channelFull_param_participants_count_type_int' => '', + 'object_channelFull_param_admins_count_type_int' => '', + 'object_channelFull_param_kicked_count_type_int' => '', + 'object_channelFull_param_banned_count_type_int' => '', + 'object_channelFull_param_read_inbox_max_id_type_int' => '', + 'object_channelFull_param_read_outbox_max_id_type_int' => '', + 'object_channelFull_param_unread_count_type_int' => '', + 'object_channelFull_param_chat_photo_type_Photo' => '', + 'object_channelFull_param_notify_settings_type_PeerNotifySettings' => '', + 'object_channelFull_param_exported_invite_type_ExportedChatInvite' => '', + 'object_channelFull_param_bot_info_type_Vector t' => '', + 'object_channelFull_param_migrated_from_chat_id_type_int' => '', + 'object_channelFull_param_migrated_from_max_id_type_int' => '', + 'object_channelFull_param_pinned_msg_id_type_int' => '', + 'object_channelFull_param_stickerset_type_StickerSet' => '', + 'object_channelFull_param_available_min_id_type_int' => '', + 'object_chatParticipant' => '', + 'object_chatParticipant_param_user_id_type_int' => '', + 'object_chatParticipant_param_inviter_id_type_int' => '', + 'object_chatParticipant_param_date_type_int' => '', + 'object_chatParticipantCreator' => '', + 'object_chatParticipantCreator_param_user_id_type_int' => '', + 'object_chatParticipantAdmin' => '', + 'object_chatParticipantAdmin_param_user_id_type_int' => '', + 'object_chatParticipantAdmin_param_inviter_id_type_int' => '', + 'object_chatParticipantAdmin_param_date_type_int' => '', + 'object_chatParticipantsForbidden' => '', + 'object_chatParticipantsForbidden_param_chat_id_type_int' => '', + 'object_chatParticipantsForbidden_param_self_participant_type_ChatParticipant' => '', + 'object_chatParticipants' => '', + 'object_chatParticipants_param_chat_id_type_int' => '', + 'object_chatParticipants_param_participants_type_Vector t' => '', + 'object_chatParticipants_param_version_type_int' => '', + 'object_chatPhotoEmpty' => '', + 'object_chatPhoto' => '', + 'object_chatPhoto_param_photo_small_type_FileLocation' => '', + 'object_chatPhoto_param_photo_big_type_FileLocation' => '', + 'object_messageEmpty' => '', + 'object_messageEmpty_param_id_type_int' => '', + 'object_message' => '', + 'object_message_param_out_type_true' => '', + 'object_message_param_mentioned_type_true' => '', + 'object_message_param_media_unread_type_true' => '', + 'object_message_param_silent_type_true' => '', + 'object_message_param_post_type_true' => '', + 'object_message_param_id_type_int' => '', + 'object_message_param_from_id_type_int' => '', + 'object_message_param_to_id_type_Peer' => '', + 'object_message_param_fwd_from_type_MessageFwdHeader' => '', + 'object_message_param_via_bot_id_type_int' => '', + 'object_message_param_reply_to_msg_id_type_int' => '', + 'object_message_param_date_type_int' => '', + 'object_message_param_message_type_string' => '', + 'object_message_param_media_type_MessageMedia' => '', + 'object_message_param_reply_markup_type_ReplyMarkup' => '', + 'object_message_param_entities_type_Vector t' => '', + 'object_message_param_views_type_int' => '', + 'object_message_param_edit_date_type_int' => '', + 'object_message_param_post_author_type_string' => '', + 'object_message_param_grouped_id_type_long' => '', + 'object_messageService' => '', + 'object_messageService_param_out_type_true' => '', + 'object_messageService_param_mentioned_type_true' => '', + 'object_messageService_param_media_unread_type_true' => '', + 'object_messageService_param_silent_type_true' => '', + 'object_messageService_param_post_type_true' => '', + 'object_messageService_param_id_type_int' => '', + 'object_messageService_param_from_id_type_int' => '', + 'object_messageService_param_to_id_type_Peer' => '', + 'object_messageService_param_reply_to_msg_id_type_int' => '', + 'object_messageService_param_date_type_int' => '', + 'object_messageService_param_action_type_MessageAction' => '', + 'object_messageMediaEmpty' => '', + 'object_messageMediaPhoto' => '', + 'object_messageMediaPhoto_param_photo_type_Photo' => '', + 'object_messageMediaPhoto_param_ttl_seconds_type_int' => '', + 'object_messageMediaGeo' => '', + 'object_messageMediaGeo_param_geo_type_GeoPoint' => '', + 'object_messageMediaContact' => '', + 'object_messageMediaContact_param_phone_number_type_string' => '', + 'object_messageMediaContact_param_first_name_type_string' => '', + 'object_messageMediaContact_param_last_name_type_string' => '', + 'object_messageMediaContact_param_user_id_type_int' => '', + 'object_messageMediaUnsupported' => '', + 'object_messageMediaDocument' => '', + 'object_messageMediaDocument_param_document_type_Document' => '', + 'object_messageMediaDocument_param_ttl_seconds_type_int' => '', + 'object_messageMediaWebPage' => '', + 'object_messageMediaWebPage_param_webpage_type_WebPage' => '', + 'object_messageMediaVenue' => '', + 'object_messageMediaVenue_param_geo_type_GeoPoint' => '', + 'object_messageMediaVenue_param_title_type_string' => '', + 'object_messageMediaVenue_param_address_type_string' => '', + 'object_messageMediaVenue_param_provider_type_string' => '', + 'object_messageMediaVenue_param_venue_id_type_string' => '', + 'object_messageMediaVenue_param_venue_type_type_string' => '', + 'object_messageMediaGame' => '', + 'object_messageMediaGame_param_game_type_Game' => '', + 'object_messageMediaInvoice' => '', + 'object_messageMediaInvoice_param_shipping_address_requested_type_true' => '', + 'object_messageMediaInvoice_param_test_type_true' => '', + 'object_messageMediaInvoice_param_title_type_string' => '', + 'object_messageMediaInvoice_param_description_type_string' => '', + 'object_messageMediaInvoice_param_photo_type_WebDocument' => '', + 'object_messageMediaInvoice_param_receipt_msg_id_type_int' => '', + 'object_messageMediaInvoice_param_currency_type_string' => '', + 'object_messageMediaInvoice_param_total_amount_type_long' => '', + 'object_messageMediaInvoice_param_start_param_type_string' => '', + 'object_messageMediaGeoLive' => '', + 'object_messageMediaGeoLive_param_geo_type_GeoPoint' => '', + 'object_messageMediaGeoLive_param_period_type_int' => '', + 'object_messageActionEmpty' => '', + 'object_messageActionChatCreate' => '', + 'object_messageActionChatCreate_param_title_type_string' => '', + 'object_messageActionChatCreate_param_users_type_Vector t' => '', + 'object_messageActionChatEditTitle' => '', + 'object_messageActionChatEditTitle_param_title_type_string' => '', + 'object_messageActionChatEditPhoto' => '', + 'object_messageActionChatEditPhoto_param_photo_type_Photo' => '', + 'object_messageActionChatDeletePhoto' => '', + 'object_messageActionChatAddUser' => '', + 'object_messageActionChatAddUser_param_users_type_Vector t' => '', + 'object_messageActionChatDeleteUser' => '', + 'object_messageActionChatDeleteUser_param_user_id_type_int' => '', + 'object_messageActionChatJoinedByLink' => '', + 'object_messageActionChatJoinedByLink_param_inviter_id_type_int' => '', + 'object_messageActionChannelCreate' => '', + 'object_messageActionChannelCreate_param_title_type_string' => '', + 'object_messageActionChatMigrateTo' => '', + 'object_messageActionChatMigrateTo_param_channel_id_type_int' => '', + 'object_messageActionChannelMigrateFrom' => '', + 'object_messageActionChannelMigrateFrom_param_title_type_string' => '', + 'object_messageActionChannelMigrateFrom_param_chat_id_type_int' => '', + 'object_messageActionPinMessage' => '', + 'object_messageActionHistoryClear' => '', + 'object_messageActionGameScore' => '', + 'object_messageActionGameScore_param_game_id_type_long' => '', + 'object_messageActionGameScore_param_score_type_int' => '', + 'object_messageActionPaymentSentMe' => '', + 'object_messageActionPaymentSentMe_param_currency_type_string' => '', + 'object_messageActionPaymentSentMe_param_total_amount_type_long' => '', + 'object_messageActionPaymentSentMe_param_payload_type_bytes' => '', + 'object_messageActionPaymentSentMe_param_info_type_PaymentRequestedInfo' => '', + 'object_messageActionPaymentSentMe_param_shipping_option_id_type_string' => '', + 'object_messageActionPaymentSentMe_param_charge_type_PaymentCharge' => '', + 'object_messageActionPaymentSent' => '', + 'object_messageActionPaymentSent_param_currency_type_string' => '', + 'object_messageActionPaymentSent_param_total_amount_type_long' => '', + 'object_messageActionPhoneCall' => '', + 'object_messageActionPhoneCall_param_call_id_type_long' => '', + 'object_messageActionPhoneCall_param_reason_type_PhoneCallDiscardReason' => '', + 'object_messageActionPhoneCall_param_duration_type_int' => '', + 'object_messageActionScreenshotTaken' => '', + 'object_messageActionCustomAction' => '', + 'object_messageActionCustomAction_param_message_type_string' => '', + 'object_dialog' => '', + 'object_dialog_param_pinned_type_true' => '', + 'object_dialog_param_peer_type_Peer' => '', + 'object_dialog_param_top_message_type_int' => '', + 'object_dialog_param_read_inbox_max_id_type_int' => '', + 'object_dialog_param_read_outbox_max_id_type_int' => '', + 'object_dialog_param_unread_count_type_int' => '', + 'object_dialog_param_unread_mentions_count_type_int' => '', + 'object_dialog_param_notify_settings_type_PeerNotifySettings' => '', + 'object_dialog_param_pts_type_int' => '', + 'object_dialog_param_draft_type_DraftMessage' => '', + 'object_photoEmpty' => '', + 'object_photoEmpty_param_id_type_long' => '', + 'object_photo' => '', + 'object_photo_param_has_stickers_type_true' => '', + 'object_photo_param_id_type_long' => '', + 'object_photo_param_access_hash_type_long' => '', + 'object_photo_param_date_type_int' => '', + 'object_photo_param_sizes_type_Vector t' => '', + 'object_photoSizeEmpty' => '', + 'object_photoSizeEmpty_param_type_type_string' => '', + 'object_photoSize' => '', + 'object_photoSize_param_type_type_string' => '', + 'object_photoSize_param_location_type_FileLocation' => '', + 'object_photoSize_param_w_type_int' => '', + 'object_photoSize_param_h_type_int' => '', + 'object_photoSize_param_size_type_int' => '', + 'object_photoCachedSize' => '', + 'object_photoCachedSize_param_type_type_string' => '', + 'object_photoCachedSize_param_location_type_FileLocation' => '', + 'object_photoCachedSize_param_w_type_int' => '', + 'object_photoCachedSize_param_h_type_int' => '', + 'object_photoCachedSize_param_bytes_type_bytes' => '', + 'object_geoPointEmpty' => '', + 'object_geoPoint' => '', + 'object_geoPoint_param_long_type_double' => '', + 'object_geoPoint_param_lat_type_double' => '', + 'object_auth.checkedPhone' => '', + 'object_auth.checkedPhone_param_phone_registered_type_Bool' => '', + 'object_auth.sentCode' => '', + 'object_auth.sentCode_param_phone_registered_type_true' => '', + 'object_auth.sentCode_param_type_type_auth.SentCodeType' => '', + 'object_auth.sentCode_param_phone_code_hash_type_string' => '', + 'object_auth.sentCode_param_next_type_type_auth.CodeType' => '', + 'object_auth.sentCode_param_timeout_type_int' => '', + 'object_auth.authorization' => '', + 'object_auth.authorization_param_tmp_sessions_type_int' => '', + 'object_auth.authorization_param_user_type_User' => '', + 'object_auth.exportedAuthorization' => '', + 'object_auth.exportedAuthorization_param_id_type_int' => '', + 'object_auth.exportedAuthorization_param_bytes_type_bytes' => '', + 'object_inputNotifyPeer' => '', + 'object_inputNotifyPeer_param_peer_type_InputPeer' => '', + 'object_inputNotifyUsers' => '', + 'object_inputNotifyChats' => '', + 'object_inputNotifyAll' => '', + 'object_inputPeerNotifyEventsEmpty' => '', + 'object_inputPeerNotifyEventsAll' => '', + 'object_inputPeerNotifySettings' => '', + 'object_inputPeerNotifySettings_param_show_previews_type_true' => '', + 'object_inputPeerNotifySettings_param_silent_type_true' => '', + 'object_inputPeerNotifySettings_param_mute_until_type_int' => '', + 'object_inputPeerNotifySettings_param_sound_type_string' => '', + 'object_peerNotifyEventsEmpty' => '', + 'object_peerNotifyEventsAll' => '', + 'object_peerNotifySettingsEmpty' => '', + 'object_peerNotifySettings' => '', + 'object_peerNotifySettings_param_show_previews_type_true' => '', + 'object_peerNotifySettings_param_silent_type_true' => '', + 'object_peerNotifySettings_param_mute_until_type_int' => '', + 'object_peerNotifySettings_param_sound_type_string' => '', + 'object_peerSettings' => '', + 'object_peerSettings_param_report_spam_type_true' => '', + 'object_wallPaper' => '', + 'object_wallPaper_param_id_type_int' => '', + 'object_wallPaper_param_title_type_string' => '', + 'object_wallPaper_param_sizes_type_Vector t' => '', + 'object_wallPaper_param_color_type_int' => '', + 'object_wallPaperSolid' => '', + 'object_wallPaperSolid_param_id_type_int' => '', + 'object_wallPaperSolid_param_title_type_string' => '', + 'object_wallPaperSolid_param_bg_color_type_int' => '', + 'object_wallPaperSolid_param_color_type_int' => '', + 'object_inputReportReasonSpam' => '', + 'object_inputReportReasonViolence' => '', + 'object_inputReportReasonPornography' => '', + 'object_inputReportReasonOther' => '', + 'object_inputReportReasonOther_param_text_type_string' => '', + 'object_userFull' => '', + 'object_userFull_param_blocked_type_true' => '', + 'object_userFull_param_phone_calls_available_type_true' => '', + 'object_userFull_param_phone_calls_private_type_true' => '', + 'object_userFull_param_user_type_User' => '', + 'object_userFull_param_about_type_string' => '', + 'object_userFull_param_link_type_contacts.Link' => '', + 'object_userFull_param_profile_photo_type_Photo' => '', + 'object_userFull_param_notify_settings_type_PeerNotifySettings' => '', + 'object_userFull_param_bot_info_type_BotInfo' => '', + 'object_userFull_param_common_chats_count_type_int' => '', + 'object_contact' => '', + 'object_contact_param_user_id_type_int' => '', + 'object_contact_param_mutual_type_Bool' => '', + 'object_importedContact' => '', + 'object_importedContact_param_user_id_type_int' => '', + 'object_importedContact_param_client_id_type_long' => '', + 'object_contactBlocked' => '', + 'object_contactBlocked_param_user_id_type_int' => '', + 'object_contactBlocked_param_date_type_int' => '', + 'object_contactStatus' => '', + 'object_contactStatus_param_user_id_type_int' => '', + 'object_contactStatus_param_status_type_UserStatus' => '', + 'object_contacts.link' => '', + 'object_contacts.link_param_my_link_type_ContactLink' => '', + 'object_contacts.link_param_foreign_link_type_ContactLink' => '', + 'object_contacts.link_param_user_type_User' => '', + 'object_contacts.contactsNotModified' => '', + 'object_contacts.contacts' => '', + 'object_contacts.contacts_param_contacts_type_Vector t' => '', + 'object_contacts.contacts_param_saved_count_type_int' => '', + 'object_contacts.contacts_param_users_type_Vector t' => '', + 'object_contacts.importedContacts' => '', + 'object_contacts.importedContacts_param_imported_type_Vector t' => '', + 'object_contacts.importedContacts_param_popular_invites_type_Vector t' => '', + 'object_contacts.importedContacts_param_retry_contacts_type_Vector t' => '', + 'object_contacts.importedContacts_param_users_type_Vector t' => '', + 'object_contacts.blocked' => '', + 'object_contacts.blocked_param_blocked_type_Vector t' => '', + 'object_contacts.blocked_param_users_type_Vector t' => '', + 'object_contacts.blockedSlice' => '', + 'object_contacts.blockedSlice_param_count_type_int' => '', + 'object_contacts.blockedSlice_param_blocked_type_Vector t' => '', + 'object_contacts.blockedSlice_param_users_type_Vector t' => '', + 'object_messages.dialogs' => '', + 'object_messages.dialogs_param_dialogs_type_Vector t' => '', + 'object_messages.dialogs_param_messages_type_Vector t' => '', + 'object_messages.dialogs_param_chats_type_Vector t' => '', + 'object_messages.dialogs_param_users_type_Vector t' => '', + 'object_messages.dialogsSlice' => '', + 'object_messages.dialogsSlice_param_count_type_int' => '', + 'object_messages.dialogsSlice_param_dialogs_type_Vector t' => '', + 'object_messages.dialogsSlice_param_messages_type_Vector t' => '', + 'object_messages.dialogsSlice_param_chats_type_Vector t' => '', + 'object_messages.dialogsSlice_param_users_type_Vector t' => '', + 'object_messages.messages' => '', + 'object_messages.messages_param_messages_type_Vector t' => '', + 'object_messages.messages_param_chats_type_Vector t' => '', + 'object_messages.messages_param_users_type_Vector t' => '', + 'object_messages.messagesSlice' => '', + 'object_messages.messagesSlice_param_count_type_int' => '', + 'object_messages.messagesSlice_param_messages_type_Vector t' => '', + 'object_messages.messagesSlice_param_chats_type_Vector t' => '', + 'object_messages.messagesSlice_param_users_type_Vector t' => '', + 'object_messages.channelMessages' => '', + 'object_messages.channelMessages_param_pts_type_int' => '', + 'object_messages.channelMessages_param_count_type_int' => '', + 'object_messages.channelMessages_param_messages_type_Vector t' => '', + 'object_messages.channelMessages_param_chats_type_Vector t' => '', + 'object_messages.channelMessages_param_users_type_Vector t' => '', + 'object_messages.messagesNotModified' => '', + 'object_messages.messagesNotModified_param_count_type_int' => '', + 'object_messages.chats' => '', + 'object_messages.chats_param_chats_type_Vector t' => '', + 'object_messages.chatsSlice' => '', + 'object_messages.chatsSlice_param_count_type_int' => '', + 'object_messages.chatsSlice_param_chats_type_Vector t' => '', + 'object_messages.chatFull' => '', + 'object_messages.chatFull_param_full_chat_type_ChatFull' => '', + 'object_messages.chatFull_param_chats_type_Vector t' => '', + 'object_messages.chatFull_param_users_type_Vector t' => '', + 'object_messages.affectedHistory' => '', + 'object_messages.affectedHistory_param_pts_type_int' => '', + 'object_messages.affectedHistory_param_pts_count_type_int' => '', + 'object_messages.affectedHistory_param_offset_type_int' => '', + 'object_inputMessagesFilterEmpty' => '', + 'object_inputMessagesFilterPhotos' => '', + 'object_inputMessagesFilterVideo' => '', + 'object_inputMessagesFilterPhotoVideo' => '', + 'object_inputMessagesFilterDocument' => '', + 'object_inputMessagesFilterUrl' => '', + 'object_inputMessagesFilterGif' => '', + 'object_inputMessagesFilterVoice' => '', + 'object_inputMessagesFilterMusic' => '', + 'object_inputMessagesFilterChatPhotos' => '', + 'object_inputMessagesFilterPhoneCalls' => '', + 'object_inputMessagesFilterPhoneCalls_param_missed_type_true' => '', + 'object_inputMessagesFilterRoundVoice' => '', + 'object_inputMessagesFilterRoundVideo' => '', + 'object_inputMessagesFilterMyMentions' => '', + 'object_inputMessagesFilterGeo' => '', + 'object_inputMessagesFilterContacts' => '', + 'object_updateNewMessage' => '', + 'object_updateNewMessage_param_message_type_Message' => '', + 'object_updateNewMessage_param_pts_type_int' => '', + 'object_updateNewMessage_param_pts_count_type_int' => '', + 'object_updateMessageID' => '', + 'object_updateMessageID_param_id_type_int' => '', + 'object_updateDeleteMessages' => '', + 'object_updateDeleteMessages_param_messages_type_Vector t' => '', + 'object_updateDeleteMessages_param_pts_type_int' => '', + 'object_updateDeleteMessages_param_pts_count_type_int' => '', + 'object_updateUserTyping' => '', + 'object_updateUserTyping_param_user_id_type_int' => '', + 'object_updateUserTyping_param_action_type_SendMessageAction' => '', + 'object_updateChatUserTyping' => '', + 'object_updateChatUserTyping_param_chat_id_type_int' => '', + 'object_updateChatUserTyping_param_user_id_type_int' => '', + 'object_updateChatUserTyping_param_action_type_SendMessageAction' => '', + 'object_updateChatParticipants' => '', + 'object_updateChatParticipants_param_participants_type_ChatParticipants' => '', + 'object_updateUserName' => '', + 'object_updateUserName_param_user_id_type_int' => '', + 'object_updateUserName_param_first_name_type_string' => '', + 'object_updateUserName_param_last_name_type_string' => '', + 'object_updateUserName_param_username_type_string' => '', + 'object_updateUserPhoto' => '', + 'object_updateUserPhoto_param_user_id_type_int' => '', + 'object_updateUserPhoto_param_date_type_int' => '', + 'object_updateUserPhoto_param_photo_type_UserProfilePhoto' => '', + 'object_updateUserPhoto_param_previous_type_Bool' => '', + 'object_updateContactRegistered' => '', + 'object_updateContactRegistered_param_user_id_type_int' => '', + 'object_updateContactRegistered_param_date_type_int' => '', + 'object_updateContactLink' => '', + 'object_updateContactLink_param_user_id_type_int' => '', + 'object_updateContactLink_param_my_link_type_ContactLink' => '', + 'object_updateContactLink_param_foreign_link_type_ContactLink' => '', + 'object_updateNewEncryptedMessage' => '', + 'object_updateNewEncryptedMessage_param_message_type_EncryptedMessage' => '', + 'object_updateNewEncryptedMessage_param_qts_type_int' => '', + 'object_updateEncryptedChatTyping' => '', + 'object_updateEncryptedChatTyping_param_chat_id_type_int' => '', + 'object_updateEncryption' => '', + 'object_updateEncryption_param_chat_type_EncryptedChat' => '', + 'object_updateEncryption_param_date_type_int' => '', + 'object_updateEncryptedMessagesRead' => '', + 'object_updateEncryptedMessagesRead_param_chat_id_type_int' => '', + 'object_updateEncryptedMessagesRead_param_max_date_type_int' => '', + 'object_updateEncryptedMessagesRead_param_date_type_int' => '', + 'object_updateChatParticipantAdd' => '', + 'object_updateChatParticipantAdd_param_chat_id_type_int' => '', + 'object_updateChatParticipantAdd_param_user_id_type_int' => '', + 'object_updateChatParticipantAdd_param_inviter_id_type_int' => '', + 'object_updateChatParticipantAdd_param_date_type_int' => '', + 'object_updateChatParticipantAdd_param_version_type_int' => '', + 'object_updateChatParticipantDelete' => '', + 'object_updateChatParticipantDelete_param_chat_id_type_int' => '', + 'object_updateChatParticipantDelete_param_user_id_type_int' => '', + 'object_updateChatParticipantDelete_param_version_type_int' => '', + 'object_updateDcOptions' => '', + 'object_updateDcOptions_param_dc_options_type_Vector t' => '', + 'object_updateUserBlocked' => '', + 'object_updateUserBlocked_param_user_id_type_int' => '', + 'object_updateUserBlocked_param_blocked_type_Bool' => '', + 'object_updateNotifySettings' => '', + 'object_updateNotifySettings_param_peer_type_NotifyPeer' => '', + 'object_updateNotifySettings_param_notify_settings_type_PeerNotifySettings' => '', + 'object_updateServiceNotification' => '', + 'object_updateServiceNotification_param_popup_type_true' => '', + 'object_updateServiceNotification_param_inbox_date_type_int' => '', + 'object_updateServiceNotification_param_type_type_string' => '', + 'object_updateServiceNotification_param_message_type_string' => '', + 'object_updateServiceNotification_param_media_type_MessageMedia' => '', + 'object_updateServiceNotification_param_entities_type_Vector t' => '', + 'object_updatePrivacy' => '', + 'object_updatePrivacy_param_key_type_PrivacyKey' => '', + 'object_updatePrivacy_param_rules_type_Vector t' => '', + 'object_updateUserPhone' => '', + 'object_updateUserPhone_param_user_id_type_int' => '', + 'object_updateUserPhone_param_phone_type_string' => '', + 'object_updateReadHistoryInbox' => '', + 'object_updateReadHistoryInbox_param_peer_type_Peer' => '', + 'object_updateReadHistoryInbox_param_max_id_type_int' => '', + 'object_updateReadHistoryInbox_param_pts_type_int' => '', + 'object_updateReadHistoryInbox_param_pts_count_type_int' => '', + 'object_updateReadHistoryOutbox' => '', + 'object_updateReadHistoryOutbox_param_peer_type_Peer' => '', + 'object_updateReadHistoryOutbox_param_max_id_type_int' => '', + 'object_updateReadHistoryOutbox_param_pts_type_int' => '', + 'object_updateReadHistoryOutbox_param_pts_count_type_int' => '', + 'object_updateWebPage' => '', + 'object_updateWebPage_param_webpage_type_WebPage' => '', + 'object_updateWebPage_param_pts_type_int' => '', + 'object_updateWebPage_param_pts_count_type_int' => '', + 'object_updateReadMessagesContents' => '', + 'object_updateReadMessagesContents_param_messages_type_Vector t' => '', + 'object_updateReadMessagesContents_param_pts_type_int' => '', + 'object_updateReadMessagesContents_param_pts_count_type_int' => '', + 'object_updateChannelTooLong' => '', + 'object_updateChannelTooLong_param_channel_id_type_int' => '', + 'object_updateChannelTooLong_param_pts_type_int' => '', + 'object_updateChannel' => '', + 'object_updateChannel_param_channel_id_type_int' => '', + 'object_updateNewChannelMessage' => '', + 'object_updateNewChannelMessage_param_message_type_Message' => '', + 'object_updateNewChannelMessage_param_pts_type_int' => '', + 'object_updateNewChannelMessage_param_pts_count_type_int' => '', + 'object_updateReadChannelInbox' => '', + 'object_updateReadChannelInbox_param_channel_id_type_int' => '', + 'object_updateReadChannelInbox_param_max_id_type_int' => '', + 'object_updateDeleteChannelMessages' => '', + 'object_updateDeleteChannelMessages_param_channel_id_type_int' => '', + 'object_updateDeleteChannelMessages_param_messages_type_Vector t' => '', + 'object_updateDeleteChannelMessages_param_pts_type_int' => '', + 'object_updateDeleteChannelMessages_param_pts_count_type_int' => '', + 'object_updateChannelMessageViews' => '', + 'object_updateChannelMessageViews_param_channel_id_type_int' => '', + 'object_updateChannelMessageViews_param_id_type_int' => '', + 'object_updateChannelMessageViews_param_views_type_int' => '', + 'object_updateChatAdmins' => '', + 'object_updateChatAdmins_param_chat_id_type_int' => '', + 'object_updateChatAdmins_param_enabled_type_Bool' => '', + 'object_updateChatAdmins_param_version_type_int' => '', + 'object_updateChatParticipantAdmin' => '', + 'object_updateChatParticipantAdmin_param_chat_id_type_int' => '', + 'object_updateChatParticipantAdmin_param_user_id_type_int' => '', + 'object_updateChatParticipantAdmin_param_is_admin_type_Bool' => '', + 'object_updateChatParticipantAdmin_param_version_type_int' => '', + 'object_updateNewStickerSet' => '', + 'object_updateNewStickerSet_param_stickerset_type_messages.StickerSet' => '', + 'object_updateStickerSetsOrder' => '', + 'object_updateStickerSetsOrder_param_masks_type_true' => '', + 'object_updateStickerSetsOrder_param_order_type_Vector t' => '', + 'object_updateStickerSets' => '', + 'object_updateSavedGifs' => '', + 'object_updateBotInlineQuery' => '', + 'object_updateBotInlineQuery_param_query_id_type_long' => '', + 'object_updateBotInlineQuery_param_user_id_type_int' => '', + 'object_updateBotInlineQuery_param_query_type_string' => '', + 'object_updateBotInlineQuery_param_geo_type_GeoPoint' => '', + 'object_updateBotInlineQuery_param_offset_type_string' => '', + 'object_updateBotInlineSend' => '', + 'object_updateBotInlineSend_param_user_id_type_int' => '', + 'object_updateBotInlineSend_param_query_type_string' => '', + 'object_updateBotInlineSend_param_geo_type_GeoPoint' => '', + 'object_updateBotInlineSend_param_id_type_string' => '', + 'object_updateBotInlineSend_param_msg_id_type_InputBotInlineMessageID' => '', + 'object_updateEditChannelMessage' => '', + 'object_updateEditChannelMessage_param_message_type_Message' => '', + 'object_updateEditChannelMessage_param_pts_type_int' => '', + 'object_updateEditChannelMessage_param_pts_count_type_int' => '', + 'object_updateChannelPinnedMessage' => '', + 'object_updateChannelPinnedMessage_param_channel_id_type_int' => '', + 'object_updateChannelPinnedMessage_param_id_type_int' => '', + 'object_updateBotCallbackQuery' => '', + 'object_updateBotCallbackQuery_param_query_id_type_long' => '', + 'object_updateBotCallbackQuery_param_user_id_type_int' => '', + 'object_updateBotCallbackQuery_param_peer_type_Peer' => '', + 'object_updateBotCallbackQuery_param_msg_id_type_int' => '', + 'object_updateBotCallbackQuery_param_chat_instance_type_long' => '', + 'object_updateBotCallbackQuery_param_data_type_bytes' => '', + 'object_updateBotCallbackQuery_param_game_short_name_type_string' => '', + 'object_updateEditMessage' => '', + 'object_updateEditMessage_param_message_type_Message' => '', + 'object_updateEditMessage_param_pts_type_int' => '', + 'object_updateEditMessage_param_pts_count_type_int' => '', + 'object_updateInlineBotCallbackQuery' => '', + 'object_updateInlineBotCallbackQuery_param_query_id_type_long' => '', + 'object_updateInlineBotCallbackQuery_param_user_id_type_int' => '', + 'object_updateInlineBotCallbackQuery_param_msg_id_type_InputBotInlineMessageID' => '', + 'object_updateInlineBotCallbackQuery_param_chat_instance_type_long' => '', + 'object_updateInlineBotCallbackQuery_param_data_type_bytes' => '', + 'object_updateInlineBotCallbackQuery_param_game_short_name_type_string' => '', + 'object_updateReadChannelOutbox' => '', + 'object_updateReadChannelOutbox_param_channel_id_type_int' => '', + 'object_updateReadChannelOutbox_param_max_id_type_int' => '', + 'object_updateDraftMessage' => '', + 'object_updateDraftMessage_param_peer_type_Peer' => '', + 'object_updateDraftMessage_param_draft_type_DraftMessage' => '', + 'object_updateReadFeaturedStickers' => '', + 'object_updateRecentStickers' => '', + 'object_updateConfig' => '', + 'object_updatePtsChanged' => '', + 'object_updateChannelWebPage' => '', + 'object_updateChannelWebPage_param_channel_id_type_int' => '', + 'object_updateChannelWebPage_param_webpage_type_WebPage' => '', + 'object_updateChannelWebPage_param_pts_type_int' => '', + 'object_updateChannelWebPage_param_pts_count_type_int' => '', + 'object_updateDialogPinned' => '', + 'object_updateDialogPinned_param_pinned_type_true' => '', + 'object_updateDialogPinned_param_peer_type_Peer' => '', + 'object_updatePinnedDialogs' => '', + 'object_updatePinnedDialogs_param_order_type_Vector t' => '', + 'object_updateBotWebhookJSON' => '', + 'object_updateBotWebhookJSON_param_data_type_DataJSON' => '', + 'object_updateBotWebhookJSONQuery' => '', + 'object_updateBotWebhookJSONQuery_param_query_id_type_long' => '', + 'object_updateBotWebhookJSONQuery_param_data_type_DataJSON' => '', + 'object_updateBotWebhookJSONQuery_param_timeout_type_int' => '', + 'object_updateBotShippingQuery' => '', + 'object_updateBotShippingQuery_param_query_id_type_long' => '', + 'object_updateBotShippingQuery_param_user_id_type_int' => '', + 'object_updateBotShippingQuery_param_payload_type_bytes' => '', + 'object_updateBotShippingQuery_param_shipping_address_type_PostAddress' => '', + 'object_updateBotPrecheckoutQuery' => '', + 'object_updateBotPrecheckoutQuery_param_query_id_type_long' => '', + 'object_updateBotPrecheckoutQuery_param_user_id_type_int' => '', + 'object_updateBotPrecheckoutQuery_param_payload_type_bytes' => '', + 'object_updateBotPrecheckoutQuery_param_info_type_PaymentRequestedInfo' => '', + 'object_updateBotPrecheckoutQuery_param_shipping_option_id_type_string' => '', + 'object_updateBotPrecheckoutQuery_param_currency_type_string' => '', + 'object_updateBotPrecheckoutQuery_param_total_amount_type_long' => '', + 'object_updatePhoneCall' => '', + 'object_updatePhoneCall_param_phone_call_type_PhoneCall' => '', + 'object_updateLangPackTooLong' => '', + 'object_updateLangPack' => '', + 'object_updateLangPack_param_difference_type_LangPackDifference' => '', + 'object_updateFavedStickers' => '', + 'object_updateChannelReadMessagesContents' => '', + 'object_updateChannelReadMessagesContents_param_channel_id_type_int' => '', + 'object_updateChannelReadMessagesContents_param_messages_type_Vector t' => '', + 'object_updateContactsReset' => '', + 'object_updateChannelAvailableMessages' => '', + 'object_updateChannelAvailableMessages_param_channel_id_type_int' => '', + 'object_updateChannelAvailableMessages_param_available_min_id_type_int' => '', + 'object_updates.state' => '', + 'object_updates.state_param_pts_type_int' => '', + 'object_updates.state_param_qts_type_int' => '', + 'object_updates.state_param_date_type_int' => '', + 'object_updates.state_param_seq_type_int' => '', + 'object_updates.state_param_unread_count_type_int' => '', + 'object_updates.differenceEmpty' => '', + 'object_updates.differenceEmpty_param_date_type_int' => '', + 'object_updates.differenceEmpty_param_seq_type_int' => '', + 'object_updates.difference' => '', + 'object_updates.difference_param_new_messages_type_Vector t' => '', + 'object_updates.difference_param_new_encrypted_messages_type_Vector t' => '', + 'object_updates.difference_param_other_updates_type_Vector t' => '', + 'object_updates.difference_param_chats_type_Vector t' => '', + 'object_updates.difference_param_users_type_Vector t' => '', + 'object_updates.difference_param_state_type_updates.State' => '', + 'object_updates.differenceSlice' => '', + 'object_updates.differenceSlice_param_new_messages_type_Vector t' => '', + 'object_updates.differenceSlice_param_new_encrypted_messages_type_Vector t' => '', + 'object_updates.differenceSlice_param_other_updates_type_Vector t' => '', + 'object_updates.differenceSlice_param_chats_type_Vector t' => '', + 'object_updates.differenceSlice_param_users_type_Vector t' => '', + 'object_updates.differenceSlice_param_intermediate_state_type_updates.State' => '', + 'object_updates.differenceTooLong' => '', + 'object_updates.differenceTooLong_param_pts_type_int' => '', + 'object_updatesTooLong' => '', + 'object_updateShortMessage' => '', + 'object_updateShortMessage_param_out_type_true' => '', + 'object_updateShortMessage_param_mentioned_type_true' => '', + 'object_updateShortMessage_param_media_unread_type_true' => '', + 'object_updateShortMessage_param_silent_type_true' => '', + 'object_updateShortMessage_param_id_type_int' => '', + 'object_updateShortMessage_param_user_id_type_int' => '', + 'object_updateShortMessage_param_message_type_string' => '', + 'object_updateShortMessage_param_pts_type_int' => '', + 'object_updateShortMessage_param_pts_count_type_int' => '', + 'object_updateShortMessage_param_date_type_int' => '', + 'object_updateShortMessage_param_fwd_from_type_MessageFwdHeader' => '', + 'object_updateShortMessage_param_via_bot_id_type_int' => '', + 'object_updateShortMessage_param_reply_to_msg_id_type_int' => '', + 'object_updateShortMessage_param_entities_type_Vector t' => '', + 'object_updateShortChatMessage' => '', + 'object_updateShortChatMessage_param_out_type_true' => '', + 'object_updateShortChatMessage_param_mentioned_type_true' => '', + 'object_updateShortChatMessage_param_media_unread_type_true' => '', + 'object_updateShortChatMessage_param_silent_type_true' => '', + 'object_updateShortChatMessage_param_id_type_int' => '', + 'object_updateShortChatMessage_param_from_id_type_int' => '', + 'object_updateShortChatMessage_param_chat_id_type_int' => '', + 'object_updateShortChatMessage_param_message_type_string' => '', + 'object_updateShortChatMessage_param_pts_type_int' => '', + 'object_updateShortChatMessage_param_pts_count_type_int' => '', + 'object_updateShortChatMessage_param_date_type_int' => '', + 'object_updateShortChatMessage_param_fwd_from_type_MessageFwdHeader' => '', + 'object_updateShortChatMessage_param_via_bot_id_type_int' => '', + 'object_updateShortChatMessage_param_reply_to_msg_id_type_int' => '', + 'object_updateShortChatMessage_param_entities_type_Vector t' => '', + 'object_updateShort' => '', + 'object_updateShort_param_update_type_Update' => '', + 'object_updateShort_param_date_type_int' => '', + 'object_updatesCombined' => '', + 'object_updatesCombined_param_updates_type_Vector t' => '', + 'object_updatesCombined_param_users_type_Vector t' => '', + 'object_updatesCombined_param_chats_type_Vector t' => '', + 'object_updatesCombined_param_date_type_int' => '', + 'object_updatesCombined_param_seq_start_type_int' => '', + 'object_updatesCombined_param_seq_type_int' => '', + 'object_updates' => '', + 'object_updates_param_updates_type_Vector t' => '', + 'object_updates_param_users_type_Vector t' => '', + 'object_updates_param_chats_type_Vector t' => '', + 'object_updates_param_date_type_int' => '', + 'object_updates_param_seq_type_int' => '', + 'object_updateShortSentMessage' => '', + 'object_updateShortSentMessage_param_out_type_true' => '', + 'object_updateShortSentMessage_param_id_type_int' => '', + 'object_updateShortSentMessage_param_pts_type_int' => '', + 'object_updateShortSentMessage_param_pts_count_type_int' => '', + 'object_updateShortSentMessage_param_date_type_int' => '', + 'object_updateShortSentMessage_param_media_type_MessageMedia' => '', + 'object_updateShortSentMessage_param_entities_type_Vector t' => '', + 'object_photos.photos' => '', + 'object_photos.photos_param_photos_type_Vector t' => '', + 'object_photos.photos_param_users_type_Vector t' => '', + 'object_photos.photosSlice' => '', + 'object_photos.photosSlice_param_count_type_int' => '', + 'object_photos.photosSlice_param_photos_type_Vector t' => '', + 'object_photos.photosSlice_param_users_type_Vector t' => '', + 'object_photos.photo' => '', + 'object_photos.photo_param_photo_type_Photo' => '', + 'object_photos.photo_param_users_type_Vector t' => '', + 'object_upload.file' => '', + 'object_upload.file_param_type_type_storage.FileType' => '', + 'object_upload.file_param_mtime_type_int' => '', + 'object_upload.file_param_bytes_type_bytes' => '', + 'object_upload.fileCdnRedirect' => '', + 'object_upload.fileCdnRedirect_param_dc_id_type_int' => '', + 'object_upload.fileCdnRedirect_param_file_token_type_bytes' => '', + 'object_upload.fileCdnRedirect_param_encryption_key_type_bytes' => '', + 'object_upload.fileCdnRedirect_param_encryption_iv_type_bytes' => '', + 'object_upload.fileCdnRedirect_param_cdn_file_hashes_type_Vector t' => '', + 'object_dcOption' => '', + 'object_dcOption_param_ipv6_type_true' => '', + 'object_dcOption_param_media_only_type_true' => '', + 'object_dcOption_param_tcpo_only_type_true' => '', + 'object_dcOption_param_cdn_type_true' => '', + 'object_dcOption_param_static_type_true' => '', + 'object_dcOption_param_id_type_int' => '', + 'object_dcOption_param_ip_address_type_string' => '', + 'object_dcOption_param_port_type_int' => '', + 'object_config' => '', + 'object_config_param_phonecalls_enabled_type_true' => '', + 'object_config_param_default_p2p_contacts_type_true' => '', + 'object_config_param_date_type_int' => '', + 'object_config_param_expires_type_int' => '', + 'object_config_param_test_mode_type_Bool' => '', + 'object_config_param_this_dc_type_int' => '', + 'object_config_param_dc_options_type_Vector t' => '', + 'object_config_param_chat_size_max_type_int' => '', + 'object_config_param_megagroup_size_max_type_int' => '', + 'object_config_param_forwarded_count_max_type_int' => '', + 'object_config_param_online_update_period_ms_type_int' => '', + 'object_config_param_offline_blur_timeout_ms_type_int' => '', + 'object_config_param_offline_idle_timeout_ms_type_int' => '', + 'object_config_param_online_cloud_timeout_ms_type_int' => '', + 'object_config_param_notify_cloud_delay_ms_type_int' => '', + 'object_config_param_notify_default_delay_ms_type_int' => '', + 'object_config_param_chat_big_size_type_int' => '', + 'object_config_param_push_chat_period_ms_type_int' => '', + 'object_config_param_push_chat_limit_type_int' => '', + 'object_config_param_saved_gifs_limit_type_int' => '', + 'object_config_param_edit_time_limit_type_int' => '', + 'object_config_param_rating_e_decay_type_int' => '', + 'object_config_param_stickers_recent_limit_type_int' => '', + 'object_config_param_stickers_faved_limit_type_int' => '', + 'object_config_param_channels_read_media_period_type_int' => '', + 'object_config_param_tmp_sessions_type_int' => '', + 'object_config_param_pinned_dialogs_count_max_type_int' => '', + 'object_config_param_call_receive_timeout_ms_type_int' => '', + 'object_config_param_call_ring_timeout_ms_type_int' => '', + 'object_config_param_call_connect_timeout_ms_type_int' => '', + 'object_config_param_call_packet_timeout_ms_type_int' => '', + 'object_config_param_me_url_prefix_type_string' => '', + 'object_config_param_suggested_lang_code_type_string' => '', + 'object_config_param_lang_pack_version_type_int' => '', + 'object_config_param_disabled_features_type_Vector t' => '', + 'object_nearestDc' => '', + 'object_nearestDc_param_country_type_string' => '', + 'object_nearestDc_param_this_dc_type_int' => '', + 'object_nearestDc_param_nearest_dc_type_int' => '', + 'object_help.appUpdate' => '', + 'object_help.appUpdate_param_id_type_int' => '', + 'object_help.appUpdate_param_critical_type_Bool' => '', + 'object_help.appUpdate_param_url_type_string' => '', + 'object_help.appUpdate_param_text_type_string' => '', + 'object_help.noAppUpdate' => '', + 'object_help.inviteText' => '', + 'object_help.inviteText_param_message_type_string' => '', + 'object_encryptedChatEmpty' => '', + 'object_encryptedChatEmpty_param_id_type_int' => '', + 'object_encryptedChatWaiting' => '', + 'object_encryptedChatWaiting_param_id_type_int' => '', + 'object_encryptedChatWaiting_param_access_hash_type_long' => '', + 'object_encryptedChatWaiting_param_date_type_int' => '', + 'object_encryptedChatWaiting_param_admin_id_type_int' => '', + 'object_encryptedChatWaiting_param_participant_id_type_int' => '', + 'object_encryptedChatRequested' => '', + 'object_encryptedChatRequested_param_id_type_int' => '', + 'object_encryptedChatRequested_param_access_hash_type_long' => '', + 'object_encryptedChatRequested_param_date_type_int' => '', + 'object_encryptedChatRequested_param_admin_id_type_int' => '', + 'object_encryptedChatRequested_param_participant_id_type_int' => '', + 'object_encryptedChatRequested_param_g_a_type_bytes' => '', + 'object_encryptedChat' => '', + 'object_encryptedChat_param_id_type_int' => '', + 'object_encryptedChat_param_access_hash_type_long' => '', + 'object_encryptedChat_param_date_type_int' => '', + 'object_encryptedChat_param_admin_id_type_int' => '', + 'object_encryptedChat_param_participant_id_type_int' => '', + 'object_encryptedChat_param_g_a_or_b_type_bytes' => '', + 'object_encryptedChat_param_key_fingerprint_type_long' => '', + 'object_encryptedChatDiscarded' => '', + 'object_encryptedChatDiscarded_param_id_type_int' => '', + 'object_inputEncryptedChat' => '', + 'object_inputEncryptedChat_param_chat_id_type_int' => '', + 'object_inputEncryptedChat_param_access_hash_type_long' => '', + 'object_encryptedFileEmpty' => '', + 'object_encryptedFile' => '', + 'object_encryptedFile_param_id_type_long' => '', + 'object_encryptedFile_param_access_hash_type_long' => '', + 'object_encryptedFile_param_size_type_int' => '', + 'object_encryptedFile_param_dc_id_type_int' => '', + 'object_encryptedFile_param_key_fingerprint_type_int' => '', + 'object_inputEncryptedFileEmpty' => '', + 'object_inputEncryptedFileUploaded' => '', + 'object_inputEncryptedFileUploaded_param_id_type_long' => '', + 'object_inputEncryptedFileUploaded_param_parts_type_int' => '', + 'object_inputEncryptedFileUploaded_param_md5_checksum_type_string' => '', + 'object_inputEncryptedFileUploaded_param_key_fingerprint_type_int' => '', + 'object_inputEncryptedFile' => '', + 'object_inputEncryptedFile_param_id_type_long' => '', + 'object_inputEncryptedFile_param_access_hash_type_long' => '', + 'object_inputEncryptedFileBigUploaded' => '', + 'object_inputEncryptedFileBigUploaded_param_id_type_long' => '', + 'object_inputEncryptedFileBigUploaded_param_parts_type_int' => '', + 'object_inputEncryptedFileBigUploaded_param_key_fingerprint_type_int' => '', + 'object_encryptedMessage' => '', + 'object_encryptedMessage_param_chat_id_type_int' => '', + 'object_encryptedMessage_param_date_type_int' => '', + 'object_encryptedMessage_param_decrypted_message_type_DecryptedMessage' => '', + 'object_encryptedMessage_param_file_type_EncryptedFile' => '', + 'object_encryptedMessageService' => '', + 'object_encryptedMessageService_param_chat_id_type_int' => '', + 'object_encryptedMessageService_param_date_type_int' => '', + 'object_encryptedMessageService_param_decrypted_message_type_DecryptedMessage' => '', + 'object_messages.dhConfigNotModified' => '', + 'object_messages.dhConfigNotModified_param_random_type_bytes' => '', + 'object_messages.dhConfig' => '', + 'object_messages.dhConfig_param_g_type_int' => '', + 'object_messages.dhConfig_param_p_type_bytes' => '', + 'object_messages.dhConfig_param_version_type_int' => '', + 'object_messages.dhConfig_param_random_type_bytes' => '', + 'object_messages.sentEncryptedMessage' => '', + 'object_messages.sentEncryptedMessage_param_date_type_int' => '', + 'object_messages.sentEncryptedFile' => '', + 'object_messages.sentEncryptedFile_param_date_type_int' => '', + 'object_messages.sentEncryptedFile_param_file_type_EncryptedFile' => '', + 'object_inputDocumentEmpty' => '', + 'object_inputDocument' => '', + 'object_inputDocument_param_id_type_long' => '', + 'object_inputDocument_param_access_hash_type_long' => '', + 'object_documentEmpty' => '', + 'object_documentEmpty_param_id_type_long' => '', + 'object_document' => '', + 'object_document_param_id_type_long' => '', + 'object_document_param_access_hash_type_long' => '', + 'object_document_param_date_type_int' => '', + 'object_document_param_mime_type_type_string' => '', + 'object_document_param_size_type_int' => '', + 'object_document_param_thumb_type_PhotoSize' => '', + 'object_document_param_dc_id_type_int' => '', + 'object_document_param_version_type_int' => '', + 'object_document_param_attributes_type_Vector t' => '', + 'object_help.support' => '', + 'object_help.support_param_phone_number_type_string' => '', + 'object_help.support_param_user_type_User' => '', + 'object_notifyPeer' => '', + 'object_notifyPeer_param_peer_type_Peer' => '', + 'object_notifyUsers' => '', + 'object_notifyChats' => '', + 'object_notifyAll' => '', + 'object_sendMessageTypingAction' => '', + 'object_sendMessageCancelAction' => '', + 'object_sendMessageRecordVideoAction' => '', + 'object_sendMessageUploadVideoAction' => '', + 'object_sendMessageUploadVideoAction_param_progress_type_int' => '', + 'object_sendMessageRecordAudioAction' => '', + 'object_sendMessageUploadAudioAction' => '', + 'object_sendMessageUploadAudioAction_param_progress_type_int' => '', + 'object_sendMessageUploadPhotoAction' => '', + 'object_sendMessageUploadPhotoAction_param_progress_type_int' => '', + 'object_sendMessageUploadDocumentAction' => '', + 'object_sendMessageUploadDocumentAction_param_progress_type_int' => '', + 'object_sendMessageGeoLocationAction' => '', + 'object_sendMessageChooseContactAction' => '', + 'object_sendMessageGamePlayAction' => '', + 'object_sendMessageRecordRoundAction' => '', + 'object_sendMessageUploadRoundAction' => '', + 'object_sendMessageUploadRoundAction_param_progress_type_int' => '', + 'object_contacts.found' => '', + 'object_contacts.found_param_my_results_type_Vector t' => '', + 'object_contacts.found_param_results_type_Vector t' => '', + 'object_contacts.found_param_chats_type_Vector t' => '', + 'object_contacts.found_param_users_type_Vector t' => '', + 'object_inputPrivacyKeyStatusTimestamp' => '', + 'object_inputPrivacyKeyChatInvite' => '', + 'object_inputPrivacyKeyPhoneCall' => '', + 'object_privacyKeyStatusTimestamp' => '', + 'object_privacyKeyPhoneCall' => '', + 'object_inputPrivacyValueAllowContacts' => '', + 'object_inputPrivacyValueAllowAll' => '', + 'object_inputPrivacyValueAllowUsers' => '', + 'object_inputPrivacyValueAllowUsers_param_users_type_Vector t' => '', + 'object_inputPrivacyValueDisallowContacts' => '', + 'object_inputPrivacyValueDisallowAll' => '', + 'object_inputPrivacyValueDisallowUsers' => '', + 'object_inputPrivacyValueDisallowUsers_param_users_type_Vector t' => '', + 'object_privacyValueAllowContacts' => '', + 'object_privacyValueAllowAll' => '', + 'object_privacyValueAllowUsers' => '', + 'object_privacyValueAllowUsers_param_users_type_Vector t' => '', + 'object_privacyValueDisallowContacts' => '', + 'object_privacyValueDisallowAll' => '', + 'object_privacyValueDisallowUsers' => '', + 'object_privacyValueDisallowUsers_param_users_type_Vector t' => '', + 'object_account.privacyRules' => '', + 'object_account.privacyRules_param_rules_type_Vector t' => '', + 'object_account.privacyRules_param_users_type_Vector t' => '', + 'object_accountDaysTTL' => '', + 'object_accountDaysTTL_param_days_type_int' => '', + 'object_documentAttributeImageSize' => '', + 'object_documentAttributeImageSize_param_w_type_int' => '', + 'object_documentAttributeImageSize_param_h_type_int' => '', + 'object_documentAttributeAnimated' => '', + 'object_documentAttributeSticker' => '', + 'object_documentAttributeSticker_param_mask_type_true' => '', + 'object_documentAttributeSticker_param_alt_type_string' => '', + 'object_documentAttributeSticker_param_stickerset_type_InputStickerSet' => '', + 'object_documentAttributeSticker_param_mask_coords_type_MaskCoords' => '', + 'object_documentAttributeVideo' => '', + 'object_documentAttributeVideo_param_round_message_type_true' => '', + 'object_documentAttributeVideo_param_supports_streaming_type_true' => '', + 'object_documentAttributeVideo_param_duration_type_int' => '', + 'object_documentAttributeVideo_param_w_type_int' => '', + 'object_documentAttributeVideo_param_h_type_int' => '', + 'object_documentAttributeAudio' => '', + 'object_documentAttributeAudio_param_voice_type_true' => '', + 'object_documentAttributeAudio_param_duration_type_int' => '', + 'object_documentAttributeAudio_param_title_type_string' => '', + 'object_documentAttributeAudio_param_performer_type_string' => '', + 'object_documentAttributeAudio_param_waveform_type_bytes' => '', + 'object_documentAttributeFilename' => '', + 'object_documentAttributeFilename_param_file_name_type_string' => '', + 'object_documentAttributeHasStickers' => '', + 'object_messages.stickersNotModified' => '', + 'object_messages.stickers' => '', + 'object_messages.stickers_param_hash_type_string' => '', + 'object_messages.stickers_param_stickers_type_Vector t' => '', + 'object_stickerPack' => '', + 'object_stickerPack_param_emoticon_type_string' => '', + 'object_stickerPack_param_documents_type_Vector t' => '', + 'object_messages.allStickersNotModified' => '', + 'object_messages.allStickers' => '', + 'object_messages.allStickers_param_hash_type_int' => '', + 'object_messages.allStickers_param_sets_type_Vector t' => '', + 'object_disabledFeature' => '', + 'object_disabledFeature_param_feature_type_string' => '', + 'object_disabledFeature_param_description_type_string' => '', + 'object_messages.affectedMessages' => '', + 'object_messages.affectedMessages_param_pts_type_int' => '', + 'object_messages.affectedMessages_param_pts_count_type_int' => '', + 'object_contactLinkUnknown' => '', + 'object_contactLinkNone' => '', + 'object_contactLinkHasPhone' => '', + 'object_contactLinkContact' => '', + 'object_webPageEmpty' => '', + 'object_webPageEmpty_param_id_type_long' => '', + 'object_webPagePending' => '', + 'object_webPagePending_param_id_type_long' => '', + 'object_webPagePending_param_date_type_int' => '', + 'object_webPage' => '', + 'object_webPage_param_id_type_long' => '', + 'object_webPage_param_url_type_string' => '', + 'object_webPage_param_display_url_type_string' => '', + 'object_webPage_param_hash_type_int' => '', + 'object_webPage_param_type_type_string' => '', + 'object_webPage_param_site_name_type_string' => '', + 'object_webPage_param_title_type_string' => '', + 'object_webPage_param_description_type_string' => '', + 'object_webPage_param_photo_type_Photo' => '', + 'object_webPage_param_embed_url_type_string' => '', + 'object_webPage_param_embed_type_type_string' => '', + 'object_webPage_param_embed_width_type_int' => '', + 'object_webPage_param_embed_height_type_int' => '', + 'object_webPage_param_duration_type_int' => '', + 'object_webPage_param_author_type_string' => '', + 'object_webPage_param_document_type_Document' => '', + 'object_webPage_param_cached_page_type_Page' => '', + 'object_webPageNotModified' => '', + 'object_authorization' => '', + 'object_authorization_param_hash_type_long' => '', + 'object_authorization_param_device_model_type_string' => '', + 'object_authorization_param_platform_type_string' => '', + 'object_authorization_param_system_version_type_string' => '', + 'object_authorization_param_api_id_type_int' => '', + 'object_authorization_param_app_name_type_string' => '', + 'object_authorization_param_app_version_type_string' => '', + 'object_authorization_param_date_created_type_int' => '', + 'object_authorization_param_date_active_type_int' => '', + 'object_authorization_param_ip_type_string' => '', + 'object_authorization_param_country_type_string' => '', + 'object_authorization_param_region_type_string' => '', + 'object_account.authorizations' => '', + 'object_account.authorizations_param_authorizations_type_Vector t' => '', + 'object_account.noPassword' => '', + 'object_account.noPassword_param_new_salt_type_bytes' => '', + 'object_account.noPassword_param_email_unconfirmed_pattern_type_string' => '', + 'object_account.password' => '', + 'object_account.password_param_current_salt_type_bytes' => '', + 'object_account.password_param_new_salt_type_bytes' => '', + 'object_account.password_param_hint_type_string' => '', + 'object_account.password_param_has_recovery_type_Bool' => '', + 'object_account.password_param_email_unconfirmed_pattern_type_string' => '', + 'object_account.passwordSettings' => '', + 'object_account.passwordSettings_param_email_type_string' => '', + 'object_account.passwordInputSettings' => '', + 'object_account.passwordInputSettings_param_new_salt_type_bytes' => '', + 'object_account.passwordInputSettings_param_new_password_hash_type_bytes' => '', + 'object_account.passwordInputSettings_param_hint_type_string' => '', + 'object_account.passwordInputSettings_param_email_type_string' => '', + 'object_auth.passwordRecovery' => '', + 'object_auth.passwordRecovery_param_email_pattern_type_string' => '', + 'object_receivedNotifyMessage' => '', + 'object_receivedNotifyMessage_param_id_type_int' => '', + 'object_chatInviteEmpty' => '', + 'object_chatInviteExported' => '', + 'object_chatInviteExported_param_link_type_string' => '', + 'object_chatInviteAlready' => '', + 'object_chatInviteAlready_param_chat_type_Chat' => '', + 'object_chatInvite' => '', + 'object_chatInvite_param_channel_type_true' => '', + 'object_chatInvite_param_broadcast_type_true' => '', + 'object_chatInvite_param_public_type_true' => '', + 'object_chatInvite_param_megagroup_type_true' => '', + 'object_chatInvite_param_title_type_string' => '', + 'object_chatInvite_param_photo_type_ChatPhoto' => '', + 'object_chatInvite_param_participants_count_type_int' => '', + 'object_chatInvite_param_participants_type_Vector t' => '', + 'object_inputStickerSetEmpty' => '', + 'object_inputStickerSetID' => '', + 'object_inputStickerSetID_param_id_type_long' => '', + 'object_inputStickerSetID_param_access_hash_type_long' => '', + 'object_inputStickerSetShortName' => '', + 'object_inputStickerSetShortName_param_short_name_type_string' => '', + 'object_stickerSet' => '', + 'object_stickerSet_param_installed_type_true' => '', + 'object_stickerSet_param_archived_type_true' => '', + 'object_stickerSet_param_official_type_true' => '', + 'object_stickerSet_param_masks_type_true' => '', + 'object_stickerSet_param_id_type_long' => '', + 'object_stickerSet_param_access_hash_type_long' => '', + 'object_stickerSet_param_title_type_string' => '', + 'object_stickerSet_param_short_name_type_string' => '', + 'object_stickerSet_param_count_type_int' => '', + 'object_stickerSet_param_hash_type_int' => '', + 'object_messages.stickerSet' => '', + 'object_messages.stickerSet_param_set_type_StickerSet' => '', + 'object_messages.stickerSet_param_packs_type_Vector t' => '', + 'object_messages.stickerSet_param_documents_type_Vector t' => '', + 'object_botInfo' => '', + 'object_botInfo_param_user_id_type_int' => '', + 'object_botInfo_param_description_type_string' => '', + 'object_botInfo_param_commands_type_Vector t' => '', + 'object_keyboardButton' => '', + 'object_keyboardButton_param_text_type_string' => '', + 'object_keyboardButtonUrl' => '', + 'object_keyboardButtonUrl_param_text_type_string' => '', + 'object_keyboardButtonUrl_param_url_type_string' => '', + 'object_keyboardButtonCallback' => '', + 'object_keyboardButtonCallback_param_text_type_string' => '', + 'object_keyboardButtonCallback_param_data_type_bytes' => '', + 'object_keyboardButtonRequestPhone' => '', + 'object_keyboardButtonRequestPhone_param_text_type_string' => '', + 'object_keyboardButtonRequestGeoLocation' => '', + 'object_keyboardButtonRequestGeoLocation_param_text_type_string' => '', + 'object_keyboardButtonSwitchInline' => '', + 'object_keyboardButtonSwitchInline_param_same_peer_type_true' => '', + 'object_keyboardButtonSwitchInline_param_text_type_string' => '', + 'object_keyboardButtonSwitchInline_param_query_type_string' => '', + 'object_keyboardButtonGame' => '', + 'object_keyboardButtonGame_param_text_type_string' => '', + 'object_keyboardButtonBuy' => '', + 'object_keyboardButtonBuy_param_text_type_string' => '', + 'object_keyboardButtonRow' => '', + 'object_keyboardButtonRow_param_buttons_type_Vector t' => '', + 'object_replyKeyboardHide' => '', + 'object_replyKeyboardHide_param_selective_type_true' => '', + 'object_replyKeyboardForceReply' => '', + 'object_replyKeyboardForceReply_param_single_use_type_true' => '', + 'object_replyKeyboardForceReply_param_selective_type_true' => '', + 'object_replyKeyboardMarkup' => '', + 'object_replyKeyboardMarkup_param_resize_type_true' => '', + 'object_replyKeyboardMarkup_param_single_use_type_true' => '', + 'object_replyKeyboardMarkup_param_selective_type_true' => '', + 'object_replyKeyboardMarkup_param_rows_type_Vector t' => '', + 'object_replyInlineMarkup' => '', + 'object_replyInlineMarkup_param_rows_type_Vector t' => '', + 'object_messageEntityUnknown' => '', + 'object_messageEntityUnknown_param_offset_type_int' => '', + 'object_messageEntityUnknown_param_length_type_int' => '', + 'object_messageEntityMention' => '', + 'object_messageEntityMention_param_offset_type_int' => '', + 'object_messageEntityMention_param_length_type_int' => '', + 'object_messageEntityHashtag' => '', + 'object_messageEntityHashtag_param_offset_type_int' => '', + 'object_messageEntityHashtag_param_length_type_int' => '', + 'object_messageEntityBotCommand' => '', + 'object_messageEntityBotCommand_param_offset_type_int' => '', + 'object_messageEntityBotCommand_param_length_type_int' => '', + 'object_messageEntityUrl' => '', + 'object_messageEntityUrl_param_offset_type_int' => '', + 'object_messageEntityUrl_param_length_type_int' => '', + 'object_messageEntityEmail' => '', + 'object_messageEntityEmail_param_offset_type_int' => '', + 'object_messageEntityEmail_param_length_type_int' => '', + 'object_messageEntityBold' => '', + 'object_messageEntityBold_param_offset_type_int' => '', + 'object_messageEntityBold_param_length_type_int' => '', + 'object_messageEntityItalic' => '', + 'object_messageEntityItalic_param_offset_type_int' => '', + 'object_messageEntityItalic_param_length_type_int' => '', + 'object_messageEntityCode' => '', + 'object_messageEntityCode_param_offset_type_int' => '', + 'object_messageEntityCode_param_length_type_int' => '', + 'object_messageEntityPre' => '', + 'object_messageEntityPre_param_offset_type_int' => '', + 'object_messageEntityPre_param_length_type_int' => '', + 'object_messageEntityPre_param_language_type_string' => '', + 'object_messageEntityTextUrl' => '', + 'object_messageEntityTextUrl_param_offset_type_int' => '', + 'object_messageEntityTextUrl_param_length_type_int' => '', + 'object_messageEntityTextUrl_param_url_type_string' => '', + 'object_messageEntityMentionName' => '', + 'object_messageEntityMentionName_param_offset_type_int' => '', + 'object_messageEntityMentionName_param_length_type_int' => '', + 'object_messageEntityMentionName_param_user_id_type_int' => '', + 'object_inputMessageEntityMentionName' => '', + 'object_inputMessageEntityMentionName_param_offset_type_int' => '', + 'object_inputMessageEntityMentionName_param_length_type_int' => '', + 'object_inputMessageEntityMentionName_param_user_id_type_InputUser' => '', + 'object_inputChannelEmpty' => '', + 'object_inputChannel' => '', + 'object_inputChannel_param_channel_id_type_int' => '', + 'object_inputChannel_param_access_hash_type_long' => '', + 'object_contacts.resolvedPeer' => '', + 'object_contacts.resolvedPeer_param_peer_type_Peer' => '', + 'object_contacts.resolvedPeer_param_chats_type_Vector t' => '', + 'object_contacts.resolvedPeer_param_users_type_Vector t' => '', + 'object_messageRange' => '', + 'object_messageRange_param_min_id_type_int' => '', + 'object_messageRange_param_max_id_type_int' => '', + 'object_updates.channelDifferenceEmpty' => '', + 'object_updates.channelDifferenceEmpty_param_final_type_true' => '', + 'object_updates.channelDifferenceEmpty_param_pts_type_int' => '', + 'object_updates.channelDifferenceEmpty_param_timeout_type_int' => '', + 'object_updates.channelDifferenceTooLong' => '', + 'object_updates.channelDifferenceTooLong_param_final_type_true' => '', + 'object_updates.channelDifferenceTooLong_param_pts_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_timeout_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_top_message_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_read_inbox_max_id_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_read_outbox_max_id_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_unread_count_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_unread_mentions_count_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_messages_type_Vector t' => '', + 'object_updates.channelDifferenceTooLong_param_chats_type_Vector t' => '', + 'object_updates.channelDifferenceTooLong_param_users_type_Vector t' => '', + 'object_updates.channelDifference' => '', + 'object_updates.channelDifference_param_final_type_true' => '', + 'object_updates.channelDifference_param_pts_type_int' => '', + 'object_updates.channelDifference_param_timeout_type_int' => '', + 'object_updates.channelDifference_param_new_messages_type_Vector t' => '', + 'object_updates.channelDifference_param_other_updates_type_Vector t' => '', + 'object_updates.channelDifference_param_chats_type_Vector t' => '', + 'object_updates.channelDifference_param_users_type_Vector t' => '', + 'object_channelMessagesFilterEmpty' => '', + 'object_channelMessagesFilter' => '', + 'object_channelMessagesFilter_param_exclude_new_messages_type_true' => '', + 'object_channelMessagesFilter_param_ranges_type_Vector t' => '', + 'object_channelParticipant' => '', + 'object_channelParticipant_param_user_id_type_int' => '', + 'object_channelParticipant_param_date_type_int' => '', + 'object_channelParticipantSelf' => '', + 'object_channelParticipantSelf_param_user_id_type_int' => '', + 'object_channelParticipantSelf_param_inviter_id_type_int' => '', + 'object_channelParticipantSelf_param_date_type_int' => '', + 'object_channelParticipantCreator' => '', + 'object_channelParticipantCreator_param_user_id_type_int' => '', + 'object_channelParticipantAdmin' => '', + 'object_channelParticipantAdmin_param_can_edit_type_true' => '', + 'object_channelParticipantAdmin_param_user_id_type_int' => '', + 'object_channelParticipantAdmin_param_inviter_id_type_int' => '', + 'object_channelParticipantAdmin_param_promoted_by_type_int' => '', + 'object_channelParticipantAdmin_param_date_type_int' => '', + 'object_channelParticipantAdmin_param_admin_rights_type_ChannelAdminRights' => '', + 'object_channelParticipantBanned' => '', + 'object_channelParticipantBanned_param_left_type_true' => '', + 'object_channelParticipantBanned_param_user_id_type_int' => '', + 'object_channelParticipantBanned_param_kicked_by_type_int' => '', + 'object_channelParticipantBanned_param_date_type_int' => '', + 'object_channelParticipantBanned_param_banned_rights_type_ChannelBannedRights' => '', + 'object_channelParticipantsRecent' => '', + 'object_channelParticipantsAdmins' => '', + 'object_channelParticipantsKicked' => '', + 'object_channelParticipantsKicked_param_q_type_string' => '', + 'object_channelParticipantsBots' => '', + 'object_channelParticipantsBanned' => '', + 'object_channelParticipantsBanned_param_q_type_string' => '', + 'object_channelParticipantsSearch' => '', + 'object_channelParticipantsSearch_param_q_type_string' => '', + 'object_channels.channelParticipants' => '', + 'object_channels.channelParticipants_param_count_type_int' => '', + 'object_channels.channelParticipants_param_participants_type_Vector t' => '', + 'object_channels.channelParticipants_param_users_type_Vector t' => '', + 'object_channels.channelParticipantsNotModified' => '', + 'object_channels.channelParticipant' => '', + 'object_channels.channelParticipant_param_participant_type_ChannelParticipant' => '', + 'object_channels.channelParticipant_param_users_type_Vector t' => '', + 'object_help.termsOfService' => '', + 'object_help.termsOfService_param_text_type_string' => '', + 'object_foundGif' => '', + 'object_foundGif_param_url_type_string' => '', + 'object_foundGif_param_thumb_url_type_string' => '', + 'object_foundGif_param_content_url_type_string' => '', + 'object_foundGif_param_content_type_type_string' => '', + 'object_foundGif_param_w_type_int' => '', + 'object_foundGif_param_h_type_int' => '', + 'object_foundGifCached' => '', + 'object_foundGifCached_param_url_type_string' => '', + 'object_foundGifCached_param_photo_type_Photo' => '', + 'object_foundGifCached_param_document_type_Document' => '', + 'object_messages.foundGifs' => '', + 'object_messages.foundGifs_param_next_offset_type_int' => '', + 'object_messages.foundGifs_param_results_type_Vector t' => '', + 'object_messages.savedGifsNotModified' => '', + 'object_messages.savedGifs' => '', + 'object_messages.savedGifs_param_hash_type_int' => '', + 'object_messages.savedGifs_param_gifs_type_Vector t' => '', + 'object_inputBotInlineMessageMediaAuto' => '', + 'object_inputBotInlineMessageMediaAuto_param_message_type_string' => '', + 'object_inputBotInlineMessageMediaAuto_param_entities_type_Vector t' => '', + 'object_inputBotInlineMessageMediaAuto_param_reply_markup_type_ReplyMarkup' => '', + 'object_inputBotInlineMessageText' => '', + 'object_inputBotInlineMessageText_param_no_webpage_type_true' => '', + 'object_inputBotInlineMessageText_param_message_type_string' => '', + 'object_inputBotInlineMessageText_param_entities_type_Vector t' => '', + 'object_inputBotInlineMessageText_param_reply_markup_type_ReplyMarkup' => '', + 'object_inputBotInlineMessageMediaGeo' => '', + 'object_inputBotInlineMessageMediaGeo_param_geo_point_type_InputGeoPoint' => '', + 'object_inputBotInlineMessageMediaGeo_param_period_type_int' => '', + 'object_inputBotInlineMessageMediaGeo_param_reply_markup_type_ReplyMarkup' => '', + 'object_inputBotInlineMessageMediaVenue' => '', + 'object_inputBotInlineMessageMediaVenue_param_geo_point_type_InputGeoPoint' => '', + 'object_inputBotInlineMessageMediaVenue_param_title_type_string' => '', + 'object_inputBotInlineMessageMediaVenue_param_address_type_string' => '', + 'object_inputBotInlineMessageMediaVenue_param_provider_type_string' => '', + 'object_inputBotInlineMessageMediaVenue_param_venue_id_type_string' => '', + 'object_inputBotInlineMessageMediaVenue_param_reply_markup_type_ReplyMarkup' => '', + 'object_inputBotInlineMessageMediaContact' => '', + 'object_inputBotInlineMessageMediaContact_param_phone_number_type_string' => '', + 'object_inputBotInlineMessageMediaContact_param_first_name_type_string' => '', + 'object_inputBotInlineMessageMediaContact_param_last_name_type_string' => '', + 'object_inputBotInlineMessageMediaContact_param_reply_markup_type_ReplyMarkup' => '', + 'object_inputBotInlineMessageGame' => '', + 'object_inputBotInlineMessageGame_param_reply_markup_type_ReplyMarkup' => '', + 'object_inputBotInlineResult' => '', + 'object_inputBotInlineResult_param_id_type_string' => '', + 'object_inputBotInlineResult_param_type_type_string' => '', + 'object_inputBotInlineResult_param_title_type_string' => '', + 'object_inputBotInlineResult_param_description_type_string' => '', + 'object_inputBotInlineResult_param_url_type_string' => '', + 'object_inputBotInlineResult_param_thumb_url_type_string' => '', + 'object_inputBotInlineResult_param_content_url_type_string' => '', + 'object_inputBotInlineResult_param_content_type_type_string' => '', + 'object_inputBotInlineResult_param_w_type_int' => '', + 'object_inputBotInlineResult_param_h_type_int' => '', + 'object_inputBotInlineResult_param_duration_type_int' => '', + 'object_inputBotInlineResult_param_send_message_type_InputBotInlineMessage' => '', + 'object_inputBotInlineResultPhoto' => '', + 'object_inputBotInlineResultPhoto_param_id_type_string' => '', + 'object_inputBotInlineResultPhoto_param_type_type_string' => '', + 'object_inputBotInlineResultPhoto_param_photo_type_InputPhoto' => '', + 'object_inputBotInlineResultPhoto_param_send_message_type_InputBotInlineMessage' => '', + 'object_inputBotInlineResultDocument' => '', + 'object_inputBotInlineResultDocument_param_id_type_string' => '', + 'object_inputBotInlineResultDocument_param_type_type_string' => '', + 'object_inputBotInlineResultDocument_param_title_type_string' => '', + 'object_inputBotInlineResultDocument_param_description_type_string' => '', + 'object_inputBotInlineResultDocument_param_document_type_InputDocument' => '', + 'object_inputBotInlineResultDocument_param_send_message_type_InputBotInlineMessage' => '', + 'object_inputBotInlineResultGame' => '', + 'object_inputBotInlineResultGame_param_id_type_string' => '', + 'object_inputBotInlineResultGame_param_short_name_type_string' => '', + 'object_inputBotInlineResultGame_param_send_message_type_InputBotInlineMessage' => '', + 'object_botInlineMessageMediaAuto' => '', + 'object_botInlineMessageMediaAuto_param_message_type_string' => '', + 'object_botInlineMessageMediaAuto_param_entities_type_Vector t' => '', + 'object_botInlineMessageMediaAuto_param_reply_markup_type_ReplyMarkup' => '', + 'object_botInlineMessageText' => '', + 'object_botInlineMessageText_param_no_webpage_type_true' => '', + 'object_botInlineMessageText_param_message_type_string' => '', + 'object_botInlineMessageText_param_entities_type_Vector t' => '', + 'object_botInlineMessageText_param_reply_markup_type_ReplyMarkup' => '', + 'object_botInlineMessageMediaGeo' => '', + 'object_botInlineMessageMediaGeo_param_geo_type_GeoPoint' => '', + 'object_botInlineMessageMediaGeo_param_period_type_int' => '', + 'object_botInlineMessageMediaGeo_param_reply_markup_type_ReplyMarkup' => '', + 'object_botInlineMessageMediaVenue' => '', + 'object_botInlineMessageMediaVenue_param_geo_type_GeoPoint' => '', + 'object_botInlineMessageMediaVenue_param_title_type_string' => '', + 'object_botInlineMessageMediaVenue_param_address_type_string' => '', + 'object_botInlineMessageMediaVenue_param_provider_type_string' => '', + 'object_botInlineMessageMediaVenue_param_venue_id_type_string' => '', + 'object_botInlineMessageMediaVenue_param_reply_markup_type_ReplyMarkup' => '', + 'object_botInlineMessageMediaContact' => '', + 'object_botInlineMessageMediaContact_param_phone_number_type_string' => '', + 'object_botInlineMessageMediaContact_param_first_name_type_string' => '', + 'object_botInlineMessageMediaContact_param_last_name_type_string' => '', + 'object_botInlineMessageMediaContact_param_reply_markup_type_ReplyMarkup' => '', + 'object_botInlineResult' => '', + 'object_botInlineResult_param_id_type_string' => '', + 'object_botInlineResult_param_type_type_string' => '', + 'object_botInlineResult_param_title_type_string' => '', + 'object_botInlineResult_param_description_type_string' => '', + 'object_botInlineResult_param_url_type_string' => '', + 'object_botInlineResult_param_thumb_url_type_string' => '', + 'object_botInlineResult_param_content_url_type_string' => '', + 'object_botInlineResult_param_content_type_type_string' => '', + 'object_botInlineResult_param_w_type_int' => '', + 'object_botInlineResult_param_h_type_int' => '', + 'object_botInlineResult_param_duration_type_int' => '', + 'object_botInlineResult_param_send_message_type_BotInlineMessage' => '', + 'object_botInlineMediaResult' => '', + 'object_botInlineMediaResult_param_id_type_string' => '', + 'object_botInlineMediaResult_param_type_type_string' => '', + 'object_botInlineMediaResult_param_photo_type_Photo' => '', + 'object_botInlineMediaResult_param_document_type_Document' => '', + 'object_botInlineMediaResult_param_title_type_string' => '', + 'object_botInlineMediaResult_param_description_type_string' => '', + 'object_botInlineMediaResult_param_send_message_type_BotInlineMessage' => '', + 'object_messages.botResults' => '', + 'object_messages.botResults_param_gallery_type_true' => '', + 'object_messages.botResults_param_query_id_type_long' => '', + 'object_messages.botResults_param_next_offset_type_string' => '', + 'object_messages.botResults_param_switch_pm_type_InlineBotSwitchPM' => '', + 'object_messages.botResults_param_results_type_Vector t' => '', + 'object_messages.botResults_param_cache_time_type_int' => '', + 'object_messages.botResults_param_users_type_Vector t' => '', + 'object_exportedMessageLink' => '', + 'object_exportedMessageLink_param_link_type_string' => '', + 'object_exportedMessageLink_param_html_type_string' => '', + 'object_messageFwdHeader' => '', + 'object_messageFwdHeader_param_from_id_type_int' => '', + 'object_messageFwdHeader_param_date_type_int' => '', + 'object_messageFwdHeader_param_channel_id_type_int' => '', + 'object_messageFwdHeader_param_channel_post_type_int' => '', + 'object_messageFwdHeader_param_post_author_type_string' => '', + 'object_messageFwdHeader_param_saved_from_peer_type_Peer' => '', + 'object_messageFwdHeader_param_saved_from_msg_id_type_int' => '', + 'object_auth.codeTypeSms' => '', + 'object_auth.codeTypeCall' => '', + 'object_auth.codeTypeFlashCall' => '', + 'object_auth.sentCodeTypeApp' => '', + 'object_auth.sentCodeTypeApp_param_length_type_int' => '', + 'object_auth.sentCodeTypeSms' => '', + 'object_auth.sentCodeTypeSms_param_length_type_int' => '', + 'object_auth.sentCodeTypeCall' => '', + 'object_auth.sentCodeTypeCall_param_length_type_int' => '', + 'object_auth.sentCodeTypeFlashCall' => '', + 'object_auth.sentCodeTypeFlashCall_param_pattern_type_string' => '', + 'object_messages.botCallbackAnswer' => '', + 'object_messages.botCallbackAnswer_param_alert_type_true' => '', + 'object_messages.botCallbackAnswer_param_has_url_type_true' => '', + 'object_messages.botCallbackAnswer_param_native_ui_type_true' => '', + 'object_messages.botCallbackAnswer_param_message_type_string' => '', + 'object_messages.botCallbackAnswer_param_url_type_string' => '', + 'object_messages.botCallbackAnswer_param_cache_time_type_int' => '', + 'object_messages.messageEditData' => '', + 'object_messages.messageEditData_param_caption_type_true' => '', + 'object_inputBotInlineMessageID' => '', + 'object_inputBotInlineMessageID_param_dc_id_type_int' => '', + 'object_inputBotInlineMessageID_param_id_type_long' => '', + 'object_inputBotInlineMessageID_param_access_hash_type_long' => '', + 'object_inlineBotSwitchPM' => '', + 'object_inlineBotSwitchPM_param_text_type_string' => '', + 'object_inlineBotSwitchPM_param_start_param_type_string' => '', + 'object_messages.peerDialogs' => '', + 'object_messages.peerDialogs_param_dialogs_type_Vector t' => '', + 'object_messages.peerDialogs_param_messages_type_Vector t' => '', + 'object_messages.peerDialogs_param_chats_type_Vector t' => '', + 'object_messages.peerDialogs_param_users_type_Vector t' => '', + 'object_messages.peerDialogs_param_state_type_updates.State' => '', + 'object_topPeer' => '', + 'object_topPeer_param_peer_type_Peer' => '', + 'object_topPeer_param_rating_type_double' => '', + 'object_topPeerCategoryBotsPM' => '', + 'object_topPeerCategoryBotsInline' => '', + 'object_topPeerCategoryCorrespondents' => '', + 'object_topPeerCategoryGroups' => '', + 'object_topPeerCategoryChannels' => '', + 'object_topPeerCategoryPhoneCalls' => '', + 'object_topPeerCategoryPeers' => '', + 'object_topPeerCategoryPeers_param_category_type_TopPeerCategory' => '', + 'object_topPeerCategoryPeers_param_count_type_int' => '', + 'object_topPeerCategoryPeers_param_peers_type_Vector t' => '', + 'object_contacts.topPeersNotModified' => '', + 'object_contacts.topPeers' => '', + 'object_contacts.topPeers_param_categories_type_Vector t' => '', + 'object_contacts.topPeers_param_chats_type_Vector t' => '', + 'object_contacts.topPeers_param_users_type_Vector t' => '', + 'object_draftMessageEmpty' => '', + 'object_draftMessage' => '', + 'object_draftMessage_param_no_webpage_type_true' => '', + 'object_draftMessage_param_reply_to_msg_id_type_int' => '', + 'object_draftMessage_param_message_type_string' => '', + 'object_draftMessage_param_entities_type_Vector t' => '', + 'object_draftMessage_param_date_type_int' => '', + 'object_messages.featuredStickersNotModified' => '', + 'object_messages.featuredStickers' => '', + 'object_messages.featuredStickers_param_hash_type_int' => '', + 'object_messages.featuredStickers_param_sets_type_Vector t' => '', + 'object_messages.featuredStickers_param_unread_type_Vector t' => '', + 'object_messages.recentStickersNotModified' => '', + 'object_messages.recentStickers' => '', + 'object_messages.recentStickers_param_hash_type_int' => '', + 'object_messages.recentStickers_param_stickers_type_Vector t' => '', + 'object_messages.archivedStickers' => '', + 'object_messages.archivedStickers_param_count_type_int' => '', + 'object_messages.archivedStickers_param_sets_type_Vector t' => '', + 'object_messages.stickerSetInstallResultSuccess' => '', + 'object_messages.stickerSetInstallResultArchive' => '', + 'object_messages.stickerSetInstallResultArchive_param_sets_type_Vector t' => '', + 'object_stickerSetCovered' => '', + 'object_stickerSetCovered_param_set_type_StickerSet' => '', + 'object_stickerSetCovered_param_cover_type_Document' => '', + 'object_stickerSetMultiCovered' => '', + 'object_stickerSetMultiCovered_param_set_type_StickerSet' => '', + 'object_stickerSetMultiCovered_param_covers_type_Vector t' => '', + 'object_maskCoords' => '', + 'object_maskCoords_param_n_type_int' => '', + 'object_maskCoords_param_x_type_double' => '', + 'object_maskCoords_param_y_type_double' => '', + 'object_maskCoords_param_zoom_type_double' => '', + 'object_inputStickeredMediaPhoto' => '', + 'object_inputStickeredMediaPhoto_param_id_type_InputPhoto' => '', + 'object_inputStickeredMediaDocument' => '', + 'object_inputStickeredMediaDocument_param_id_type_InputDocument' => '', + 'object_game' => '', + 'object_game_param_id_type_long' => '', + 'object_game_param_access_hash_type_long' => '', + 'object_game_param_short_name_type_string' => '', + 'object_game_param_title_type_string' => '', + 'object_game_param_description_type_string' => '', + 'object_game_param_photo_type_Photo' => '', + 'object_game_param_document_type_Document' => '', + 'object_inputGameID' => '', + 'object_inputGameID_param_id_type_long' => '', + 'object_inputGameID_param_access_hash_type_long' => '', + 'object_inputGameShortName' => '', + 'object_inputGameShortName_param_bot_id_type_InputUser' => '', + 'object_inputGameShortName_param_short_name_type_string' => '', + 'object_highScore' => '', + 'object_highScore_param_pos_type_int' => '', + 'object_highScore_param_user_id_type_int' => '', + 'object_highScore_param_score_type_int' => '', + 'object_messages.highScores' => '', + 'object_messages.highScores_param_scores_type_Vector t' => '', + 'object_messages.highScores_param_users_type_Vector t' => '', + 'object_textEmpty' => '', + 'object_textPlain' => '', + 'object_textPlain_param_text_type_string' => '', + 'object_textBold' => '', + 'object_textBold_param_text_type_RichText' => '', + 'object_textItalic' => '', + 'object_textItalic_param_text_type_RichText' => '', + 'object_textUnderline' => '', + 'object_textUnderline_param_text_type_RichText' => '', + 'object_textStrike' => '', + 'object_textStrike_param_text_type_RichText' => '', + 'object_textFixed' => '', + 'object_textFixed_param_text_type_RichText' => '', + 'object_textUrl' => '', + 'object_textUrl_param_text_type_RichText' => '', + 'object_textUrl_param_url_type_string' => '', + 'object_textUrl_param_webpage_id_type_long' => '', + 'object_textEmail' => '', + 'object_textEmail_param_text_type_RichText' => '', + 'object_textEmail_param_email_type_string' => '', + 'object_textConcat' => '', + 'object_textConcat_param_texts_type_Vector t' => '', + 'object_pageBlockUnsupported' => '', + 'object_pageBlockTitle' => '', + 'object_pageBlockTitle_param_text_type_RichText' => '', + 'object_pageBlockSubtitle' => '', + 'object_pageBlockSubtitle_param_text_type_RichText' => '', + 'object_pageBlockAuthorDate' => '', + 'object_pageBlockAuthorDate_param_author_type_RichText' => '', + 'object_pageBlockAuthorDate_param_published_date_type_int' => '', + 'object_pageBlockHeader' => '', + 'object_pageBlockHeader_param_text_type_RichText' => '', + 'object_pageBlockSubheader' => '', + 'object_pageBlockSubheader_param_text_type_RichText' => '', + 'object_pageBlockFooter' => '', + 'object_pageBlockFooter_param_text_type_RichText' => '', + 'object_pageBlockList' => '', + 'object_pageBlockList_param_ordered_type_Bool' => '', + 'object_pageBlockList_param_items_type_Vector t' => '', + 'object_pageBlockBlockquote' => '', + 'object_pageBlockBlockquote_param_text_type_RichText' => '', + 'object_pageBlockBlockquote_param_caption_type_RichText' => '', + 'object_pageBlockPullquote' => '', + 'object_pageBlockPullquote_param_text_type_RichText' => '', + 'object_pageBlockPullquote_param_caption_type_RichText' => '', + 'object_pageBlockPhoto' => '', + 'object_pageBlockPhoto_param_photo_id_type_long' => '', + 'object_pageBlockPhoto_param_caption_type_RichText' => '', + 'object_pageBlockVideo' => '', + 'object_pageBlockVideo_param_autoplay_type_true' => '', + 'object_pageBlockVideo_param_loop_type_true' => '', + 'object_pageBlockVideo_param_video_id_type_long' => '', + 'object_pageBlockVideo_param_caption_type_RichText' => '', + 'object_pageBlockEmbed' => '', + 'object_pageBlockEmbed_param_full_width_type_true' => '', + 'object_pageBlockEmbed_param_allow_scrolling_type_true' => '', + 'object_pageBlockEmbed_param_url_type_string' => '', + 'object_pageBlockEmbed_param_html_type_string' => '', + 'object_pageBlockEmbed_param_poster_photo_id_type_long' => '', + 'object_pageBlockEmbed_param_w_type_int' => '', + 'object_pageBlockEmbed_param_h_type_int' => '', + 'object_pageBlockEmbed_param_caption_type_RichText' => '', + 'object_pageBlockEmbedPost' => '', + 'object_pageBlockEmbedPost_param_url_type_string' => '', + 'object_pageBlockEmbedPost_param_webpage_id_type_long' => '', + 'object_pageBlockEmbedPost_param_author_photo_id_type_long' => '', + 'object_pageBlockEmbedPost_param_author_type_string' => '', + 'object_pageBlockEmbedPost_param_date_type_int' => '', + 'object_pageBlockEmbedPost_param_blocks_type_Vector t' => '', + 'object_pageBlockEmbedPost_param_caption_type_RichText' => '', + 'object_pageBlockCollage' => '', + 'object_pageBlockCollage_param_items_type_Vector t' => '', + 'object_pageBlockCollage_param_caption_type_RichText' => '', + 'object_pageBlockSlideshow' => '', + 'object_pageBlockSlideshow_param_items_type_Vector t' => '', + 'object_pageBlockSlideshow_param_caption_type_RichText' => '', + 'object_pageBlockChannel' => '', + 'object_pageBlockChannel_param_channel_type_Chat' => '', + 'object_pageBlockAudio' => '', + 'object_pageBlockAudio_param_audio_id_type_long' => '', + 'object_pageBlockAudio_param_caption_type_RichText' => '', + 'object_pagePart' => '', + 'object_pagePart_param_blocks_type_Vector t' => '', + 'object_pagePart_param_photos_type_Vector t' => '', + 'object_pagePart_param_documents_type_Vector t' => '', + 'object_pageFull' => '', + 'object_pageFull_param_blocks_type_Vector t' => '', + 'object_pageFull_param_photos_type_Vector t' => '', + 'object_pageFull_param_documents_type_Vector t' => '', + 'object_phoneCallDiscardReasonMissed' => '', + 'object_phoneCallDiscardReasonDisconnect' => '', + 'object_phoneCallDiscardReasonHangup' => '', + 'object_phoneCallDiscardReasonBusy' => '', + 'object_dataJSON' => '', + 'object_dataJSON_param_data_type_string' => '', + 'object_labeledPrice' => '', + 'object_labeledPrice_param_label_type_string' => '', + 'object_labeledPrice_param_amount_type_long' => '', + 'object_invoice' => '', + 'object_invoice_param_test_type_true' => '', + 'object_invoice_param_name_requested_type_true' => '', + 'object_invoice_param_phone_requested_type_true' => '', + 'object_invoice_param_email_requested_type_true' => '', + 'object_invoice_param_shipping_address_requested_type_true' => '', + 'object_invoice_param_flexible_type_true' => '', + 'object_invoice_param_phone_to_provider_type_true' => '', + 'object_invoice_param_email_to_provider_type_true' => '', + 'object_invoice_param_currency_type_string' => '', + 'object_invoice_param_prices_type_Vector t' => '', + 'object_paymentCharge' => '', + 'object_paymentCharge_param_id_type_string' => '', + 'object_paymentCharge_param_provider_charge_id_type_string' => '', + 'object_postAddress' => '', + 'object_postAddress_param_street_line1_type_string' => '', + 'object_postAddress_param_street_line2_type_string' => '', + 'object_postAddress_param_city_type_string' => '', + 'object_postAddress_param_state_type_string' => '', + 'object_postAddress_param_country_iso2_type_string' => '', + 'object_postAddress_param_post_code_type_string' => '', + 'object_paymentRequestedInfo' => '', + 'object_paymentRequestedInfo_param_name_type_string' => '', + 'object_paymentRequestedInfo_param_phone_type_string' => '', + 'object_paymentRequestedInfo_param_email_type_string' => '', + 'object_paymentRequestedInfo_param_shipping_address_type_PostAddress' => '', + 'object_paymentSavedCredentialsCard' => '', + 'object_paymentSavedCredentialsCard_param_id_type_string' => '', + 'object_paymentSavedCredentialsCard_param_title_type_string' => '', + 'object_webDocument' => '', + 'object_webDocument_param_url_type_string' => '', + 'object_webDocument_param_access_hash_type_long' => '', + 'object_webDocument_param_size_type_int' => '', + 'object_webDocument_param_mime_type_type_string' => '', + 'object_webDocument_param_attributes_type_Vector t' => '', + 'object_webDocument_param_dc_id_type_int' => '', + 'object_inputWebDocument' => '', + 'object_inputWebDocument_param_url_type_string' => '', + 'object_inputWebDocument_param_size_type_int' => '', + 'object_inputWebDocument_param_mime_type_type_string' => '', + 'object_inputWebDocument_param_attributes_type_Vector t' => '', + 'object_inputWebFileLocation' => '', + 'object_inputWebFileLocation_param_url_type_string' => '', + 'object_inputWebFileLocation_param_access_hash_type_long' => '', + 'object_upload.webFile' => '', + 'object_upload.webFile_param_size_type_int' => '', + 'object_upload.webFile_param_mime_type_type_string' => '', + 'object_upload.webFile_param_file_type_type_storage.FileType' => '', + 'object_upload.webFile_param_mtime_type_int' => '', + 'object_upload.webFile_param_bytes_type_bytes' => '', + 'object_payments.paymentForm' => '', + 'object_payments.paymentForm_param_can_save_credentials_type_true' => '', + 'object_payments.paymentForm_param_password_missing_type_true' => '', + 'object_payments.paymentForm_param_bot_id_type_int' => '', + 'object_payments.paymentForm_param_invoice_type_Invoice' => '', + 'object_payments.paymentForm_param_provider_id_type_int' => '', + 'object_payments.paymentForm_param_url_type_string' => '', + 'object_payments.paymentForm_param_native_provider_type_string' => '', + 'object_payments.paymentForm_param_native_params_type_DataJSON' => '', + 'object_payments.paymentForm_param_saved_info_type_PaymentRequestedInfo' => '', + 'object_payments.paymentForm_param_saved_credentials_type_PaymentSavedCredentials' => '', + 'object_payments.paymentForm_param_users_type_Vector t' => '', + 'object_payments.validatedRequestedInfo' => '', + 'object_payments.validatedRequestedInfo_param_id_type_string' => '', + 'object_payments.validatedRequestedInfo_param_shipping_options_type_Vector t' => '', + 'object_payments.paymentResult' => '', + 'object_payments.paymentResult_param_updates_type_Updates' => '', + 'object_payments.paymentVerficationNeeded' => '', + 'object_payments.paymentVerficationNeeded_param_url_type_string' => '', + 'object_payments.paymentReceipt' => '', + 'object_payments.paymentReceipt_param_date_type_int' => '', + 'object_payments.paymentReceipt_param_bot_id_type_int' => '', + 'object_payments.paymentReceipt_param_invoice_type_Invoice' => '', + 'object_payments.paymentReceipt_param_provider_id_type_int' => '', + 'object_payments.paymentReceipt_param_info_type_PaymentRequestedInfo' => '', + 'object_payments.paymentReceipt_param_shipping_type_ShippingOption' => '', + 'object_payments.paymentReceipt_param_currency_type_string' => '', + 'object_payments.paymentReceipt_param_total_amount_type_long' => '', + 'object_payments.paymentReceipt_param_credentials_title_type_string' => '', + 'object_payments.paymentReceipt_param_users_type_Vector t' => '', + 'object_payments.savedInfo' => '', + 'object_payments.savedInfo_param_has_saved_credentials_type_true' => '', + 'object_payments.savedInfo_param_saved_info_type_PaymentRequestedInfo' => '', + 'object_inputPaymentCredentialsSaved' => '', + 'object_inputPaymentCredentialsSaved_param_id_type_string' => '', + 'object_inputPaymentCredentialsSaved_param_tmp_password_type_bytes' => '', + 'object_inputPaymentCredentials' => '', + 'object_inputPaymentCredentials_param_save_type_true' => '', + 'object_inputPaymentCredentials_param_data_type_DataJSON' => '', + 'object_inputPaymentCredentialsApplePay' => '', + 'object_inputPaymentCredentialsApplePay_param_payment_data_type_DataJSON' => '', + 'object_inputPaymentCredentialsAndroidPay' => '', + 'object_inputPaymentCredentialsAndroidPay_param_payment_token_type_DataJSON' => '', + 'object_inputPaymentCredentialsAndroidPay_param_google_transaction_id_type_string' => '', + 'object_account.tmpPassword' => '', + 'object_account.tmpPassword_param_tmp_password_type_bytes' => '', + 'object_account.tmpPassword_param_valid_until_type_int' => '', + 'object_shippingOption' => '', + 'object_shippingOption_param_id_type_string' => '', + 'object_shippingOption_param_title_type_string' => '', + 'object_shippingOption_param_prices_type_Vector t' => '', + 'object_inputStickerSetItem' => '', + 'object_inputStickerSetItem_param_document_type_InputDocument' => '', + 'object_inputStickerSetItem_param_emoji_type_string' => '', + 'object_inputStickerSetItem_param_mask_coords_type_MaskCoords' => '', + 'object_inputPhoneCall' => '', + 'object_inputPhoneCall_param_id_type_long' => '', + 'object_inputPhoneCall_param_access_hash_type_long' => '', + 'object_phoneCallEmpty' => '', + 'object_phoneCallEmpty_param_id_type_long' => '', + 'object_phoneCallWaiting' => '', + 'object_phoneCallWaiting_param_id_type_long' => '', + 'object_phoneCallWaiting_param_access_hash_type_long' => '', + 'object_phoneCallWaiting_param_date_type_int' => '', + 'object_phoneCallWaiting_param_admin_id_type_int' => '', + 'object_phoneCallWaiting_param_participant_id_type_int' => '', + 'object_phoneCallWaiting_param_protocol_type_PhoneCallProtocol' => '', + 'object_phoneCallWaiting_param_receive_date_type_int' => '', + 'object_phoneCallRequested' => '', + 'object_phoneCallRequested_param_id_type_long' => '', + 'object_phoneCallRequested_param_access_hash_type_long' => '', + 'object_phoneCallRequested_param_date_type_int' => '', + 'object_phoneCallRequested_param_admin_id_type_int' => '', + 'object_phoneCallRequested_param_participant_id_type_int' => '', + 'object_phoneCallRequested_param_g_a_hash_type_bytes' => '', + 'object_phoneCallRequested_param_protocol_type_PhoneCallProtocol' => '', + 'object_phoneCallAccepted' => '', + 'object_phoneCallAccepted_param_id_type_long' => '', + 'object_phoneCallAccepted_param_access_hash_type_long' => '', + 'object_phoneCallAccepted_param_date_type_int' => '', + 'object_phoneCallAccepted_param_admin_id_type_int' => '', + 'object_phoneCallAccepted_param_participant_id_type_int' => '', + 'object_phoneCallAccepted_param_g_b_type_bytes' => '', + 'object_phoneCallAccepted_param_protocol_type_PhoneCallProtocol' => '', + 'object_phoneCall' => '', + 'object_phoneCall_param_id_type_long' => '', + 'object_phoneCall_param_access_hash_type_long' => '', + 'object_phoneCall_param_date_type_int' => '', + 'object_phoneCall_param_admin_id_type_int' => '', + 'object_phoneCall_param_participant_id_type_int' => '', + 'object_phoneCall_param_g_a_or_b_type_bytes' => '', + 'object_phoneCall_param_key_fingerprint_type_long' => '', + 'object_phoneCall_param_protocol_type_PhoneCallProtocol' => '', + 'object_phoneCall_param_connection_type_PhoneConnection' => '', + 'object_phoneCall_param_alternative_connections_type_Vector t' => '', + 'object_phoneCall_param_start_date_type_int' => '', + 'object_phoneCallDiscarded' => '', + 'object_phoneCallDiscarded_param_need_rating_type_true' => '', + 'object_phoneCallDiscarded_param_need_debug_type_true' => '', + 'object_phoneCallDiscarded_param_id_type_long' => '', + 'object_phoneCallDiscarded_param_reason_type_PhoneCallDiscardReason' => '', + 'object_phoneCallDiscarded_param_duration_type_int' => '', + 'object_phoneConnection' => '', + 'object_phoneConnection_param_id_type_long' => '', + 'object_phoneConnection_param_ip_type_string' => '', + 'object_phoneConnection_param_ipv6_type_string' => '', + 'object_phoneConnection_param_port_type_int' => '', + 'object_phoneConnection_param_peer_tag_type_bytes' => '', + 'object_phoneCallProtocol' => '', + 'object_phoneCallProtocol_param_udp_p2p_type_true' => '', + 'object_phoneCallProtocol_param_udp_reflector_type_true' => '', + 'object_phoneCallProtocol_param_min_layer_type_int' => '', + 'object_phoneCallProtocol_param_max_layer_type_int' => '', + 'object_phone.phoneCall' => '', + 'object_phone.phoneCall_param_phone_call_type_PhoneCall' => '', + 'object_phone.phoneCall_param_users_type_Vector t' => '', + 'object_upload.cdnFileReuploadNeeded' => '', + 'object_upload.cdnFileReuploadNeeded_param_request_token_type_bytes' => '', + 'object_upload.cdnFile' => '', + 'object_upload.cdnFile_param_bytes_type_bytes' => '', + 'object_cdnPublicKey' => '', + 'object_cdnPublicKey_param_dc_id_type_int' => '', + 'object_cdnPublicKey_param_public_key_type_string' => '', + 'object_cdnConfig' => '', + 'object_cdnConfig_param_public_keys_type_Vector t' => '', + 'object_langPackString' => '', + 'object_langPackString_param_key_type_string' => '', + 'object_langPackString_param_value_type_string' => '', + 'object_langPackStringPluralized' => '', + 'object_langPackStringPluralized_param_key_type_string' => '', + 'object_langPackStringPluralized_param_zero_value_type_string' => '', + 'object_langPackStringPluralized_param_one_value_type_string' => '', + 'object_langPackStringPluralized_param_two_value_type_string' => '', + 'object_langPackStringPluralized_param_few_value_type_string' => '', + 'object_langPackStringPluralized_param_many_value_type_string' => '', + 'object_langPackStringPluralized_param_other_value_type_string' => '', + 'object_langPackStringDeleted' => '', + 'object_langPackStringDeleted_param_key_type_string' => '', + 'object_langPackDifference' => '', + 'object_langPackDifference_param_lang_code_type_string' => '', + 'object_langPackDifference_param_from_version_type_int' => '', + 'object_langPackDifference_param_version_type_int' => '', + 'object_langPackDifference_param_strings_type_Vector t' => '', + 'object_langPackLanguage' => '', + 'object_langPackLanguage_param_name_type_string' => '', + 'object_langPackLanguage_param_native_name_type_string' => '', + 'object_langPackLanguage_param_lang_code_type_string' => '', + 'object_channelAdminRights' => '', + 'object_channelAdminRights_param_change_info_type_true' => '', + 'object_channelAdminRights_param_post_messages_type_true' => '', + 'object_channelAdminRights_param_edit_messages_type_true' => '', + 'object_channelAdminRights_param_delete_messages_type_true' => '', + 'object_channelAdminRights_param_ban_users_type_true' => '', + 'object_channelAdminRights_param_invite_users_type_true' => '', + 'object_channelAdminRights_param_invite_link_type_true' => '', + 'object_channelAdminRights_param_pin_messages_type_true' => '', + 'object_channelAdminRights_param_add_admins_type_true' => '', + 'object_channelBannedRights' => '', + 'object_channelBannedRights_param_view_messages_type_true' => '', + 'object_channelBannedRights_param_send_messages_type_true' => '', + 'object_channelBannedRights_param_send_media_type_true' => '', + 'object_channelBannedRights_param_send_stickers_type_true' => '', + 'object_channelBannedRights_param_send_gifs_type_true' => '', + 'object_channelBannedRights_param_send_games_type_true' => '', + 'object_channelBannedRights_param_send_inline_type_true' => '', + 'object_channelBannedRights_param_embed_links_type_true' => '', + 'object_channelBannedRights_param_until_date_type_int' => '', + 'object_channelAdminLogEventActionChangeTitle' => '', + 'object_channelAdminLogEventActionChangeTitle_param_prev_value_type_string' => '', + 'object_channelAdminLogEventActionChangeTitle_param_new_value_type_string' => '', + 'object_channelAdminLogEventActionChangeAbout' => '', + 'object_channelAdminLogEventActionChangeAbout_param_prev_value_type_string' => '', + 'object_channelAdminLogEventActionChangeAbout_param_new_value_type_string' => '', + 'object_channelAdminLogEventActionChangeUsername' => '', + 'object_channelAdminLogEventActionChangeUsername_param_prev_value_type_string' => '', + 'object_channelAdminLogEventActionChangeUsername_param_new_value_type_string' => '', + 'object_channelAdminLogEventActionChangePhoto' => '', + 'object_channelAdminLogEventActionChangePhoto_param_prev_photo_type_ChatPhoto' => '', + 'object_channelAdminLogEventActionChangePhoto_param_new_photo_type_ChatPhoto' => '', + 'object_channelAdminLogEventActionToggleInvites' => '', + 'object_channelAdminLogEventActionToggleInvites_param_new_value_type_Bool' => '', + 'object_channelAdminLogEventActionToggleSignatures' => '', + 'object_channelAdminLogEventActionToggleSignatures_param_new_value_type_Bool' => '', + 'object_channelAdminLogEventActionUpdatePinned' => '', + 'object_channelAdminLogEventActionUpdatePinned_param_message_type_Message' => '', + 'object_channelAdminLogEventActionEditMessage' => '', + 'object_channelAdminLogEventActionEditMessage_param_prev_message_type_Message' => '', + 'object_channelAdminLogEventActionEditMessage_param_new_message_type_Message' => '', + 'object_channelAdminLogEventActionDeleteMessage' => '', + 'object_channelAdminLogEventActionDeleteMessage_param_message_type_Message' => '', + 'object_channelAdminLogEventActionParticipantJoin' => '', + 'object_channelAdminLogEventActionParticipantLeave' => '', + 'object_channelAdminLogEventActionParticipantInvite' => '', + 'object_channelAdminLogEventActionParticipantInvite_param_participant_type_ChannelParticipant' => '', + 'object_channelAdminLogEventActionParticipantToggleBan' => '', + 'object_channelAdminLogEventActionParticipantToggleBan_param_prev_participant_type_ChannelParticipant' => '', + 'object_channelAdminLogEventActionParticipantToggleBan_param_new_participant_type_ChannelParticipant' => '', + 'object_channelAdminLogEventActionParticipantToggleAdmin' => '', + 'object_channelAdminLogEventActionParticipantToggleAdmin_param_prev_participant_type_ChannelParticipant' => '', + 'object_channelAdminLogEventActionParticipantToggleAdmin_param_new_participant_type_ChannelParticipant' => '', + 'object_channelAdminLogEventActionChangeStickerSet' => '', + 'object_channelAdminLogEventActionChangeStickerSet_param_prev_stickerset_type_InputStickerSet' => '', + 'object_channelAdminLogEventActionChangeStickerSet_param_new_stickerset_type_InputStickerSet' => '', + 'object_channelAdminLogEventActionTogglePreHistoryHidden' => '', + 'object_channelAdminLogEventActionTogglePreHistoryHidden_param_new_value_type_Bool' => '', + 'object_channelAdminLogEvent' => '', + 'object_channelAdminLogEvent_param_id_type_long' => '', + 'object_channelAdminLogEvent_param_date_type_int' => '', + 'object_channelAdminLogEvent_param_user_id_type_int' => '', + 'object_channelAdminLogEvent_param_action_type_ChannelAdminLogEventAction' => '', + 'object_channels.adminLogResults' => '', + 'object_channels.adminLogResults_param_events_type_Vector t' => '', + 'object_channels.adminLogResults_param_chats_type_Vector t' => '', + 'object_channels.adminLogResults_param_users_type_Vector t' => '', + 'object_channelAdminLogEventsFilter' => '', + 'object_channelAdminLogEventsFilter_param_join_type_true' => '', + 'object_channelAdminLogEventsFilter_param_leave_type_true' => '', + 'object_channelAdminLogEventsFilter_param_invite_type_true' => '', + 'object_channelAdminLogEventsFilter_param_ban_type_true' => '', + 'object_channelAdminLogEventsFilter_param_unban_type_true' => '', + 'object_channelAdminLogEventsFilter_param_kick_type_true' => '', + 'object_channelAdminLogEventsFilter_param_unkick_type_true' => '', + 'object_channelAdminLogEventsFilter_param_promote_type_true' => '', + 'object_channelAdminLogEventsFilter_param_demote_type_true' => '', + 'object_channelAdminLogEventsFilter_param_info_type_true' => '', + 'object_channelAdminLogEventsFilter_param_settings_type_true' => '', + 'object_channelAdminLogEventsFilter_param_pinned_type_true' => '', + 'object_channelAdminLogEventsFilter_param_edit_type_true' => '', + 'object_channelAdminLogEventsFilter_param_delete_type_true' => '', + 'object_popularContact' => '', + 'object_popularContact_param_client_id_type_long' => '', + 'object_popularContact_param_importers_type_int' => '', + 'object_cdnFileHash' => '', + 'object_cdnFileHash_param_offset_type_int' => '', + 'object_cdnFileHash_param_limit_type_int' => '', + 'object_cdnFileHash_param_hash_type_bytes' => '', + 'object_messages.favedStickersNotModified' => '', + 'object_messages.favedStickers' => '', + 'object_messages.favedStickers_param_hash_type_int' => '', + 'object_messages.favedStickers_param_packs_type_Vector t' => '', + 'object_messages.favedStickers_param_stickers_type_Vector t' => '', + 'object_recentMeUrlUnknown' => '', + 'object_recentMeUrlUnknown_param_url_type_string' => '', + 'object_recentMeUrlUser' => '', + 'object_recentMeUrlUser_param_url_type_string' => '', + 'object_recentMeUrlUser_param_user_id_type_int' => '', + 'object_recentMeUrlChat' => '', + 'object_recentMeUrlChat_param_url_type_string' => '', + 'object_recentMeUrlChat_param_chat_id_type_int' => '', + 'object_recentMeUrlChatInvite' => '', + 'object_recentMeUrlChatInvite_param_url_type_string' => '', + 'object_recentMeUrlChatInvite_param_chat_invite_type_ChatInvite' => '', + 'object_recentMeUrlStickerSet' => '', + 'object_recentMeUrlStickerSet_param_url_type_string' => '', + 'object_recentMeUrlStickerSet_param_set_type_StickerSetCovered' => '', + 'object_help.recentMeUrls' => '', + 'object_help.recentMeUrls_param_urls_type_Vector t' => '', + 'object_help.recentMeUrls_param_chats_type_Vector t' => '', + 'object_help.recentMeUrls_param_users_type_Vector t' => '', + 'object_inputSingleMedia' => '', + 'object_inputSingleMedia_param_media_type_InputMedia' => '', + 'object_inputSingleMedia_param_message_type_string' => '', + 'object_inputSingleMedia_param_entities_type_Vector t' => '', + 'object_webAuthorization' => '', + 'object_webAuthorization_param_hash_type_long' => '', + 'object_webAuthorization_param_bot_id_type_int' => '', + 'object_webAuthorization_param_domain_type_string' => '', + 'object_webAuthorization_param_browser_type_string' => '', + 'object_webAuthorization_param_platform_type_string' => '', + 'object_webAuthorization_param_date_created_type_int' => '', + 'object_webAuthorization_param_date_active_type_int' => '', + 'object_webAuthorization_param_ip_type_string' => '', + 'object_webAuthorization_param_region_type_string' => '', + 'object_account.webAuthorizations' => '', + 'object_account.webAuthorizations_param_authorizations_type_Vector t' => '', + 'object_account.webAuthorizations_param_users_type_Vector t' => '', + 'object_inputMessageID' => '', + 'object_inputMessageID_param_id_type_int' => '', + 'object_inputMessageReplyTo' => '', + 'object_inputMessageReplyTo_param_id_type_int' => '', + 'object_inputMessagePinned' => '', + 'object_decryptedDataBlock' => '', + 'object_decryptedDataBlock_param_voice_call_id_type_int128' => '', + 'object_decryptedDataBlock_param_in_seq_no_type_int' => '', + 'object_decryptedDataBlock_param_out_seq_no_type_int' => '', + 'object_decryptedDataBlock_param_recent_received_mask_type_int' => '', + 'object_decryptedDataBlock_param_proto_type_int' => '', + 'object_decryptedDataBlock_param_extra_type_string' => '', + 'object_decryptedDataBlock_param_raw_data_type_string' => '', + 'object_simpleDataBlock' => '', + 'object_simpleDataBlock_param_raw_data_type_string' => '', + 'object_decryptedMessage' => '', + 'object_decryptedMessage_param_message_type_string' => '', + 'object_decryptedMessage_param_media_type_DecryptedMessageMedia' => '', + 'object_decryptedMessageService' => '', + 'object_decryptedMessageService_param_action_type_DecryptedMessageAction' => '', + 'object_decryptedMessageMediaEmpty' => '', + 'object_decryptedMessageMediaPhoto' => '', + 'object_decryptedMessageMediaPhoto_param_thumb_type_bytes' => '', + 'object_decryptedMessageMediaPhoto_param_thumb_w_type_int' => '', + 'object_decryptedMessageMediaPhoto_param_thumb_h_type_int' => '', + 'object_decryptedMessageMediaPhoto_param_w_type_int' => '', + 'object_decryptedMessageMediaPhoto_param_h_type_int' => '', + 'object_decryptedMessageMediaPhoto_param_size_type_int' => '', + 'object_decryptedMessageMediaPhoto_param_key_type_bytes' => '', + 'object_decryptedMessageMediaPhoto_param_iv_type_bytes' => '', + 'object_decryptedMessageMediaVideo' => '', + 'object_decryptedMessageMediaVideo_param_thumb_type_bytes' => '', + 'object_decryptedMessageMediaVideo_param_thumb_w_type_int' => '', + 'object_decryptedMessageMediaVideo_param_thumb_h_type_int' => '', + 'object_decryptedMessageMediaVideo_param_duration_type_int' => '', + 'object_decryptedMessageMediaVideo_param_w_type_int' => '', + 'object_decryptedMessageMediaVideo_param_h_type_int' => '', + 'object_decryptedMessageMediaVideo_param_size_type_int' => '', + 'object_decryptedMessageMediaVideo_param_key_type_bytes' => '', + 'object_decryptedMessageMediaVideo_param_iv_type_bytes' => '', + 'object_decryptedMessageMediaGeoPoint' => '', + 'object_decryptedMessageMediaGeoPoint_param_lat_type_double' => '', + 'object_decryptedMessageMediaGeoPoint_param_long_type_double' => '', + 'object_decryptedMessageMediaContact' => '', + 'object_decryptedMessageMediaContact_param_phone_number_type_string' => '', + 'object_decryptedMessageMediaContact_param_first_name_type_string' => '', + 'object_decryptedMessageMediaContact_param_last_name_type_string' => '', + 'object_decryptedMessageMediaContact_param_user_id_type_int' => '', + 'object_decryptedMessageActionSetMessageTTL' => '', + 'object_decryptedMessageActionSetMessageTTL_param_ttl_seconds_type_int' => '', + 'object_decryptedMessageMediaDocument' => '', + 'object_decryptedMessageMediaDocument_param_thumb_type_bytes' => '', + 'object_decryptedMessageMediaDocument_param_thumb_w_type_int' => '', + 'object_decryptedMessageMediaDocument_param_thumb_h_type_int' => '', + 'object_decryptedMessageMediaDocument_param_file_name_type_string' => '', + 'object_decryptedMessageMediaDocument_param_mime_type_type_string' => '', + 'object_decryptedMessageMediaDocument_param_size_type_int' => '', + 'object_decryptedMessageMediaDocument_param_key_type_bytes' => '', + 'object_decryptedMessageMediaDocument_param_iv_type_bytes' => '', + 'object_decryptedMessageMediaAudio' => '', + 'object_decryptedMessageMediaAudio_param_duration_type_int' => '', + 'object_decryptedMessageMediaAudio_param_size_type_int' => '', + 'object_decryptedMessageMediaAudio_param_key_type_bytes' => '', + 'object_decryptedMessageMediaAudio_param_iv_type_bytes' => '', + 'object_decryptedMessageActionReadMessages' => '', + 'object_decryptedMessageActionReadMessages_param_random_ids_type_Vector t' => '', + 'object_decryptedMessageActionDeleteMessages' => '', + 'object_decryptedMessageActionDeleteMessages_param_random_ids_type_Vector t' => '', + 'object_decryptedMessageActionScreenshotMessages' => '', + 'object_decryptedMessageActionScreenshotMessages_param_random_ids_type_Vector t' => '', + 'object_decryptedMessageActionFlushHistory' => '', + 'object_decryptedMessage_param_ttl_type_int' => '', + 'object_decryptedMessageMediaVideo_param_mime_type_type_string' => '', + 'object_decryptedMessageMediaAudio_param_mime_type_type_string' => '', + 'object_decryptedMessageLayer' => '', + 'object_decryptedMessageLayer_param_layer_type_int' => '', + 'object_decryptedMessageLayer_param_in_seq_no_type_int' => '', + 'object_decryptedMessageLayer_param_out_seq_no_type_int' => '', + 'object_decryptedMessageLayer_param_message_type_DecryptedMessage' => '', + 'object_decryptedMessageActionResend' => '', + 'object_decryptedMessageActionResend_param_start_seq_no_type_int' => '', + 'object_decryptedMessageActionResend_param_end_seq_no_type_int' => '', + 'object_decryptedMessageActionNotifyLayer' => '', + 'object_decryptedMessageActionNotifyLayer_param_layer_type_int' => '', + 'object_decryptedMessageActionTyping' => '', + 'object_decryptedMessageActionTyping_param_action_type_SendMessageAction' => '', + 'object_decryptedMessageActionRequestKey' => '', + 'object_decryptedMessageActionRequestKey_param_exchange_id_type_long' => '', + 'object_decryptedMessageActionRequestKey_param_g_a_type_bytes' => '', + 'object_decryptedMessageActionAcceptKey' => '', + 'object_decryptedMessageActionAcceptKey_param_exchange_id_type_long' => '', + 'object_decryptedMessageActionAcceptKey_param_g_b_type_bytes' => '', + 'object_decryptedMessageActionAcceptKey_param_key_fingerprint_type_long' => '', + 'object_decryptedMessageActionAbortKey' => '', + 'object_decryptedMessageActionAbortKey_param_exchange_id_type_long' => '', + 'object_decryptedMessageActionCommitKey' => '', + 'object_decryptedMessageActionCommitKey_param_exchange_id_type_long' => '', + 'object_decryptedMessageActionCommitKey_param_key_fingerprint_type_long' => '', + 'object_decryptedMessageActionNoop' => '', + 'object_decryptedMessageMediaExternalDocument' => '', + 'object_decryptedMessageMediaExternalDocument_param_id_type_long' => '', + 'object_decryptedMessageMediaExternalDocument_param_access_hash_type_long' => '', + 'object_decryptedMessageMediaExternalDocument_param_date_type_int' => '', + 'object_decryptedMessageMediaExternalDocument_param_mime_type_type_string' => '', + 'object_decryptedMessageMediaExternalDocument_param_size_type_int' => '', + 'object_decryptedMessageMediaExternalDocument_param_thumb_type_PhotoSize' => '', + 'object_decryptedMessageMediaExternalDocument_param_dc_id_type_int' => '', + 'object_decryptedMessageMediaExternalDocument_param_attributes_type_Vector t' => '', + 'object_decryptedMessage_param_entities_type_Vector t' => '', + 'object_decryptedMessage_param_via_bot_name_type_string' => '', + 'object_decryptedMessage_param_reply_to_random_id_type_long' => '', + 'object_decryptedMessageMediaPhoto_param_caption_type_string' => '', + 'object_decryptedMessageMediaVideo_param_caption_type_string' => '', + 'object_decryptedMessageMediaDocument_param_attributes_type_Vector t' => '', + 'object_decryptedMessageMediaDocument_param_caption_type_string' => '', + 'object_decryptedMessageMediaVenue' => '', + 'object_decryptedMessageMediaVenue_param_lat_type_double' => '', + 'object_decryptedMessageMediaVenue_param_long_type_double' => '', + 'object_decryptedMessageMediaVenue_param_title_type_string' => '', + 'object_decryptedMessageMediaVenue_param_address_type_string' => '', + 'object_decryptedMessageMediaVenue_param_provider_type_string' => '', + 'object_decryptedMessageMediaVenue_param_venue_id_type_string' => '', + 'object_decryptedMessageMediaWebPage' => '', + 'object_decryptedMessageMediaWebPage_param_url_type_string' => '', + 'object_decryptedMessage_param_grouped_id_type_long' => '', + 'object_inputPeerContact' => '', + 'object_inputPeerContact_param_user_id_type_int' => '', + 'object_inputPeerForeign' => '', + 'object_inputPeerForeign_param_user_id_type_int' => '', + 'object_inputPeerForeign_param_access_hash_type_long' => '', + 'object_inputUserContact' => '', + 'object_inputUserContact_param_user_id_type_int' => '', + 'object_inputUserForeign' => '', + 'object_inputUserForeign_param_user_id_type_int' => '', + 'object_inputUserForeign_param_access_hash_type_long' => '', + 'object_inputMediaUploadedVideo' => '', + 'object_inputMediaUploadedVideo_param_file_type_InputFile' => '', + 'object_inputMediaUploadedVideo_param_duration_type_int' => '', + 'object_inputMediaUploadedVideo_param_w_type_int' => '', + 'object_inputMediaUploadedVideo_param_h_type_int' => '', + 'object_inputMediaUploadedVideo_param_mime_type_type_string' => '', + 'object_inputMediaUploadedThumbVideo' => '', + 'object_inputMediaUploadedThumbVideo_param_file_type_InputFile' => '', + 'object_inputMediaUploadedThumbVideo_param_thumb_type_InputFile' => '', + 'object_inputMediaUploadedThumbVideo_param_duration_type_int' => '', + 'object_inputMediaUploadedThumbVideo_param_w_type_int' => '', + 'object_inputMediaUploadedThumbVideo_param_h_type_int' => '', + 'object_inputMediaUploadedThumbVideo_param_mime_type_type_string' => '', + 'object_inputMediaVideo' => '', + 'object_inputMediaVideo_param_id_type_InputVideo' => '', + 'object_inputChatUploadedPhoto_param_crop_type_InputPhotoCrop' => '', + 'object_inputChatPhoto_param_crop_type_InputPhotoCrop' => '', + 'object_inputVideoEmpty' => '', + 'object_inputVideo' => '', + 'object_inputVideo_param_id_type_long' => '', + 'object_inputVideo_param_access_hash_type_long' => '', + 'object_inputVideoFileLocation' => '', + 'object_inputVideoFileLocation_param_id_type_long' => '', + 'object_inputVideoFileLocation_param_access_hash_type_long' => '', + 'object_inputPhotoCropAuto' => '', + 'object_inputPhotoCrop' => '', + 'object_inputPhotoCrop_param_crop_left_type_double' => '', + 'object_inputPhotoCrop_param_crop_top_type_double' => '', + 'object_inputPhotoCrop_param_crop_width_type_double' => '', + 'object_userSelf' => '', + 'object_userSelf_param_id_type_int' => '', + 'object_userSelf_param_first_name_type_string' => '', + 'object_userSelf_param_last_name_type_string' => '', + 'object_userSelf_param_username_type_string' => '', + 'object_userSelf_param_phone_type_string' => '', + 'object_userSelf_param_photo_type_UserProfilePhoto' => '', + 'object_userSelf_param_status_type_UserStatus' => '', + 'object_userSelf_param_inactive_type_Bool' => '', + 'object_userContact' => '', + 'object_userContact_param_id_type_int' => '', + 'object_userContact_param_first_name_type_string' => '', + 'object_userContact_param_last_name_type_string' => '', + 'object_userContact_param_username_type_string' => '', + 'object_userContact_param_access_hash_type_long' => '', + 'object_userContact_param_phone_type_string' => '', + 'object_userContact_param_photo_type_UserProfilePhoto' => '', + 'object_userContact_param_status_type_UserStatus' => '', + 'object_userRequest' => '', + 'object_userRequest_param_id_type_int' => '', + 'object_userRequest_param_first_name_type_string' => '', + 'object_userRequest_param_last_name_type_string' => '', + 'object_userRequest_param_username_type_string' => '', + 'object_userRequest_param_access_hash_type_long' => '', + 'object_userRequest_param_phone_type_string' => '', + 'object_userRequest_param_photo_type_UserProfilePhoto' => '', + 'object_userRequest_param_status_type_UserStatus' => '', + 'object_userForeign' => '', + 'object_userForeign_param_id_type_int' => '', + 'object_userForeign_param_first_name_type_string' => '', + 'object_userForeign_param_last_name_type_string' => '', + 'object_userForeign_param_username_type_string' => '', + 'object_userForeign_param_access_hash_type_long' => '', + 'object_userForeign_param_photo_type_UserProfilePhoto' => '', + 'object_userForeign_param_status_type_UserStatus' => '', + 'object_userDeleted' => '', + 'object_userDeleted_param_id_type_int' => '', + 'object_userDeleted_param_first_name_type_string' => '', + 'object_userDeleted_param_last_name_type_string' => '', + 'object_userDeleted_param_username_type_string' => '', + 'object_userStatusEmpty' => '', + 'object_userStatusOnline' => '', + 'object_userStatusOnline_param_expires_type_int' => '', + 'object_userStatusOffline' => '', + 'object_userStatusOffline_param_was_online_type_int' => '', + 'object_chat_param_left_type_Bool' => '', + 'object_chatForbidden_param_date_type_int' => '', + 'object_chatParticipants_param_admin_id_type_int' => '', + 'object_messageForwarded' => '', + 'object_messageForwarded_param_id_type_int' => '', + 'object_messageForwarded_param_fwd_from_id_type_int' => '', + 'object_messageForwarded_param_fwd_date_type_int' => '', + 'object_messageForwarded_param_from_id_type_int' => '', + 'object_messageForwarded_param_to_id_type_Peer' => '', + 'object_messageForwarded_param_date_type_int' => '', + 'object_messageForwarded_param_message_type_string' => '', + 'object_messageForwarded_param_media_type_MessageMedia' => '', + 'object_messageMediaVideo' => '', + 'object_messageMediaVideo_param_video_type_Video' => '', + 'object_messageMediaUnsupported_param_bytes_type_bytes' => '', + 'object_messageActionChatAddUser_param_user_id_type_int' => '', + 'object_photo_param_user_id_type_int' => '', + 'object_photo_param_caption_type_string' => '', + 'object_photo_param_geo_type_GeoPoint' => '', + 'object_videoEmpty' => '', + 'object_videoEmpty_param_id_type_long' => '', + 'object_video' => '', + 'object_video_param_id_type_long' => '', + 'object_video_param_access_hash_type_long' => '', + 'object_video_param_user_id_type_int' => '', + 'object_video_param_date_type_int' => '', + 'object_video_param_caption_type_string' => '', + 'object_video_param_duration_type_int' => '', + 'object_video_param_mime_type_type_string' => '', + 'object_video_param_size_type_int' => '', + 'object_video_param_thumb_type_PhotoSize' => '', + 'object_video_param_dc_id_type_int' => '', + 'object_video_param_w_type_int' => '', + 'object_video_param_h_type_int' => '', + 'object_auth.checkedPhone_param_phone_invited_type_Bool' => '', + 'object_auth.sentCode_param_phone_registered_type_Bool' => '', + 'object_auth.sentCode_param_send_call_timeout_type_int' => '', + 'object_auth.sentCode_param_is_password_type_Bool' => '', + 'object_auth.authorization_param_expires_type_int' => '', + 'object_inputPeerNotifySettings_param_show_previews_type_Bool' => '', + 'object_inputPeerNotifySettings_param_events_mask_type_int' => '', + 'object_peerNotifySettings_param_show_previews_type_Bool' => '', + 'object_peerNotifySettings_param_events_mask_type_int' => '', + 'object_userFull_param_blocked_type_Bool' => '', + 'object_userFull_param_real_first_name_type_string' => '', + 'object_userFull_param_real_last_name_type_string' => '', + 'object_contactSuggested' => '', + 'object_contactSuggested_param_user_id_type_int' => '', + 'object_contactSuggested_param_mutual_contacts_type_int' => '', + 'object_contactStatus_param_expires_type_int' => '', + 'object_contacts.foreignLinkUnknown' => '', + 'object_contacts.foreignLinkRequested' => '', + 'object_contacts.foreignLinkRequested_param_has_phone_type_Bool' => '', + 'object_contacts.foreignLinkMutual' => '', + 'object_contacts.myLinkEmpty' => '', + 'object_contacts.myLinkRequested' => '', + 'object_contacts.myLinkRequested_param_contact_type_Bool' => '', + 'object_contacts.myLinkContact' => '', + 'object_contacts.link_param_my_link_type_contacts.MyLink' => '', + 'object_contacts.link_param_foreign_link_type_contacts.ForeignLink' => '', + 'object_contacts.suggested' => '', + 'object_contacts.suggested_param_results_type_Vector t' => '', + 'object_contacts.suggested_param_users_type_Vector t' => '', + 'object_messages.statedMessages' => '', + 'object_messages.statedMessages_param_messages_type_Vector t' => '', + 'object_messages.statedMessages_param_chats_type_Vector t' => '', + 'object_messages.statedMessages_param_users_type_Vector t' => '', + 'object_messages.statedMessages_param_pts_type_int' => '', + 'object_messages.statedMessages_param_seq_type_int' => '', + 'object_messages.statedMessage' => '', + 'object_messages.statedMessage_param_message_type_Message' => '', + 'object_messages.statedMessage_param_chats_type_Vector t' => '', + 'object_messages.statedMessage_param_users_type_Vector t' => '', + 'object_messages.statedMessage_param_pts_type_int' => '', + 'object_messages.statedMessage_param_seq_type_int' => '', + 'object_messages.sentMessage' => '', + 'object_messages.sentMessage_param_id_type_int' => '', + 'object_messages.sentMessage_param_date_type_int' => '', + 'object_messages.sentMessage_param_pts_type_int' => '', + 'object_messages.sentMessage_param_seq_type_int' => '', + 'object_messages.chats_param_users_type_Vector t' => '', + 'object_messages.affectedHistory_param_seq_type_int' => '', + 'object_inputMessagesFilterPhotoVideoDocuments' => '', + 'object_inputMessagesFilterAudio' => '', + 'object_inputMessagesFilterAudioDocuments' => '', + 'object_updateReadMessages' => '', + 'object_updateReadMessages_param_messages_type_Vector t' => '', + 'object_updateReadMessages_param_pts_type_int' => '', + 'object_updateUserStatus' => '', + 'object_updateUserStatus_param_user_id_type_int' => '', + 'object_updateUserStatus_param_status_type_UserStatus' => '', + 'object_updateContactLink_param_my_link_type_contacts.MyLink' => '', + 'object_updateContactLink_param_foreign_link_type_contacts.ForeignLink' => '', + 'object_updateNewAuthorization' => '', + 'object_updateNewAuthorization_param_auth_key_id_type_long' => '', + 'object_updateNewAuthorization_param_date_type_int' => '', + 'object_updateNewAuthorization_param_device_type_string' => '', + 'object_updateNewAuthorization_param_location_type_string' => '', + 'object_updateShortMessage_param_from_id_type_int' => '', + 'object_updateShortMessage_param_seq_type_int' => '', + 'object_updateShortChatMessage_param_seq_type_int' => '', + 'object_dcOption_param_hostname_type_string' => '', + 'object_config_param_broadcast_size_max_type_int' => '', + 'object_messages.statedMessagesLinks' => '', + 'object_messages.statedMessagesLinks_param_messages_type_Vector t' => '', + 'object_messages.statedMessagesLinks_param_chats_type_Vector t' => '', + 'object_messages.statedMessagesLinks_param_users_type_Vector t' => '', + 'object_messages.statedMessagesLinks_param_links_type_Vector t' => '', + 'object_messages.statedMessagesLinks_param_pts_type_int' => '', + 'object_messages.statedMessagesLinks_param_seq_type_int' => '', + 'object_messages.statedMessageLink' => '', + 'object_messages.statedMessageLink_param_message_type_Message' => '', + 'object_messages.statedMessageLink_param_chats_type_Vector t' => '', + 'object_messages.statedMessageLink_param_users_type_Vector t' => '', + 'object_messages.statedMessageLink_param_links_type_Vector t' => '', + 'object_messages.statedMessageLink_param_pts_type_int' => '', + 'object_messages.statedMessageLink_param_seq_type_int' => '', + 'object_messages.sentMessageLink' => '', + 'object_messages.sentMessageLink_param_id_type_int' => '', + 'object_messages.sentMessageLink_param_date_type_int' => '', + 'object_messages.sentMessageLink_param_pts_type_int' => '', + 'object_messages.sentMessageLink_param_seq_type_int' => '', + 'object_messages.sentMessageLink_param_links_type_Vector t' => '', + 'object_inputMediaUploadedAudio' => '', + 'object_inputMediaUploadedAudio_param_file_type_InputFile' => '', + 'object_inputMediaUploadedAudio_param_duration_type_int' => '', + 'object_inputMediaUploadedAudio_param_mime_type_type_string' => '', + 'object_inputMediaAudio' => '', + 'object_inputMediaAudio_param_id_type_InputAudio' => '', + 'object_inputMediaUploadedDocument_param_file_name_type_string' => '', + 'object_inputMediaUploadedThumbDocument' => '', + 'object_inputMediaUploadedThumbDocument_param_file_type_InputFile' => '', + 'object_inputMediaUploadedThumbDocument_param_thumb_type_InputFile' => '', + 'object_inputMediaUploadedThumbDocument_param_file_name_type_string' => '', + 'object_inputMediaUploadedThumbDocument_param_mime_type_type_string' => '', + 'object_messageMediaAudio' => '', + 'object_messageMediaAudio_param_audio_type_Audio' => '', + 'object_inputAudioEmpty' => '', + 'object_inputAudio' => '', + 'object_inputAudio_param_id_type_long' => '', + 'object_inputAudio_param_access_hash_type_long' => '', + 'object_inputAudioFileLocation' => '', + 'object_inputAudioFileLocation_param_id_type_long' => '', + 'object_inputAudioFileLocation_param_access_hash_type_long' => '', + 'object_audioEmpty' => '', + 'object_audioEmpty_param_id_type_long' => '', + 'object_audio' => '', + 'object_audio_param_id_type_long' => '', + 'object_audio_param_access_hash_type_long' => '', + 'object_audio_param_user_id_type_int' => '', + 'object_audio_param_date_type_int' => '', + 'object_audio_param_duration_type_int' => '', + 'object_audio_param_mime_type_type_string' => '', + 'object_audio_param_size_type_int' => '', + 'object_audio_param_dc_id_type_int' => '', + 'object_document_param_user_id_type_int' => '', + 'object_document_param_file_name_type_string' => '', + 'object_auth.sentAppCode' => '', + 'object_auth.sentAppCode_param_phone_registered_type_Bool' => '', + 'object_auth.sentAppCode_param_phone_code_hash_type_string' => '', + 'object_auth.sentAppCode_param_send_call_timeout_type_int' => '', + 'object_auth.sentAppCode_param_is_password_type_Bool' => '', + 'object_contactFound' => '', + 'object_contactFound_param_user_id_type_int' => '', + 'object_updateServiceNotification_param_popup_type_Bool' => '', + 'object_inputMediaUploadedThumbDocument_param_attributes_type_Vector t' => '', + 'object_userStatusRecently' => '', + 'object_userStatusLastWeek' => '', + 'object_userStatusLastMonth' => '', + 'object_account.sentChangePhoneCode' => '', + 'object_account.sentChangePhoneCode_param_phone_code_hash_type_string' => '', + 'object_account.sentChangePhoneCode_param_send_call_timeout_type_int' => '', + 'object_messages.allStickers_param_hash_type_string' => '', + 'object_messages.allStickers_param_packs_type_Vector t' => '', + 'object_messages.allStickers_param_documents_type_Vector t' => '', + 'object_message_param_fwd_from_id_type_int' => '', + 'object_message_param_fwd_date_type_int' => '', + 'object_chatLocated' => '', + 'object_chatLocated_param_chat_id_type_int' => '', + 'object_chatLocated_param_distance_type_int' => '', + 'object_messages.messageEmpty' => '', + 'object_messages.statedMessages_param_pts_count_type_int' => '', + 'object_messages.statedMessage_param_pts_count_type_int' => '', + 'object_messages.sentMessage_param_pts_count_type_int' => '', + 'object_updateReadMessages_param_pts_count_type_int' => '', + 'object_updateShortMessage_param_fwd_from_id_type_int' => '', + 'object_updateShortMessage_param_fwd_date_type_int' => '', + 'object_updateShortChatMessage_param_fwd_from_id_type_int' => '', + 'object_updateShortChatMessage_param_fwd_date_type_int' => '', + 'object_messages.statedMessagesLinks_param_pts_count_type_int' => '', + 'object_messages.statedMessageLink_param_pts_count_type_int' => '', + 'object_messages.sentMessageLink_param_pts_count_type_int' => '', + 'object_inputGeoChat' => '', + 'object_inputGeoChat_param_chat_id_type_int' => '', + 'object_inputGeoChat_param_access_hash_type_long' => '', + 'object_inputNotifyGeoChatPeer' => '', + 'object_inputNotifyGeoChatPeer_param_peer_type_InputGeoChat' => '', + 'object_geoChat' => '', + 'object_geoChat_param_id_type_int' => '', + 'object_geoChat_param_access_hash_type_long' => '', + 'object_geoChat_param_title_type_string' => '', + 'object_geoChat_param_address_type_string' => '', + 'object_geoChat_param_venue_type_string' => '', + 'object_geoChat_param_geo_type_GeoPoint' => '', + 'object_geoChat_param_photo_type_ChatPhoto' => '', + 'object_geoChat_param_participants_count_type_int' => '', + 'object_geoChat_param_date_type_int' => '', + 'object_geoChat_param_checked_in_type_Bool' => '', + 'object_geoChat_param_version_type_int' => '', + 'object_geoChatMessageEmpty' => '', + 'object_geoChatMessageEmpty_param_chat_id_type_int' => '', + 'object_geoChatMessageEmpty_param_id_type_int' => '', + 'object_geoChatMessage' => '', + 'object_geoChatMessage_param_chat_id_type_int' => '', + 'object_geoChatMessage_param_id_type_int' => '', + 'object_geoChatMessage_param_from_id_type_int' => '', + 'object_geoChatMessage_param_date_type_int' => '', + 'object_geoChatMessage_param_message_type_string' => '', + 'object_geoChatMessage_param_media_type_MessageMedia' => '', + 'object_geoChatMessageService' => '', + 'object_geoChatMessageService_param_chat_id_type_int' => '', + 'object_geoChatMessageService_param_id_type_int' => '', + 'object_geoChatMessageService_param_from_id_type_int' => '', + 'object_geoChatMessageService_param_date_type_int' => '', + 'object_geoChatMessageService_param_action_type_MessageAction' => '', + 'object_geochats.statedMessage' => '', + 'object_geochats.statedMessage_param_message_type_GeoChatMessage' => '', + 'object_geochats.statedMessage_param_chats_type_Vector t' => '', + 'object_geochats.statedMessage_param_users_type_Vector t' => '', + 'object_geochats.statedMessage_param_seq_type_int' => '', + 'object_geochats.located' => '', + 'object_geochats.located_param_results_type_Vector t' => '', + 'object_geochats.located_param_messages_type_Vector t' => '', + 'object_geochats.located_param_chats_type_Vector t' => '', + 'object_geochats.located_param_users_type_Vector t' => '', + 'object_geochats.messages' => '', + 'object_geochats.messages_param_messages_type_Vector t' => '', + 'object_geochats.messages_param_chats_type_Vector t' => '', + 'object_geochats.messages_param_users_type_Vector t' => '', + 'object_geochats.messagesSlice' => '', + 'object_geochats.messagesSlice_param_count_type_int' => '', + 'object_geochats.messagesSlice_param_messages_type_Vector t' => '', + 'object_geochats.messagesSlice_param_chats_type_Vector t' => '', + 'object_geochats.messagesSlice_param_users_type_Vector t' => '', + 'object_messageActionGeoChatCreate' => '', + 'object_messageActionGeoChatCreate_param_title_type_string' => '', + 'object_messageActionGeoChatCreate_param_address_type_string' => '', + 'object_messageActionGeoChatCheckin' => '', + 'object_updateNewGeoChatMessage' => '', + 'object_updateNewGeoChatMessage_param_message_type_GeoChatMessage' => '', + 'object_messages.sentMessage_param_media_type_MessageMedia' => '', + 'object_messages.sentMessageLink_param_media_type_MessageMedia' => '', + 'object_inputMediaUploadedPhoto_param_caption_type_string' => '', + 'object_inputMediaPhoto_param_caption_type_string' => '', + 'object_inputMediaUploadedVideo_param_caption_type_string' => '', + 'object_inputMediaUploadedThumbVideo_param_caption_type_string' => '', + 'object_inputMediaVideo_param_caption_type_string' => '', + 'object_messageMediaPhoto_param_caption_type_string' => '', + 'object_messageMediaVideo_param_caption_type_string' => '', + 'object_botCommand' => '', + 'object_botCommand_param_command_type_string' => '', + 'object_botCommand_param_description_type_string' => '', + 'object_botInfoEmpty' => '', + 'object_botInfo_param_version_type_int' => '', + 'object_botInfo_param_share_text_type_string' => '', + 'object_help.appChangelogEmpty' => '', + 'object_help.appChangelog' => '', + 'object_help.appChangelog_param_text_type_string' => '', + 'object_message_param_fwd_from_id_type_Peer' => '', + 'object_updateShortMessage_param_fwd_from_id_type_Peer' => '', + 'object_updateShortChatMessage_param_fwd_from_id_type_Peer' => '', + 'object_channelFull_param_unread_important_count_type_int' => '', + 'object_dialogChannel' => '', + 'object_dialogChannel_param_peer_type_Peer' => '', + 'object_dialogChannel_param_top_message_type_int' => '', + 'object_dialogChannel_param_top_important_message_type_int' => '', + 'object_dialogChannel_param_read_inbox_max_id_type_int' => '', + 'object_dialogChannel_param_unread_count_type_int' => '', + 'object_dialogChannel_param_unread_important_count_type_int' => '', + 'object_dialogChannel_param_notify_settings_type_PeerNotifySettings' => '', + 'object_dialogChannel_param_pts_type_int' => '', + 'object_messageGroup' => '', + 'object_messageGroup_param_min_id_type_int' => '', + 'object_messageGroup_param_max_id_type_int' => '', + 'object_messageGroup_param_count_type_int' => '', + 'object_messageGroup_param_date_type_int' => '', + 'object_messages.channelMessages_param_collapsed_type_Vector t' => '', + 'object_updateChannelGroup' => '', + 'object_updateChannelGroup_param_channel_id_type_int' => '', + 'object_updateChannelGroup_param_group_type_MessageGroup' => '', + 'object_updates.channelDifferenceTooLong_param_top_important_message_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_unread_important_count_type_int' => '', + 'object_channelMessagesFilterCollapsed' => '', + 'object_channelParticipantModerator' => '', + 'object_channelParticipantModerator_param_user_id_type_int' => '', + 'object_channelParticipantModerator_param_inviter_id_type_int' => '', + 'object_channelParticipantModerator_param_date_type_int' => '', + 'object_channelParticipantEditor' => '', + 'object_channelParticipantEditor_param_user_id_type_int' => '', + 'object_channelParticipantEditor_param_inviter_id_type_int' => '', + 'object_channelParticipantEditor_param_date_type_int' => '', + 'object_channelParticipantKicked' => '', + 'object_channelParticipantKicked_param_user_id_type_int' => '', + 'object_channelParticipantKicked_param_kicked_by_type_int' => '', + 'object_channelParticipantKicked_param_date_type_int' => '', + 'object_channelRoleEmpty' => '', + 'object_channelRoleModerator' => '', + 'object_channelRoleEditor' => '', + 'object_inputChatEmpty' => '', + 'object_inputChat' => '', + 'object_inputChat_param_chat_id_type_int' => '', + 'object_updateReadChannelInbox_param_peer_type_Peer' => '', + 'object_updateDeleteChannelMessages_param_peer_type_Peer' => '', + 'object_message_param_unread_type_true' => '', + 'object_messageService_param_unread_type_true' => '', + 'object_updateShortMessage_param_unread_type_true' => '', + 'object_updateShortChatMessage_param_unread_type_true' => '', + 'object_stickerSet_param_disabled_type_true' => '', + 'object_updateShortSentMessage_param_unread_type_true' => '', + 'object_channel_param_kicked_type_true' => '', + 'object_channel_param_moderator_type_true' => '', + 'object_channelMessagesFilter_param_important_only_type_true' => '', + 'object_messageActionChatDeactivate' => '', + 'object_messageActionChatActivate' => '', + 'object_user_param_restiction_reason_type_string' => '', + 'object_channel_param_restiction_reason_type_string' => '', + 'object_webPageExternal' => '', + 'object_webPageExternal_param_url_type_string' => '', + 'object_webPageExternal_param_display_url_type_string' => '', + 'object_webPageExternal_param_type_type_string' => '', + 'object_webPageExternal_param_title_type_string' => '', + 'object_webPageExternal_param_description_type_string' => '', + 'object_webPageExternal_param_thumb_url_type_string' => '', + 'object_webPageExternal_param_content_url_type_string' => '', + 'object_webPageExternal_param_w_type_int' => '', + 'object_webPageExternal_param_h_type_int' => '', + 'object_webPageExternal_param_duration_type_int' => '', + 'object_foundGif_param_webpage_type_WebPage' => '', + 'object_inputMediaUploadedDocument_param_caption_type_string' => '', + 'object_inputMediaUploadedThumbDocument_param_caption_type_string' => '', + 'object_inputMediaDocument_param_caption_type_string' => '', + 'object_messageMediaDocument_param_caption_type_string' => '', + 'object_inputBotInlineMessageMediaAuto_param_caption_type_string' => '', + 'object_botInlineMessageMediaAuto_param_caption_type_string' => '', + 'object_botInlineMediaResultDocument' => '', + 'object_botInlineMediaResultDocument_param_id_type_string' => '', + 'object_botInlineMediaResultDocument_param_type_type_string' => '', + 'object_botInlineMediaResultDocument_param_document_type_Document' => '', + 'object_botInlineMediaResultDocument_param_send_message_type_BotInlineMessage' => '', + 'object_botInlineMediaResultPhoto' => '', + 'object_botInlineMediaResultPhoto_param_id_type_string' => '', + 'object_botInlineMediaResultPhoto_param_type_type_string' => '', + 'object_botInlineMediaResultPhoto_param_photo_type_Photo' => '', + 'object_botInlineMediaResultPhoto_param_send_message_type_BotInlineMessage' => '', + 'object_inputMediaVideo_param_video_type_InputVideo' => '', + 'object_inputMediaAudio_param_audio_type_InputAudio' => '', + 'object_inputMediaDocument_param_document_id_type_InputDocument' => '', + 'object_inputGeoPoint_param_latitude_type_double' => '', + 'object_inputGeoPoint_param_longitude_type_double' => '', + 'object_geoPoint_param_longitude_type_double' => '', + 'object_geoPoint_param_latitude_type_double' => '', + 'object_updateNewEncryptedMessage_param_encr_message_type_EncryptedMessage' => '', + 'object_updateEncryption_param_encr_chat_type_EncryptedChat' => '', + 'object_updateNotifySettings_param_notify_peer_type_NotifyPeer' => '', + 'object_updateServiceNotification_param_message_text_type_string' => '', + 'object_updateNewChannelMessage_param_channel_pts_type_int' => '', + 'object_updateNewChannelMessage_param_channel_pts_count_type_int' => '', + 'object_updateDeleteChannelMessages_param_channel_pts_type_int' => '', + 'object_updateDeleteChannelMessages_param_channel_pts_count_type_int' => '', + 'object_updates.channelDifferenceEmpty_param_channel_pts_type_int' => '', + 'object_updates.channelDifferenceTooLong_param_channel_pts_type_int' => '', + 'object_updates.channelDifference_param_channel_pts_type_int' => '', + 'object_privacyKeyChatInvite' => '', + 'object_inputMediaUploadedThumbDocument_param_stickers_type_Vector t' => '', + 'object_inputMediaPhotoExternal_param_caption_type_string' => '', + 'object_inputMediaDocumentExternal_param_caption_type_string' => '', + 'object_destroy_auth_key_ok' => '', + 'object_destroy_auth_key_none' => '', + 'object_destroy_auth_key_fail' => '', + 'object_help.appChangelog_param_message_type_string' => '', + 'object_help.appChangelog_param_media_type_MessageMedia' => '', + 'object_help.appChangelog_param_entities_type_Vector t' => '', + 'object_pageBlockParagraph' => '', + 'object_pageBlockParagraph_param_text_type_RichText' => '', + 'object_pageBlockPreformatted' => '', + 'object_pageBlockPreformatted_param_text_type_RichText' => '', + 'object_pageBlockPreformatted_param_language_type_string' => '', + 'object_pageBlockDivider' => '', + 'object_pageBlockAnchor' => '', + 'object_pageBlockAnchor_param_name_type_string' => '', + 'object_pageBlockCover' => '', + 'object_pageBlockCover_param_cover_type_PageBlock' => '', + 'object_pagePart_param_videos_type_Vector t' => '', + 'object_pageFull_param_videos_type_Vector t' => '', + 'object_phoneCallRequested_param_g_a_type_bytes' => '', + 'object_resPQ_param_pq_type_string' => '', + 'object_p_q_inner_data_param_pq_type_string' => '', + 'object_p_q_inner_data_param_p_type_string' => '', + 'object_p_q_inner_data_param_q_type_string' => '', + 'object_server_DH_params_ok_param_encrypted_answer_type_string' => '', + 'object_server_DH_inner_data_param_dh_prime_type_string' => '', + 'object_server_DH_inner_data_param_g_a_type_string' => '', + 'object_client_DH_inner_data_param_g_b_type_string' => '', + 'object_msgs_state_info_param_info_type_string' => '', + 'object_msgs_all_info_param_info_type_string' => '', + 'object_http_wait' => '', + 'object_http_wait_param_max_delay_type_int' => '', + 'object_http_wait_param_wait_after_type_int' => '', + 'object_http_wait_param_max_wait_type_int' => '', + 'object_ipPort' => '', + 'object_ipPort_param_ipv4_type_int' => '', + 'object_ipPort_param_port_type_int' => '', + 'object_help.configSimple' => '', + 'object_help.configSimple_param_date_type_int' => '', + 'object_help.configSimple_param_expires_type_int' => '', + 'object_help.configSimple_param_dc_id_type_int' => '', + 'object_help.configSimple_param_ip_port_list_type_Vector t' => '', + 'object_inputMessagesFilterMyMentionsUnread' => '', +); +} \ No newline at end of file diff --git a/src/danog/MadelineProto/Logger.php b/src/danog/MadelineProto/Logger.php index 29d48fc0..cf13154a 100644 --- a/src/danog/MadelineProto/Logger.php +++ b/src/danog/MadelineProto/Logger.php @@ -107,7 +107,7 @@ class Logger throw new Exception(\danog\MadelineProto\Lang::$current_lang['no_mode_specified']); } self::$mode = $mode; - self::$optional = $optional; + self::$optional = $mode == 2 ? Absolute::absolute($optional) : $optional; self::$prefix = $prefix === '' ? '' : ', '.$prefix; self::$level = $level; self::class_exists(); @@ -132,9 +132,9 @@ class Logger $param = json_encode($param, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); } $param = str_pad(basename(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1)[0]['file'], '.php').$prefix.': ', 16 + strlen($prefix))."\t".$param; - if (self::$isatty) { + /*if (self::$isatty) { self::$mode = 3; - } + }*/ switch (self::$mode) { case 1: error_log($param); diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index 605eceb5..3b344a07 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -43,17 +43,24 @@ class MTProto use \danog\MadelineProto\Tools; use \danog\MadelineProto\VoIP\AuthKeyHandler; use \danog\MadelineProto\Wrappers\DialogHandler; + use \danog\MadelineProto\Wrappers\Events; + use \danog\MadelineProto\Wrappers\Webhook; + use \danog\MadelineProto\Wrappers\Callback; use \danog\MadelineProto\Wrappers\Login; + use \danog\MadelineProto\Wrappers\Loop; + use \danog\MadelineProto\Wrappers\Start; + use \danog\MadelineProto\Wrappers\Templates; + /* const V = 71; */ - const V = 96; + const V = 97; const NOT_LOGGED_IN = 0; const WAITING_CODE = 1; const WAITING_SIGNUP = -1; const WAITING_PASSWORD = 2; const LOGGED_IN = 3; - const DISALLOWED_METHODS = ['auth.logOut' => 'You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)', 'auth.importBotAuthorization' => 'You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)', 'auth.sendCode' => 'You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)', 'auth.signIn' => 'You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)', 'auth.signUp' => 'You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)', 'users.getFullUser' => 'You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)', 'channels.getFullChannel' => 'You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)', 'messages.getFullChat' => 'You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)', 'contacts.resolveUsername' => 'You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)', 'messages.acceptEncryption' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats', 'messages.discardEncryption' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats', 'messages.requestEncryption' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats', 'phone.requestCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls', 'phone.acceptCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls', 'phone.confirmCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls', 'phone.discardCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls', 'updates.getChannelDifference' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates', 'updates.getDifference' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates', 'updates.getState' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates', 'upload.getCdnFile' => 'You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info', 'upload.getCdnFileHashes' => 'You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info', 'upload.reuploadCdnFile' => 'You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info', 'upload.getFile' => 'You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info', 'upload.saveFilePart' => 'You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info', 'upload.saveBigFilePart' => 'You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info']; + const DISALLOWED_METHODS = ['auth.bindTempAuthKey' => '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', 'auth.exportAuthorization' => 'You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html', 'auth.importAuthorization' => 'You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html', 'auth.logOut' => 'You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info)', 'auth.importBotAuthorization' => 'You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)', 'auth.sendCode' => 'You cannot use this method directly, use the phone_login method instead (see https://docs.madelineproto.xyz for more info)', 'auth.signIn' => 'You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info)','auth.checkPassword' => 'You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)', 'auth.signUp' => 'You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info)', 'users.getFullUser' => '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)', 'channels.getFullChannel' => '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)', 'messages.getFullChat' => '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)', 'contacts.resolveUsername' => '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)', 'messages.acceptEncryption' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', 'messages.discardEncryption' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', 'messages.requestEncryption' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats', 'phone.requestCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', 'phone.acceptCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', 'phone.confirmCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', 'phone.discardCall' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls', 'updates.getChannelDifference' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', 'updates.getDifference' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', 'updates.getState' => 'You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates', 'upload.getCdnFile' => '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', 'upload.getCdnFileHashes' => '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', 'upload.reuploadCdnFile' => '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', 'upload.getFile' => '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', 'upload.saveFilePart' => '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', 'upload.saveBigFilePart' => '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']; const BAD_MSG_ERROR_CODES = [16 => 'msg_id too low (most likely, client time is wrong; it would be worthwhile to synchronize it using msg_id notifications and re-send the original message with the “correct” msg_id or wrap it in a container with a new msg_id if the original message had waited too long on the client to be transmitted)', 17 => 'msg_id too high (similar to the previous case, the client time has to be synchronized, and the message re-sent with the correct msg_id)', 18 => 'incorrect two lower order msg_id bits (the server expects client message msg_id to be divisible by 4)', 19 => 'container msg_id is the same as msg_id of a previously received message (this must never happen)', 20 => 'message too old, and it cannot be verified whether the server has received a message with this msg_id or not', 32 => 'msg_seqno too low (the server has already received a message with a lower msg_id but with either a higher or an equal and odd seqno)', 33 => 'msg_seqno too high (similarly, there is a message with a higher msg_id but with either a lower or an equal and odd seqno)', 34 => 'an even msg_seqno expected (irrelevant message), but odd received', 35 => 'odd msg_seqno expected (relevant message), but even received', 48 => 'incorrect server salt (in this case, the bad_server_salt response is received with the correct salt, and the message is to be re-sent with it)', 64 => 'invalid container.']; const MSGS_INFO_FLAGS = [1 => 'nothing is known about the message (msg_id too low, the other party may have forgotten it)', 2 => 'message not received (msg_id falls within the range of stored identifiers; however, the other party has certainly not received a message like that)', 3 => 'message not received (msg_id too high; however, the other party has certainly not received it yet)', 4 => 'message received (note that this response is also at the same time a receipt acknowledgment)', 8 => ' and message already acknowledged', 16 => ' and message not requiring acknowledgment', 32 => ' and RPC query contained in message being processed or processing already complete', 64 => ' and content-related response to message already generated', 128 => ' and other party knows for a fact that message is already received']; const REQUESTED = 0; @@ -108,6 +115,9 @@ class MTProto if (!defined('\\phpseclib\\Crypt\\Common\\SymmetricKey::MODE_IGE') || \phpseclib\Crypt\Common\SymmetricKey::MODE_IGE !== 6) { throw new Exception(\danog\MadelineProto\Lang::$current_lang['phpseclib_fork']); } + if (!extension_loaded('xml')) { + throw new Exception(['extension', 'xml']); + } $this->emojis = json_decode(self::JSON_EMOJIS); \danog\MadelineProto\Logger::class_exists(); // Connect to servers @@ -161,7 +171,7 @@ class MTProto public function __sleep() { - return ['encrypted_layer', 'settings', 'config', 'authorization', 'authorized', 'rsa_keys', 'last_recv', 'dh_config', 'chats', 'last_stored', 'qres', 'pending_updates', 'pending_pwrchat', 'postpone_pwrchat', 'updates_state', 'got_state', 'channels_state', 'updates', 'updates_key', 'full_chats', 'msg_ids', 'dialog_params', 'datacenter', 'v', 'constructors', 'td_constructors', 'methods', 'td_methods', 'td_descriptions', 'twoe1984', 'twoe2047', 'twoe2048', 'zero', 'one', 'two', 'three', 'four', 'temp_requested_secret_chats', 'temp_rekeyed_secret_chats', 'secret_chats', 'hook_url', 'storage', 'emojis', 'authorized_dc', 'twozerotwosixone', 'zeroeight']; + return ['event_handler', 'event_handler_instance', 'web_template', 'encrypted_layer', 'settings', 'config', 'authorization', 'authorized', 'rsa_keys', 'last_recv', 'dh_config', 'chats', 'last_stored', 'qres', 'pending_updates', 'pending_pwrchat', 'postpone_pwrchat', 'updates_state', 'got_state', 'channels_state', 'updates', 'updates_key', 'full_chats', 'msg_ids', 'dialog_params', 'datacenter', 'v', 'constructors', 'td_constructors', 'methods', 'td_methods', 'td_descriptions', 'twoe1984', 'twoe2047', 'twoe2048', 'zero', 'one', 'two', 'three', 'four', 'temp_requested_secret_chats', 'temp_rekeyed_secret_chats', 'secret_chats', 'hook_url', 'storage', 'emojis', 'authorized_dc', 'twozerotwosixone', 'zeroeight']; } public function __wakeup() @@ -179,6 +189,9 @@ class MTProto if (!defined('\\phpseclib\\Crypt\\AES::MODE_IGE')) { throw new Exception(\danog\MadelineProto\Lang::$current_lang['phpseclib_fork']); } + if (!extension_loaded('xml')) { + throw new Exception(['extension', 'xml']); + } $this->settings['connection_settings']['all']['ipv6'] = (bool) strlen(@file_get_contents('http://ipv6.test-ipv6.com/', false, stream_context_create(['http' => ['timeout' => 1]]))) > 0; /*if (isset($this->settings['pwr']['update_handler']) && $this->settings['pwr']['update_handler'] === $this->settings['updates']['callback']) { unset($this->settings['pwr']['update_handler']); @@ -265,7 +278,7 @@ class MTProto $connection['proxy_extra'] = []; } if (!isset($connection['pfs'])) { - $connection['pfs'] = true; + $connection['pfs'] = extension_loaded('gmp'); } } if (!isset($settings['authorization']['rsa_key'])) { @@ -324,6 +337,13 @@ class MTProto } } + public function serialize() + { + if ($this->wrapper instanceof \danog\MadelineProto\API && isset($this->wrapper->session) && !is_null($this->wrapper->session)) { + $this->wrapper->serialize($this->wrapper->session); + } + } + public function parse_settings($settings) { // Detect device model @@ -427,7 +447,7 @@ class MTProto // The proxy class to use 'proxy_extra' => [], // Extra parameters to pass to the proxy class using setExtra - 'pfs' => true, + 'pfs' => extension_loaded('gmp'), ], ], 'app_info' => [ // obtained in https://my.telegram.org @@ -466,10 +486,9 @@ class MTProto * 4 - Call callable provided in logger_param. logger_param must accept two parameters: array $message, int $level * $message is an array containing the messages the log, $level, is the logging level */ - 'logger' => 1, // write to - 'logger_param' => '/tmp/MadelineProto.log', - 'logger' => 3, + 'logger_param' => getcwd().'/MadelineProto.log', + 'logger' => php_sapi_name() === 'cli' ? 3 : 2, // overwrite previous setting and echo logs 'logger_level' => Logger::VERBOSE, // Logging level, available logging levels are: ULTRA_VERBOSE, VERBOSE, NOTICE, WARNING, ERROR, FATAL_ERROR. Can be provided as last parameter to the logging function. @@ -492,7 +511,7 @@ class MTProto // Should madeline fetch the full member list of every group it meets? 'cache_all_peers_on_startup' => false, ], 'requests' => ['gzip_encode_if_gt' => 500], 'updates' => [ - 'handle_updates' => true, + 'handle_updates' => false, // Should I handle updates? 'handle_old_updates' => true, // Should I handle old updates on startup? @@ -503,6 +522,8 @@ class MTProto 'allow_threading' => false, // Should I use threading, if it is enabled? 'handler_workers' => 10, + ], 'upload' => [ + 'allow_automatic_upload' => true ], 'pwr' => [ 'pwr' => false, // Need info ? @@ -546,6 +567,7 @@ class MTProto break; } $this->settings = $settings; + if (!$this->settings['updates']['handle_updates']) $this->updates = []; // Setup logger $this->setup_logger(); } @@ -643,7 +665,8 @@ class MTProto $this->parse_dc_options($this->config['dc_options']); unset($this->config['dc_options']); } - \danog\MadelineProto\Logger::log(\danog\MadelineProto\Lang::$current_lang['config_updated'], $this->config, Logger::NOTICE); + \danog\MadelineProto\Logger::log(\danog\MadelineProto\Lang::$current_lang['config_updated'], Logger::NOTICE); + \danog\MadelineProto\Logger::log($this->config, Logger::NOTICE); } public function parse_dc_options($dc_options) @@ -681,6 +704,7 @@ class MTProto try { $this->authorization = ['user' => $this->method_call('users.getUsers', ['id' => [['_' => 'inputUserSelf']]], ['datacenter' => $this->datacenter->curdc])[0]]; } catch (RPCErrorException $e) { + \danog\MadelineProto\Logger::log($e->getMessage()); return false; } diff --git a/src/danog/MadelineProto/MTProtoTools/CallHandler.php b/src/danog/MadelineProto/MTProtoTools/CallHandler.php index 19ff06d4..04a2d448 100644 --- a/src/danog/MadelineProto/MTProtoTools/CallHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/CallHandler.php @@ -201,6 +201,7 @@ trait CallHandler if ($last_recv === $this->datacenter->sockets[$aargs['datacenter']]->last_recv || ($this->datacenter->sockets[$aargs['datacenter']]->last_recv < time() - 1 && $this->is_http($aargs['datacenter']))) { $this->close_and_reopen($aargs['datacenter']); } + $only_updates = false; continue; //2; } } diff --git a/src/danog/MadelineProto/MTProtoTools/Files.php b/src/danog/MadelineProto/MTProtoTools/Files.php index 4a8816f1..251b3555 100644 --- a/src/danog/MadelineProto/MTProtoTools/Files.php +++ b/src/danog/MadelineProto/MTProtoTools/Files.php @@ -20,6 +20,11 @@ trait Files { public function upload($file, $file_name = '', $cb = null, $encrypted = false, $datacenter = null) { + if (is_object($file) && class_implements($file)['\danog\MadelineProto\FileCallbackInterface']) { + $cb = $file; + $file = $file->getFile(); + } + $file = \danog\MadelineProto\Absolute::absolute($file); if (!file_exists($file)) { throw new \danog\MadelineProto\Exception(\danog\MadelineProto\Lang::$current_lang['file_not_exist']); } @@ -67,7 +72,7 @@ trait Files $cb(ftell($f) * 100 / $file_size); } fclose($f); - $constructor = ['_' => $constructor, 'id' => $file_id, 'parts' => $part_total_num, 'name' => $file_name, 'md5_checksum' => hash_final($ctx)]; + $constructor = ['_' => $constructor, 'id' => $file_id, 'parts' => $part_total_num, 'name' => $file_name, 'md5_checksum' => hash_final($ctx), 'mime_type' => mime_content_type($file)]; if ($encrypted === true) { $constructor['key_fingerprint'] = $fingerprint; $constructor['key'] = $key; @@ -82,7 +87,67 @@ trait Files { return $this->upload($file, $file_name, $cb, true); } + public function gen_all_file($media) { + $res = [$this->constructors->find_by_predicate($constructor['_'])['type'] => $constructor]; + switch ($media['_']) { + case 'messageMediaPhoto': + if (!isset($media['photo']['access_hash'])) { + throw new \danog\MadelineProto\Exception('No access hash'); + } + $res['Photo'] = $media['photo']; + $res['InputPhoto'] = ['_' => 'inputPhoto', 'id' => $media['photo']['id'], 'access_hash' => $media['photo']['access_hash']]; + $res['InputMedia'] = ['_' => 'inputMediaPhoto', 'id' => $res['InputPhoto']]; + if (isset($media['ttl_seconds'])) { + $res['InputMedia']['ttl_seconds'] = $media['ttl_seconds']; + } + break; + case 'messageMediaDocument': + if (!isset($media['document']['access_hash'])) { + throw new \danog\MadelineProto\Exception('No access hash'); + } + $res['Document'] = $media['document']; + $res['InputDocument'] = ['_' => 'inputDocument', 'id' => $media['document']['id'], 'access_hash' => $media['photo']['access_hash']]; + $res['InputMedia'] = ['_' => 'inputMediaDocument', 'id' => $res['InputDocument']]; + if (isset($media['ttl_seconds'])) { + $res['InputMedia']['ttl_seconds'] = $media['ttl_seconds']; + } + break; + case 'document': + if (!isset($media['access_hash'])) { + throw new \danog\MadelineProto\Exception('No access hash'); + } + $res['InputDocument'] = ['_' => 'inputDocument', 'id' => $media['id'], 'access_hash' => $media['access_hash']]; + $res['InputMedia'] = ['_' => 'inputMediaDocument', 'id' => $res['InputDocument']]; + $res['MessageMedia'] = ['_' => 'messageMediaDocument', 'document' => $media]; + break; + case 'photo': + if (!isset($media['access_hash'])) { + throw new \danog\MadelineProto\Exception('No access hash'); + } + $res['InputDocument'] = ['_' => 'inputDocument', 'id' => $media['id'], 'access_hash' => $media['access_hash']]; + $res['InputMedia'] = ['_' => 'inputMediaDocument', 'id' => $res['InputDocument']]; + $res['MessageMedia'] = ['_' => 'messageMediaPhoto', 'photo' => $media]; + break; + default: + throw new \danog\MadelineProto\Exception('Could not convert media object'); + } + return $res; + } + public function get_file_info($constructor) { + if (is_string($constructor)) { + $constructor = $this->unpack_file_id($constructor)['MessageMedia']; + } + switch ($constructor['_']) { + case 'updateNewMessage': + case 'updateNewChannelMessage': + $constructor = $constructor['message']; + + case 'message': + $constructor = $constructor['media']; + } + return $this->gen_all_file($constructor); + } public function get_download_info($message_media) { if (is_string($message_media)) { @@ -93,6 +158,13 @@ trait Files } $res = []; switch ($message_media['_']) { + case 'updateNewMessage': + case 'updateNewChannelMessage': + $message_media = $message_media['message']; + case 'message': + return $this->get_download_info($message_media['media']); + case 'updateNewEncryptedMessage': + $message_media = $message_media['message']; case 'encryptedMessage': if ($message_media['decrypted_message']['media']['_'] === 'decryptedMessageMediaExternalDocument') { return $this->get_download_info($message_media['decrypted_message']['media']); @@ -222,6 +294,11 @@ trait Files public function download_to_dir($message_media, $dir, $cb = null) { + if (is_object($dir) && class_implements($dir)['\danog\MadelineProto\FileCallbackInterface']) { + $cb = $dir; + $dir = $dir->getFile(); + } + $message_media = $this->get_download_info($message_media); return $this->download_to_file($message_media, $dir.'/'.$message_media['name'].$message_media['ext'], $cb); @@ -229,7 +306,11 @@ trait Files public function download_to_file($message_media, $file, $cb = null) { - $file = preg_replace('|/+|', '/', $file); + if (is_object($file) && class_implements($file)['\danog\MadelineProto\FileCallbackInterface']) { + $cb = $file; + $file = $file->getFile(); + } + $file = \danog\MadelineProto\Absolute::absolute(preg_replace('|/+|', '/', $file)); if (!file_exists($file)) { touch($file); } @@ -252,6 +333,11 @@ trait Files public function download_to_stream($message_media, $stream, $cb = null, $offset = 0, $end = -1) { + if (is_object($stream) && class_implements($stream)['\danog\MadelineProto\FileCallbackInterface']) { + $cb = $stream; + $stream = $stream->getFile(); + } + if ($cb === null) { $cb = function ($percent) { \danog\MadelineProto\Logger::log('Download status: '.$percent.'%', \danog\MadelineProto\Logger::NOTICE); diff --git a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php index c457fb54..10b67f5d 100644 --- a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php @@ -147,7 +147,7 @@ trait PeerHandler $this->chats[$bot_api_id] = $chat; try { - if (!isset($this->full_chats[$bot_api_id]) || $this->full_chats[$bot_api_id]['full']['participants_count'] !== $this->get_full_info($bot_api_id)['full']['participants_count']) { + if ($this->settings['peer']['full_fetch'] && (!isset($this->full_chats[$bot_api_id]) || $this->full_chats[$bot_api_id]['full']['participants_count'] !== $this->get_full_info($bot_api_id)['full']['participants_count'])) { if ($this->postpone_pwrchat) { $this->pending_pwrchat[$this->to_supergroup($chat['id'])] = [$this->settings['peer']['full_fetch'], true]; } else { @@ -255,6 +255,23 @@ trait PeerHandler case 'peerChannel': $id = $this->to_supergroup($id['channel_id']); break; + case 'message': + if (!isset($id['from_id']) || $id['to_id']['_'] !== 'peerUser' || $id['to_id']['user_id'] !== $this->authorization['user']['id']) { + return $this->get_info($id['to_id']); + } + $id = $id['from_id']; + break; + case 'encryptedMessage': + case 'encryptedMessageService': + $id = $id['chat_id']; + if (!isset($this->secret_chats[$id])) { + throw new \danog\MadelineProto\Exception(\danog\MadelineProto\Lang::$current_lang['sec_peer_not_in_db']); + } + return $this->secret_chats[$id]; + case 'updateNewMessage': + case 'updateNewChannelMessage': + case 'updateNewEncryptedMessage': + return $this->get_info($id['message']); case 'chatForbidden': case 'channelForbidden': throw new \danog\MadelineProto\RPCErrorException('CHAT_FORBIDDEN'); @@ -316,6 +333,9 @@ trait PeerHandler } } $id = strtolower(str_replace('@', '', $id)); + if ($id === 'me') { + return $this->get_info($this->authorization['user']['id']); + } foreach ($this->chats as $chat) { if (isset($chat['username']) && strtolower($chat['username']) === $id) { return $this->gen_all($chat); @@ -657,19 +677,11 @@ trait PeerHandler { return; unset($gres['users']); - if (\danog\MadelineProto\Logger::$bigint) { - $hash = new \phpseclib\Math\BigInteger(0); - foreach ($gres['participants'] as $participant) { - $hash = $hash->multiply($this->twozerotwosixone)->add($this->zeroeight)->add(new \phpseclib\Math\BigInteger($participant['user_id']))->divide($this->zeroeight)[1]; - } - $gres['hash'] = $this->unpack_signed_int(strrev(str_pad($hash->toBytes(), 4, "\0", STR_PAD_LEFT))); - } else { - $hash = 0; - foreach ($gres['participants'] as $participant) { - $hash = (($hash * 20261) + 0x80000000 + $participant['user_id']) % 0x80000000; - } - $gres['hash'] = $hash; + $ids = []; + foreach ($gres['participants'] as $participant) { + $ids[] = $participant['user_id']; } + $gres['hash'] = $this->gen_vector_hash($ids); $this->channel_participants[$channel['channel_id']][$filter][$q][$offset][$limit] = $gres; } diff --git a/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php b/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php index f0a54176..243b8165 100644 --- a/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php @@ -70,7 +70,7 @@ trait UpdateHandler public function get_updates($params = []) { if (!$this->settings['updates']['handle_updates']) { - return; + $this->settings['updates']['handle_updates'] = true; } array_walk($this->calls, function ($controller, $id) { if ($controller->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_ENDED) { @@ -108,11 +108,7 @@ trait UpdateHandler $this->connect_to_all_dcs(); } $default_params = ['offset' => 0, 'limit' => null, 'timeout' => 0]; - foreach ($default_params as $key => $default) { - if (!isset($params[$key])) { - $params[$key] = $default; - } - } + $params = array_merge($default_params, $params); $params['timeout'] = (int) ($params['timeout'] * 1000000 - (microtime(true) - $time)); usleep($params['timeout'] > 0 ? $params['timeout'] : 0); if (empty($this->updates)) { @@ -628,7 +624,7 @@ trait UpdateHandler if (isset($this->settings['pwr']['strict']) && $this->settings['pwr']['strict'] && isset($this->settings['pwr']['update_handler'])) { $this->pwr_update_handler($update); } else { - in_array($this->settings['updates']['callback'], [['danog\\MadelineProto\\API', 'get_updates_update_handler'], 'get_updates_update_handler']) ? $this->get_updates_update_handler($update) : $this->settings['updates']['callback']($update); + $this->get_updates_update_handler($update); } } @@ -653,7 +649,7 @@ trait UpdateHandler curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_CAINFO, $this->pem_path); } else { - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); } } $result = curl_exec($ch); diff --git a/src/danog/MadelineProto/Serialization.php b/src/danog/MadelineProto/Serialization.php index 8cf4943d..098e5675 100644 --- a/src/danog/MadelineProto/Serialization.php +++ b/src/danog/MadelineProto/Serialization.php @@ -32,9 +32,7 @@ class Serialization public static function realpaths($file) { - if (($file[0] !== '/') && ($file[1] !== ':')) { - $file = getcwd().'/'.$file; - } + $file = Absolute::absolute($file); return ['file' => $file, 'lockfile' => $file.'.lock', 'tempfile' => $file.'.temp.session']; } diff --git a/src/danog/MadelineProto/TL/Conversion/BotAPI.php b/src/danog/MadelineProto/TL/Conversion/BotAPI.php index d34235ac..0e8e2c77 100644 --- a/src/danog/MadelineProto/TL/Conversion/BotAPI.php +++ b/src/danog/MadelineProto/TL/Conversion/BotAPI.php @@ -60,9 +60,9 @@ trait BotAPI } elseif (isset($button['callback_game'])) { $newrows[$key]['buttons'][$button_key]['_'] = 'keyboardButtonGame'; $newrows[$key]['buttons'][$button_key]['text'] = $button['callback_game']; - } elseif (isset($button['request_contact'])) { + } elseif (isset($button['request_contact']) && $button['request_contact']) { $newrows[$key]['buttons'][$button_key]['_'] = 'keyboardButtonRequestPhone'; - } elseif (isset($button['request_location'])) { + } elseif (isset($button['request_location']) && $button['request_location']) { $newrows[$key]['buttons'][$button_key]['_'] = 'keyboardButtonRequestGeoLocation'; } $button_key++; diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index a518b6ef..0535a2f9 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -32,7 +32,7 @@ trait TL $this->td_descriptions = ['types' => [], 'constructors' => [], 'methods' => []]; foreach ($files as $scheme_type => $file) { \danog\MadelineProto\Logger::log(sprintf(\danog\MadelineProto\Lang::$current_lang['file_parsing'], basename($file)), \danog\MadelineProto\Logger::VERBOSE); - $filec = file_get_contents($file); + $filec = file_get_contents(\danog\MadelineProto\Absolute::absolute($file)); $TL_dict = json_decode($filec, true); if ($TL_dict === null) { $TL_dict = ['methods' => [], 'constructors' => []]; @@ -332,16 +332,23 @@ trait TL } } $auto = false; - if (!is_array($object) && $type['type'] === 'InputMessage') { + if ($type['type'] === 'InputMessage' && !is_array($object)) { $object = ['_' => 'inputMessageID', 'id' => $object]; } - if ((!is_array($object) || isset($object['_']) && $this->constructors->find_by_predicate($object['_'])['type'] !== $type['type']) && in_array($type['type'], ['User', 'InputUser', 'Chat', 'InputChannel', 'Peer', 'InputPeer'])) { + if (in_array($type['type'], ['User', 'InputUser', 'Chat', 'InputChannel', 'Peer', 'InputPeer']) && (!is_array($object) || isset($object['_']) && $this->constructors->find_by_predicate($object['_'])['type'] !== $type['type'])) { $object = $this->get_info($object); if (!isset($object[$type['type']])) { throw new \danog\MadelineProto\Exception(\danog\MadelineProto\Lang::$current_lang['peer_not_in_db']); } $object = $object[$type['type']]; } + if (in_array($type['type'], ['InputMedia', 'InputDocument', 'InputPhoto']) && (!is_array($object) || isset($object['_']) && $this->constructors->find_by_predicate($object['_'])['type'] !== $type['type'])) { + $object = $this->get_file_info($object); + if (!isset($object[$type['type']])) { + throw new \danog\MadelineProto\Exception('Could not convert media object'); + } + $object = $object[$type['type']]; + } if (!isset($object['_'])) { $constructorData = $this->constructors->find_by_predicate($type['type'], $layer); if ($constructorData === false) { @@ -376,6 +383,37 @@ trait TL public function serialize_method($method, $arguments) { + if ($method === 'messages.importChatInvite' && isset($arguments['hash']) && preg_match('@(?:t|telegram)\.(?:me|dog)/(joinchat/)?([a-z0-9_-]*)@i', $arguments['hash'], $matches)) { + if ($matches[1] === '') { + $method = 'channels.joinChannel'; + $arguments['channel'] = $matches[2]; + } else { + $arguments['hash'] = $matches[2]; + } + } + if ($method === 'messages.checkChatInvite' && isset($arguments['hash']) && preg_match('@(?:t|telegram)\.(?:me|dog)/joinchat/([a-z0-9_-]*)@i', $arguments['hash'], $matches)) { + $arguments['hash'] = $matches[1]; + } + if ($method === 'channels.joinChannel' && isset($arguments['channel']) && preg_match('@(?:t|telegram)\.(?:me|dog)/(joinchat/)?([a-z0-9_-]*)@i', $arguments['channel'], $matches)) { + if ($matches[1] !== '') { + $method = 'messages.importChatInvite'; + $arguments['hash'] = $matches[2]; + } + } + if ($method === 'messages.sendEncryptedFile') { + if (isset($arguments['file'])) { + if (!is_array($arguments['file']) && $this->settings['upload']['allow_automatic_upload']) { + $arguments['file'] = $this->upload_encrypted($arguments['file']); + } + if (isset($arguments['file']['key'])) { + $arguments['message']['media']['key'] = $arguments['file']['key']; + } + if (isset($arguments['file']['iv'])) { + $arguments['message']['media']['iv'] = $arguments['file']['iv']; + } + } + } + $tl = $this->methods->find_by_method($method); if ($tl === false) { throw new Exception(\danog\MadelineProto\Lang::$current_lang['method_not_found'].$method); @@ -441,6 +479,14 @@ trait TL } } } + if ($tl['type'] === 'InputMedia' && $current_argument['name'] === 'mime_type') { + $serialized .= $this->serialize_object($current_argument, $arguments['file']['mime_type'], $current_argument['name'], $layer); + continue; + } + if ($tl['type'] === 'DocumentAttribute' && in_array($current_argument['name'], ['w', 'h', 'duration'])) { + $serialized .= pack('@4'); + continue; + } if ($id = $this->constructors->find_by_predicate(lcfirst($current_argument['type']).'Empty')) { $serialized .= $id['id']; continue; @@ -448,15 +494,23 @@ trait TL throw new Exception(\danog\MadelineProto\Lang::$current_lang['params_missing'], $current_argument['name']); } - if (!is_array($arguments[$current_argument['name']]) && $current_argument['type'] === 'InputEncryptedChat') { - if (!isset($this->secret_chats[$arguments[$current_argument['name']]])) { - throw new \danog\MadelineProto\Exception(\danog\MadelineProto\Lang::$current_lang['sec_peer_not_in_db']); - } - $arguments[$current_argument['name']] = $this->secret_chats[$arguments[$current_argument['name']]]['InputEncryptedChat']; - } if ($current_argument['type'] === 'DataJSON') { $arguments[$current_argument['name']] = ['_' => 'dataJSON', 'data' => json_encode($arguments[$current_argument['name']])]; } + if (!is_array($arguments[$current_argument['name']]) && $current_argument['type'] === 'InputFile' && $this->settings['upload']['allow_automatic_upload']) { + $arguments[$current_argument['name']] = $this->upload($arguments[$current_argument['name']]); + } + + if ($current_argument['type'] === 'InputEncryptedChat' && (!is_array($arguments[$current_argument['name']]) || isset($arguments[$current_argument['name']]['_']) && $this->constructors->find_by_predicate($arguments[$current_argument['name']]['_'])['type'] !== $current_argument['type'])) { + if (is_array($arguments[$current_argument['name']])) { + $arguments[$current_argument['name']] = $this->get_info($arguments[$current_argument['name']])['InputEncryptedChat']; + } else { + if (!isset($this->secret_chats[$arguments[$current_argument['name']]])) { + throw new \danog\MadelineProto\Exception(\danog\MadelineProto\Lang::$current_lang['sec_peer_not_in_db']); + } + $arguments[$current_argument['name']] = $this->secret_chats[$arguments[$current_argument['name']]]['InputEncryptedChat']; + } + } //\danog\MadelineProto\Logger::log('Serializing '.$current_argument['name'].' of type '.$current_argument['type'); $serialized .= $this->serialize_object($current_argument, $arguments[$current_argument['name']], $current_argument['name'], $layer); } diff --git a/src/danog/MadelineProto/Tools.php b/src/danog/MadelineProto/Tools.php index ccd78359..8fd9b2b2 100644 --- a/src/danog/MadelineProto/Tools.php +++ b/src/danog/MadelineProto/Tools.php @@ -17,6 +17,21 @@ namespace danog\MadelineProto; */ trait Tools { + public function gen_vector_hash($ints) { + if (\danog\MadelineProto\Logger::$bigint) { + $hash = new \phpseclib\Math\BigInteger(0); + foreach ($ints as $int) { + $hash = $hash->multiply($this->twozerotwosixone)->add($this->zeroeight)->add(new \phpseclib\Math\BigInteger($int))->divide($this->zeroeight)[1]; + } + $hash = $this->unpack_signed_int(strrev(str_pad($hash->toBytes(), 4, "\0", STR_PAD_LEFT))); + } else { + $hash = 0; + foreach ($ints as $int) { + $hash = (($hash * 20261) + 0x80000000 + $int) % 0x80000000; + } + } + return $hash; + } public function random($length) { return $length === 0 ? '' : \phpseclib\Crypt\Random::string($length); diff --git a/src/danog/MadelineProto/VoIP/AuthKeyHandler.php b/src/danog/MadelineProto/VoIP/AuthKeyHandler.php index 5ebf211b..afcde842 100644 --- a/src/danog/MadelineProto/VoIP/AuthKeyHandler.php +++ b/src/danog/MadelineProto/VoIP/AuthKeyHandler.php @@ -26,7 +26,7 @@ trait AuthKeyHandler public function request_call($user) { if (!class_exists('\\danog\\MadelineProto\\VoIP')) { - throw new \danog\MadelineProto\Exception(\danog\MadelineProto\Lang::$current_lang['libtgvoip_required']); + throw new \danog\MadelineProto\Exception(['extension', 'libtgvoip']); } array_walk($this->calls, function ($controller, $id) { if ($controller->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_ENDED) { @@ -57,7 +57,7 @@ trait AuthKeyHandler public function accept_call($call) { if (!class_exists('\\danog\\MadelineProto\\VoIP')) { - throw new \danog\MadelineProto\Exception(\danog\MadelineProto\Lang::$current_lang['libtgvoip_required']); + throw new \danog\MadelineProto\Exception(); } array_walk($this->calls, function ($controller, $id) { if ($controller->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_ENDED) { @@ -103,7 +103,7 @@ trait AuthKeyHandler public function confirm_call($params) { if (!class_exists('\\danog\\MadelineProto\\VoIP')) { - throw new \danog\MadelineProto\Exception(\danog\MadelineProto\Lang::$current_lang['libtgvoip_required']); + throw new \danog\MadelineProto\Exception(['extension', 'libtgvoip']); } array_walk($this->calls, function ($controller, $id) { if ($controller->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_ENDED) { @@ -141,7 +141,7 @@ trait AuthKeyHandler public function complete_call($params) { if (!class_exists('\\danog\\MadelineProto\\VoIP')) { - throw new \danog\MadelineProto\Exception(\danog\MadelineProto\Lang::$current_lang['libtgvoip_required']); + throw new \danog\MadelineProto\Exception(['extension', 'libtgvoip']); } array_walk($this->calls, function ($controller, $id) { if ($controller->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_ENDED) { @@ -182,7 +182,7 @@ trait AuthKeyHandler public function call_status($id) { if (!class_exists('\\danog\\MadelineProto\\VoIP')) { - throw new \danog\MadelineProto\Exception(\danog\MadelineProto\Lang::$current_lang['libtgvoip_required']); + throw new \danog\MadelineProto\Exception(['extension', 'libtgvoip']); } array_walk($this->calls, function ($controller, $id) { if ($controller->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_ENDED) { @@ -199,7 +199,7 @@ trait AuthKeyHandler public function get_call($call) { if (!class_exists('\\danog\\MadelineProto\\VoIP')) { - throw new \danog\MadelineProto\Exception(\danog\MadelineProto\Lang::$current_lang['libtgvoip_required']); + throw new \danog\MadelineProto\Exception(['extension', 'libtgvoip']); } array_walk($this->calls, function ($controller, $id) { if ($controller->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_ENDED) { @@ -213,7 +213,7 @@ trait AuthKeyHandler public function discard_call($call, $reason, $rating = [], $need_debug = true) { if (!class_exists('\\danog\\MadelineProto\\VoIP')) { - throw new \danog\MadelineProto\Exception(\danog\MadelineProto\Lang::$current_lang['libtgvoip_required']); + throw new \danog\MadelineProto\Exception(['extension', 'libtgvoip']); } if (!isset($this->calls[$call['id']])) { return; diff --git a/src/danog/MadelineProto/Wrappers/Callback.php b/src/danog/MadelineProto/Wrappers/Callback.php new file mode 100644 index 00000000..3c626d54 --- /dev/null +++ b/src/danog/MadelineProto/Wrappers/Callback.php @@ -0,0 +1,25 @@ +. +*/ + +namespace danog\MadelineProto\Wrappers; + +/** + * Manages logging in and out. + */ +trait Callback +{ + public function setCallback($callback) { + $this->settings['updates']['callback'] = $callback; + $this->settings['updates']['handle_updates'] = true; + } +} diff --git a/src/danog/MadelineProto/Wrappers/Events.php b/src/danog/MadelineProto/Wrappers/Events.php new file mode 100644 index 00000000..17a00329 --- /dev/null +++ b/src/danog/MadelineProto/Wrappers/Events.php @@ -0,0 +1,45 @@ +. +*/ + +namespace danog\MadelineProto\Wrappers; + +/** + * Manages logging in and out. + */ +trait Events +{ + public $event_handler; + private $event_handler_instance; + + public function setEventHandler($event_handler) { + $this->event_handler = $event_handler; + $this->settings['updates']['callback'] = [$this, 'event_update_handler']; + $this->settings['updates']['handle_updates'] = true; + } + + public function event_update_handler($update) { + if (!class_exists($this->event_handler) || !is_subclass_of($this->event_handler, '\danog\MadelineProto\EventHandler')) { + throw new \danog\MadelineProto\Exception('Wrong event handler was defined'); + } + if (!($this->event_handler_instance instanceof $this->event_handler)) { + $class_name = $this->event_handler; + $this->event_handler_instance = new $class_name($this); + } + $method_name = 'on'.ucfirst($update['_']); + if (method_exists($this->event_handler_instance, $method_name)) { + $this->event_handler_instance->$method_name($update); + } else if (method_exists($this->event_handler_instance, 'onAny')) { + $this->event_handler_instance->onAny($update); + } + } +} diff --git a/src/danog/MadelineProto/Wrappers/Login.php b/src/danog/MadelineProto/Wrappers/Login.php index bdea0656..5cad3b56 100644 --- a/src/danog/MadelineProto/Wrappers/Login.php +++ b/src/danog/MadelineProto/Wrappers/Login.php @@ -95,7 +95,7 @@ trait Login \danog\MadelineProto\Logger::log(\danog\MadelineProto\Lang::$current_lang['login_2fa_enabled'], \danog\MadelineProto\Logger::NOTICE); $this->authorized = self::WAITING_PASSWORD; $this->authorization = $this->method_call('account.getPassword', [], ['datacenter' => $this->datacenter->curdc]); - //$this->authorization['_'] .= 'MP'; + return $this->authorization; } if ($e->rpc === 'PHONE_NUMBER_UNOCCUPIED') { diff --git a/src/danog/MadelineProto/Wrappers/Loop.php b/src/danog/MadelineProto/Wrappers/Loop.php new file mode 100644 index 00000000..e13d1cc0 --- /dev/null +++ b/src/danog/MadelineProto/Wrappers/Loop.php @@ -0,0 +1,60 @@ +. +*/ + +namespace danog\MadelineProto\Wrappers; + +/** + * Manages logging in and out. + */ +trait Loop +{ + public function loop($max_forks = 0) + { + if (in_array($this->settings['updates']['callback'], [['danog\\MadelineProto\\API', 'get_updates_update_handler'], 'get_updates_update_handler'])) { + return true; + } + if (php_sapi_name() !== "cli") { + try { + set_time_limit(-1); + } catch (\danog\MadelineProto\Exception $e) { + register_shutdown_function(function() { + \danog\MadelineProto\Logger::log(['Restarting script...']); + $a = fsockopen((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ? 'tls' : 'tcp').'://'.$_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT']); + fwrite($a, $_SERVER['REQUEST_METHOD'].' '.$_SERVER['REQUEST_URI'].' '.$_SERVER['SERVER_PROTOCOL']."\r\n"."Host: ".$_SERVER['SERVER_NAME']."\r\n\r\n"); + }); + } + } + \danog\MadelineProto\Logger::log("Started update loop", \danog\MadelineProto\Logger::NOTICE); + $offset = 0; + if ($max_forks === -1) { + while (true) { + $updates = $this->get_updates(['offset' => $offset]); + foreach ($updates as $update) { + $offset = $update['update_id'] + 1; + if (!pcntl_fork()) { + $this->settings['updates']['callback']($update['update']); + die; + } + } + } + } else { + while (true) { + $updates = $this->get_updates(['offset' => $offset]); + foreach ($updates as $update) { + $offset = $update['update_id'] + 1; + $this->settings['updates']['callback']($update['update']); + } + } + } + } +} diff --git a/src/danog/MadelineProto/Wrappers/Start.php b/src/danog/MadelineProto/Wrappers/Start.php new file mode 100644 index 00000000..91832f21 --- /dev/null +++ b/src/danog/MadelineProto/Wrappers/Start.php @@ -0,0 +1,150 @@ +. +*/ + +namespace danog\MadelineProto\Wrappers; + +/** + * Manages simple logging in and out. + */ +trait Start +{ + public function start() + { + if ($this->authorized === self::LOGGED_IN) { + return $this->get_self(); + } + if (php_sapi_name() === 'cli') { + if (!function_exists('readline')) { + function readline($prompt = null) + { + if ($prompt) { + echo $prompt; + } + $fp = fopen('php://stdin', 'r'); + $line = rtrim(fgets($fp, 1024)); + + return $line; + } + } + if (strpos(readline('Do you want to login as user or bot (u/b)? '), 'b') !== false) { + $this->bot_login(readline('Enter your bot token: ')); + } else { + $this->phone_login(readline('Enter your phone number: ')); + $authorization = $this->complete_phone_login(readline('Enter the phone code: ')); + if ($authorization['_'] === 'account.password') { + $authorization = $this->complete_2fa_login(readline('Please enter your password (hint '.$authorization['hint'].'): ')); + } + if ($authorization['_'] === 'account.needSignup') { + $authorization = $this->complete_signup(readline('Please enter your first name: '), readline('Please enter your last name (can be empty): ')); + } + } + $this->serialize(); + + return $this->get_self(); + } else { + if ($this->authorized === self::NOT_LOGGED_IN) { + if (isset($_POST['phone_number'])) { + $this->web_phone_login(); + } elseif (isset($_POST['token'])) { + $this->web_bot_login(); + } else { + $this->web_echo(); + } + } elseif ($this->authorized === self::WAITING_CODE) { + if (isset($_POST['phone_code'])) { + $this->web_complete_phone_login(); + } else { + $this->web_echo("You didn't provide a phone code!"); + } + } elseif ($this->authorized === self::WAITING_PASSWORD) { + if (isset($_POST['password'])) { + $this->web_complete_2fa_login(); + } else { + $this->web_echo("You didn't provide the password!"); + } + } elseif ($this->authorized === self::WAITING_SIGNUP) { + if (isset($_POST['first_name'])) { + $this->web_complete_signup(); + } else { + $this->web_echo("You didn't provide the first name!"); + } + } + if ($this->authorized === self::LOGGED_IN) { + $this->serialize(); + + return $this->get_self(); + } + exit; + } + } + + public function web_phone_login() + { + try { + $this->phone_login($_POST['phone_number']); + $this->web_echo(); + } catch (\danog\MadelineProto\RPCErrorException $e) { + $this->web_echo('ERROR: '.$e->getMessage().'. Try again.'); + } catch (\danog\MadelineProto\Exception $e) { + $this->web_echo('ERROR: '.$e->getMessage().'. Try again.'); + } + } + + public function web_complete_phone_login() + { + try { + $this->complete_phone_login($_POST['phone_code']); + $this->web_echo(); + } catch (\danog\MadelineProto\RPCErrorException $e) { + $this->web_echo('ERROR: '.$e->getMessage().'. Try again.'); + } catch (\danog\MadelineProto\Exception $e) { + $this->web_echo('ERROR: '.$e->getMessage().'. Try again.'); + } + } + + public function web_complete_2fa_login() + { + try { + $this->complete_2fa_login($_POST['password']); + $this->web_echo(); + } catch (\danog\MadelineProto\RPCErrorException $e) { + $this->web_echo('ERROR: '.$e->getMessage().'. Try again.'); + } catch (\danog\MadelineProto\Exception $e) { + $this->web_echo('ERROR: '.$e->getMessage().'. Try again.'); + } + } + + public function web_complete_signup() + { + try { + $this->complete_2fa_login($_POST['first_name'], isset($_POST['last_name']) ? $_POST['last_name'] : ''); + $this->web_echo(); + } catch (\danog\MadelineProto\RPCErrorException $e) { + $this->web_echo('ERROR: '.$e->getMessage().'. Try again.'); + } catch (\danog\MadelineProto\Exception $e) { + $this->web_echo('ERROR: '.$e->getMessage().'. Try again.'); + } + } + + public function web_bot_login() + { + try { + $this->bot_login($_POST['token']); + $this->web_echo(); + } catch (\danog\MadelineProto\RPCErrorException $e) { + $this->web_echo('ERROR: '.$e->getMessage().'. Try again.'); + } catch (\danog\MadelineProto\Exception $e) { + $this->web_echo('ERROR: '.$e->getMessage().'. Try again.'); + } + } +} diff --git a/src/danog/MadelineProto/Wrappers/Templates.php b/src/danog/MadelineProto/Wrappers/Templates.php new file mode 100644 index 00000000..e9735a1c --- /dev/null +++ b/src/danog/MadelineProto/Wrappers/Templates.php @@ -0,0 +1,71 @@ +. +*/ + +namespace danog\MadelineProto\Wrappers; + +trait Templates +{ + public function web_echo($message = '') + { + switch ($this->authorized) { + case self::NOT_LOGGED_IN: + if (isset($_POST['type'])) { + if ($_POST['type'] === 'phone') { + echo $this->web_echo_template('Enter your phone number
'.$message.'', ''); + } else { + echo $this->web_echo_template('Enter your bot token
'.$message.'', ''); + } + } else { + echo $this->web_echo_template('Do you want to login as user or bot?
'.$message.'', ''); + } + break; + + case self::WAITING_CODE: + echo $this->web_echo_template('Enter your code
'.$message.'', ''); + break; + + case self::WAITING_PASSWORD: + echo $this->web_echo_template('Enter your password
'.$message.'', ''); + break; + + case self::WAITING_SIGNUP: + echo $this->web_echo_template('Sign up please
'.$message.'', ''); + break; + } + } + private $web_template = ' + + + MadelineProto + + +

MadelineProto

+
+ %s + +
+

%s

+ + '; + + public function web_echo_template($message, $form) + { + return sprintf($this->web_template, $form, $message); + } + public function get_web_template() { + return $this->web_template; + } + public function set_web_template($template) { + $this->web_template = $template; + } +} diff --git a/src/danog/MadelineProto/Wrappers/Webhook.php b/src/danog/MadelineProto/Wrappers/Webhook.php new file mode 100644 index 00000000..b2695f9d --- /dev/null +++ b/src/danog/MadelineProto/Wrappers/Webhook.php @@ -0,0 +1,28 @@ +. +*/ + +namespace danog\MadelineProto\Wrappers; + +/** + * Manages logging in and out. + */ +trait Webhook +{ + + public function setWebhook($url, $pem_path = null) { + $this->pem_path = $pem_path; + $this->hook_url = $hook_url; + $this->settings['updates']['callback'] = [$this, 'pwr_webhook']; + $this->settings['updates']['handle_updates'] = true; + } +} diff --git a/tests/testing.php b/tests/testing.php index b5b12602..11aa75be 100755 --- a/tests/testing.php +++ b/tests/testing.php @@ -10,36 +10,23 @@ See the GNU Affero General Public License for more details. You should have received a copy of the GNU General Public License along with MadelineProto. If not, see . */ -set_include_path(get_include_path().':'.realpath(dirname(__FILE__).'/../').':'.realpath(dirname(__FILE__).'/../MadelineProto/')); -chdir(dirname(__FILE__).'/../'); -if (!file_exists('vendor/autoload.php')) { - die('You did not run composer update'); -} -require_once 'vendor/autoload.php'; -if (!function_exists('readline')) { - function readline($prompt = null) - { - if ($prompt) { - echo $prompt; - } - $fp = fopen('php://stdin', 'r'); - $line = rtrim(fgets($fp, 1024)); - - return $line; +/** + * Various ways to load MadelineProto + */ +if (!file_exists(__DIR__.'/../vendor/autoload.php')) { + echo 'You did not run composer update, using madeline.php'.PHP_EOL; + if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); } + include 'madeline.php'; +} else { + require_once 'vendor/autoload.php'; } -echo 'Deserializing MadelineProto from testing.madeline...'.PHP_EOL; - -$MadelineProto = false; - -try { - $MadelineProto = new \danog\MadelineProto\API('testing.madeline'); -} catch (\danog\MadelineProto\Exception $e) { - \danog\MadelineProto\Logger::log($e->getMessage()); -} - +/** + * Load .env for settings + */ if (file_exists('.env')) { echo 'Loading .env...'.PHP_EOL; $dotenv = new Dotenv\Dotenv(getcwd()); @@ -48,38 +35,38 @@ if (file_exists('.env')) { if (getenv('TEST_SECRET_CHAT') == '') { die('TEST_SECRET_CHAT is not defined in .env, please define it (copy .env.example).'.PHP_EOL); } - echo 'Loading settings...'.PHP_EOL; $settings = json_decode(getenv('MTPROTO_SETTINGS'), true) ?: []; -if ($MadelineProto === false) { - echo 'Loading MadelineProto...'.PHP_EOL; - $MadelineProto = new \danog\MadelineProto\API($settings); - if (getenv('TRAVIS_COMMIT') == '') { - $sentCode = $MadelineProto->phone_login(readline('Enter your phone number: ')); - \danog\MadelineProto\Logger::log($sentCode, \danog\MadelineProto\Logger::NOTICE); - echo 'Enter the code you received: '; - $code = fgets(STDIN, (isset($sentCode['type']['length']) ? $sentCode['type']['length'] : 5) + 1); - $authorization = $MadelineProto->complete_phone_login($code); - \danog\MadelineProto\Logger::log($authorization, \danog\MadelineProto\Logger::NOTICE); - if ($authorization['_'] === 'account.noPassword') { - throw new \danog\MadelineProto\Exception('2FA is enabled but no password is set!'); - } - if ($authorization['_'] === 'account.password') { - \danog\MadelineProto\Logger::log('2FA is enabled', \danog\MadelineProto\Logger::NOTICE); - $authorization = $MadelineProto->complete_2fa_login(readline('Please enter your password (hint '.$authorization['hint'].'): ')); - } - if ($authorization['_'] === 'account.needSignup') { - \danog\MadelineProto\Logger::log('Registering new user', \danog\MadelineProto\Logger::NOTICE); - $authorization = $MadelineProto->complete_signup(readline('Please enter your first name: '), readline('Please enter your last name (can be empty): ')); - } +/** + * Load MadelineProto + */ +echo 'Loading MadelineProto...'.PHP_EOL; +try { + $MadelineProto = new \danog\MadelineProto\API(getcwd().'/testing.madeline', $settings); +} catch (\danog\MadelineProto\Exception $e) { + echo $e.PHP_EOL; + unlink(getcwd().'/testing.madeline'); + $MadelineProto = new \danog\MadelineProto\API(getcwd().'/testing.madeline', $settings); +} + +/** + * If this session is not logged in, login + */ +if ($MadelineProto->get_self() === false) { + /** + * If a BOT_TOKEN is defined in .env, use it to login, else prompt for login info + */ + if (getenv('BOT_TOKEN') == '') { + $MadelineProto->start(); } else { $MadelineProto->bot_login(getenv('BOT_TOKEN')); } } -$MadelineProto->session = 'testing.madeline'; - +/** + * Test logging + */ \danog\MadelineProto\Logger::log('hey', \danog\MadelineProto\Logger::ULTRA_VERBOSE); \danog\MadelineProto\Logger::log('hey', \danog\MadelineProto\Logger::VERBOSE); \danog\MadelineProto\Logger::log('hey', \danog\MadelineProto\Logger::NOTICE); @@ -87,8 +74,14 @@ $MadelineProto->session = 'testing.madeline'; \danog\MadelineProto\Logger::log('hey', \danog\MadelineProto\Logger::ERROR); \danog\MadelineProto\Logger::log('hey', \danog\MadelineProto\Logger::FATAL_ERROR); +/** + * A small example message to use for tests + */ $message = (getenv('TRAVIS_COMMIT') == '') ? 'I iz works always (io laborare sembre) (yo lavorar siempre) (mi labori ĉiam) (я всегда работать) (Ik werkuh altijd) (Ngimbonga ngaso sonke isikhathi ukusebenza)' : ('Travis ci tests in progress: commit '.getenv('TRAVIS_COMMIT').', job '.getenv('TRAVIS_JOB_NUMBER').', PHP version: '.getenv('TRAVIS_PHP_VERSION')); +/** + * Try making a phone call + */ if (stripos(readline('Do you want to make a call? (y/n): '), 'y') !== false) { $controller = $MadelineProto->request_call(getenv('TEST_SECRET_CHAT'))->play('input.raw')->then('input.raw')->playOnHold(['input.raw'])->setOutputFile('output.raw'); while ($controller->getCallState() < \danog\MadelineProto\VoIP::CALL_STATE_READY) { @@ -99,6 +92,10 @@ if (stripos(readline('Do you want to make a call? (y/n): '), 'y') !== false) { $MadelineProto->get_updates(); } } + +/** + * Try receiving a phone call + */ if (stripos(readline('Do you want to handle incoming calls? (y/n): '), 'y') !== false) { $howmany = readline('How many calls would you like me to handle? '); $offset = 0; @@ -117,52 +114,107 @@ if (stripos(readline('Do you want to handle incoming calls? (y/n): '), 'y') !== } } } + +/** + * Secret chat usage + */ if (stripos(readline('Do you want to make the secret chat tests? (y/n): '), 'y') !== false) { - $secret = $MadelineProto->API->request_secret_chat(getenv('TEST_SECRET_CHAT')); - echo 'Waiting for '.getenv('TEST_SECRET_CHAT').' (secret chat id '.$secret.') to accept the secret chat...'.PHP_EOL; - while ($MadelineProto->secret_chat_status($secret) !== 2) { + /** + * Request a secret chat + */ + $secret_chat_id = $MadelineProto->API->request_secret_chat(getenv('TEST_SECRET_CHAT')); + echo 'Waiting for '.getenv('TEST_SECRET_CHAT').' (secret chat id '.$secret_chat_id.') to accept the secret chat...'.PHP_EOL; + + /** + * Wait until the other party accepts it + */ + while ($MadelineProto->secret_chat_status($secret_chat_id) !== 2) { $MadelineProto->get_updates(); } - $offset = 0; - $InputEncryptedChat = $MadelineProto->get_secret_chat($secret)['InputEncryptedChat']; - $sentMessage = $MadelineProto->messages->sendEncrypted(['peer' => $InputEncryptedChat, 'message' => ['_' => 'decryptedMessage', 'media' => ['_' => 'decryptedMessageMediaEmpty'], 'ttl' => 10, 'message' => $message, 'entities' => [['_' => 'messageEntityCode', 'offset' => 0, 'length' => mb_strlen($message)]]]]); // should work with all layers + /** + * Send a markdown-formatted text message with expiration after 10 seconds + */ + $sentMessage = $MadelineProto->messages->sendEncrypted([ + 'peer' => $secret_chat_id, + 'message' => [ + '_' => 'decryptedMessage', + 'media' => ['_' => 'decryptedMessageMediaEmpty'], // No media + 'ttl' => 10, // This message self-destructs 10 seconds after reception + 'message' => '```'.$message.'```', // Code Markdown + 'parse_mode' => 'Markdown' + ] + ]); \danog\MadelineProto\Logger::log($sentMessage, \danog\MadelineProto\Logger::NOTICE); + /** + * Send secret media + */ $secret_media = []; // Photo uploaded as document, secret chat - $inputEncryptedFile = $MadelineProto->upload_encrypted('tests/faust.jpg', 'fausticorn.jpg'); // This gets an inputFile object with file name magic - $secret_media['document_photo'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/faust.jpg'), 'caption' => 'This file was uploaded using MadelineProto', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'faust.jpg', 'size' => filesize('tests/faust.jpg'), 'attributes' => [['_' => 'documentAttributeImageSize', 'w' => 1280, 'h' => 914]]]]]; + $secret_media['document_photo'] = [ + 'peer' => $secret_chat_id, + 'file' => 'tests/faust.jpg', // The file to send + 'message' => [ + '_' => 'decryptedMessage', + 'ttl' => 0, // This message does not self-destruct + 'message' => '', // No text message, only media + 'media' => [ + '_' => 'decryptedMessageMediaDocument', + 'thumb' => file_get_contents('tests/faust.preview.jpg'), // The thumbnail must be generated manually, it must be in jpg format, 90x90 + 'thumb_w' => 90, + 'thumb_h' => 90, + 'mime_type' => mime_content_type('tests/faust.jpg'), // The file's mime type + 'caption' => 'This file was uploaded using @MadelineProto', // The caption + 'file_name' => 'faust.jpg', // The file's name + 'size' => filesize('tests/faust.jpg'), // The file's size + 'attributes' => [ + ['_' => 'documentAttributeImageSize', 'w' => 1280, 'h' => 914] // Image's resolution + ] + ] + ] + ]; // Photo, secret chat - $secret_media['photo'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaPhoto', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'caption' => 'This file was uploaded using MadelineProto', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'size' => filesize('tests/faust.jpg'), 'w' => 1280, 'h' => 914]]]; + $secret_media['photo'] = [ + 'peer' => $secret_chat_id, + 'file' => 'tests/faust.jpg', + 'message' => [ + '_' => 'decryptedMessage', + 'ttl' => 0, + 'message' => '', + 'media' => [ + '_' => 'decryptedMessageMediaPhoto', + 'thumb' => file_get_contents('tests/faust.preview.jpg'), + 'thumb_w' => 90, + 'thumb_h' => 90, + 'caption' => 'This file was uploaded using @MadelineProto', + 'size' => filesize('tests/faust.jpg'), + 'w' => 1280, + 'h' => 914 + ] + ] + ]; // GIF, secret chat - $inputEncryptedFile = $MadelineProto->upload_encrypted('tests/pony.mp4'); - $secret_media['gif'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/pony.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/pony.mp4'), 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'pony.mp4', 'size' => filesize('tests/faust.jpg'), 'attributes' => [['_' => 'documentAttributeAnimated']]]]]; + $secret_media['gif'] = ['peer' => $secret_chat_id, 'file' => 'tests/pony.mp4', 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/pony.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/pony.mp4'), 'caption' => 'test', 'file_name' => 'pony.mp4', 'size' => filesize('tests/faust.jpg'), 'attributes' => [['_' => 'documentAttributeAnimated']]]]]; // Sticker, secret chat - $inputEncryptedFile = $MadelineProto->upload_encrypted('tests/lel.webp'); - $secret_media['sticker'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/lel.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/lel.webp'), 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'lel.webp', 'size' => filesize('tests/lel.webp'), 'attributes' => [['_' => 'documentAttributeSticker', 'alt' => 'LEL', 'stickerset' => ['_' => 'inputStickerSetEmpty']]]]]]; + $secret_media['sticker'] = ['peer' => $secret_chat_id, 'file' => 'tests/lel.webp', 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/lel.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/lel.webp'), 'caption' => 'test', 'file_name' => 'lel.webp', 'size' => filesize('tests/lel.webp'), 'attributes' => [['_' => 'documentAttributeSticker', 'alt' => 'LEL', 'stickerset' => ['_' => 'inputStickerSetEmpty']]]]]]; - // Document, secrey chat - $time = time(); - $inputEncryptedFile = $MadelineProto->upload_encrypted('tests/60', 'magic'); // This gets an inputFile object with file name magic - \danog\MadelineProto\Logger::log(time() - $time); - $secret_media['document'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => 'magic/magic', 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'magic.magic', 'size' => filesize('tests/60'), 'attributes' => [['_' => 'documentAttributeFilename', 'file_name' => 'fairy']]]]]; + // Document, secret chat + $secret_media['document'] = ['peer' => $secret_chat_id, 'file' => 'tests/60', 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => 'magic/magic', 'caption' => 'test', 'file_name' => 'magic.magic', 'size' => filesize('tests/60'), 'attributes' => [['_' => 'documentAttributeFilename', 'file_name' => 'fairy']]]]]; // Video, secret chat - $inputEncryptedFile = $MadelineProto->upload_encrypted('tests/swing.mp4'); - $secret_media['video'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/swing.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/swing.mp4'), 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'swing.mp4', 'size' => filesize('tests/swing.mp4'), 'attributes' => [['_' => 'documentAttributeVideo', 'duration' => 5, 'w' => 1280, 'h' => 720]]]]]; + $secret_media['video'] = ['peer' => $secret_chat_id, 'file' => 'tests/swing.mp4', 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/swing.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/swing.mp4'), 'caption' => 'test', 'file_name' => 'swing.mp4', 'size' => filesize('tests/swing.mp4'), 'attributes' => [['_' => 'documentAttributeVideo']]]]]; // audio, secret chat - $inputEncryptedFile = $MadelineProto->upload_encrypted('tests/mosconi.mp3'); - $secret_media['audio'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/mosconi.mp3'), 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'mosconi.mp3', 'size' => filesize('tests/mosconi.mp3'), 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => false, 'duration' => 1, 'title' => 'AH NON LO SO IO', 'performer' => 'IL DIO GERMANO MOSCONI']]]]]; - - $secret_media['voice'] = ['peer' => $secret, 'file' => $inputEncryptedFile, 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/mosconi.mp3'), 'caption' => 'test', 'key' => $inputEncryptedFile['key'], 'iv' => $inputEncryptedFile['iv'], 'file_name' => 'mosconi.mp3', 'size' => filesize('tests/mosconi.mp3'), 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => true, 'duration' => 1, 'title' => 'AH NON LO SO IO', 'performer' => 'IL DIO GERMANO MOSCONI']]]]]; + $secret_media['audio'] = ['peer' => $secret_chat_id, 'file' => 'tests/mosconi.mp3', 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/mosconi.mp3'), 'caption' => 'test', 'file_name' => 'mosconi.mp3', 'size' => filesize('tests/mosconi.mp3'), 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => false, 'title' => 'AH NON LO SO IO', 'performer' => 'IL DIO GERMANO MOSCONI']]]]]; + $secret_media['voice'] = ['peer' => $secret_chat_id, 'file' => 'tests/mosconi.mp3', 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => file_get_contents('tests/faust.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => mime_content_type('tests/mosconi.mp3'), 'caption' => 'test', 'file_name' => 'mosconi.mp3', 'size' => filesize('tests/mosconi.mp3'), 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => true, 'title' => 'AH NON LO SO IO', 'performer' => 'IL DIO GERMANO MOSCONI']]]]]; foreach ($secret_media as $type => $smessage) { + \danog\MadelineProto\Logger::log("Encrypting and uploading $type..."); $type = $MadelineProto->messages->sendEncryptedFile($smessage); } } @@ -171,27 +223,23 @@ $mention = $MadelineProto->get_info(getenv('TEST_USERNAME')); // Returns an arra $mention = $mention['user_id']; // Selects only the numeric user id $media = []; +// Image +$media['photo'] = ['_' => 'inputMediaUploadedPhoto', 'file' => 'tests/faust.jpg']; + // Sticker -$inputFile = $MadelineProto->upload('tests/lel.webp'); -\danog\MadelineProto\Logger::log($inputFile); -$media['sticker'] = ['_' => 'inputMediaUploadedDocument', 'file' => $inputFile, 'mime_type' => mime_content_type('tests/lel.webp'), 'caption' => 'test', 'attributes' => [['_' => 'documentAttributeSticker', 'alt' => 'LEL', 'stickerset' => ['_' => 'inputStickerSetEmpty']]]]; +$media['sticker'] = ['_' => 'inputMediaUploadedDocument', 'file' => 'tests/lel.webp', 'attributes' => [['_' => 'documentAttributeSticker', 'alt' => 'LEL']]]; // Video -$inputFile = $MadelineProto->upload('tests/swing.mp4'); -$media['video'] = ['_' => 'inputMediaUploadedDocument', 'file' => $inputFile, 'mime_type' => mime_content_type('tests/swing.mp4'), 'caption' => 'test', 'attributes' => [['_' => 'documentAttributeVideo', 'duration' => 5, 'w' => 1280, 'h' => 720]]]; +$media['video'] = ['_' => 'inputMediaUploadedDocument', 'file' => 'tests/swing.mp4', 'attributes' => [['_' => 'documentAttributeVideo']]]; // audio -$inputFile = $MadelineProto->upload('tests/mosconi.mp3'); -$media['audio'] = ['_' => 'inputMediaUploadedDocument', 'file' => $inputFile, 'mime_type' => mime_content_type('tests/mosconi.mp3'), 'caption' => 'test', 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => false, 'duration' => 1, 'title' => 'AH NON LO SO IO', 'performer' => 'IL DIO GERMANO MOSCONI']]]; +$media['audio'] = ['_' => 'inputMediaUploadedDocument', 'file' => 'tests/mosconi.mp3', 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => false, 'title' => 'AH NON LO SO IO', 'performer' => 'IL DIO GERMANO MOSCONI']]]; // voice -$media['voice'] = ['_' => 'inputMediaUploadedDocument', 'file' => $inputFile, 'mime_type' => mime_content_type('tests/mosconi.mp3'), 'caption' => 'test', 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => true, 'duration' => 1, 'title' => 'AH NON LO SO IO', 'performer' => 'IL DIO GERMANO MOSCONI']]]; +$media['voice'] = ['_' => 'inputMediaUploadedDocument', 'file' => 'tests/mosconi.mp3', 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => true, 'title' => 'AH NON LO SO IO', 'performer' => 'IL DIO GERMANO MOSCONI']]]; // Document -$time = time(); -$inputFile = $MadelineProto->upload('tests/60', 'magic'); // This gets an inputFile object with file name magic -\danog\MadelineProto\Logger::log(time() - $time); -$media['document'] = ['_' => 'inputMediaUploadedDocument', 'file' => $inputFile, 'mime_type' => 'magic/magic', 'caption' => 'This file was uploaded using MadelineProto', 'attributes' => [['_' => 'documentAttributeFilename', 'file_name' => 'magic.magic']]]; +$media['document'] = ['_' => 'inputMediaUploadedDocument', 'file' => 'tests/60', 'mime_type' => 'magic/magic', 'attributes' => [['_' => 'documentAttributeFilename', 'file_name' => 'magic.magic']]]; $message = 'yay'; $mention = $MadelineProto->get_info(getenv('TEST_USERNAME')); // Returns an array with all of the constructors that can be extracted from a username or an id @@ -202,6 +250,7 @@ foreach (json_decode(getenv('TEST_DESTINATION_GROUPS'), true) as $peer) { \danog\MadelineProto\Logger::log($sentMessage, \danog\MadelineProto\Logger::NOTICE); foreach ($media as $type => $inputMedia) { + \danog\MadelineProto\Logger::log("Sending $type"); $type = $MadelineProto->messages->sendMedia(['peer' => $peer, 'media' => $inputMedia, 'message' => '['.$message.'](mention:'.$mention.')', 'parse_mode' => 'markdown']); } } diff --git a/translator.php b/translator.php index c5da9c8a..fcdb1548 100644 --- a/translator.php +++ b/translator.php @@ -38,12 +38,29 @@ foreach (\danog\MadelineProto\Lang::$current_lang as $key => $value) { if (!isset(\danog\MadelineProto\Lang::$lang[$lang_code][$key])) { \danog\MadelineProto\Lang::$lang[$lang_code][$key] = $value; } - if (\danog\MadelineProto\Lang::$lang[$lang_code][$key] === $value) { + if (\danog\MadelineProto\Lang::$lang[$lang_code][$key] === $value && ($lang_code !== 'en' || $value == '' || strpos($value, 'You cannot use this method directly') === 0)) { $value = \danog\MadelineProto\Lang::$lang[$lang_code][$key]; if (in_array($key, ['v_error', 'v_tgerror'])) { $value = hex2bin($value); } - \danog\MadelineProto\Lang::$lang[$lang_code][$key] = readline($value.' => '); + if ($value == '') { + $value = $key; + } + preg_match('/^method_(.*?)(?:_param_(.*)_type_(.*))?$/', $key, $matches); + $method_name = isset($matches[1]) ? $matches[1] : ''; + $param_name = isset($matches[1]) ? $matches[1] : ''; + $param_type = isset($matches[2]) ? $matches[2] : ''; + if ($param_name === 'nonce' && $param_type === 'int128') { + \danog\MadelineProto\Lang::$lang[$lang_code][$key] = 'Random number for cryptographic security'; + } else if ($param_name === 'server_nonce' && $param_type === 'int128') { + \danog\MadelineProto\Lang::$lang[$lang_code][$key] = 'Random number for cryptographic security, given by server'; + } else if ($param_name === 'random_id' && $param_type === 'long') { + \danog\MadelineProto\Lang::$lang[$lang_code][$key] = 'Random number for cryptographic security'; + } else if (isset(\danog\MadelineProto\MTProto::DISALLOWED_METHODS[$method_name])) { + \danog\MadelineProto\Lang::$lang[$lang_code][$key] = \danog\MadelineProto\MTProto::DISALLOWED_METHODS[$method_name]; + } else { + \danog\MadelineProto\Lang::$lang[$lang_code][$key] = readline($value.' => '); + } if (in_array($key, ['v_error', 'v_tgerror'])) { \danog\MadelineProto\Lang::$lang[$lang_code][$key] = bin2hex(\danog\MadelineProto\Lang::$lang[$lang_code][$key]); }